/* ===================================================
   LexImpact Enchères — Design System
   Navy (#1B2B4B) + Gold (#C9A84C) + Cream (#F8F7F4)
   Playfair Display + Inter
   =================================================== */

:root {
  --navy: #1B2B4B;
  --navy-deep: #0F1A2E;
  --navy-light: #2a3f6b;
  --gold: #C9A84C;
  --gold-light: #E5D5A0;
  --gold-dark: #A8883A;
  --cream: #F8F7F4;
  --anthracite: #2D2D2D;
  --text: #374151;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --success: #059669;
  --danger: #DC2626;
  --warning: #F59E0B;
  --info: #2563EB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 30px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream); color: var(--text);
  font-size: 15px; line-height: 1.7;
}
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); line-height: 1.2; }
a { color: var(--gold-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }

/* === HEADER / NAV === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 26, 46, 0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  height: 72px; display: flex; align-items: center;
  padding: 0 48px; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
}
.logo .lex { color: var(--gold); }
.logo .sub { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 400; opacity: 0.5; text-transform: uppercase; letter-spacing: 3px; margin-left: 8px; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  padding: 24px 18px; font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1.2px;
  transition: var(--transition); border-bottom: 2px solid transparent;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold); border-bottom-color: var(--gold);
}
.main-nav a.cta-nav {
  background: var(--gold); color: var(--navy-deep); border-radius: 8px;
  padding: 10px 20px; margin-left: 12px; font-weight: 700;
  border-bottom: none;
}
.main-nav a.cta-nav:hover { background: var(--gold-light); }

.mobile-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-light) 100%);
  position: relative; overflow: hidden; padding: 120px 48px 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201,168,76,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(37,99,235,0.06) 0%, transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; width: 100%; }
.hero-text { display: flex; flex-direction: column; justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid rgba(201,168,76,0.4);
  border-radius: 100px; color: var(--gold); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px; width: fit-content;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(36px, 4.5vw, 56px); color: var(--white); font-weight: 800; margin-bottom: 20px; }
.hero h1 .gold { color: var(--gold); }
.hero .subtitle { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-cards { position: relative; width: 100%; max-width: 480px; }
.hero-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative;
}
.hero-card img { width: 100%; height: 280px; object-fit: cover; }
.hero-card-body { padding: 24px; }
.hero-card-body h3 { font-size: 20px; margin-bottom: 8px; }
.hero-card-body .meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-light); }
.hero-card-body .meta span { display: flex; align-items: center; gap: 4px; }

.countdown-bar {
  background: var(--navy); color: var(--white); padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; font-size: 13px;
}
.countdown-bar .label { color: var(--gold); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.countdown-timer { display: flex; gap: 12px; }
.countdown-timer .unit { text-align: center; }
.countdown-timer .num { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--gold); }
.countdown-timer .lbl { font-size: 10px; text-transform: uppercase; opacity: 0.6; }

.badge-live {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--danger); color: var(--white); padding: 4px 12px;
  border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: pulse 1.5s infinite; }
.badge-type {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.badge-judiciaire { background: #DBEAFE; color: #1E40AF; }
.badge-volontaire { background: #ECFDF5; color: #059669; }
.badge-gre { background: #FEF3C7; color: #92400E; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600;
  font-size: 14px; text-decoration: none; transition: var(--transition);
  border: none; cursor: pointer; font-family: inherit;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-deep); box-shadow: 0 4px 20px rgba(201,168,76,0.3); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.4); color: var(--navy-deep); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* === SECTIONS === */
.section { padding: 100px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-dark { background: var(--navy-deep); }
.section-navy { background: var(--navy); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .label {
  display: inline-block; color: var(--gold); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-bottom: 16px; }
.section-header p { color: var(--text-light); max-width: 580px; margin: 0 auto; font-size: 16px; }
.section-dark .section-header h2, .section-navy .section-header h2 { color: var(--white); }
.section-dark .section-header p, .section-navy .section-header p { color: rgba(255,255,255,0.6); }

/* === STATS BAR === */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--navy); border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item {
  text-align: center; padding: 40px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Playfair Display', serif; font-size: 48px;
  font-weight: 800; color: var(--gold); line-height: 1;
}
.stat-label { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 8px; font-weight: 500; }

/* === VENTE CARDS === */
.ventes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.vente-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid var(--border);
}
.vente-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.vente-card-img { position: relative; height: 220px; overflow: hidden; }
.vente-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.vente-card:hover .vente-card-img img { transform: scale(1.05); }
.vente-card-body { padding: 24px; }
.vente-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.vente-card-body .location { color: var(--text-light); font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.vente-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--border); }
.vente-card-footer .date { font-size: 13px; font-weight: 600; color: var(--navy); }
.vente-card-footer .lots { font-size: 12px; color: var(--text-light); }
.vente-card-footer .btn-sm { padding: 8px 16px; font-size: 12px; }

