/* =============================================
   VENTOU — Web Public — Style Principal
   ============================================= */

/* ── Écran offline web ── */
.offline-screen-web {
  display: none;
  position: fixed; inset: 0; z-index: 99999;
  background: #08080f;
  align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 32px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
}
.offline-screen-web.visible { display: flex; }

/* SVG décor plein écran */
.offline-bg-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Contenu au-dessus du SVG */
.offline-content-web {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* Animations SVG */
@keyframes ofl-float1 { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-18px) scale(1.04)} }
@keyframes ofl-float2 { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(14px) scale(0.97)} }
@keyframes ofl-float3 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-10px) rotate(10deg)} }
@keyframes ofl-pulse  { 0%,100%{opacity:.15} 50%{opacity:.4} }
@keyframes ofl-spin   { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.ofl-c1 { transform-origin: 120px 150px; animation: ofl-float1 5s ease-in-out infinite; }
.ofl-c2 { transform-origin: 1320px 200px; animation: ofl-float2 6s ease-in-out infinite; }
.ofl-c3 { transform-origin: 200px 750px; animation: ofl-float1 7s ease-in-out infinite 1s; }
.ofl-r1 { animation: ofl-float3 4s ease-in-out infinite; }
.ofl-r2 { animation: ofl-float2 5.5s ease-in-out infinite 0.5s; }
.ofl-p1 { animation: ofl-pulse 3s ease-in-out infinite; }
.ofl-p2 { animation: ofl-pulse 4s ease-in-out infinite 1s; }
.offline-img-web {
  width: 420px; height: 420px; object-fit: contain; margin-bottom: 24px;
  filter: drop-shadow(0 8px 40px rgba(255,107,44,0.4));
  animation: offline-float-web 3s ease-in-out infinite;
}
@keyframes offline-float-web {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.offline-title-web {
  color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 10px;
}
.offline-sub-web {
  color: rgba(255,255,255,0.45); font-size: 0.92rem;
  line-height: 1.7; max-width: 320px; margin-bottom: 28px;
}
.offline-btn-web {
  padding: 13px 32px;
  background: linear-gradient(135deg, #FF6B2C, #e55a1f);
  color: #fff; border: none; border-radius: 12px;
  font-size: 0.95rem; font-weight: 700; font-family: inherit;
  cursor: pointer; box-shadow: 0 8px 24px rgba(255,107,44,0.35);
  display: flex; align-items: center; gap: 8px;
  transition: opacity 0.2s;
}
.offline-btn-web:hover { opacity: 0.88; }

/* ── Écran bannissement ── */
.screen-banned-wrap {
  display: none;
  position: fixed; inset: 0; z-index: 99999;
  background: #0a0608;
  align-items: center; justify-content: center;
  flex-direction: column; text-align: center; padding: 32px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
}
.screen-banned-wrap.visible { display: flex; }
.banned-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.banned-img {
  width: 200px; height: 200px; object-fit: contain; margin-bottom: 24px;
  filter: drop-shadow(0 12px 40px rgba(220,38,38,0.4));
  animation: banned-float 3s ease-in-out infinite;
}
@keyframes banned-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.banned-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 36px 40px;
  max-width: 420px;
  width: 100%;
  backdrop-filter: blur(12px);
}
.banned-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(220,38,38,0.15);
  border: 2px solid rgba(220,38,38,0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem; color: #ef4444;
}
.banned-title {
  font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 10px;
}
.banned-sub {
  font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 20px;
}
.banned-divider {
  height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 20px;
}
.banned-info {
  font-size: 0.82rem; color: rgba(255,255,255,0.35); margin-bottom: 24px;
}
.banned-btn-contact {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; border-radius: 12px;
  background: linear-gradient(135deg,#E30613,#c00010);
  color: #fff; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(220,38,38,0.3);
  transition: opacity 0.2s;
}
.banned-btn-contact:hover { opacity: 0.88; }
.banned-btn-logout {
  width: 100%; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); font-size: 0.88rem;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.banned-btn-logout:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Transitions entre pages ── */
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pageLeave {
  from { opacity: 1; }
  to   { opacity: 0; }
}
body {
  animation: pageEnter 0.32s ease both;
}
body.page-leaving {
  animation: pageLeave 0.2s ease forwards;
  pointer-events: none;
}

/* ── Scrollbar global ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #312783, #F39200);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #1e1760, #d97f00); }
* { scrollbar-width: thin; scrollbar-color: #312783 transparent; }

/* ---------- Aeonik — police principale ---------- */
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/AeonikTRIAL-Light.otf') format('opentype');
  font-weight: 100 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/AeonikTRIAL-LightItalic.otf') format('opentype');
  font-weight: 100 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/AeonikTRIAL-Regular.otf') format('opentype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/AeonikTRIAL-RegularItalic.otf') format('opentype');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/AeonikTRIAL-Bold.otf') format('opentype');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/AeonikTRIAL-BoldItalic.otf') format('opentype');
  font-weight: 600 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --primary: #F39200;
  --primary-dark: #d97f00;
  --red: #E30613;
  --secondary: #312783;
  --accent: #1A1A2E;
  --gradient: linear-gradient(135deg, #E30613 0%, #F39200 50%, #312783 100%);
  --text: #1a1a1a;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --font: 'Aeonik', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-login {
  background: transparent;
  color: var(--text);
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); }

.btn-nav-login {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 50px;
  background: transparent;
  border: 1.5px solid #e0e0ea;
  color: #444; font-size: 0.86rem; font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-nav-login i { font-size: 0.82rem; }
.btn-nav-login:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(243,146,0,0.04);
}

.btn-nav-register {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff7b1c 100%);
  color: #fff; font-size: 0.87rem; font-weight: 800;
  letter-spacing: 0.1px;
  box-shadow: 0 4px 16px rgba(243,146,0,0.35), 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn-nav-register i {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; flex-shrink: 0;
}
.btn-nav-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243,146,0,0.45);
}
.btn-nav-register:active { transform: translateY(0); }

