/* ════════════════════════════════════════════════════════════════════
   FOUTETA — global.css
   Un seul fichier CSS pour tout le site.
   Charger sur TOUTES les pages :
     <link rel="stylesheet" href="css/global.css">

   Structure :
     1.  Reset & Variables
     2.  Base (body, typographie, utils)
     3.  Navbar & Mobile Bottom Bar
     4.  Boutons (3D, primaires, actions)
     5.  Cards & Layout
     6.  Formulaires & Inputs
     7.  Badges & Tags
     8.  Toast, Spinner, Skeleton
     9.  Modals & Lightbox
    10.  Stories & Live
    11.  Feed (posts, réactions, commentaires)
    12.  Messagerie
    13.  Profil
    14.  Amis (friends)
    15.  Dashboard
    16.  Alertes (notifications)
    17.  Pages Auth (login, signup, livraison)
    18.  Responsive global
════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════════
   1. RESET & VARIABLES
════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { width: 100%; overflow-x: hidden; }

:root {
  /* ── Couleurs principales ── */
  --duck-orange:        #ff8c32;
  --duck-orange-dark:   #e87220;
  --duck-orange-light:  #fff4ec;
  --duck-green:         #2cc483;
  --duck-green-dark:    #23a96e;
  --duck-green-light:   #f0fff4;
  --duck-blue:          #00a8e8;
  --duck-blue-light:    #e0f2fe;
  --duck-purple:        #8b5cf6;
  --duck-purple-light:  #f3e8ff;
  --duck-red:           #ef4444;
  --duck-yellow:        #f59e0b;
  --live-red:           #ff1744;

  /* ── Neutrales ── */
  --bg:                 #f5f7fa;
  --white:              #ffffff;
  --text-main:          #1a2535;
  --text-light:         #64748b;
  --border-light:       #e2e8f0;

  /* ── Ombres ── */
  --shadow-sm:          0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:          0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:          0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-orange:      0 4px 15px rgba(255,140,50,.25);
  --shadow-3d-orange:   0 6px 0 #9e4a00, 0 8px 20px rgba(255,140,50,.35);
  --shadow-3d-green:    0 6px 0 #126040, 0 8px 20px rgba(44,196,131,.35);
  --shadow-3d-blue:     0 6px 0 #005577, 0 8px 20px rgba(0,168,232,.35);

  /* ── Rayons ── */
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    16px;
  --r-xl:    22px;

  /* ── Dimensions navbar/bar ── */
  --navbar-h:     72px;
  --bottombar-h:  64px;
  /* ── Aliases admin.css (compatibilité) ──────────────────
     Ces variables permettent à admin.css de fonctionner sans
     redéfinir son propre :root. Pointent vers les duck-vars. */
  --primary:        var(--duck-orange);
  --primary-dark:   var(--duck-orange-dark);
  --primary-light:  var(--duck-orange-light);
  --text:           var(--text-main);
  --text-muted:     var(--text-light);
  --border:         var(--border-light);
  --border-strong:  #cbd5e1;
  --green:          var(--duck-green);
  --green-bg:       var(--duck-green-light);
  --red:            var(--duck-red);
  --red-bg:         #fff1f2;
  --red-border:     #fecaca;
  --blue:           var(--duck-blue);
  --blue-bg:        var(--duck-blue-light);
  --purple:         var(--duck-purple);
  --purple-bg:      var(--duck-purple-light);
  --amber:          var(--duck-yellow);
  --amber-bg:       #fffbeb;
  --radius:         var(--r-md);
  --radius-sm:      var(--r-sm);
  --radius-lg:      var(--r-lg);
  --sidebar:        240px;
  --topbar:         60px;
}


/* ════════════════════════════════════════════════════════════════════
   2. BASE
════════════════════════════════════════════════════════════════════ */

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  padding-top: var(--navbar-h);
  padding-bottom: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Corps des pages avec bottom bar mobile */
body.has-bottombar { padding-bottom: var(--bottombar-h); }

.hidden { display: none !important; }
.preview-media { width: 100%; border-radius: var(--r-md); margin: 8px 0; max-height: 300px; object-fit: cover; display: block; }


/* ════════════════════════════════════════════════════════════════════
   3. NAVBAR & MOBILE
════════════════════════════════════════════════════════════════════ */

/* ── Navbar principale ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 2000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  gap: 12px;
}

.nav-left   { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.nav-center { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav-right  { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Logo */
.logo {
  font-weight: 800; font-size: 1.4rem;
  color: var(--duck-orange); text-decoration: none;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.logo img { height: 40px; width: auto; display: block; }
.logo-text { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--duck-orange); letter-spacing: -.04em; }
.logo-beta {
  font-size: .55rem; font-weight: 800; color: var(--duck-orange);
  background: rgba(255,140,50,.12); border: 1px solid rgba(255,140,50,.35);
  border-radius: 5px; padding: 2px 5px; letter-spacing: .08em;
  align-self: flex-start; margin-top: 2px;
}

/* Recherche */
.nav-search-wrap { flex: 1; max-width: 380px; position: relative; }
.nav-search-box {
  display: flex; align-items: center; gap: 8px;
  background: #f1f5f9; border-radius: 30px;
  padding: 0 16px; height: 42px;
  border: 1.5px solid transparent; transition: all .2s;
}
.nav-search-box:focus-within {
  background: #fff; border-color: var(--duck-orange);
  box-shadow: 0 0 0 3px rgba(255,140,50,.08);
}
.nav-search-icon  { color: var(--text-light); font-size: .85rem; flex-shrink: 0; }
.nav-search-input {
  border: none; background: none; outline: none;
  font-family: inherit; font-size: .86rem; font-weight: 600;
  color: var(--text-main); width: 100%;
}
.nav-search-input::placeholder { color: var(--text-light); font-weight: 500; }
.nav-search-clear { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: .8rem; flex-shrink: 0; transition: color .2s; padding: 0 2px; }
.nav-search-clear:hover { color: var(--duck-red); }

/* Liens nav desktop */
.nav-link {
  text-decoration: none; color: var(--text-light);
  font-weight: 600; font-size: .86rem;
  padding: 8px 12px; border-radius: 30px;
  transition: all .2s; position: relative;
  white-space: nowrap; display: flex; align-items: center;
  gap: 5px; flex-direction: column; font-size: .68rem; min-width: 50px;
}
.nav-link i { font-size: 1.05rem; }
.nav-link:hover { background: var(--duck-orange-light); color: var(--duck-orange); }
.nav-link.active { background: var(--duck-orange-light); color: var(--duck-orange); }
.nav-link.active::after {
  content: ''; position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2.5px;
  background: var(--duck-orange); border-radius: 99px;
}

/* Badge notif navbar */
.notif-badge {
  position: absolute; top: 3px; right: 6px;
  background: var(--duck-red); color: white;
  font-size: .55rem; font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: 99px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* Boutons droite navbar */
.nav-icon-btn {
  width: 38px; height: 38px;
  background: #f1f5f9; border: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .95rem; color: var(--text-light);
  transition: all .15s;
}
.nav-icon-btn:hover { background: var(--duck-orange-light); color: var(--duck-orange); }

.nav-avatar-btn {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  cursor: pointer; border: 1.5px solid var(--border-light);
  flex-shrink: 0; background: var(--duck-orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: .82rem; text-decoration: none;
}
.nav-avatar-btn:hover { border-color: var(--duck-orange); }
.nav-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Burger & mobile search btn */
.mobile-search-btn, .burger-btn {
  display: none;
  background: #f1f5f9; border: none; border-radius: 9px;
  width: 38px; height: 38px; font-size: .9rem;
  color: var(--text-light); cursor: pointer;
  align-items: center; justify-content: center;
  transition: all .15s;
}
.mobile-search-btn:hover, .burger-btn:hover { background: var(--duck-orange-light); color: var(--duck-orange); }

/* Settings dropdown */
.settings-wrap { position: relative; }
.settings-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: white; border-radius: var(--r-lg);
  box-shadow: 0 8px 30px rgba(0,0,0,.11); border: 1px solid rgba(0,0,0,.07);
  min-width: 258px; z-index: 5000; overflow: hidden;
  opacity: 0; transform: translateY(-6px) scale(.98);
  pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.settings-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.settings-dropdown-header { padding: 14px 16px 11px; border-bottom: 1px solid #f4f4f5; display: flex; align-items: center; gap: 11px; }
.settings-user-avatar {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg,#ff9a4d,#ff6b00);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 1rem; overflow: hidden; flex-shrink: 0;
}
.settings-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.settings-user-name  { font-weight: 600; font-size: .87rem; color: var(--text-main); }
.settings-user-email { font-size: .72rem; color: #a1a1aa; margin-top: 1px; }
.settings-menu-items { padding: 6px 0; }
.settings-menu-section { padding: 6px 14px 3px; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #d4d4d8; }
.settings-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  cursor: pointer; text-decoration: none; color: #3f3f46;
  font-size: .82rem; font-weight: 500; transition: all .12s;
}
.settings-menu-item:hover { background: #fafafa; color: var(--duck-orange); }
.settings-menu-item.danger:hover { background: #fff5f5; color: var(--duck-red); }
.settings-menu-item i { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .78rem; flex-shrink: 0; }
.settings-divider { height: 1px; background: #f4f4f5; margin: 4px 0; }
.icon-orange { background: var(--duck-orange-light); color: var(--duck-orange); }
.icon-blue   { background: var(--duck-blue-light);   color: var(--duck-blue);   }
.icon-purple { background: var(--duck-purple-light);  color: var(--duck-purple); }
.icon-green  { background: var(--duck-green-light);   color: var(--duck-green);  }
.icon-gray   { background: #f4f4f5;                  color: var(--text-light);  }
.icon-red    { background: #fff5f5;                  color: var(--duck-red);    }

.btn-logout {
  background: none; color: var(--duck-red); border: none;
  border-radius: var(--r-sm); width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.1rem; cursor: pointer; transition: background .2s;
}
.btn-logout:hover { background: #fee2e2; }

/* Barre recherche mobile */
.mobile-search-bar {
  position: fixed; top: var(--navbar-h); left: 0; right: 0;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
  padding: 10px 16px; z-index: 1990;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06); display: none;
}

/* Menu mobile déroulant */
#mobile-menu {
  display: none; position: fixed; top: var(--navbar-h); left: 0; right: 0;
  background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
  z-index: 1999; padding: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.09);
  border-bottom: 1px solid rgba(0,0,0,.06);
  flex-direction: column; gap: 2px;
}
#mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--text-main);
  font-weight: 500; font-size: .88rem; transition: background .15s;
}
#mobile-menu a:hover { background: #f4f4f5; }

/* ── Mobile Bottom Bar ── */
.mobile-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottombar-h); background: var(--white);
  border-top: 1px solid var(--border-light);
  z-index: 1999; box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}

.mbb-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; flex: 1; text-decoration: none;
  color: var(--text-light); font-size: .6rem; font-weight: 700;
  border: none; background: none; cursor: pointer;
  padding: 8px 4px; transition: color .2s;
  font-family: inherit; position: relative;
}
.mbb-item i { font-size: 1.1rem; transition: transform .2s; }
.mbb-item:hover, .mbb-item.active { color: var(--duck-orange); }
.mbb-item:hover i, .mbb-item.active i { transform: translateY(-2px); }

/* Icônes colorées mobile bar */
.mbb-item .fa-chart-line       { color: var(--duck-purple); }
.mbb-item .fa-user-group       { color: var(--duck-blue); }
.mbb-item .fa-message          { color: var(--duck-green); }
.mbb-item .fa-bell             { color: var(--duck-yellow); }
.mbb-item .fa-broadcast-tower  { color: var(--duck-red); }
.mbb-item .fa-film             { color: var(--duck-purple); }
.mbb-item .fa-plus             { color: #fff !important; }

/* Bouton + central */
.mbb-plus-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(255,140,50,.4); margin-top: -14px;
}

/* Dot notif mobile */
.mobile-notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; background: var(--duck-red);
  border-radius: 50%; border: 2px solid #fff;
}

/* Panel recherche résultats */
.search-results-panel {
  position: absolute; top: calc(100% + 6px);
  left: 0; right: 0;
  min-width: 340px;
  background: white;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  z-index: 3000; display: none; overflow: hidden;
  max-height: 70vh; overflow-y: auto;
}
.search-results-panel.open { display: block; }
.search-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; transition: background .15s; text-decoration: none; color: var(--text-main); }
.search-result-item:hover { background: #f8fafc; }
.search-result-avatar { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: .88rem; flex-shrink: 0; overflow: hidden; }
.search-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-result-name { font-weight: 700; font-size: .85rem; }
.search-result-sub  { font-size: .72rem; color: var(--text-light); margin-top: 1px; }
.search-section-title { padding: 8px 16px 4px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--text-light); }
.search-more-link { display: block; padding: 6px 16px; font-size: .78rem; font-weight: 700; color: var(--duck-orange); text-decoration: none; transition: color .2s; }
.search-more-link:hover { text-decoration: underline; }
.search-person-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text-main); transition: background .15s; }
.search-person-card:hover { background: #f4f4f5; }
.search-person-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: .92rem; flex-shrink: 0; overflow: hidden; }
.search-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-person-name { font-weight: 700; font-size: .88rem; }
.search-person-username { font-size: .76rem; color: var(--text-light); margin-top: 1px; }

