/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1A56DB;
  --blue-dark:  #1035A0;
  --blue-light: #E8F0FE;
  --red:        #C0392B;
  --green:      #1E7E34;
  --green-light:#E6F4EA;
  --amber:      #D97706;
  --amber-light:#FEF3C7;
  --gray-50:    #F8F9FA;
  --gray-100:   #F1F3F5;
  --gray-200:   #E9ECEF;
  --gray-400:   #ADB5BD;
  --gray-600:   #6C757D;
  --gray-800:   #343A40;
  --gray-900:   #212529;
  --white:      #FFFFFF;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}
.logo-main { color: var(--gray-900); }
.logo-accent { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }

.nav-urgent {
  background: var(--amber-light);
  color: var(--amber) !important;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600 !important;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
  color: var(--gray-800);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--gray-100);
  gap: 14px;
}
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
}
.nav-mobile.open { display: flex; }

/* === HERO === */
.hero {
  background: linear-gradient(160deg, #0D2060 0%, #1A56DB 100%);
  color: var(--white);
  padding: 64px 0 0;
}

.hero-inner { max-width: 720px; }

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-accent {
  position: relative;
  display: inline-block;
}
.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #F59E0B;
  border-radius: 2px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 32px;
  max-width: 560px;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 0;
  max-width: 620px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  margin-bottom: 16px;
}

.search-bar input {
  flex: 1;
  padding: 16px 20px;
  font-size: 15px;
  border: none;
  outline: none;
  color: var(--gray-900);
  font-family: 'Inter', sans-serif;
}

.search-bar button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: #F59E0B;
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.search-bar button:hover { background: #D97706; }

.search-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.tag-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.stag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.90);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.stag:hover { background: rgba(255,255,255,0.22); }

/* Stats bar */
.hero-stats {
  background: rgba(0,0,0,0.20);
  margin-top: 8px;
}
.hero-stats-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
  overflow-x: auto;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
  white-space: nowrap;
}
.stat strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
.stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.20);
  flex-shrink: 0;
}

/* === RENTRÉE BANNER === */
.rentree-banner {
  background: #FFFBEB;
  border-top: 3px solid #F59E0B;
  border-bottom: 1px solid #FDE68A;
  padding: 40px 0;
}

.rentree-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rentree-badge {
  display: inline-block;
  background: #F59E0B;
  color: var(--gray-900);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.rentree-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.rentree-text p {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 560px;
}

.rentree-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.rcard {
  background: var(--white);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rcard-icon { font-size: 26px; }
.rcard-name { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.rcard-price { font-size: 13px; color: var(--gray-600); }
.rcard-price strong { color: var(--blue); font-size: 16px; }

.rcard-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
  width: fit-content;
}
.rcard-tag.recond { background: var(--green-light); color: var(--green); }
.rcard-tag.neuf   { background: var(--blue-light);  color: var(--blue-dark); }
.rcard-tag.promo  { background: #FECACA; color: var(--red); }

.rentree-cta {
  display: inline-block;
  background: var(--gray-900);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  width: fit-content;
  transition: background 0.15s;
}
.rentree-cta:hover { background: #000; }

/* === SECTIONS === */
.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
}

.section-sub {
  font-size: 15px;
  color: var(--gray-600);
  margin-top: 4px;
}

/* Refresh badge */
.refresh-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}
.pulse {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.4); }
}

/* === OFFRES GRID === */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.offer-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.offer-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.offer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.offer-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.badge-promo { background: #FECACA; color: var(--red); }
.badge-recond { background: var(--green-light); color: var(--green); }
.badge-hot  { background: #FEE2E2; color: #991B1B; }

.offer-store {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

.offer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
}

.offer-location {
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

.offer-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.offer-price-now {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
}
.offer-price-old {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
}
.offer-price-save {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.offer-histo {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}
.offer-histo-bar {
  flex: 1;
  background: var(--blue-light);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}
.offer-histo-bar.current { background: var(--blue); }

.offer-histo-label {
  font-size: 10px;
  color: var(--gray-400);
  margin-top: 2px;
}

.offer-cta {
  display: block;
  text-align: center;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
  transition: background 0.15s;
}
.offer-cta:hover { background: var(--blue-dark); color: var(--white); }

/* === CATÉGORIES === */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.cat-primary {
  border-left: 3px solid var(--blue);
}

.cat-recond {
  border-left: 3px solid var(--green);
  background: var(--green-light);
}

.cat-icon { font-size: 28px; flex-shrink: 0; }

.cat-info { flex: 1; }
.cat-info h3 { font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.cat-info p  { font-size: 12px; color: var(--gray-600); }

.cat-count {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 20px;
}
.recond-tag { color: var(--green); background: rgba(30,126,52,0.12); }

.cat-arrow { color: var(--gray-400); font-size: 18px; flex-shrink: 0; }

/* === MAGASINS === */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.store-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.store-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.store-info { flex: 1; }
.store-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--gray-900); }
.store-info span   { font-size: 12px; color: var(--gray-500); }

.store-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.store-badge-green {
  color: var(--green);
  background: var(--green-light);
}

/* === ALERTES === */
.alertes-section {
  background: linear-gradient(135deg, #0D2060 0%, #1A56DB 100%);
  color: var(--white);
}

.alertes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.alertes-icon { font-size: 36px; margin-bottom: 12px; }

.alertes-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.alertes-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 20px;
}

.alertes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alertes-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.alertes-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.alertes-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alertes-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.alertes-form input {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  color: var(--gray-900);
  transition: border-color 0.15s;
}
.alertes-form input:focus { border-color: var(--blue); }

.alertes-form button {
  margin-top: 6px;
  padding: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.alertes-form button:hover { background: var(--blue-dark); }

.form-note {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
}

/* === GUIDES === */
.guide-section { background: var(--gray-50); }

.guide-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 28px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.guide-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s;
}
.guide-card:hover { box-shadow: var(--shadow-md); }

.guide-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
}

.guide-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
}
.guide-card p {
  font-size: 13px;
  color: var(--gray-600);
  flex: 1;
}

.guide-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 4px;
}

/* === FOOTER === */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo-main { color: var(--white); }
.footer-brand .logo-accent { color: #60A5FA; }
.footer-brand p {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }

  .hero { padding: 40px 0 0; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 15px; }

  .search-bar { flex-direction: column; border-radius: var(--radius-md); }
  .search-bar input,
  .search-bar button { border-radius: 0; width: 100%; justify-content: center; }
  .search-bar input { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .search-bar button { border-radius: 0 0 var(--radius-md) var(--radius-md); }

  .hero-stats-inner { gap: 0; }
  .stat { padding: 0 16px; }

  .rentree-cards { grid-template-columns: 1fr 1fr; }

  .alertes-inner { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .rentree-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .offers-grid { grid-template-columns: 1fr; }
}

/* === SKELETON LOADER === */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  pointer-events: none;
}
.sk-line, .sk-price, .sk-btn {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}
.sk-short  { height: 12px; width: 40%; }
.sk-full   { height: 14px; width: 90%; }
.sk-medium { height: 12px; width: 60%; }
.sk-price  { height: 28px; width: 50%; margin-top: 8px; }
.sk-btn    { height: 36px; width: 100%; border-radius: var(--radius-sm); margin-top: 8px; }