/* ---------- Navbar ---------- */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
#header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #F39200 0%, #312783 50%, #E30613 100%);
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.logo img { height: 36px; width: auto; object-fit: contain; }
.logo-v { display: none; height: 36px; width: 36px; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.burger {
  display: none;
  background: rgba(243,146,0,0.07);
  border: 1.5px solid rgba(243,146,0,0.22);
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  margin-left: auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.burger:hover { background: rgba(243,146,0,0.14); border-color: rgba(243,146,0,0.4); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero-content { max-width: 720px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--primary); }

.hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 36px;
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 1rem;
  outline: none;
  color: var(--text);
}
.hero-search button {
  background: var(--primary);
  color: #fff;
  padding: 16px 28px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}
.hero-search button:hover { background: var(--primary-dark); }

/* ---------- Sections ---------- */
section { padding: 64px 24px; }
section:nth-child(even) { background: var(--bg-gray); }

section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto 32px;
}
.section-header h2 { margin-bottom: 0; }
.section-header a { color: var(--primary); font-weight: 600; }

/* ---------- Categories Grid ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.category-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.category-card .icon { font-size: 2rem; margin-bottom: 10px; }
.category-card span { font-size: 0.9rem; font-weight: 600; }

/* ---------- Listings Grid ---------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.listing-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.listing-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-gray);
}
.listing-card .card-body { padding: 14px 16px; }
.listing-card .card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.listing-card .card-price { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.listing-card .card-location { color: var(--text-light); font-size: 0.82rem; margin-top: 4px; }

/* ---------- Footer ---------- */
footer {
  background: var(--secondary);
  color: #fff;
  padding: 56px 24px 24px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 10px;
}
.footer-brand p { opacity: 0.65; font-size: 0.9rem; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-socials { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; }
.footer-links h4, .footer-socials h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; margin-bottom: 4px; }
.footer-links a, .footer-socials a { opacity: 0.75; font-size: 0.9rem; transition: opacity 0.2s; }
.footer-links a:hover, .footer-socials a:hover { opacity: 1; color: var(--primary); }

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  text-align: center;
  opacity: 0.45;
  font-size: 0.85rem;
}

