:root{--bg:#0f172a;--card:#111827;--muted:#334155;--text:#e5e7eb;--accent:#8b5cf6;--ok:#10b981;--warn:#f59e0b;--bad:#ef4444;}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;background:#0b1020;color:var(--text)}
.container{max-width:1100px;margin:0 auto;padding:20px}
.topbar{background:#0b1020;border-bottom:1px solid #1f2937;position:sticky;top:0;z-index:10}
.brand{font-weight:700;color:#fff;text-decoration:none;margin-right:20px}
nav a{color:#cbd5e1;margin-right:12px;text-decoration:none}
nav a:hover{color:#fff}
.card{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.07);border-radius:16px;padding:16px;margin:16px 0}
.btn{display:inline-block;background:var(--accent);color:#fff;border:none;padding:10px 14px;border-radius:10px;text-decoration:none;cursor:pointer}
.btn.secondary{background:#1f2937}
.btn.success{background:var(--ok)}
.btn.warn{background:var(--warn)}
.btn.danger{background:var(--bad)}
.input, textarea, select{width:100%;padding:10px;border-radius:10px;border:1px solid #1f2937;background:#0a0f1e;color:#e5e7eb}
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:1fr 1fr}
.grid-3{grid-template-columns:repeat(3, 1fr)}
.badge{display:inline-block;padding:3px 8px;border-radius:999px;background:#1f2937;color:#cbd5e1;font-size:12px}
.kpi{display:flex;align-items:center;justify-content:space-between}
.kpi .value{font-size:24px;font-weight:700}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #1f2937;padding:10px;text-align:left}
/* main .flex { display: flex; gap: 12px; align-items: center; } */
.right{float:right}
.mt{margin-top:12px}.mb{margin-bottom:12px}
.center{text-align:center}
.chat{max-height:50vh;overflow:auto;background:#0a0f1e;border:1px solid #1f2937;border-radius:12px;padding:12px}
.msg{margin:8px 0}
.msg .who{font-weight:700}
.tag{background:#0b1020;border:1px solid #1f2937;padding:2px 6px;border-radius:8px;margin-right:6px}

/* Améliorations pour la galerie et slider */
.offer-gallery {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 16px 0;
}

.gallery-slide {
    min-width: 100%;
    scroll-snap-align: start;
    position: relative;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
}

.gallery-slide img,
.gallery-slide video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 16px 16px;
}

.slide-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-prev { left: 16px; }
.slide-next { right: 16px; }

.profile-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.offer-card {
    position: relative;
    overflow: hidden;
}

.offer-card .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-logo {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    object-fit: cover;
}

.requirements-list {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.requirements-list h4 {
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirement-item {
    display: flex;
    align-items: start;
    gap: 8px;
    margin: 8px 0;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.requirement-item i {
    color: var(--accent);
    margin-top: 2px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

/* Upload zones */
.upload-zone {
    border: 2px dashed var(--muted);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
}

.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Topbar modern ===== */
.topbar{
  --tb-bg: rgba(11,16,32,0.7);
  --tb-border: rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--tb-border);
  background: var(--tb-bg);
}
.topbar--elev{ box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.topbar__inner{ display:flex; align-items:center; gap:16px; padding-top:12px; padding-bottom:12px; }

/* Brand */
.brand{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; }
.brand__logo{ width:32px; height:32px; border-radius:8px; filter: drop-shadow(0 2px 6px rgba(139,92,246,0.35)); }
.brand__wordmark{ height:24px; opacity:.95; }
.brand--row:hover .brand__wordmark{ opacity:1; }

/* Nav */
.nav{ display:flex; align-items:center; gap:12px; margin-left:8px; }
.nav__link{
  display:inline-flex; align-items:center; gap:6px;
  color:#cbd5e1; text-decoration:none; padding:8px 10px; border-radius:10px;
}
.nav__link:hover{ color:#fff; background: rgba(255,255,255,0.05); }
.nav__link.is-active{ color:#fff; background: rgba(139,92,246,0.18); border:1px solid rgba(139,92,246,0.35); }

/* Buttons */
.btn{ background:var(--accent); color:#fff; border-radius:10px; padding:8px 12px; }
.btn--small{ padding:6px 10px; font-size:14px; }

/* Actions cluster (right side) */
.header-actions{ margin-left:auto; display:flex; align-items:center; gap:10px; }

/* Search */
.search{ position:relative; width:260px; }
.search__input{
  width:100%; padding:8px 34px 8px 12px; border-radius:10px;
  border:1px solid #1f2937; background:#0a0f1e; color:#e5e7eb;
}
.search__input:focus{ outline:none; border-color:rgba(139,92,246,0.5); box-shadow:0 0 0 3px rgba(139,92,246,0.25); }
.search__btn{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  border:none; background:transparent; color:#94a3b8; cursor:pointer; font-weight:700;
}

/* Icon buttons */
.icon-btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:10px; text-decoration:none; color:#cbd5e1;
  background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07);
}
.icon-btn:hover{ color:#fff; background:rgba(255,255,255,0.07); }
.icon-btn__icon{ font-size:16px; line-height:1; }
.badge-dot{
  position:absolute; top:6px; right:6px; width:8px; height:8px; border-radius:50%;
  background:var(--warn); box-shadow:0 0 0 2px #0b1020;
}

/* User menu */
.user{ position:relative; }
.user__btn{
  display:flex; align-items:center; gap:8px; background:transparent; border:1px solid rgba(255,255,255,0.07);
  border-radius:999px; padding:4px 8px; cursor:pointer; color:#e5e7eb;
  background: rgba(255,255,255,0.04);
}
.user__btn:hover{ background: rgba(255,255,255,0.07); }
.user__avatar{ width:28px; height:28px; border-radius:50%; object-fit:cover; border:1px solid rgba(255,255,255,0.3); }
.user__avatar.bg-purple-600{ background-color: #8b5cf6; }
.user__name{ max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; color:#cbd5e1; }
.user__chev{ opacity:.7; }

/* Dropdown */
.dropdown{
  position:absolute; right:0; top:calc(100% + 8px); min-width:220px; display:none;
  background:#0a0f1e; border:1px solid rgba(255,255,255,0.08); border-radius:12px; overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,0.35);
}
.dropdown__item{
  display:block; padding:10px 12px; color:#e5e7eb; text-decoration:none;
}
.dropdown__item:hover{ background:rgba(255,255,255,0.05); }
.dropdown__item--danger{ color:#fecaca; }
.dropdown__sep{ height:1px; background:#1f2937; }

/* Hamburger (mobile only) */
.hamburger{ display:none; background:transparent; border:none; width:40px; height:36px; border-radius:8px; }
.hamburger span{ display:block; height:2px; margin:7px 8px; background:#cbd5e1; }
.hamburger.is-open span:nth-child(2){ opacity:0; }
.hamburger.is-open span:nth-child(1){ transform:translateY(9px) rotate(45deg); transform-origin:8px 1px; }
.hamburger.is-open span:nth-child(3){ transform:translateY(-9px) rotate(-45deg); transform-origin:8px 1px; }

/* Mobile drawer */
.mobile-drawer{ display:none; border-top:1px solid #1f2937; background:#0b1020; }
.mobile-nav{ display:flex; flex-direction:column; gap:8px; padding:12px 20px; }
.mobile-nav a{ color:#cbd5e1; text-decoration:none; padding:10px; border-radius:10px; background:rgba(255,255,255,0.04); }
.mobile-nav a:hover{ color:#fff; background:rgba(255,255,255,0.07); }
.mobile-nav .btn{ text-align:center; }
.mobile-nav .danger{ color:#fecaca; }

/* Responsive */
@media (max-width: 980px){
  .search{ display:none; }
  .nav{ display:none; }
  .hamburger{ display:inline-block; }
  .mobile-drawer.is-open{ display:block; }
}

/* ===== Footer (sans Tailwind) ===== */
.site-footer{
  background:#0b1020;
  color:#cbd5e1;
  padding:48px 0;
  margin-top:48px;
  border-top:1px solid #1f2937;
}
.footer-grid{
  display:grid;
  gap:24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px){
  .footer-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px){
  .footer-grid{ grid-template-columns: repeat(4, 1fr); }
}

.footer-col{ min-width:0; }
.footer-title{
  font-weight:600;
  color:#e5e7eb;
  margin-bottom:12px;
}
.footer-text{ color:#94a3b8; margin:12px 0 16px; }

.footer-list{ list-style:none; padding:0; margin:0; }
.footer-list li{ margin:8px 0; }
.footer-list a{
  color:#94a3b8; text-decoration:none; transition:color .2s ease;
}
.footer-list a:hover{ color:#ffffff; }

.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.footer-brand__logo{
  width:40px; height:40px; border-radius:10px;
  background:#8b5cf6; color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:700; letter-spacing:.5px; box-shadow:0 4px 16px rgba(139,92,246,.35);
}
.footer-brand__name{ font-weight:700; color:#fff; font-size:18px; }

.footer-social{ display:flex; gap:12px; margin-top:8px; }
.footer-social a{
  color:#94a3b8; text-decoration:none; font-size:18px;
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08);
  width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  border-radius:10px; transition:all .2s ease;
}
.footer-social a:hover{ color:#fff; background:rgba(255,255,255,0.09); }

.footer-bottom{
  margin-top:32px; padding-top:16px; text-align:center;
  border-top:1px solid #1f2937; color:#94a3b8;
}
/* Topbar thèmes */
.topbar--dark{ background:#0b1020; border-bottom:1px solid #1f2937; }
.topbar--light{ background:#0f172a; border-bottom:1px solid rgba(255,255,255,0.06); }
.topbar--transparent{
  background:transparent; border-bottom:0; position:absolute; inset:0 0 auto 0;
}
.topbar--transparent .nav__link{ color:#e5e7eb; }
.topbar--transparent .brand__wordmark{ opacity:1; }

/* Main plein écran (quand pas de .container) : rien à faire, juste ne pas mettre la classe */
