/* ═══════════════════════════════════════
   NVF — THEME PARTAGÉ
   Source unique de vérité pour le header, le menu
   latéral, le footer et les composants communs
   (hero, cards, formulaires auth, empty-state).
   Repris à l'identique de index.php pour que toutes
   les pages partagent exactement le même design.
   Ce fichier est chargé APRÈS le <style> propre à
   chaque page afin que ces règles aient le dernier mot.
═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --navy:        #0B1628;
  --navy-mid:    #142038;
  --navy-light:  #1C3054;
  --amber:       #E8A020;
  --amber-light: #F5C05A;
  --amber-pale:  #FEF3DA;
  --amber-dim:   rgba(232,160,32,.14);
  --slate:       #8FA3BC;
  --bg:          #F0F4F9;
  --surface:     #FFFFFF;
  --border:      #E2E8F0;
  --text:        #0B1628;
  --muted:       #6B7E96;
  --success:     #2E7D32;

  --sidebar-w:   268px;
  --header-h:    64px;
  --footer-h:    56px;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow-sm:   0 2px 8px rgba(15,27,45,.06);
  --shadow:      0 6px 28px rgba(15,27,45,.09);
  --shadow-lg:   0 16px 48px rgba(15,27,45,.15);
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family:'Sora',sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* ═══════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════ */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:99px; }
::-webkit-scrollbar-thumb:hover { background:var(--slate); }

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  padding-right: 20px;
  z-index: 300;
  color: white;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
header::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity:.6;
}
.menu-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  cursor: pointer;
  font-size: 22px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.menu-btn:hover { background: var(--amber-dim); }
.header-brand {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: calc(100% - 160px);
}
.header-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232,160,32,.35);
}
header h1 {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  letter-spacing: -.01em;
  color: #fff;
}
.header-user-pill {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: 5px 12px 5px 7px;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.85);
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 1;
}
.header-avatar {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--amber-dim), var(--navy-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* ═══════════════════════════════════════
   NAV SIDEBAR
═══════════════════════════════════════ */
nav#menu {
  position: fixed;
  top: 0; left: 0;
  width: min(var(--sidebar-w), 84vw);
  height: 100%;
  background: var(--navy);
  z-index: 400;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  border-right: 1px solid rgba(255,255,255,.05);
}
nav#menu.open { transform: translateX(0); }

@media (min-width: 992px) {
  nav#menu { transform: translateX(0); }
  .menu-btn { display: none; }
}