/* ── MOBILE SIDE DRAWER ──────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 399;
  background: rgba(10,10,20,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 400;
  width: 85%; max-width: 320px;
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: -12px 0 56px rgba(0,0,0,0.18);
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #f0f0f5;
  flex-shrink: 0;
}
.drawer-logo-link img { height: 28px; }
.drawer-close-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.drawer-close-btn:hover { background: #e5e7eb; color: #111; }

.drawer-user-section { padding: 14px 16px 0; flex-shrink: 0; }

.drawer-user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg,rgba(243,146,0,0.07),rgba(49,39,131,0.05));
  border: 1px solid rgba(243,146,0,0.18);
  margin-bottom: 10px;
}
.drawer-user-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#F39200,#312783);
  color: #fff; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.drawer-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.drawer-user-info { min-width: 0; }
.drawer-user-name {
  font-size: 0.88rem; font-weight: 700; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drawer-user-email {
  font-size: 0.73rem; color: #9ca3af;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.drawer-auth-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.drawer-btn-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 10px;
  border: 1.5px solid #e0e0ea; color: #444;
  font-size: 0.88rem; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.drawer-btn-login:hover { border-color: var(--primary); color: var(--primary); }

.drawer-nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 16px; flex-shrink: 0;
}
.drawer-nav-sep { height: 1px; background: #f0f0f5; margin: 6px 0; }
.drawer-nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 12px;
  color: #444; font-size: 0.9rem; font-weight: 600;
  border: none; background: none; cursor: pointer;
  text-align: left; width: 100%;
  transition: background .15s, color .15s;
}
.drawer-nav-item i { width: 20px; text-align: center; color: #aaa; font-size: 0.88rem; flex-shrink: 0; }
.drawer-nav-item:hover, .drawer-nav-item:hover i { color: var(--primary); }
.drawer-nav-item:hover { background: #f5f5f8; }
.drawer-nav-item.danger { color: #ef4444; }
.drawer-nav-item.danger i { color: #fca5a5; }
.drawer-nav-item.danger:hover { background: #fef2f2; color: #dc2626; }

.drawer-search { padding: 12px 16px 8px; flex-shrink: 0; }
.drawer-search-inner {
  display: flex; align-items: center; gap: 8px;
  background: #f7f7fb; border: 1.5px solid #ebebf2;
  border-radius: 50px; padding: 0 8px 0 16px; height: 44px;
  transition: border-color .2s;
}
.drawer-search-inner:focus-within { border-color: var(--primary); }
.drawer-search-inner i { color: #bbb; font-size: 0.82rem; flex-shrink: 0; }
.drawer-search-inner input {
  flex: 1; background: none; border: none; outline: none;
  color: #111; font-size: 0.9rem; font-family: var(--font); min-width: 0;
}
.drawer-search-inner input::placeholder { color: #bbb; }
.drawer-search-inner button {
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex-shrink: 0;
}

.drawer-footer {
  padding: 12px 16px 28px;
  margin-top: auto; flex-shrink: 0;
}
.drawer-publish-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg,var(--primary) 0%,#ff7b1c 100%);
  color: #fff; font-size: 0.9rem; font-weight: 800;
  box-shadow: 0 4px 18px rgba(243,146,0,0.35);
  transition: opacity .18s, transform .15s;
}
.drawer-publish-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  /* Hide text auth buttons on mobile but keep bell + profile avatar */
  .nav-actions .btn-login,
  .nav-actions .btn-primary,
  .nav-actions .btn-nav-login,
  .nav-actions .btn-nav-register { display: none !important; }
  /* Swap full logo → V icon */
  .logo-full { display: none; }
  .logo-v { display: block; }
  /* Pill actions orange + burger orange collés à droite */
  .nav-actions {
    margin-left: auto;
    background: rgba(243,146,0,0.07);
    border: 1.5px solid rgba(243,146,0,0.22);
    border-radius: 50px;
    padding: 3px 6px 3px 4px;
    gap: 2px;
  }
  .nav-actions .nav-notif-btn { background: transparent !important; border: none !important; }
  .nav-profile-btn { background: transparent !important; border: none !important; box-shadow: none !important; padding: 2px !important; border-radius: 50% !important; }
  .nav-profile-name, .nav-profile-chevron { display: none !important; }
  .burger { display: flex; margin-left: 4px !important; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .listings-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
  .hero { padding: 52px 16px; }
  .hero-search { flex-direction: column; }
  .hero-search button { border-radius: 0 0 var(--radius) var(--radius); }
  .hero-search input { border-radius: var(--radius) var(--radius) 0 0; }
}

/* ── AUTH responsive ── */
@media (max-width: 520px) {
  .auth-page { padding: 20px 12px; align-items: flex-start; padding-top: 24px; }
  .auth-card { padding: 28px 18px 24px; border-radius: 18px; }
  .auth-brand p { font-size: 0.82rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .gender-group { gap: 6px; }
  .gender-option { font-size: 0.82rem; padding: 8px 4px; }
}

@media (max-width: 360px) {
  .auth-card { padding: 22px 14px 20px; }
  .btn-block { padding: 12px; font-size: 0.9rem; }
}

/* =============================================
   AUTH PAGE
   ============================================= */
.auth-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff8f0 50%, #f5f5f8 100%);
  padding: 12px 16px;
  overflow: hidden;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px 32px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  scrollbar-width: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.08);
  border: 1.5px solid rgba(0,0,0,0.05);
}
.auth-card::-webkit-scrollbar { display: none; }

.auth-brand { text-align: center; margin-bottom: 12px; }
.auth-brand .brand-name {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-brand p { color: var(--text-light); font-size: 0.88rem; margin-top: 6px; }

/* ── Animations de transition entre onglets ── */
@keyframes authSlideInRight {
  from { opacity: 0; transform: translateX(48px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0)    scale(1);    }
}
@keyframes authSlideInLeft {
  from { opacity: 0; transform: translateX(-48px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0)     scale(1);    }
}
@keyframes authSlideOutLeft {
  from { opacity: 1; transform: translateX(0)     scale(1);    }
  to   { opacity: 0; transform: translateX(-48px) scale(0.97); }
}
@keyframes authSlideOutRight {
  from { opacity: 1; transform: translateX(0)    scale(1);    }
  to   { opacity: 0; transform: translateX(48px) scale(0.97); }
}

/* Conteneur des sections avec overflow caché pour masquer le slide */
#loginSection, #registerSection, #otpSection {
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
  position: relative;
}
.auth-tabs .tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color 0.25s;
  position: relative; z-index: 1;
}
.auth-tabs .tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.28s cubic-bezier(0.4,0,0.2,1), color 0.25s, box-shadow 0.25s;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
}
.form-group input:focus,
.form-group select:focus { border-color: var(--primary); }