/* === ADJUDICATIONS CAROUSEL === */
.adj-scroll { display: flex; gap: 24px; overflow-x: auto; padding: 8px 0 24px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.adj-scroll::-webkit-scrollbar { height: 4px; }
.adj-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.adj-card {
  flex: 0 0 280px; scroll-snap-align: start;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.adj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.adj-card img { width: 100%; height: 200px; object-fit: cover; }
.adj-card-body { padding: 20px; }
.adj-card-body h4 { font-size: 16px; margin-bottom: 4px; }
.adj-card-body .price { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--gold); }
.adj-card-body .detail { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* === MAP SECTION === */
.map-container { width: 100%; height: 500px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
#map { width: 100%; height: 100%; }

/* === ACTUALITÉS GRID === */
.actu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.actu-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.actu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.actu-card img { width: 100%; height: 200px; object-fit: cover; }
.actu-card-body { padding: 24px; }
.actu-card-body .cat { color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.actu-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.actu-card-body p { font-size: 14px; color: var(--text-light); }
.actu-card-body .date-meta { font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 80px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
}
.cta-section h2 { color: var(--white); font-size: 36px; margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 32px; position: relative; }

/* === FOOTER === */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.5); padding: 60px 48px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; }
.footer p, .footer li { font-size: 14px; line-height: 2; }
.footer ul { list-style: none; }
.footer a { color: rgba(255,255,255,0.5); }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; font-size: 13px;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--white); margin-bottom: 12px; }
.footer-brand .lex { color: var(--gold); }

/* === FILTERS === */
.filters-bar {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px;
  padding: 20px 24px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.filter-select {
  padding: 10px 16px; border: 2px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: var(--white);
  color: var(--text); cursor: pointer; transition: var(--transition);
}
.filter-select:focus { border-color: var(--gold); outline: none; }
.filter-search {
  flex: 1; min-width: 200px; padding: 10px 16px 10px 40px;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.44 1.158a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E") 12px center no-repeat;
}
.view-toggle { display: flex; gap: 0; margin-left: auto; }
.view-toggle button {
  padding: 10px 14px; border: 2px solid var(--border); background: var(--white);
  color: var(--text-light); cursor: pointer; font-size: 16px; transition: var(--transition);
}
.view-toggle button:first-child { border-radius: 8px 0 0 8px; }
.view-toggle button:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.view-toggle button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* === FORMS === */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: var(--navy); }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; transition: var(--transition);
}
.form-control:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer;
  transition: var(--transition);
}
.upload-zone:hover { border-color: var(--gold); background: rgba(201,168,76,0.03); }
.upload-zone .icon { font-size: 36px; margin-bottom: 8px; }
.upload-zone p { color: var(--text-light); font-size: 14px; }

/* === TWO-COLUMN LAYOUT === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* === IMPLANTATION CARDS === */
.implant-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition);
}
.implant-card:hover { border-color: var(--gold); box-shadow: var(--shadow-hover); }
.implant-card h4 { font-size: 18px; margin-bottom: 8px; }
.implant-card .address { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.implant-card .commissaires { font-size: 13px; color: var(--text); }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { align-items: center; }
  .hero-badge { margin: 0 auto 24px; }
  .subtitle { margin: 0 auto 36px !important; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header { padding: 0 20px; }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-deep); padding: 16px; }
  .main-nav.open a { padding: 14px 20px; }
  .section { padding: 60px 20px; }
  .hero { padding: 100px 20px 60px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 36px; }
  .ventes-grid { grid-template-columns: 1fr; }
  .actu-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .filters-bar { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { justify-content: center; }
  /* Hero Artcurial responsive */
  .hero-split { grid-template-columns: 1fr !important; min-height: auto !important; }
  .hero-split > div:first-child { padding: 24px !important; }
  .hero-split > div:last-child { padding: 32px 24px !important; }
  .hero-split > div:last-child h1 { font-size: 28px !important; }
  .hero-split > div:last-child h2 { font-size: 16px !important; }
  /* Sub-sales responsive */
  .sub-sales { grid-template-columns: 1fr !important; }
  .sub-sale-link { grid-template-columns: 1fr !important; border-right: none !important; border-bottom: 1px solid #ddd; }
  .sub-sale-link > div:first-child { height: 200px !important; }
  .sub-sale-link > div:last-child { padding: 20px 24px !important; }
}