.nav-header {
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--amber), #D4890E);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(232,160,32,.3);
}
.nav-logo-text {
  font-family: 'Fraunces', serif;
  font-size: 14px; font-weight: 600;
  color: #fff; line-height: 1.2;
}
.nav-logo-sub {
  font-size: 10px; color: var(--slate); font-weight: 400; margin-top: 1px;
}
.nav-user {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 12px;
}
.nav-user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(232,160,32,.3), rgba(30,48,80,.8));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.nav-user-name {
  font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.statut-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: 2px;
}
.statut-badge.pro   { background: rgba(46,125,50,.25); color: #81C784; border: 1px solid rgba(129,199,132,.25); }
.statut-badge.free  { background: rgba(143,163,188,.12); color: var(--slate); border: 1px solid rgba(143,163,188,.2); }
.statut-badge.admin { background: var(--amber-dim); color: var(--amber-light); border: 1px solid rgba(232,160,32,.25); }

.nav-section {
  padding: 12px 10px 4px;
}
.nav-section-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  padding: 0 10px; margin-bottom: 4px;
}
nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  font-size: 13.5px; font-weight: 400;
  transition: all var(--transition);
  margin: 1px 0;
  position: relative;
}
nav a:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
  transform: translateX(3px);
}
nav a.active {
  background: var(--amber-dim);
  color: var(--amber-light);
  font-weight: 600;
}
nav a.active::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; background: var(--amber);
  border-radius: 0 3px 3px 0;
}
.nav-btn-link {
  padding: 10px 12px !important;
}
.nav-btn-link button {
  width: 100%; padding: 8px 14px;
  background: linear-gradient(135deg, #27AE60, #2E7D32);
  color: white; border: none; border-radius: 8px;
  font-size: 13px; font-family: 'Sora', sans-serif;
  font-weight: 600; cursor: pointer;
  transition: opacity var(--transition);
  box-shadow: 0 4px 12px rgba(39,174,96,.3);
}
.nav-btn-link button:hover { opacity: .88; }
.nav-divider {
  height: 1px; background: rgba(255,255,255,.07);
  margin: 6px 12px;
}

/* ═══════════════════════════════════════
   OVERLAY
═══════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(11,22,40,.6);
  backdrop-filter: blur(4px);
  display: none; z-index: 350;
}

/* ═══════════════════════════════════════
   PAGE WRAP
═══════════════════════════════════════ */
.page-wrap {
  margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: 28px 20px calc(var(--footer-h) + 32px);
  max-width: 880px;
  margin-left: auto; margin-right: auto;
}
@media (min-width: 992px) {
  .page-wrap {
    margin-left: var(--sidebar-w);
    max-width: calc(100% - var(--sidebar-w));
    padding: 36px 48px calc(var(--footer-h) + 32px);
  }
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  position: relative;
  background: linear-gradient(145deg, #0B1628 0%, #142038 40%, #1C3054 100%);
  box-shadow: var(--shadow-lg);
  animation: fadeIn .5s ease;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none;
}
.hero-glow-1 {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,32,.18) 0%, transparent 70%);
  top: -100px; right: -60px;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28,48,84,.9) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
}
@media (max-width: 680px) {
  .hero-inner { flex-direction: column; text-align: center; padding: 30px 24px; }
  .hero-logo { display: none; }
}
.hero-content { flex: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber-dim);
  border: 1px solid rgba(232,160,32,.25);
  color: var(--amber-light);
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 100px;
  margin-bottom: 16px;
}
.hero-eyebrow span { opacity: .7; }
.hero h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff; line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.hero h2 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--slate); font-size: 14px;
  font-weight: 300; line-height: 1.65;
  margin-bottom: 20px;
  max-width: 380px;
}
.hero-badges {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.role-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.role-pill.admin {
  background: linear-gradient(135deg, rgba(232,160,32,.2), rgba(245,192,90,.08));
  color: var(--amber-light);
  border: 1px solid rgba(232,160,32,.25);
}
.role-pill.user {
  background: rgba(143,163,188,.1);
  color: var(--slate);
  border: 1px solid rgba(143,163,188,.18);
}
.role-pill::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.hero-logo {
  width: 130px; height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(232,160,32,.25));
  animation: float 6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* HERO STATS ROW */
.hero-stats {
  display: flex; gap: 1px;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.07);
}
.hero-stat {
  flex: 1; padding: 16px 20px;
  text-align: center;
}
.hero-stat-value {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--amber-light);
}
.hero-stat-label {
  font-size: 10.5px; color: var(--slate);
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .hero-stat { padding: 12px; }
  .hero-stat-value { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════ */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  display: flex; align-items: center; gap: 10px;
}
.section-title h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
}
.section-icon {
  width: 34px; height: 34px;
  background: var(--amber-dim);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.count-badge {
  background: var(--amber);
  color: var(--navy);
  font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.cards-grid {
  display: flex; flex-direction: column; gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  animation: fadeUp .45s ease both;
}
.card:nth-child(1) { animation-delay: .05s; }
.card:nth-child(2) { animation-delay: .12s; }
.card:nth-child(3) { animation-delay: .19s; }
.card:nth-child(4) { animation-delay: .26s; }
.card:nth-child(5) { animation-delay: .33s; }

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c8d6e5;
}
.card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--amber), var(--amber-light));
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.card:hover::before { transform: scaleY(1); }

.card-body { padding: 22px 24px; }
.card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.card h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); line-height: 1.3;
  letter-spacing: -.01em;
}
.card-new-badge {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: var(--navy);
  font-size: 9px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.card p {
  font-size: 13.5px; line-height: 1.8;
  color: var(--muted); font-weight: 300;
  white-space: pre-wrap;
  margin-bottom: 14px;
}
.card-image-wrap {
  margin: 0 0 16px;
  border-radius: 10px; overflow: hidden;
  background: var(--bg);
}
.card-image-wrap img {
  width: 100%; height: auto;
  display: block;
  transition: transform .4s ease;
}
.card:hover .card-image-wrap img { transform: scale(1.03); }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: #a0aec0;
}

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 72px 24px;
  background: var(--surface); border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: .4; }
.empty-state p { color: var(--muted); font-size: 14px; }