.input-wrapper { position: relative; }
.input-wrapper input { padding-right: 44px; }
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}
.step-dot.active { width: 24px; border-radius: 4px; background: var(--primary); }
.step-dot.done { background: var(--primary); }

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

.btn-google {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font);
}
.btn-google:hover { border-color: #4285F4; box-shadow: 0 2px 8px rgba(66,133,244,0.15); }

.btn-block {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--font);
}
.btn-gradient { background: var(--gradient); color: #fff; }
.btn-gradient:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(243,146,0,0.3); }
.btn-gradient:disabled {
  opacity: 0.8; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}
.btn-gradient .btn-spinner {
  display: inline-block; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: spin 0.65s linear infinite; vertical-align: middle; margin-right: 7px;
}
.btn-outline-auth {
  background: transparent;
  border: 1.5px solid var(--border) !important;
  color: var(--text);
}
.btn-outline-auth:hover { border-color: var(--primary) !important; color: var(--primary); }

.form-error {
  color: #ef4444;
  font-size: 0.84rem;
  margin-top: 4px;
  margin-bottom: 12px;
  display: none;
}

.gender-group { display: flex; gap: 8px; }
.gender-option {
  flex: 1;
  padding: 10px 6px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
  user-select: none;
}
.gender-option.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(243,146,0,0.06);
}