/* Scroll top */
.scroll-top-btn {
  position: fixed; bottom: calc(var(--bottombar-h) + 12px); right: 18px;
  width: 42px; height: 42px; background: white;
  border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.09);
  cursor: pointer; font-size: .9rem; color: #71717a;
  display: none; align-items: center; justify-content: center; z-index: 999;
}
.scroll-top-btn:hover { color: var(--duck-orange); border-color: rgba(255,140,50,.4); }


/* ════════════════════════════════════════════════════════════════════
   4. BOUTONS
════════════════════════════════════════════════════════════════════ */

/* Boutons 3D */
.btn-3d {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border: none; border-radius: 12px; font-family: inherit;
  font-weight: 800; font-size: .88rem; padding: 10px 22px;
  cursor: pointer; position: relative;
  transition: transform .1s ease, box-shadow .1s ease;
  text-decoration: none; white-space: nowrap; letter-spacing: .02em;
}
.btn-3d:active { transform: translateY(4px) !important; }
.btn-3d:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn-3d-orange {
  background: linear-gradient(180deg, #ffab5e 0%, var(--duck-orange) 45%, #d96a10 100%);
  color: white; box-shadow: var(--shadow-3d-orange); text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.btn-3d-orange:hover { box-shadow: 0 4px 0 #9e4a00, 0 6px 16px rgba(255,140,50,.45); transform: translateY(2px); }
.btn-3d-orange:active { box-shadow: 0 1px 0 #9e4a00; }

.btn-3d-green {
  background: linear-gradient(180deg, #4de8a7 0%, var(--duck-green) 45%, #1a8556 100%);
  color: white; box-shadow: var(--shadow-3d-green); text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.btn-3d-green:hover { box-shadow: 0 4px 0 #126040, 0 6px 16px rgba(44,196,131,.45); transform: translateY(2px); }

.btn-3d-blue {
  background: linear-gradient(180deg, #33c3f9 0%, var(--duck-blue) 45%, #0077a8 100%);
  color: white; box-shadow: var(--shadow-3d-blue); text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.btn-3d-blue:hover { box-shadow: 0 4px 0 #005577, 0 6px 16px rgba(0,168,232,.45); transform: translateY(2px); }

/* Bouton commande */
.btn-order {
  background: linear-gradient(180deg, #4de8a7 0%, var(--duck-green) 45%, #1a8556 100%);
  color: white; border: none; border-radius: 12px;
  font-family: inherit; font-weight: 800; font-size: .85rem;
  padding: 10px 20px; cursor: pointer;
  box-shadow: 0 5px 0 #126040, 0 7px 14px rgba(44,196,131,.3);
  transition: transform .1s, box-shadow .1s;
}
.btn-order:hover { transform: translateY(2px); box-shadow: 0 3px 0 #126040, 0 5px 10px rgba(44,196,131,.35); }
.btn-order:active { transform: translateY(4px); box-shadow: 0 1px 0 #126040; }

/* Boutons primaires auth */
.btn-primary {
  width: 100%; padding: 14px; border: none; border-radius: var(--r-lg);
  font-weight: 800; font-size: .95rem; cursor: pointer;
  font-family: inherit; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s, box-shadow .2s, background .2s; text-decoration: none;
  background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark));
  color: #fff; box-shadow: var(--shadow-orange);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,140,50,.4); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* Cancel / secondaire */
.btn-cancel {
  flex: 1; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #f1f5f9; color: var(--text-light);
  font-weight: 700; cursor: pointer; font-family: inherit; font-size: .88rem; transition: all .2s;
}
.btn-cancel:hover { background: #e2e8f0; }

/* Close modal */
.modal-close-btn {
  background: #f1f5f9; border: none; border-radius: 8px; padding: 8px 12px;
  cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--text-light); transition: all .2s;
}
.modal-close-btn:hover { background: #fee2e2; color: var(--duck-red); }

/* Action icon (publish bar) */
.action-icon-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: white; border: 1.5px solid var(--border-light);
  border-radius: 30px; padding: 7px 13px;
  font-size: .78rem; font-weight: 700; color: var(--text-light);
  cursor: pointer; font-family: inherit; transition: all .2s; white-space: nowrap;
}
.action-icon-btn:hover { border-color: var(--duck-orange); color: var(--duck-orange); background: var(--duck-orange-light); }

/* Filter chips */
.filter-chip {
  flex-shrink: 0; background: #f1f5f9; border: none;
  border-radius: 30px; padding: 7px 14px;
  font-size: .8rem; font-weight: 700; color: var(--text-light);
  cursor: pointer; font-family: inherit; transition: all .2s; white-space: nowrap;
}
.filter-chip:hover { background: var(--duck-orange-light); color: var(--duck-orange); }
.filter-chip.active { background: var(--duck-orange); color: white; box-shadow: 0 3px 8px rgba(255,140,50,.3); }

/* Spinner bouton */
.spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: rot .6s linear infinite;
  display: none; flex-shrink: 0;
}
@keyframes rot { to { transform: rotate(360deg); } }


/* ════════════════════════════════════════════════════════════════════
   5. CARDS & LAYOUT
════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 16px; transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-md); }

.app-container {
  max-width: 1300px; margin: 0 auto;
  padding: 0 20px;
  display: grid; grid-template-columns: 280px 1fr 320px; gap: 24px;
}

.left-sidebar  { position: sticky; top: calc(var(--navbar-h) + 16px); max-height: calc(100vh - var(--navbar-h) - 32px); overflow-y: auto; scrollbar-width: none; }
.right-sidebar { position: sticky; top: calc(var(--navbar-h) + 16px); max-height: calc(100vh - var(--navbar-h) - 32px); overflow-y: auto; scrollbar-width: none; }
.left-sidebar::-webkit-scrollbar, .right-sidebar::-webkit-scrollbar { display: none; }
.main-content { min-width: 0; }

.widget-title {
  font-size: .72rem; color: var(--text-light);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: .7px; margin-bottom: 12px;
}

.list-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 0; border-bottom: 1px solid #f1f5f9;
}
.list-item:last-child { border-bottom: none; }
.item-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: .88rem; overflow: hidden; cursor: pointer;
}
.item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.item-info { flex: 1; cursor: pointer; min-width: 0; }
.item-name  { font-weight: 700; font-size: .83rem; }
.item-meta  { font-size: .67rem; color: var(--text-light); display: flex; gap: 6px; margin-top: 2px; flex-wrap: wrap; }


/* ════════════════════════════════════════════════════════════════════
   6. FORMULAIRES & INPUTS
════════════════════════════════════════════════════════════════════ */

.input-field {
  width: 100%; background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md); padding: 10px 14px;
  font-size: .88rem; font-family: inherit;
  color: var(--text-main); transition: border-color .2s, box-shadow .2s;
  margin-bottom: 10px; display: block; outline: none;
}
.input-field:focus { border-color: var(--duck-orange); background: white; box-shadow: 0 0 0 3px rgba(255,140,50,.08); }
.input-field::placeholder { color: #c4cdd6; }

.char-counter { font-size: .7rem; color: var(--text-light); text-align: right; margin-bottom: 8px; font-weight: 600; }
.char-counter.warning { color: var(--duck-yellow); }
.char-counter.danger  { color: var(--duck-red); }

.publish-actions {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  padding: 10px 12px; background: #f8fafc;
  border-radius: var(--r-md); border: 1px solid var(--border-light); margin-top: 8px;
}

.emoji-picker-wrap { position: relative; }
.emoji-picker {
  display: none; position: absolute; bottom: 100%; left: 0;
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
  padding: 10px; width: 260px; z-index: 200;
}
.emoji-picker.open { display: block; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.emoji-grid span { font-size: 1.2rem; cursor: pointer; text-align: center; padding: 4px; border-radius: 6px; transition: background .15s; }
.emoji-grid span:hover { background: #f1f5f9; }

/* Alertes formulaire */
.alert {
  display: none; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: 10px;
  font-size: .83rem; font-weight: 700; margin-bottom: 18px;
  animation: aIn .25s ease;
}
.alert.show { display: flex; }
.alert.err  { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert.ok   { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.alert.warn { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
@keyframes aIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }


/* ════════════════════════════════════════════════════════════════════
   7. BADGES & TAGS
════════════════════════════════════════════════════════════════════ */

/* Badge vérifié ✓ */
.verified-badge, .vb-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  background: linear-gradient(135deg, #1D9E75, #0F6E56);
  border-radius: 50%; color: #fff; font-size: .6rem; font-weight: 900;
  margin-left: 4px; vertical-align: middle; flex-shrink: 0;
  box-shadow: 0 1px 5px rgba(29,158,117,.45);
  cursor: default; position: relative; top: -1px;
  transition: transform .2s, box-shadow .2s; line-height: 1;
}
.verified-badge:hover, .vb-badge:hover { transform: scale(1.18); box-shadow: 0 2px 10px rgba(29,158,117,.6); }
.verified-badge-lg, .vb-badge-lg { width: 22px; height: 22px; font-size: .72rem; }
.vb-badge-sm { width: 14px; height: 14px; font-size: .55rem; }

.vb-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #E1F5EE; color: #0F6E56;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; border: 1px solid #A0D8C0; white-space: nowrap;
}

/* Badge générique */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 20px; font-size: .65rem; font-weight: 700;
  background: #f1f5f9;
}
.badge.distance { background: var(--duck-blue-light); color: var(--duck-blue); }
.badge.mutual   { background: var(--duck-orange-light); color: var(--duck-orange); }
.badge.pending  { background: #fef9c3; color: var(--duck-yellow); }
.badge.sector   { background: var(--duck-purple-light); color: var(--duck-purple); }

/* Pro / status badges */
.pro-badge { background: var(--duck-orange-light); color: var(--duck-orange); padding: 2px 10px; border-radius: 30px; font-size: .68rem; font-weight: 800; }
.pro-tag   { background: linear-gradient(135deg,#fbbf24,#f59e0b); color: white; padding: 1px 6px; border-radius: 10px; font-size: .58rem; font-weight: 800; flex-shrink: 0; }

/* Status commandes */
.status-badge  { padding: 4px 12px; border-radius: 30px; font-size: .75rem; font-weight: 700; display: inline-block; }
.status-pending   { background: var(--duck-orange-light); color: var(--duck-orange); }
.status-shipping  { background: var(--duck-blue-light);   color: var(--duck-blue);   }
.status-done      { background: var(--duck-green-light);  color: var(--duck-green);  }
.status-cancelled { background: #fee2e2;                  color: var(--duck-red);    }


/* ════════════════════════════════════════════════════════════════════
   8. TOAST, SPINNER, SKELETON
════════════════════════════════════════════════════════════════════ */

.toast {
  position: fixed; bottom: calc(var(--bottombar-h) + 14px); left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e293b; color: #fff;
  padding: 11px 22px; border-radius: 50px;
  font-weight: 600; font-size: .88rem;
  z-index: 9999; transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px;
  max-width: 90vw; pointer-events: none; white-space: nowrap;
  opacity: 0;
}
.toast.show    { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--duck-green); }
.toast.error   { background: var(--duck-red); }

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--duck-orange);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* État vide générique */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-state .icon { font-size: 2.8rem; margin-bottom: 10px; opacity: .5; }
.empty-state h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.empty-state p  { font-size: .8rem; }

/* Loading spinner block */
.loading-spinner { text-align: center; padding: 30px; }


/* ════════════════════════════════════════════════════════════════════
   9. MODALS & LIGHTBOX
════════════════════════════════════════════════════════════════════ */

.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); align-items: center; justify-content: center;
  z-index: 4000; padding: 20px; backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: white; border-radius: var(--r-xl);
  padding: 25px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(20px) scale(.97); } to { opacity:1; transform:none; } }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-header h3 { font-size: 1rem; font-weight: 800; }
.modal-section { margin-bottom: 20px; }
.modal-section h3 { font-size: .95rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* Partage */
.share-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.share-option { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 7px; border-radius: var(--r-md); background: #f8fafc; cursor: pointer; transition: all .2s; }
.share-option:hover { background: var(--duck-orange-light); color: var(--duck-orange); transform: translateY(-2px); }
.share-option i { font-size: 1.4rem; }
.share-option span { font-size: .68rem; font-weight: 700; }
.share-link-box { display: flex; gap: 8px; }
.share-link-box input { flex: 1; padding: 8px 12px; border-radius: 30px; border: 1.5px solid var(--border-light); font-size: .8rem; font-family: inherit; outline: none; }
.copy-btn { background: var(--duck-orange); color: white; border: none; border-radius: 30px; padding: 8px 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .2s; box-shadow: 0 3px 0 var(--duck-orange-dark); }
.copy-btn:hover { background: var(--duck-orange-dark); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.94); z-index: 5000;
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img  { max-width: 90vw; max-height: 90vh; border-radius: var(--r-md); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.12); border: none; color: white;
  font-size: 1.4rem; cursor: pointer; border-radius: 8px;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }


/* ════════════════════════════════════════════════════════════════════
   10. STORIES & LIVE
════════════════════════════════════════════════════════════════════ */

.stories-card  { padding: 14px 16px; }
.stories-bar   { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.stories-bar::-webkit-scrollbar { display: none; }

.story-item { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.story-ring {
  width: 62px; height: 62px; border-radius: 18px; padding: 2.5px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
  background: linear-gradient(135deg, var(--duck-orange), #ff6b9d, var(--duck-purple));
  box-shadow: 0 4px 14px rgba(255,107,157,.3);
}
.story-ring:hover { transform: scale(1.07) translateY(-2px); }
.story-ring-add  { background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); }
.story-ring-live { background: linear-gradient(135deg, var(--live-red), #ff6b35); animation: livePulse 1.8s infinite; }
.story-ring-viewed { background: linear-gradient(135deg, #94a3b8, #cbd5e1); box-shadow: none; }
.story-ring-active { background: linear-gradient(135deg, var(--duck-orange), var(--duck-purple), var(--duck-blue)); }

@keyframes livePulse {
  0%,100% { box-shadow: 0 4px 14px rgba(255,23,68,.35); }
  50%      { box-shadow: 0 4px 20px rgba(255,23,68,.6), 0 0 0 4px rgba(255,23,68,.15); }
}

.story-inner {
  width: 100%; height: 100%; background: white; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; overflow: hidden; color: var(--duck-orange);
  border: 2px solid white;
}
.story-inner img { width: 100%; height: 100%; object-fit: cover; }
.story-inner-add  { color: var(--duck-orange); font-size: 1.2rem; background: var(--duck-orange-light); }
.story-inner-live { background: linear-gradient(135deg, #1a1a2e, #16213e); color: white; font-size: 1rem; }
.story-name { font-size: .63rem; font-weight: 700; color: var(--text-light); max-width: 62px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Story Viewer */
.story-viewer { display: none; position: fixed; inset: 0; z-index: 6000; align-items: center; justify-content: center; }
.story-viewer.open { display: flex; }
.story-viewer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); }
.story-viewer-inner { position: relative; width: min(400px,95vw); height: min(700px,95vh); background: #1a1a2e; border-radius: 24px; overflow: hidden; z-index: 1; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.story-progress-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.25); z-index: 10; display: flex; gap: 3px; padding: 6px 10px; }
.story-progress-fill { height: 100%; background: white; border-radius: 3px; }
.story-viewer-header { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; z-index: 10; }
.story-viewer-author { display: flex; align-items: center; gap: 10px; }
.story-viewer-avatar { width: 40px; height: 40px; border-radius: 12px; border: 2px solid white; overflow: hidden; background: var(--duck-orange); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; }
.story-viewer-name  { color: white; font-weight: 800; font-size: .9rem; }
.story-viewer-time  { color: rgba(255,255,255,.65); font-size: .72rem; }
.story-viewer-close { background: rgba(255,255,255,.15); border: none; color: white; border-radius: 10px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.story-viewer-close:hover { background: rgba(255,255,255,.25); }
.story-viewer-media { width: 100%; height: 100%; }
.story-viewer-media img, .story-viewer-media video { width: 100%; height: 100%; object-fit: cover; }
.story-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: white; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: background .2s; }
.story-nav:hover { background: rgba(255,255,255,.3); }
.story-prev { left: 10px; }
.story-next { right: 10px; }
.story-upload-zone { border: 2px dashed var(--border-light); border-radius: var(--r-lg); padding: 30px; text-align: center; cursor: pointer; transition: all .2s; min-height: 160px; display: flex; align-items: center; justify-content: center; }
.story-upload-zone:hover { border-color: var(--duck-orange); background: var(--duck-orange-light); }
.story-upload-zone.has-preview { padding: 0; border: none; }

/* Live Bar */
.live-bar-card { padding: 12px 16px; }
.live-bar-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.live-bar-badge { background: var(--live-red); color: white; font-size: .65rem; font-weight: 800; padding: 3px 9px; border-radius: 30px; animation: livePulse 1.5s infinite; }
.lives-list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.lives-list::-webkit-scrollbar { display: none; }
.live-item { flex-shrink: 0; width: 110px; border-radius: 14px; overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); transition: transform .2s; }
.live-item:hover { transform: translateY(-3px) scale(1.02); }
.live-item-thumb { height: 80px; background: linear-gradient(135deg,#1a1a2e,#16213e); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.live-item-badge { position: absolute; top: 6px; left: 6px; background: var(--live-red); color: white; font-size: .55rem; font-weight: 800; padding: 2px 7px; border-radius: 30px; }
.live-item-info { padding: 6px 8px; background: white; }
.live-item-name { font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-item-viewers { font-size: .62rem; color: var(--text-light); margin-top: 1px; }
.live-preview-zone { border-radius: var(--r-md); overflow: hidden; background: #1a1a2e; min-height: 200px; }
.live-badge-large { background: var(--live-red); color: white; font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 30px; animation: livePulse 1.5s infinite; letter-spacing: .06em; }
.live-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 7000; display: flex; align-items: center; justify-content: center; }
.live-viewer-inner { width: min(460px,98vw); height: min(720px,98vh); background: #0d0d1a; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 32px 80px rgba(0,0,0,.6); }
.live-viewer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: rgba(255,23,68,.1); border-bottom: 1px solid rgba(255,255,255,.08); }
.live-viewer-video { flex: 1; background: #0a0a14; overflow: hidden; }
.live-chat { flex: 0 0 160px; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.live-chat-msg { background: rgba(255,255,255,.08); border-radius: 12px; padding: 6px 10px; font-size: .78rem; color: rgba(255,255,255,.85); }
.live-chat-msg strong { color: var(--duck-orange); }
.live-chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }


/* ════════════════════════════════════════════════════════════════════
   11. FEED (posts, filtres, réactions, commentaires)
════════════════════════════════════════════════════════════════════ */

/* Profile sidebar (feed left) */
.profile-card     { text-align: center; padding: 0; overflow: hidden; }
.profile-cover-mini { height: 70px; background: linear-gradient(135deg, var(--duck-orange), #ffab5e, var(--duck-orange-dark)); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.profile-avatar-large { width: 72px; height: 72px; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.6rem; font-weight: 800; margin: -36px auto 10px; overflow: hidden; border: 3px solid white; box-shadow: 0 4px 16px rgba(255,140,50,.3); }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: .95rem; font-weight: 800; margin-bottom: 2px; padding: 0 16px; }
.profile-bio-mini { font-size: .75rem; color: var(--text-light); padding: 0 16px; margin-bottom: 10px; line-height: 1.4; }
.profile-stats { display: flex; justify-content: space-around; margin: 10px 0; padding: 12px 8px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.stat-item   { text-align: center; }
.stat-number { font-weight: 800; font-size: 1.05rem; color: var(--duck-orange); }
.stat-label  { font-size: .65rem; color: var(--text-light); font-weight: 600; }
.quick-links { margin: 8px 0 4px; padding: 0 4px; }
.quick-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-size: .8rem; font-weight: 600; color: var(--text-light); text-decoration: none; transition: all .2s; }
.quick-link:hover { background: #f1f5f9; color: var(--duck-orange); }
.quick-link-badge { margin-left: auto; padding: 2px 8px; border-radius: 30px; background: #f0fff4; color: var(--duck-green); font-size: .68rem; font-weight: 700; }

/* Filtres */
.filter-bar { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; align-items: center; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-sep { flex-shrink: 0; width: 1px; height: 22px; background: var(--border-light); margin: 0 4px; }
.cat-chip.active { background: var(--duck-green); box-shadow: 0 3px 8px rgba(44,196,131,.3); }

/* Carte publication */
.publish-card { padding: 18px; }

/* Post */
.post {
  animation: fadeUp .3s ease;
  border: 1px solid var(--border-light); border-radius: var(--r-lg);
  background: var(--white); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.post.post-sale { border-left: 3px solid rgba(44,196,131,.4); }

@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

.post-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.post-author { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; min-width: 0; }
.post-avatar { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1rem; flex-shrink: 0; overflow: hidden; }
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-name { font-weight: 800; font-size: .9rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-meta { font-size: .7rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.post-category { padding: 2px 8px; border-radius: 30px; font-weight: 700; font-size: .65rem; }
.post-menu-trigger { position: relative; font-size: 1.2rem; color: var(--text-light); cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: background .15s; }
.post-menu-trigger:hover { background: #f1f5f9; }
.post-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: white; box-shadow: var(--shadow-lg); border-radius: var(--r-md); border: 1px solid var(--border-light); z-index: 300; overflow: hidden; min-width: 175px; }
.post-dropdown button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; width: 100%; background: none; border: none; border-bottom: 1px solid #f8fafc; font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--text-main); cursor: pointer; text-align: left; transition: background .15s; }
.post-dropdown button:hover { background: #f8fafc; }
.post-dropdown button:last-child { border-bottom: none; }

.post-media { width: 100%; border-radius: var(--r-md); margin-top: 10px; display: block; object-fit: cover; cursor: pointer; max-height: 400px; }

/* Sale box */
.sale-box { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg,#f0fff4,#dcfce7); border-radius: var(--r-md); padding: 14px 16px; border: 1.5px solid rgba(44,196,131,.2); margin: 12px 0; flex-wrap: wrap; gap: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.post-price { font-size: 1.3rem; font-weight: 800; color: var(--duck-green); }

/* Bouton follow small */
.follow-btn-small { padding: 2px 10px; border-radius: 30px; border: 1.5px solid var(--duck-orange); background: none; color: var(--duck-orange); font-size: .68rem; font-weight: 800; cursor: pointer; font-family: inherit; transition: all .2s; }
.follow-btn-small.following { background: var(--duck-orange-light); border-color: transparent; color: var(--duck-orange-dark); }
.follow-btn-small:hover { background: var(--duck-orange); color: white; }

/* Interactions */
.interaction-bar { display: flex; align-items: center; border-top: 1px solid var(--border-light); padding-top: 10px; margin-top: 12px; gap: 4px; }
.int-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; padding: 7px 12px; border-radius: 30px; font-family: inherit; font-size: .78rem; font-weight: 700; color: var(--text-light); cursor: pointer; transition: all .2s; white-space: nowrap; min-width: 62px; justify-content: center; }
.int-btn:hover { background: #f1f5f9; color: var(--duck-orange); transform: scale(1.03); }
.int-btn.liked { color: var(--duck-red); background: #fff1f2; }
.int-btn.saved { color: var(--duck-yellow); }

/* Réactions */
.reaction-popup { display: none; position: absolute; bottom: calc(100% + 6px); left: 0; background: white; border-radius: 30px; box-shadow: var(--shadow-lg); padding: 6px 10px; border: 1px solid var(--border-light); z-index: 200; white-space: nowrap; }
.reaction-popup.open { display: flex; gap: 4px; animation: bounceIn .2s ease; }
@keyframes bounceIn { from { opacity:0; transform:scale(.7) translateY(6px); } to { opacity:1; transform:none; } }
.reaction-emoji { font-size: 1.4rem; cursor: pointer; padding: 2px; border-radius: 50%; transition: transform .15s; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; }
.reaction-emoji:hover { transform: scale(1.35); background: #f1f5f9; }

/* Commentaires */
.comment-section { margin-top: 12px; display: none; }
.comment-section.open { display: block; animation: fadeUp .2s; }
.comment-input-wrap { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.comment-avatar { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); display: flex; align-items: center; justify-content: center; color: white; font-size: .8rem; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-input { flex: 1; background: #f8fafc; border: 1.5px solid var(--border-light); border-radius: 20px; padding: 8px 14px; font-size: .82rem; font-family: inherit; resize: none; outline: none; transition: border-color .2s; }
.comment-input:focus { border-color: var(--duck-orange); background: white; }
.comment-send-btn { background: var(--duck-orange); color: white; border: none; border-radius: 20px; padding: 8px 16px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: .8rem; transition: all .2s; box-shadow: 0 3px 0 var(--duck-orange-dark); }
.comment-send-btn:hover { background: var(--duck-orange-dark); transform: translateY(1px); }
.comment-item { display: flex; gap: 8px; margin-bottom: 10px; animation: fadeUp .2s; }
.comment-bubble { background: #f8fafc; border-radius: 14px; padding: 9px 13px; border: 1px solid var(--border-light); flex: 1; min-width: 0; }
.comment-name { font-weight: 700; font-size: .78rem; margin-bottom: 2px; }
.comment-text { font-size: .82rem; line-height: 1.5; }
.comment-meta { font-size: .65rem; color: var(--text-light); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.comment-action { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: .65rem; font-family: inherit; transition: color .2s; }
.comment-action:hover { color: var(--duck-orange); }
.comment-reply { margin-left: 40px; }

/* Swap block (feed mobile) */
.sw-block { background:#fff; border-radius:18px; border:1px solid rgba(0,0,0,.06); box-shadow:0 2px 14px rgba(0,0,0,.07); overflow:hidden; margin-bottom:16px; width:100%; display:none; }
.sw-block-header { display:flex; align-items:center; justify-content:space-between; padding:11px 16px 10px; border-bottom:1px solid #f4f4f5; }
.sw-block-title { display:flex; align-items:center; gap:8px; font-size:.83rem; font-weight:800; color:var(--text-main); }
.sw-block-icon { width:26px; height:26px; border-radius:8px; background:linear-gradient(135deg,#ffb067,var(--duck-orange)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:.7rem; }
.sw-block-link { font-size:.74rem; font-weight:700; color:var(--duck-orange); text-decoration:none; }
.sw-thumbs { display:flex; gap:8px; padding:10px 12px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.sw-thumbs::-webkit-scrollbar { display:none; }
.sw-thumb { flex-shrink:0; width:100px; aspect-ratio:9/16; border-radius:12px; overflow:hidden; position:relative; background:#111; cursor:pointer; scroll-snap-align:start; transition:transform .18s,box-shadow .18s; border:2.5px solid transparent; }
.sw-thumb:hover { transform:scale(1.04); box-shadow:0 6px 18px rgba(255,140,50,.4); border-color:var(--duck-orange); }
.sw-thumb video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.sw-thumb-grad  { position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.8) 0%,transparent 55%); }
.sw-thumb-info  { position:absolute; bottom:0; left:0; right:0; padding:6px 7px; }
.sw-thumb-name  { font-size:.6rem; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-shadow:0 1px 4px rgba(0,0,0,.9); margin-bottom:2px; }
.sw-thumb-stats { display:flex; align-items:center; gap:3px; font-size:.58rem; font-weight:700; color:rgba(255,255,255,.85); }
.sw-thumb-play  { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:28px; height:28px; border-radius:50%; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; color:#fff; font-size:.65rem; }
.sw-thumb-badge { position:absolute; top:5px; left:5px; background:rgba(255,140,50,.9); color:#fff; font-size:.48rem; font-weight:900; padding:2px 6px; border-radius:99px; }
.sw-footer { display:flex; align-items:center; justify-content:center; gap:7px; padding:10px 16px; border-top:1px solid #f4f4f5; font-size:.75rem; font-weight:700; color:var(--duck-orange); text-decoration:none; transition:background .15s; }
.sw-footer:hover { background:#fff9f5; }

/* Trending (right sidebar) */
.trending-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid #f1f5f9; cursor: pointer; border-radius: 8px; transition: background .15s; }
.trending-item:hover { background: #f8fafc; }
.trending-num   { font-size: .68rem; font-weight: 800; color: #cbd5e1; width: 16px; }
.trending-tag   { font-size: .8rem; font-weight: 700; color: var(--duck-blue); }
.trending-count { font-size: .62rem; color: var(--text-light); }

/* Add post menu (bottom sheet) */
#add-post-menu { position:fixed; inset:0; z-index:8000; display:none; align-items:flex-end; }
#add-post-menu.open { display:flex; }
#add-post-menu-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(3px); }
#add-post-menu-sheet { position:relative; z-index:1; width:100%; background:#fff; border-radius:24px 24px 0 0; padding:12px 20px 40px; box-shadow:0 -8px 40px rgba(0,0,0,.15); }
.apm-handle { width:44px; height:5px; border-radius:99px; background:#e4e4e7; margin:0 auto 16px; }
.apm-title   { font-weight:800; font-size:1rem; color:var(--text-main); margin-bottom:16px; text-align:center; }
.apm-options { display:flex; flex-direction:column; gap:10px; }
.apm-option  { display:flex; align-items:center; gap:14px; padding:14px 16px; border-radius:16px; background:#f8f8f8; border:none; cursor:pointer; font-family:inherit; transition:background .15s; }
.apm-option:hover { background:var(--duck-orange-light); }
.apm-option-icon  { width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0; }
.apm-option-title { font-weight:700; font-size:.9rem; color:var(--text-main); }
.apm-option-sub   { font-size:.74rem; color:var(--text-light); margin-top:1px; }


/* ════════════════════════════════════════════════════════════════════
   12. MESSAGERIE
════════════════════════════════════════════════════════════════════ */

.messenger-container {
  display: grid; grid-template-columns: 340px 1fr; gap: 20px;
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  height: calc(100vh - 165px); min-height: 500px;
}

.chat-list { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border-light); }
.chat-list-header { padding: 18px 20px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.chat-list-header h2 { font-size: 1.05rem; font-weight: 800; color: var(--duck-orange); }
.new-conv-btn { background: var(--duck-orange-light); border: none; border-radius: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--duck-orange); font-size: .9rem; transition: all .2s; }
.new-conv-btn:hover { background: var(--duck-orange); color: #fff; }
.chat-search { padding: 12px 15px; border-bottom: 1px solid var(--border-light); }
.chat-search input { width: 100%; padding: 9px 15px; border: 1.5px solid var(--border-light); border-radius: 30px; outline: none; font-size: .85rem; transition: all .2s; background: #fafbfc; font-family: inherit; }
.chat-search input:focus { border-color: var(--duck-orange); background: #fff; box-shadow: 0 0 0 4px rgba(255,140,50,.1); }
.chat-items { flex: 1; overflow-y: auto; padding: 8px; }
.chat-item { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: var(--r-md); cursor: pointer; transition: all .2s; margin-bottom: 4px; position: relative; border: 1px solid transparent; }
.chat-item:hover { background: #f8fafc; border-color: var(--border-light); }
.chat-item.active { background: var(--duck-orange-light); border-left: 3px solid var(--duck-orange); border-radius: var(--r-md) 8px 8px var(--r-md); }
.chat-avatar { width: 52px; height: 52px; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; overflow: hidden; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-info { flex: 1; min-width: 0; }
.chat-name { font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-preview { font-size: .78rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-time { font-size: .68rem; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }
.chat-unread { position: absolute; top: 14px; right: 12px; background: var(--duck-orange); color: white; font-size: .65rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.chat-window { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; border: 1px solid var(--border-light); height: 100%; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.chat-contact-info { display: flex; align-items: center; gap: 14px; }
.chat-contact-info h3 { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.chat-contact-status { font-size: .75rem; color: var(--duck-green); font-weight: 600; }
.chat-header-actions { display: flex; gap: 8px; }
.chat-action-btn { background: #f1f5f9; border: none; border-radius: 10px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-light); transition: all .2s; }
.chat-action-btn:hover { background: var(--duck-orange-light); color: var(--duck-orange); }

.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.message-wrapper { display: flex; gap: 10px; max-width: 70%; }
.message-wrapper.sent { flex-direction: row-reverse; align-self: flex-end; }
.message-content { padding: 12px 16px; border-radius: 18px; font-size: .88rem; line-height: 1.5; max-width: 100%; word-break: break-word; }
.message-wrapper.received .message-content { background: #f1f5f9; border-radius: 4px 18px 18px 18px; }
.message-wrapper.sent .message-content { background: var(--duck-orange); color: white; border-radius: 18px 4px 18px 18px; }
.message-time { font-size: .65rem; color: var(--text-light); margin-top: 4px; text-align: right; }

.chat-input-area { padding: 16px 20px; border-top: 1px solid var(--border-light); flex-shrink: 0; }
.chat-input-row { display: flex; align-items: center; gap: 10px; }
.chat-input { flex: 1; border: 1.5px solid var(--border-light); border-radius: 25px; padding: 12px 20px; font-size: .88rem; font-family: inherit; outline: none; transition: all .2s; background: #fafbfc; resize: none; max-height: 120px; overflow-y: auto; }
.chat-input:focus { border-color: var(--duck-orange); background: #fff; box-shadow: 0 0 0 4px rgba(255,140,50,.1); }
.chat-send-btn { width: 46px; height: 46px; background: var(--duck-orange); color: white; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all .2s; }
.chat-send-btn:hover { background: var(--duck-orange-dark); transform: scale(1.05); }

.chat-back-btn { display: none; background: #f1f5f9; border: none; border-radius: 10px; width: 36px; height: 36px; align-items: center; justify-content: center; cursor: pointer; color: var(--text-light); font-size: 1rem; transition: all .2s; }
.chat-back-btn:hover { background: var(--duck-orange-light); color: var(--duck-orange); }

.online-indicator { width: 10px; height: 10px; background: var(--duck-green); border-radius: 50%; border: 2px solid white; flex-shrink: 0; }

/* Incoming call popup */
.incoming-call-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9000; align-items: center; justify-content: center; }
.incoming-call-overlay.show { display: flex; }
.incoming-call-box { background: white; border-radius: 24px; padding: 32px; text-align: center; max-width: 340px; width: 90%; box-shadow: 0 32px 80px rgba(0,0,0,.4); animation: slideUp .3s ease; }
.call-avatar { width: 90px; height: 90px; border-radius: 24px; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); display: flex; align-items: center; justify-content: center; color: white; font-size: 2.2rem; font-weight: 800; margin: 0 auto 16px; overflow: hidden; animation: callPulse 1.5s ease-in-out infinite; }
.call-avatar img { width: 100%; height: 100%; object-fit: cover; }
@keyframes callPulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,140,50,.4)} 50%{box-shadow:0 0 0 16px rgba(255,140,50,0)} }
.call-name    { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.call-label   { font-size: .82rem; color: var(--text-light); margin-bottom: 28px; }
.call-actions { display: flex; justify-content: center; gap: 24px; }
.btn-answer { background: var(--duck-green); color: white; width: 62px; height: 62px; border-radius: 50%; border: none; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; box-shadow: 0 4px 14px rgba(44,196,131,.4); }
.btn-answer:hover { background: var(--duck-green-dark); transform: scale(1.1); }
.btn-reject { background: var(--duck-red); color: white; width: 62px; height: 62px; border-radius: 50%; border: none; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; box-shadow: 0 4px 14px rgba(239,68,68,.4); }
.btn-reject:hover { background: #dc2626; transform: scale(1.1); }


/* ════════════════════════════════════════════════════════════════════
   13. PROFIL
════════════════════════════════════════════════════════════════════ */

.profile-layout { max-width: 1280px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: flex-start; }
.profile-left-col { position: sticky; top: calc(var(--navbar-h) + 16px); max-height: calc(100vh - var(--navbar-h) - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-light) transparent; }
.profile-left-col::-webkit-scrollbar { width: 4px; }
.profile-left-col::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
.profile-right-col { min-width: 0; }

/* Carte identité */
.profile-identity-card { padding: 0; }
.identity-cover { height: 110px; background: linear-gradient(135deg, var(--duck-orange) 0%, #ffab5e 50%, var(--duck-orange-dark) 100%); background-size: cover; background-position: center; position: relative; border-radius: var(--r-lg) var(--r-lg) 0 0; cursor: pointer; overflow: hidden; }
.identity-cover::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .25s; border-radius: inherit; }
.identity-cover:hover::after { background: rgba(0,0,0,.28); }
.cover-edit-btn { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 30px; padding: 6px 12px; font-size: .75rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: inherit; transition: background .2s; backdrop-filter: blur(4px); z-index: 2; }
.identity-avatar-wrap { position: relative; display: inline-block; margin: -44px 0 0 16px; z-index: 2; }
.profile-avatar-xl { width: 88px; height: 88px; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); border-radius: 22px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.1rem; font-weight: 800; border: 4px solid #fff; overflow: hidden; box-shadow: var(--shadow-md); }
.profile-avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-btn { position: absolute; bottom: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--duck-orange); color: #fff; border: 2.5px solid #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .72rem; transition: transform .2s; z-index: 3; }
.avatar-edit-btn:hover { transform: scale(1.15); background: var(--duck-orange-dark); }
.identity-info { padding: 12px 16px 8px; }
.identity-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.identity-name-row h1 { font-size: 1.1rem; font-weight: 800; }
.identity-username { color: var(--text-light); font-size: .8rem; margin-bottom: 6px; }
.identity-bio { font-size: .8rem; color: var(--text-light); line-height: 1.5; }
.identity-stats { display: flex; justify-content: space-around; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 12px 8px; margin: 10px 0 0; }
.identity-stat .stat-number { font-size: 1rem; font-weight: 800; color: var(--duck-orange); display: block; }
.identity-actions { padding: 12px 16px 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.btn-follow       { background: var(--duck-orange); color: #fff; border: none; border-radius: 30px; padding: 8px 18px; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: inherit; transition: all .2s; display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-orange); }
.btn-follow:hover { background: var(--duck-orange-dark); transform: translateY(-1px); }
.btn-follow.following { background: #f1f5f9; color: var(--text-main); box-shadow: none; border: 1.5px solid var(--border-light); }
.btn-message      { background: #f1f5f9; color: var(--text-main); border: 1.5px solid var(--border-light); border-radius: 30px; padding: 8px 18px; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: inherit; transition: all .2s; display: flex; align-items: center; gap: 6px; }
.btn-message:hover { background: #e2e8f0; }
.btn-edit-profile { background: var(--duck-orange-light); color: var(--duck-orange); border: 1.5px solid rgba(255,140,50,.3); border-radius: 30px; padding: 8px 18px; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: inherit; transition: all .2s; display: flex; align-items: center; gap: 6px; }
.btn-edit-profile:hover { background: var(--duck-orange); color: #fff; }
.btn-edit-small { background: var(--duck-orange-light); color: var(--duck-orange); border: none; border-radius: 20px; padding: 4px 12px; font-size: .72rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .2s; }
.btn-edit-small:hover { background: var(--duck-orange); color: #fff; }

/* About card */
.about-card { padding: 16px; }
.about-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.about-title { font-size: .88rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.about-rows { display: flex; flex-direction: column; gap: 10px; }
.about-row   { display: flex; align-items: flex-start; gap: 10px; }
.about-icon  { width: 20px; color: var(--duck-orange); font-size: .85rem; margin-top: 2px; flex-shrink: 0; }
.about-label { font-size: .68rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.about-value { font-size: .82rem; font-weight: 600; color: var(--text-main); margin-top: 1px; word-break: break-word; }

/* Tabs profil */
.profile-tabs { padding: 6px 14px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.tab-btn { padding: 9px 16px; border-radius: 30px; border: none; background: none; font-weight: 700; font-size: .82rem; cursor: pointer; color: var(--text-light); font-family: inherit; display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: all .2s; }
.tab-btn:hover  { background: #f1f5f9; color: var(--text-main); }
.tab-btn.active { background: var(--duck-orange-light); color: var(--duck-orange); }

/* Portfolio / reels */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.portfolio-item { aspect-ratio: 1; overflow: hidden; cursor: pointer; position: relative; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.portfolio-item:hover img { transform: scale(1.06); }
.reels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.reel-item  { aspect-ratio: 9/16; position: relative; overflow: hidden; background: #1a2535; cursor: pointer; }
.reel-item video { width: 100%; height: 100%; object-fit: cover; }
.reel-item-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,.7)); display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; }
.reel-item-views { color: rgba(255,255,255,.85); font-size: .7rem; font-weight: 700; }

/* Formulaire publication profil */
.publish-card { padding: 20px; }
.pub-type-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: #f8fafc; border-radius: 14px; padding: 5px; }
.pub-type-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 8px; border-radius: 10px; border: none; background: none; font-family: inherit; font-weight: 700; font-size: .78rem; color: var(--text-light); cursor: pointer; transition: all .2s; white-space: nowrap; }
.pub-type-btn:hover { background: rgba(255,140,50,.06); color: var(--duck-orange); }
.pub-type-btn.active { background: #fff; color: var(--duck-orange); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.post-sale-info { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; background: var(--duck-green-light); border-top: 1px solid rgba(44,196,131,.15); border-bottom: 1px solid rgba(44,196,131,.15); }
.post-sale-price { font-size: 1.3rem; font-weight: 800; color: var(--duck-green-dark); }


/* ════════════════════════════════════════════════════════════════════
   14. AMIS (friends)
════════════════════════════════════════════════════════════════════ */

.users-grid { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 11px 10px; background: white; border-radius: 12px; border: 1px solid var(--border-light); transition: all .2s; width: 100%; min-width: 0; flex-wrap: nowrap; }
.user-row:hover { border-color: rgba(255,140,50,.3); box-shadow: var(--shadow-md); }
.user-avatar { width: 44px; height: 44px; flex-shrink: 0; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1rem; overflow: hidden; cursor: pointer; transition: transform .2s; }
.user-avatar:hover { transform: scale(1.05); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-details { flex: 1; min-width: 0; cursor: pointer; overflow: hidden; }
.user-row-name { font-weight: 800; font-size: .85rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row-meta { font-size: .7rem; color: var(--text-light); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row-actions { display: flex; flex-direction: row; gap: 6px; flex-shrink: 0; align-items: center; }

/* Boutons amis */
.btn-add-friend, .btn-msg, .btn-accept-friend, .btn-reject-friend {
  border-radius: 20px; font-size: .7rem; font-weight: 700;
  cursor: pointer; font-family: inherit; display: inline-flex; align-items: center;
  gap: 3px; white-space: nowrap; transition: all .2s; border: none; padding: 5px 10px;
}
.btn-msg { background: #f1f5f9; color: var(--text-light); }
.btn-msg:hover { background: var(--duck-orange-light); color: var(--duck-orange); }
.btn-add-friend { border: 1.5px solid var(--duck-blue); color: var(--duck-blue); background: none; }
.btn-add-friend:hover { background: var(--duck-blue); color: white; }
.btn-add-friend.pending { background: #f1f5f9; border-color: var(--text-light); color: var(--text-light); }
.btn-add-friend.friends { background: var(--duck-green-light); border-color: var(--duck-green); color: var(--duck-green-dark); }
.btn-accept-friend { background: var(--duck-green); color: white; }
.btn-accept-friend:hover { background: var(--duck-green-dark); }
.btn-reject-friend { background: #fee2e2; color: var(--duck-red); }
.btn-reject-friend:hover { background: var(--duck-red); color: white; }

/* Tabs amis */
.tabs-bar { display: flex; gap: 4px; border-bottom: 2px solid var(--border-light); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; background: var(--duck-orange); color: white; font-size: .58rem; font-weight: 800; border-radius: 50%; padding: 0 3px; margin-left: 3px; }

/* Layout amis */
.search-box { background: #fafbfc; border-radius: 30px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border-light); transition: all .2s; margin-bottom: 12px; width: 100%; min-width: 0; }
.search-box:focus-within { border-color: var(--duck-orange); background: white; box-shadow: 0 0 0 3px rgba(255,140,50,.1); }
.search-box input { border: none; background: none; outline: none; width: 100%; min-width: 0; font-size: .88rem; font-family: inherit; }


/* ════════════════════════════════════════════════════════════════════
   15. DASHBOARD
════════════════════════════════════════════════════════════════════ */

.dashboard-layout { max-width: 1400px; margin: 0 auto; padding: 20px 30px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.dashboard-header h1 { font-size: 1.8rem; font-weight: 800; }
.dashboard-header h1 span { color: var(--duck-orange); background: var(--duck-orange-light); padding: 4px 12px; border-radius: 30px; font-size: 1rem; margin-left: 10px; }

.date-range { display: flex; gap: 8px; background: white; padding: 4px; border-radius: 40px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); flex-wrap: wrap; }
.date-btn { padding: 8px 18px; border: none; background: transparent; border-radius: 30px; font-size: .85rem; font-weight: 600; color: var(--text-light); cursor: pointer; transition: all .2s; font-family: inherit; }
.date-btn.active { background: var(--duck-orange); color: white; box-shadow: var(--shadow-orange); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 15px; transition: transform .2s, box-shadow .2s; border: 1px solid var(--border-light); cursor: pointer; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon { width: 55px; height: 55px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.stat-icon.orange { background: var(--duck-orange-light); color: var(--duck-orange); }
.stat-icon.green  { background: var(--duck-green-light);  color: var(--duck-green);  }
.stat-icon.blue   { background: var(--duck-blue-light);   color: var(--duck-blue);   }
.stat-icon.purple { background: var(--duck-purple-light); color: var(--duck-purple); }
.stat-content h3 { font-size: .85rem; color: var(--text-light); font-weight: 600; margin-bottom: 4px; }
.stat-number.big { font-size: 1.8rem; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.stat-trend { font-size: .75rem; font-weight: 600; display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.stat-trend.up   { color: var(--duck-green); }
.stat-trend.down { color: var(--duck-red); }

.orders-table-container { background: var(--white); border-radius: var(--r-lg); padding: 0; box-shadow: var(--shadow-sm); overflow-x: auto; margin-bottom: 30px; border: 1px solid var(--border-light); }
.orders-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 900px; }
.orders-table th { text-align: left; padding: 16px 12px; color: var(--text-light); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; background: #f8fafc; border-bottom: 1px solid var(--border-light); }
.orders-table td { padding: 14px 12px; border-bottom: 1px solid #f1f5f9; color: var(--text-main); }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: #f8fafc; }
.order-number-link { color: var(--duck-orange); font-weight: 700; cursor: pointer; border-bottom: 1px dashed var(--duck-orange); }
.action-btn { background: none; border: none; font-size: 1rem; cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: background .2s; color: var(--text-light); }
.action-btn:hover { background: #f1f5f9; color: var(--duck-orange); }
.action-btn.delete:hover { color: var(--duck-red); background: #fee2e2; }
.btn-export { background: var(--white); border: 1px solid var(--border-light); border-radius: 30px; padding: 8px 20px; font-size: .85rem; font-weight: 600; color: var(--text-light); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all .2s; font-family: inherit; }
.btn-export:hover { border-color: var(--duck-orange); color: var(--duck-orange); background: var(--duck-orange-light); }

.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.chart-card  { background: var(--white); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.chart-header h3 { font-size: .95rem; font-weight: 800; }
.chart-placeholder { height: 200px; background: #f8fafc; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: .85rem; border: 1px dashed var(--border-light); flex-direction: column; gap: 8px; }

.tracking-item { display: flex; align-items: center; gap: 15px; padding: 14px; border-radius: 12px; border: 1px solid var(--border-light); margin-bottom: 10px; transition: all .2s; cursor: pointer; }
.tracking-item:hover { border-color: var(--duck-orange); box-shadow: var(--shadow-sm); }
.tracking-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.tracking-icon.transit { background: var(--duck-orange-light); color: var(--duck-orange); }
.tracking-order  { font-weight: 800; font-size: .85rem; }
.tracking-detail { font-size: .75rem; color: var(--text-light); margin-top: 2px; }
.realtime-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: .72rem; font-weight: 700; background: var(--duck-green-light); color: var(--duck-green); border: 1px solid #bbf7d0; }
.realtime-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--duck-green); animation: rtPulse 2s infinite; }
@keyframes rtPulse { 0%,100%{opacity:1} 50%{opacity:.3} }


/* ════════════════════════════════════════════════════════════════════
   16. ALERTES (notifications)
════════════════════════════════════════════════════════════════════ */

.notifications-container { max-width: 800px; margin: 0 auto; padding: 20px 24px; }
.notifications-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.notifications-header h1 { font-size: 1.5rem; font-weight: 800; }
.notifications-header h1 span { color: var(--duck-orange); }
.header-actions { display: flex; gap: 10px; }
.mark-read-btn { background: var(--white); border: 1px solid var(--border-light); border-radius: 30px; padding: 8px 16px; font-size: .8rem; font-weight: 600; color: var(--text-light); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all .2s; font-family: inherit; }
.mark-read-btn:hover { border-color: var(--duck-orange); color: var(--duck-orange); background: var(--duck-orange-light); }

.notif-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.notif-tab { padding: 7px 16px; border-radius: 30px; border: 1.5px solid var(--border-light); background: #fff; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--text-light); transition: all .2s; font-family: inherit; }
.notif-tab:hover { border-color: var(--duck-orange); color: var(--duck-orange); }
.notif-tab.active { background: var(--duck-orange); color: #fff; border-color: var(--duck-orange); box-shadow: var(--shadow-orange); }

.notifications-list { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--border-light); }
.notification-item { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid #f1f5f9; transition: background .2s; cursor: pointer; }
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: #f8fafc; }
.notification-item.unread { background: var(--duck-orange-light); border-left: 3px solid var(--duck-orange); }
.notification-icon { width: 46px; height: 46px; border-radius: 14px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.notification-icon.like    { background: #fee2e2; }
.notification-icon.comment { background: var(--duck-blue-light); }
.notification-icon.follow  { background: var(--duck-green-light); }
.notification-icon.order   { background: var(--duck-orange-light); }
.notification-icon.message { background: var(--duck-purple-light); }
.notification-content { flex: 1; min-width: 0; }
.notification-title { font-weight: 700; font-size: .9rem; color: var(--text-main); margin-bottom: 2px; }
.notification-text  { font-size: .79rem; color: var(--text-light); line-height: 1.4; word-wrap: break-word; }
.notification-time  { font-size: .65rem; color: #94a3b8; margin-top: 4px; font-weight: 600; }
.notification-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.del-notif-btn { background: none; border: none; font-size: .85rem; cursor: pointer; color: var(--text-light); padding: 5px; border-radius: 6px; transition: all .2s; opacity: 0; }
.notification-item:hover .del-notif-btn { opacity: 1; }
.del-notif-btn:hover { background: #fee2e2; color: var(--duck-red); }
.mark-one-btn { background: none; border: none; font-size: .95rem; cursor: pointer; color: var(--text-light); padding: 5px; border-radius: 6px; transition: all .2s; }
.mark-one-btn:hover { background: #f1f5f9; color: var(--duck-orange); }


/* ════════════════════════════════════════════════════════════════════
   17. PAGES AUTH (login, signup, livraison)
════════════════════════════════════════════════════════════════════ */

/* Body auth (centré, pas de navbar) */
body.auth-page {
  padding-top: 0; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}

.bg-deco {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,140,50,.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(44,196,131,.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 15%, rgba(0,168,232,.06) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23ff8c32' opacity='.06'/%3E%3C/svg%3E") repeat;
  background-size: auto, auto, auto, 60px 60px;
}

/* Layout page login */
.wrap { display: flex; width: 100%; max-width: 1100px; align-items: center; justify-content: space-between; gap: 50px; position: relative; z-index: 1; margin: 0 auto; padding: 20px 0; }
.promo { flex: 1; max-width: 500px; animation: fadeL .7s ease; }
@keyframes fadeL { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:none; } }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.brand-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 8px 22px rgba(255,140,50,.28); flex-shrink: 0; }
.brand-name { font-size: 1.9rem; font-weight: 800; color: var(--duck-orange); letter-spacing: -.5px; }
.promo h1 { font-size: 2.3rem; line-height: 1.22; font-weight: 800; letter-spacing: -.5px; color: var(--text-main); margin-bottom: 16px; }
.promo h1 em { font-style: normal; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.promo > p { font-size: .98rem; line-height: 1.7; color: var(--text-light); margin-bottom: 32px; }
.feats { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feats li { display: flex; align-items: center; gap: 14px; background: var(--white); padding: 15px 18px; border-radius: var(--r-md); border: 1px solid rgba(255,140,50,.08); box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .2s, border-color .2s; cursor: default; }
.feats li:hover { transform: translateX(6px); border-color: rgba(255,140,50,.22); }
.feat-icon { width: 42px; height: 42px; flex-shrink: 0; background: rgba(255,140,50,.1); border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.card-wrap { flex: 0 0 420px; animation: fadeR .7s ease .12s both; }
@keyframes fadeR { from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:none; } }

/* Card auth */
.card.auth-card {
  background: var(--white); padding: 38px 36px 32px;
  border-radius: var(--r-xl); box-shadow: 0 20px 60px rgba(0,0,0,.10);
  border: 1px solid rgba(255,140,50,.07); position: relative; overflow: hidden;
}
.card.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--duck-orange), var(--duck-orange-dark), var(--duck-green)); }

.card-logo { width: 88px; height: 88px; border-radius: 22px; overflow: hidden; background: rgba(255,140,50,.08); box-shadow: 0 8px 24px rgba(255,140,50,.2); display: flex; align-items: center; justify-content: center; font-size: 3rem; margin: 0 auto 22px; }
.card-logo img { width: 100%; height: 100%; object-fit: contain; }
.card-title { text-align: center; margin-bottom: 26px; }
.card-title h3 { font-size: 1.4rem; font-weight: 800; color: var(--text-main); }
.card-title p  { font-size: .82rem; color: var(--text-light); margin-top: 4px; }

.social-row { display: flex; gap: 10px; margin-bottom: 18px; }
.s-btn { flex: 1; padding: 12px 10px; border-radius: var(--r-md); font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--white); transition: all .2s; border: 2px solid; }
.s-btn:hover:not(:disabled) { transform: translateY(-2px); }
.s-btn:disabled { opacity: .5; cursor: not-allowed; }
.s-google { border-color: #ea4335; color: #ea4335; }
.s-google:hover:not(:disabled) { background: #ea4335; color: #fff; }
.s-fb { border-color: #1877f2; color: #1877f2; }
.s-fb:hover:not(:disabled) { background: #1877f2; color: #fff; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-light); font-size: .78rem; font-weight: 600; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; color: var(--text-light); margin-bottom: 7px; letter-spacing: .3px; }
.input-wrap { position: relative; }
.ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: .85rem; pointer-events: none; }
.input-wrap input { width: 100%; padding: 13px 14px 13px 40px; border: 2px solid var(--border-light); border-radius: var(--r-md); font-size: .92rem; outline: none; font-family: inherit; color: var(--text-main); background: #fafbfc; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap input:focus { border-color: var(--duck-orange); background: var(--white); box-shadow: 0 0 0 4px rgba(255,140,50,.1); }
.input-wrap input::placeholder { color: #c4cdd6; }
.eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: .9rem; padding: 4px; transition: opacity .2s; }
.eye-btn:hover { opacity: .7; }
.forgot-row { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.forgot { color: var(--duck-orange); text-decoration: none; font-size: .8rem; font-weight: 600; transition: opacity .2s; }
.forgot:hover { opacity: .75; text-decoration: underline; }
.footer-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light); font-size: .72rem; color: var(--text-light); text-align: center; line-height: 1.6; }
.footer-note a { color: var(--duck-orange); text-decoration: none; }
.footer-note a:hover { text-decoration: underline; }

/* Signup multi-steps */
.ctn { width: 100%; max-width: 680px; position: relative; z-index: 1; animation: fu .55s ease; }
@keyframes fu { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }
.progress { display: flex; justify-content: space-between; margin-bottom: 28px; position: relative; }
.progress::before { content: ''; position: absolute; top: 16px; left: 0; right: 0; height: 3px; background: #e2e8f0; z-index: 1; }
.step { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; color: var(--text-light); border: 3px solid #e2e8f0; background: var(--white); position: relative; z-index: 2; transition: all .3s; }
.step.active { border-color: var(--duck-orange); color: var(--duck-orange); }
.step.done   { background: var(--duck-orange); border-color: var(--duck-orange); color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg    { margin-bottom: 16px; }
.fg label { display: block; font-size: .8rem; font-weight: 700; color: var(--text-light); margin-bottom: 6px; }
.req { color: var(--duck-red); margin-left: 2px; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 11px 14px; border: 2px solid var(--border-light); border-radius: var(--r-md); font-family: inherit; font-size: .92rem; outline: none; background: #fafafa; color: var(--text-main); transition: border-color .2s, box-shadow .2s; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--duck-orange); background: var(--white); box-shadow: 0 0 0 4px rgba(255,140,50,.1); }
.sec { display: block; }
.sec.hidden { display: none; }
.sec-ttl { font-size: .95rem; font-weight: 800; color: var(--duck-orange); margin: 0 0 18px; padding-bottom: 6px; border-bottom: 2px solid var(--border-light); }
.btn-or, .btn-sec { padding: 14px; border: none; border-radius: var(--r-md); font-weight: 800; font-size: .97rem; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .3s; }
.btn-or { width: 100%; background: linear-gradient(135deg, var(--duck-orange), var(--duck-orange-dark)); color: #fff; box-shadow: 0 4px 14px rgba(255,140,50,.3); }
.btn-or:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,140,50,.4); }
.btn-or:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sec { background: var(--border-light); color: var(--text-light); }
.btn-sec:hover { background: #e2e8f0; transform: translateY(-1px); }
.btn-row { display: flex; gap: 10px; margin-top: 4px; }
.btn-row .btn-sec { flex: 0 0 120px; }
.btn-row .btn-or  { flex: 1; }
.link-row { text-align: center; margin-top: 18px; font-size: .88rem; }
.link-row a { color: var(--duck-orange); text-decoration: none; font-weight: 600; }
.link-row a:hover { text-decoration: underline; }
.hdr { text-align: center; margin-bottom: 28px; }
.logo-box { width: 90px; height: 90px; border-radius: 22px; overflow: hidden; background: rgba(255,140,50,.08); box-shadow: 0 8px 22px rgba(255,140,50,.25); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.hdr h2 { font-size: 1.7rem; font-weight: 800; color: var(--text-main); margin-bottom: 6px; }
.hdr p  { font-size: .9rem; color: var(--text-light); }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); align-items: center; justify-content: center; z-index: 5000; padding: 20px; }
.modal.open { display: flex; }
.mbox { background: var(--white); border-radius: var(--r-xl); padding: 28px; max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.12); animation: fu .3s ease; }
.mbox h3 { color: var(--duck-orange); font-size: 1.1rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border-light); }
.irow { padding: 8px 10px; background: #f8fafc; border-radius: 8px; font-size: .88rem; margin-bottom: 6px; }
.irow strong { color: #334155; display: inline-block; min-width: 120px; }
.mact { display: flex; gap: 12px; margin-top: 22px; }
.mbtn { flex: 1; padding: 12px; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: .9rem; transition: .2s; display: flex; align-items: center; justify-content: center; gap: 7px; }
.mbtn-or  { background: var(--duck-orange); color: #fff; }
.mbtn-or:hover { background: var(--duck-orange-dark); }
.mbtn-sec { background: var(--border-light); color: #334155; }
.mbtn-sec:hover { background: #e2e8f0; }


/* ════════════════════════════════════════════════════════════════════
   18. RESPONSIVE GLOBAL
════════════════════════════════════════════════════════════════════ */

/* ── ≤ 1280px ── */
@media (max-width: 1280px) {
  .app-container { grid-template-columns: 250px 1fr 260px; gap: 16px; padding: 16px; }
  .dashboard-layout { padding: 15px 20px; }
}

/* ── ≤ 1100px ── */
@media (max-width: 1100px) {
  .app-container { grid-template-columns: 230px 1fr; gap: 14px; padding: 12px 14px; }
  .right-sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 260px 1fr; gap: 14px; padding: 14px; }
}

/* ── ≤ 1024px (tablette) ── */
@media (max-width: 1024px) {
  :root { --navbar-h: 68px; }
  .navbar { padding: 0 14px; }
  .nav-center, .nav-search-wrap { display: none; }
  .mobile-search-btn, .burger-btn { display: flex !important; }
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: var(--bottombar-h); }
  .messenger-container { grid-template-columns: 300px 1fr; }
}

/* ── ≤ 900px ── */
@media (max-width: 900px) {
  .app-container { grid-template-columns: 1fr; }
  .left-sidebar { display: none; }
  .sw-block { display: block; }
  .messenger-container { grid-template-columns: 1fr; height: auto; }
  .chat-list { height: 50vh; min-height: 350px; }
  .chat-window { height: calc(100vh - 200px); }
  .chat-list.mobile-hidden { display: none; }
  .chat-window.mobile-show { display: flex; }
  .chat-back-btn { display: flex; }
  .notifications-container { padding: 14px 12px; }
}

/* ── ≤ 768px (mobile) ── */
@media (max-width: 768px) {
  .nav-center, .nav-search-wrap { display: none; }
  .mobile-bottom-bar { display: flex; }
  .container > aside { display: none; }
  .profile-layout { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .profile-left-col { position: static; max-height: none; overflow-y: visible; order: 2; }
  .profile-right-col { order: 1; }
  .about-card, .portfolio-mini-grid, #reviews-mini-card { display: none; }
}

/* ── ≤ 680px ── */
@media (max-width: 680px) {
  .nav-search-wrap { display: none; }
  .app-container { padding: 8px 10px; }
  .card { padding: 14px; }
  .notification-item { padding: 12px 14px; gap: 10px; }
  .del-notif-btn { opacity: 1; }
  .messenger-container { padding: 0 8px; gap: 10px; }
  .message-wrapper { max-width: 85%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── ≤ 600px ── */
@media (max-width: 600px) {
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .card.auth-card { padding: 28px 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .social-row { flex-direction: column; gap: 10px; }
  .share-options { grid-template-columns: repeat(4, 1fr); }
}

/* ── ≤ 480px (petits mobiles) ── */
@media (max-width: 480px) {
  :root { --bottombar-h: 58px; }
  body { padding: 0; }
  body.auth-page { padding: 12px; }
  .mbb-item { font-size: .55rem; }
  .mbb-item i { font-size: 1.08rem; }
  .mbb-plus-circle { width: 40px; height: 40px; font-size: 1.1rem; }
  .story-ring { width: 56px; height: 56px; }
  .story-name { font-size: .6rem; max-width: 56px; }
  .stats-grid { grid-template-columns: 1fr; }
  .pub-type-btn { font-size: .72rem; padding: 8px 5px; }
  .card-wrap { max-width: 100%; }
  .promo { display: none; }
}

/* ── ≤ 360px ── */
@media (max-width: 360px) {
  .mbb-item { font-size: .48rem; padding: 6px 0 4px; }
  .mbb-item i { font-size: 1rem; }
  .mbb-plus-circle { width: 36px; height: 36px; font-size: .95rem; }
}

/* ── dark mode (badge vérifié seulement) ── */
@media (prefers-color-scheme: dark) {
  .vb-chip { background: rgba(29,158,117,.15); border-color: rgba(29,158,117,.4); color: #5DCAA5; }
}


/* ════════════════════════════════════════════════════════════════════
   19. CLASSES MANQUANTES — ajouts de synchronisation
════════════════════════════════════════════════════════════════════ */

/* ── btn-outline ── */
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r-md);
  border: 2px solid var(--duck-orange); color: var(--duck-orange);
  background: transparent; font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: background .18s, color .18s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--duck-orange-light); }

/* ── btn-signup ── */
.btn-signup {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--r-md);
  background: var(--duck-orange); color: #fff;
  font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: background .18s; text-decoration: none;
}
.btn-signup:hover { background: var(--duck-orange-dark); }

/* ── story-add ── */
.story-add {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; cursor: pointer;
}
.story-add .story-add-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--duck-orange-light);
  border: 2px dashed var(--duck-orange);
  display: flex; align-items: center; justify-content: center;
  color: var(--duck-orange); font-size: 1.4rem;
  transition: background .2s;
}
.story-add:hover .story-add-icon { background: var(--duck-orange); color: #fff; }

/* ── clk-cnt / like-count ── */
.clk-cnt, .like-count {
  font-size: .82rem; font-weight: 600; color: var(--text-light);
  transition: color .15s;
}
.liked .clk-cnt, .liked .like-count { color: var(--duck-red); }

/* ── comments-list ── */
.comments-list {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 0 4px;
}

/* ── media-thumb-type ── */
.media-thumb-type {
  position: absolute; bottom: 5px; right: 7px;
  background: rgba(0,0,0,.55); border-radius: 6px;
  padding: 2px 6px; color: #fff; font-size: .7rem;
  display: flex; align-items: center; gap: 3px;
}

/* ── photo-count ── */
.photo-count {
  font-size: .7rem; font-weight: 700; color: #fff;
  background: var(--duck-orange); border-radius: 10px;
  padding: 1px 7px; margin-left: 4px;
}

/* ── cat-chip ── */
.cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  background: var(--duck-orange-light); color: var(--duck-orange);
  font-size: .78rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
  white-space: nowrap;
}
.cat-chip.active, .cat-chip:hover {
  background: var(--duck-orange); color: #fff;
}

/* ── quick-link-badge-green ── */
.quick-link-badge-green {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--duck-green); color: #fff;
  font-size: .65rem; font-weight: 800; padding: 0 4px;
}

/* ── feed-card ── */
.feed-card {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  margin-bottom: 12px;
}

/* ── post-card ── */
.post-card {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 18px;
  margin-bottom: 12px;
}

/* ── comment-box ── */
.comment-box {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 16px; border-top: 1px solid var(--border-light);
  background: var(--bg);
}
.comment-box textarea {
  flex: 1; border: 1px solid var(--border-light);
  border-radius: var(--r-md); padding: 8px 12px;
  font-size: .88rem; resize: none; font-family: inherit;
  background: var(--white);
}

/* ── profile-header ── */
.profile-header {
  position: relative; background: var(--white);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}

/* ── bottom-bar ── */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottombar-h); background: var(--white);
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 1900;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

/* ── tag ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  background: var(--bg); color: var(--text-light);
  font-size: .75rem; font-weight: 600;
}

/* ── friends-grid ── */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; padding: 16px;
}

/* ── message-bubble ── */
.message-bubble {
  max-width: 70%; padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  background: var(--bg); color: var(--text-main);
  font-size: .9rem; line-height: 1.5; word-break: break-word;
}
.message-bubble.sent {
  background: var(--duck-orange); color: #fff;
  border-radius: 18px 18px 4px 18px;
  margin-left: auto;
}