/* ═══════════════════════════════════════
   AUTH FORMS
═══════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) 16px calc(env(safe-area-inset-bottom, 0px) + 40px);
  background: radial-gradient(ellipse at 60% 20%, rgba(28,48,84,.08) 0%, transparent 60%),
              var(--bg);
}
.auth-card {
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 430px;
  overflow: hidden;
}
.auth-card-top {
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  padding: 34px 34px 28px;
  position: relative;
}
.auth-card-top::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--amber-light) 70%, transparent);
}
.auth-card-top-icon {
  width: 48px; height: 48px;
  background: var(--amber-dim);
  border: 1px solid rgba(232,160,32,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.auth-card-top h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.55rem; color: #fff;
  margin-bottom: 5px; letter-spacing: -.02em;
}
.auth-card-top p { font-size: 13px; color: var(--slate); font-weight: 300; }

.auth-body { padding: 28px 34px 32px; }
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 10.5px; font-weight: 700;
  color: var(--muted); letter-spacing: .07em;
  margin-bottom: 6px; text-transform: uppercase;
}
.field input {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--border); border-radius: 11px;
  font-family: 'Sora', sans-serif; font-size: 14px;
  color: var(--text); background: var(--bg); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(232,160,32,.1);
  background: #fff;
}
.btn-primary {
  width: 100%; padding: 14px; border: none;
  border-radius: 11px;
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  letter-spacing: .03em; margin-top: 8px;
  transition: all var(--transition);
  box-shadow: 0 6px 18px rgba(11,22,40,.25);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11,22,40,.3);
}
.btn-primary:active { transform: translateY(0); }
.auth-error {
  background: #fff5f5; border: 1px solid #fecaca;
  color: #c0392b; border-radius: 10px;
  padding: 11px 15px; font-size: 13px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.pw-error { color: #c0392b; font-size: 12px; margin-top: 5px; display: none; }
.auth-toggle {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--muted);
}
.auth-toggle a {
  color: var(--navy); font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--amber);
  padding-bottom: 1px; transition: color var(--transition);
}
.auth-toggle a:hover { color: var(--amber); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-top: 2px solid rgba(232,160,32,.35);
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 150;
}
@media (min-width: 992px) { .site-footer { left: var(--sidebar-w); } }
.footer-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 16px;
  padding: 11px 28px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  transition: transform var(--transition);
}
.footer-brand:hover { transform: scale(1.04); }
.footer-logo {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--amber), #D4890E);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(232,160,32,.3);
}
.footer-slogan {
  font-family: 'Fraunces', serif;
  font-size: 12px; font-style: italic;
  color: var(--amber-light);
}
.footer-divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,.1); flex-shrink: 0;
}
.footer-contacts {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: center;
}
.footer-contact-item {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 12px; font-weight: 400;
  transition: color var(--transition); white-space: nowrap;
}
.footer-contact-item:hover { color: var(--amber-light); }
.footer-copy {
  font-size: 11px; color: rgba(255,255,255,.22);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .site-footer { position: static; left: auto; margin-top: 16px; padding-bottom: 0; }
  .footer-inner { flex-direction: column; gap: 10px; padding: 16px; }
  .footer-divider { display: none; }
  .footer-contacts { flex-direction: column; gap: 8px; }
  .page-wrap { padding-bottom: 20px; }
}

/* ═══════════════════════════════════════
   PETITS ÉCRANS (≤480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  header { padding-left: 14px; padding-right: 14px; gap: 10px; }
  header h1 { font-size: 14.5px; }
  .header-user-pill { padding: 5px 10px 5px 6px; font-size: 11px; }
  .header-brand { max-width: calc(100% - 110px); gap: 7px; }
  .header-logo-icon { width: 30px; height: 30px; font-size: 15px; }

  .page-wrap { padding: 20px 14px calc(var(--footer-h) + 26px); }

  .hero { margin-bottom: 26px; border-radius: 18px; }
  .hero-inner { padding: 22px 18px; }
  .hero-eyebrow { font-size: 9.5px; padding: 4px 11px; margin-bottom: 12px; }
  .hero h2 { font-size: 1.45rem; margin-bottom: 8px; }
  .hero-sub { font-size: 13px; margin-bottom: 16px; }
  .hero-stat { padding: 11px 8px; }
  .hero-stat-value { font-size: 1.05rem; }
  .hero-stat-label { font-size: 9.5px; }

  .section-title h3 { font-size: 1.2rem; }
  .section-icon { width: 30px; height: 30px; font-size: 15px; }
  .count-badge { font-size: 10px; padding: 3px 9px; }

  .card-body { padding: 17px 16px; }
  .card h2 { font-size: 1rem; }
  .card p { font-size: 13px; line-height: 1.7; }

  .auth-card { border-radius: 18px; }
  .auth-card-top { padding: 26px 22px 22px; }
  .auth-card-top h2 { font-size: 1.3rem; }
  .auth-body { padding: 22px 20px 26px; }
  .field input { padding: 11px 13px; font-size: 13.5px; }
  .btn-primary { padding: 13px; font-size: 13.5px; }

  .empty-state { padding: 52px 18px; }
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