/* Centres d'intérêt chips */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
  color: var(--text);
  background: transparent;
  line-height: 1;
}
.interest-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(243,146,0,0.04);
}
.interest-chip.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(243,146,0,0.1);
  font-weight: 600;
}
.interest-chip i { font-size: 0.8rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Profile dropdown (shared) ── */
.nav-profile-wrap { position: relative; }
.nav-profile-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; border-radius: 50px;
  background: #f5f5f8; border: 1.5px solid #e5e7eb;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.nav-profile-btn:hover { background: #ebebf0; border-color: #d0d0da; }
.nav-profile-name { font-size: 0.86rem; font-weight: 600; color: #333; }
.nav-profile-chevron { font-size: 0.68rem; color: #999; transition: transform 0.22s; }
.nav-profile-wrap:hover .nav-profile-chevron,
.nav-profile-wrap.open .nav-profile-chevron { transform: rotate(180deg); }
.nav-profile-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 230px; background: #fff;
  border: 1.5px solid #ebebf2; border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
  padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 300;
}
.nav-profile-wrap:hover .nav-profile-dropdown,
.nav-profile-wrap.open .nav-profile-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  color: #333; font-size: 0.87rem; font-weight: 500;
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-dd-item i { width: 18px; text-align: center; color: #aaa; font-size: 0.84rem; flex-shrink: 0; }
.nav-dd-item:hover { background: #f5f5f8; color: #111; }
.nav-dd-item:hover i { color: var(--primary); }
.nav-dd-featured { background: rgba(243,146,0,0.07); color: var(--primary); font-weight: 700; }
.nav-dd-featured i { color: var(--primary); }
.nav-dd-featured:hover { background: rgba(243,146,0,0.14); }
.nav-dd-sep { height: 1px; background: #f0f0f5; margin: 6px 0; }
.nav-dd-logout:hover { background: #fef2f2 !important; color: #E30613 !important; }
.nav-dd-logout:hover i { color: #E30613 !important; }

/* ── Notification bell ─────────────────────────────────────── */
.nav-notif-wrap { position: relative; display: flex; align-items: center; }
.nav-notif-btn {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: transparent; color: #374151;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; font-size: 1rem;
  flex-shrink: 0;
}
.nav-notif-btn:hover { background: #f3f4f6; }
.nav-notif-badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 17px; height: 17px; border-radius: 50%;
  background: #E30613; color: #fff; font-size: 0.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; padding: 0 3px; line-height: 1;
}
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: -8px;
  width: 340px; max-height: 480px;
  background: #fff; border-radius: 18px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: none; flex-direction: column;
  z-index: 9999; overflow: hidden;
}
.notif-panel.open { display: flex; }
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px; border-bottom: 1px solid #f0f0f5; flex-shrink: 0;
}
.notif-panel-title { font-size: 0.88rem; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.notif-panel-title i { color: #F39200; }
.notif-mark-all {
  font-size: 0.72rem; color: #9ca3af; font-weight: 600;
  background: none; border: none; cursor: pointer; font-family: inherit;
  transition: color .15s;
}
.notif-mark-all:hover { color: #F39200; }
.notif-list { overflow-y: auto; flex: 1; }
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }
.notif-empty {
  padding: 36px 16px; text-align: center;
  font-size: 0.82rem; color: #9ca3af; line-height: 2;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid #f9fafb;
  transition: background .15s; position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #fafafa; }
.notif-item.unread { background: #fffbf0; }
.notif-item.unread:hover { background: #fef3d8; }
.notif-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; color: #fff; margin-top: 1px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 0.79rem; color: #374151; line-height: 1.5; margin: 0 0 3px; }
.notif-text strong { font-weight: 700; color: #0a0a14; }
.notif-text em { font-style: normal; color: #312783; font-weight: 600; }
.notif-time { font-size: 0.69rem; color: #9ca3af; }
.notif-clicker-phone { font-size: 0.75rem; color: #16a34a; font-weight: 600; }
.notif-thumb {
  width: 38px; height: 38px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; border: 1px solid #f0f0f5;
}
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #F39200; flex-shrink: 0; margin-top: 5px;
}
.notif-panel-footer {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 16px; border-top: 1px solid #f0f0f5;
  font-size: 0.78rem; font-weight: 700; color: #6b7280;
  text-decoration: none; transition: color .15s; flex-shrink: 0;
}
.notif-panel-footer:hover { color: #F39200; }

@media (max-width: 480px) {
  .notif-panel { width: calc(100vw - 20px); right: -4px; }
}

/* =============================================
   ARTICLE DETAIL PAGE
   ============================================= */
.article-page { max-width: 1200px; margin: 0 auto; padding: 24px 24px 120px; }

.article-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-gray);
  aspect-ratio: 16/9;
  max-height: 480px;
  margin-bottom: 32px;
}
.gallery-slides { display: flex; height: 100%; transition: transform 0.4s ease; }
.gallery-slide { min-width: 100%; height: 100%; object-fit: cover; }
.gallery-slide-placeholder {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--bg-gray);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.gallery-nav:hover { background: rgba(0,0,0,0.7); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }

.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-dot.active { width: 18px; border-radius: 4px; background: #fff; }

.type-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  z-index: 2;
}
.type-badge.vente { background: var(--primary); }
.type-badge.don { background: #16a34a; }
.type-badge.egare { background: var(--secondary); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.article-title { font-size: 1.75rem; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.article-category {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
.article-date { color: var(--text-light); font-size: 0.82rem; }

.price-block {
  background: var(--bg-gray);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}
.price-amount { font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.price-currency { font-size: 1rem; font-weight: 600; margin-left: 4px; }
.price-original { text-decoration: line-through; color: var(--text-light); font-size: 0.95rem; margin-top: 6px; }
.price-badge-free {
  display: inline-block;
  background: linear-gradient(135deg, #15803d, #22c55e);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
}
.price-badge-found {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
}

.article-section { margin-bottom: 28px; }
.article-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-light); }
.detail-row .value { font-weight: 600; }

.stats-row { display: flex; gap: 20px; }
.stat-item { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--text-light); }

.seller-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.seller-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.seller-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seller-name { font-weight: 700; font-size: 1rem; }
.seller-label { font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #16a34a;
  background: rgba(22,163,74,0.1);
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 4px;
}

.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.contact-btn {
  flex: 1;
  max-width: 200px;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
  font-family: var(--font);
}
.contact-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.contact-btn.phone { background: #16a34a; color: #fff; }
.contact-btn.whatsapp { background: #25D366; color: #fff; }
.contact-btn.telegram { background: #2CA5E0; color: #fff; }

/* =============================================
   MES PUBLICATIONS
   ============================================= */
.mypubs-page { max-width: 900px; margin: 0 auto; padding: 28px 20px 100px; }

/* ── Header ── */
.mypubs-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.mypubs-header-left { display: flex; align-items: center; gap: 14px; }
.mypubs-header-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, #F39200, #E30613);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(243,146,0,0.35);
}
.mypubs-header-icon i { font-size: 1.25rem; color: #fff; }
.mypubs-header-text h1 { font-size: 1.35rem; font-weight: 800; color: #0a0a14; margin: 0 0 2px; }
.mypubs-header-text span { font-size: 0.8rem; color: #9ca3af; font-weight: 500; }

/* ── Stats cards ── */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 24px;
}
.stat-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 16px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.stat-card-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.stat-card-icon.total   { background: rgba(49,39,131,0.1);  color: #312783; }
.stat-card-icon.active  { background: rgba(22,163,74,0.1);  color: #16a34a; }
.stat-card-icon.views   { background: rgba(59,130,246,0.1); color: #3b82f6; }
.stat-card-icon.favs    { background: rgba(239,68,68,0.1);  color: #ef4444; }
.stat-card .stat-number { font-size: 1.55rem; font-weight: 900; color: #0a0a14; line-height: 1; }
.stat-card .stat-label  { font-size: 0.77rem; color: var(--text-light); margin-top: 2px; }
/* Tablet : 2×2 */
@media (max-width: 640px) {
  .stats-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 12px; gap: 10px; }
  .stat-card-icon { width: 36px; height: 36px; }
  .stat-card .stat-number { font-size: 1.3rem; }
}

/* ── Controls ── */
.controls-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-control { flex: 1; min-width: 200px; position: relative; }
.search-control input {
  width: 100%; padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.9rem; outline: none;
  transition: border-color 0.2s; font-family: var(--font);
  background: #fafafa;
}
.search-control input:focus { border-color: var(--primary); background: #fff; }
.search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); color: var(--text-light); font-size: 0.85rem;
}
.filter-select {
  padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 0.9rem; background: #fff;
  color: var(--text); outline: none; cursor: pointer;
  transition: border-color 0.2s; font-family: var(--font);
}
.filter-select:focus { border-color: var(--primary); }

/* ── Status tab chips ── */
.status-tabs {
  display: flex; gap: 7px; overflow-x: auto;
  padding-bottom: 4px; margin-bottom: 20px;
  scrollbar-width: none;
}
.status-tabs::-webkit-scrollbar { display: none; }
.status-tab {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff; color: #6b7280;
  font-size: 0.81rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s; font-family: var(--font);
  flex-shrink: 0;
}
.status-tab:hover { border-color: #312783; color: #312783; }
.status-tab.active { background: #312783; border-color: #312783; color: #fff; }
.status-tab.tab-active-status.active  { background: #16a34a; border-color: #16a34a; }
.status-tab.tab-vendu.active          { background: #6366f1; border-color: #6366f1; }
.status-tab.tab-reserve.active        { background: #f59e0b; border-color: #f59e0b; }
.status-tab.tab-suspendu.active       { background: #6b7280; border-color: #6b7280; }
.status-tab.tab-trouve.active         { background: #a855f7; border-color: #a855f7; }

/* ── Publication cards ── */
.pub-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 14px 16px;
  display: flex; gap: 14px; align-items: center;
  transition: box-shadow 0.2s, border-color 0.2s;
  margin-bottom: 10px; cursor: default;
  flex-wrap: wrap;
}
.pub-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); border-color: #d1d5db; }
.pub-image {
  width: 96px; height: 96px; border-radius: 12px;
  object-fit: cover; background: var(--bg-gray);
  flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.8rem; color: #d1d5db;
}
.pub-image-empty { color: #d1d5db; font-size: 1.8rem; }
.pub-info { flex: 1; min-width: 180px; }
.pub-title {
  font-weight: 700; font-size: 0.95rem; margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #0a0a14;
}
.pub-badge-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; flex-wrap: wrap; }
.pub-price-tag { font-size: 0.92rem; font-weight: 700; color: var(--primary); }
.pub-meta { font-size: 0.78rem; color: var(--text-light); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pub-meta i { font-size: 0.72rem; }
.pub-actions {
  display: flex; gap: 6px; align-items: center;
  flex-shrink: 0; flex-wrap: wrap; flex-direction: row;
  align-self: flex-end;
}
.pub-action-btn {
  padding: 7px 13px; border-radius: 8px;
  border: 1.5px solid var(--border); background: #fff;
  cursor: pointer; font-size: 0.78rem; font-weight: 600;
  transition: all 0.2s; font-family: var(--font);
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.pub-action-btn:hover { border-color: var(--primary); color: var(--primary); }
.pub-action-btn.danger { color: #ef4444; border-color: #fecaca; }
.pub-action-btn.danger:hover { border-color: #ef4444; background: #fef2f2; }
.pub-action-btn.edit-btn { border-color: #312783; color: #312783; background: rgba(49,39,131,0.05); }
.pub-action-btn.edit-btn:hover { background: rgba(49,39,131,0.1); }
.pub-action-btn.toggle-btn { color: #f59e0b; border-color: #fde68a; }
.pub-action-btn.toggle-btn:hover { background: #fffbeb; border-color: #f59e0b; }

/* ── Status badge ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.status-badge.active   { background: rgba(22,163,74,0.1);   color: #16a34a; }
.status-badge.vendu    { background: rgba(99,102,241,0.1);  color: #6366f1; }
.status-badge.reserve  { background: rgba(245,158,11,0.1);  color: #f59e0b; }
.status-badge.inactive,
.status-badge.suspendu,
.status-badge.expire   { background: var(--bg-gray);        color: var(--text-light); }
.status-badge.en_attente { background: rgba(59,130,246,0.1); color: #3b82f6; }
.status-badge.trouve   { background: rgba(168,85,247,0.1);  color: #a855f7; }

/* ── FAB nouvelle publication ── */
.mypubs-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #F39200, #E30613);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(243,146,0,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.mypubs-fab:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 32px rgba(243,146,0,0.55); }
.mypubs-fab-label {
  position: fixed; bottom: 34px; right: 96px; z-index: 200;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 0.78rem; font-weight: 600;
  padding: 5px 10px; border-radius: 8px;
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
  white-space: nowrap;
}
.mypubs-fab:hover ~ .mypubs-fab-label { opacity: 1; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-state-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 2.2rem; color: #d1d5db;
}
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: #0a0a14; margin: 0 0 8px; }
.empty-state p  { font-size: 0.87rem; color: #6b7280; margin: 0 0 22px; line-height: 1.6; }

/* =============================================
   RESPONSIVE — NEW PAGES
   ============================================= */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
  .mypubs-page { padding: 20px 16px 100px; }
}

@media (max-width: 640px) {
  .auth-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-bar { padding: 10px 12px; gap: 8px; }
  .contact-btn { font-size: 0.82rem; padding: 12px 10px; }
  .pub-actions { flex-direction: row; flex-wrap: wrap; }
  .article-gallery { aspect-ratio: 4/3; }
  .pub-card { padding: 12px; gap: 10px; }
  .pub-card { padding: 12px; gap: 10px; }
  .pub-image { width: 80px; height: 80px; }
  .pub-title { font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .mypubs-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .controls-bar { flex-direction: column; }
  .search-control { min-width: 100%; }
  .pub-card { flex-wrap: wrap; }
  .pub-actions { width: 100%; justify-content: flex-end; }
  .article-page { padding: 16px 14px 100px; }
  .article-title { font-size: 1.4rem; }
  .price-amount { font-size: 1.8rem; }
}

/* =============================================
   STUDIO MODE — redesign complet
   ============================================= */

/* ── Overlay ── */
.edit-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,30,0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}
.edit-overlay.open { opacity: 1; pointer-events: all; }

/* ── Panel ── */
.edit-panel {
  width: 100%; max-width: 920px;
  background: #fff;
  border-radius: 20px;
  max-height: 92vh;
  display: flex; flex-direction: column;
  transform: scale(0.96) translateY(24px);
  transition: transform 0.36s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
  overflow: hidden; position: relative;
}
.edit-overlay.open .edit-panel { transform: scale(1) translateY(0); }

/* ── Studio Header ── */
.studio-header {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.studio-close-btn {
  width: 36px; height: 36px; border-radius: 10px; border: none;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; flex-shrink: 0;
}
.studio-close-btn:hover { background: rgba(255,255,255,0.24); }
.studio-mode-badge {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, var(--primary), var(--red));
  color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 5px 12px; border-radius: 20px;
  letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(243,146,0,0.45);
}
.studio-article-preview {
  flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0;
}
.studio-thumb {
  width: 48px; height: 48px; border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,0.1); flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.studio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.studio-thumb i { color: rgba(255,255,255,0.4); font-size: 1.2rem; }
.studio-article-meta { min-width: 0; }
.studio-article-name {
  color: #fff; font-size: 0.9rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.studio-article-sub { color: rgba(255,255,255,0.5); font-size: 0.72rem; margin-top: 2px; }
.studio-dirty-badge {
  background: rgba(243,146,0,0.25); border: 1px solid rgba(243,146,0,0.5);
  color: var(--primary); font-size: 0.7rem; font-weight: 800;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.studio-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.studio-cancel-btn {
  padding: 8px 16px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.2); background: transparent;
  color: rgba(255,255,255,0.7); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  font-family: var(--font);
}
.studio-cancel-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.studio-save-btn {
  padding: 9px 18px; border-radius: 10px; border: none;
  background: var(--primary); color: #fff;
  font-size: 0.85rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap; font-family: var(--font);
  box-shadow: 0 4px 14px rgba(243,146,0,0.5);
}
.studio-save-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.studio-save-btn:disabled {
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.35);
  box-shadow: none; cursor: default; transform: none;
}

/* ── Studio Body ── */
.studio-body {
  display: flex; flex: 1; overflow: hidden;
}

/* ── Sidebar nav (desktop) ── */
.studio-nav {
  width: 200px; flex-shrink: 0;
  background: #f8f9fb; border-right: 1px solid #eaeaea;
  display: flex; flex-direction: column;
  padding: 12px 8px; gap: 4px; overflow-y: auto;
}
.studio-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 10px; border: none;
  background: transparent; cursor: pointer; text-align: left;
  font-family: var(--font); color: #6b7280;
  font-size: 0.84rem; font-weight: 600;
  transition: all 0.18s; position: relative;
  border-left: 3px solid transparent;
}
.studio-nav-item:hover { background: #fff; color: var(--text); }
.studio-nav-item.active {
  background: #fff; color: var(--primary); font-weight: 700;
  border-left-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.studio-nav-item i { width: 18px; text-align: center; font-size: 0.9rem; }
.studio-nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); margin-left: auto; flex-shrink: 0;
}

/* ── Content area ── */
.studio-content {
  flex: 1; overflow-y: auto; background: #fff;
}
.studio-tab { padding: 28px 28px 40px; }
.studio-section-title {
  font-size: 1rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 6px;
}
.studio-section-title i { color: var(--primary); }
.studio-hint { font-size: 0.8rem; color: #9ca3af; margin-bottom: 20px; line-height: 1.5; }
.studio-divider { height: 1px; background: #f0f0f6; margin: 24px 0; }
.studio-subsection-title {
  font-size: 0.8rem; font-weight: 800; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 14px;
}
.studio-subsection-title i { color: var(--primary); }

/* ── Studio Fields ── */
.studio-field { margin-bottom: 16px; }
.studio-field label {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 700; color: #6b7280;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.studio-required { color: var(--primary); }
.studio-field input, .studio-field textarea, .studio-field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 0.9rem; font-family: var(--font); color: var(--text);
  background: #fff; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.studio-field input:focus, .studio-field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(243,146,0,0.1);
}
.studio-field-hint { font-size: 0.72rem; color: #aaa; margin-top: 5px; display: block; }
.studio-fields-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

/* ── Image grid ── */
.studio-img-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.edit-img-tile {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  position: relative; background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.edit-img-tile img { width: 100%; height: 100%; object-fit: cover; }
.edit-img-remove {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; border-radius: 50%; border: none;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 0.72rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.edit-img-remove:hover { background: rgba(227,6,19,0.9); }
.edit-img-main-badge {
  position: absolute; bottom: 5px; left: 5px;
  background: linear-gradient(90deg, var(--primary), var(--red));
  color: #fff; font-size: 0.6rem; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
}
.studio-img-add {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 12px; width: 100%;
  border: 2px dashed rgba(243,146,0,0.4);
  background: rgba(243,146,0,0.04);
  color: var(--primary); font-weight: 700; font-size: 0.86rem;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.studio-img-add:hover { background: rgba(243,146,0,0.1); border-color: var(--primary); }

/* ── Status grid ── */
.studio-status-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.edit-status-option {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  cursor: pointer; border: 2px solid #e5e7eb;
  transition: all 0.2s; background: #fff; text-align: left;
}
.edit-status-option:hover { border-color: #d1d5db; background: #fafafa; }
.edit-status-option.selected { border-color: var(--sel-color); background: var(--sel-bg); }
.edit-status-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; background: rgba(0,0,0,0.04); flex-shrink: 0;
}
.edit-status-label { font-weight: 700; font-size: 0.82rem; flex: 1; }
.edit-status-check { font-size: 0.82rem; font-weight: 800; flex-shrink: 0; }

/* ── Save progress overlay ── */
.edit-saving-overlay {
  position: absolute; inset: 0; border-radius: 20px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  z-index: 20;
}
.edit-saving-box { text-align: center; padding: 36px 48px; }
.studio-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid #e5e7eb; border-top-color: var(--primary);
  animation: studioSpin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes studioSpin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.edit-saving-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; color: var(--text); }
.edit-saving-status { color: #9ca3af; font-size: 0.85rem; margin-bottom: 18px; }
.edit-saving-bar-wrap {
  background: #f0f0f6; border-radius: 8px; height: 6px;
  overflow: hidden; margin-bottom: 10px; width: 240px; margin-left: auto; margin-right: auto;
}
.edit-saving-bar { height: 100%; background: var(--primary); border-radius: 8px; transition: width 0.4s ease; }
.edit-saving-pct { color: var(--primary); font-weight: 800; font-size: 0.9rem; }

/* ── Mobile tabs (replace sidebar) ── */
.studio-mobile-tabs {
  display: none;
  overflow-x: auto; flex-shrink: 0;
  border-bottom: 1px solid #eaeaea; scrollbar-width: none;
  background: #f8f9fb;
}
.studio-mobile-tabs::-webkit-scrollbar { display: none; }
.studio-mobile-tab {
  padding: 12px 16px; white-space: nowrap; display: flex;
  align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; color: #9ca3af;
  border: none; background: none; cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font);
}
.studio-mobile-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.studio-mobile-tab .tab-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .edit-overlay { padding: 0; align-items: flex-end; }
  .edit-panel {
    border-radius: 20px 20px 0 0; max-height: 94vh;
    transform: translateY(100%); box-shadow: 0 -12px 48px rgba(0,0,0,0.25);
  }
  .edit-overlay.open .edit-panel { transform: translateY(0); }
  .studio-header {
    padding: 14px 16px; flex-wrap: wrap; gap: 10px;
    border-radius: 20px 20px 0 0;
  }
  .studio-mode-badge { display: none; }
  .studio-article-preview { order: -1; width: 100%; }
  .studio-header-actions { margin-left: auto; }
  .studio-nav { display: none; }
  .studio-mobile-tabs { display: flex; }
  .studio-body { flex-direction: column; }
  .studio-tab { padding: 20px 16px 32px; }
  .studio-fields-row { grid-template-columns: 1fr; gap: 0; }
  .studio-status-grid { grid-template-columns: 1fr 1fr; }
  .studio-save-btn span { display: none; }
  .studio-save-btn { padding: 9px 14px; }
}
@media (max-width: 400px) {
  .studio-status-grid { grid-template-columns: 1fr; }
  .studio-img-grid { grid-template-columns: repeat(3, 1fr); }
}
