/* ── Variables ── */
:root {
  --red:        #E24B4A;
  --red-dark:   #A32D2D;
  --red-light:  #FCEBEB;
  --purple:     #534AB7;
  --purple-light: #EEEDFE;
  --green-light: #EAF3DE;
  --amber-light: #FAEEDA;
  --gray-bg:    #F5F5F5;
  --border:     rgba(0,0,0,0.08);
  --radius:     10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--gray-bg); color: #1a1a1a; }
a { text-decoration: none; }

/* ── Topbar ── */
.topbar { background: var(--red); color: #fff; font-size: 12px; padding: 6px 20px; display: flex; 
justify-content: space-between; }
.topbar a { color: #fff; }

/* ── Header ── */
.header { background: #fff; border-bottom: 0.5px solid var(--border); padding: 12px 20px; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.logo { font-size: 20px; font-weight: 700; color: var(--red); flex-shrink: 0; }
.logo span { color: #1a1a1a; }
.search-bar { flex: 1; display: flex; align-items: center; gap: 8px; background: #f9f9f9; border: 0.5px solid 
#ddd; border-radius: var(--radius); padding: 0 12px; height: 36px; }
.search-bar input { border: none; background: transparent; font-size: 13px; outline: none; flex: 1; font-family: 
'Inter', sans-serif; }
.search-bar svg { opacity: 0.4; flex-shrink: 0; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { font-size: 13px; font-weight: 500; color: #444; padding: 6px 12px; border-radius: 6px; transition: 
all 0.15s; }
.main-nav a:hover, .main-nav a.active { background: var(--red-light); color: var(--red-dark); }

/* ── Catégories ── */
.cats-bar { background: #fff; border-bottom: 0.5px solid var(--border); padding: 8px 20px; display: flex; gap: 
6px; overflow-x: auto; }
.cat-pill { font-size: 11px; padding: 4px 12px; border-radius: 20px; border: 0.5px solid var(--border); color: 
#555; white-space: nowrap; transition: all 0.15s; }
.cat-pill:hover, .cat-pill.active { background: var(--red-light); color: var(--red-dark); border-color: 
rgba(226,75,74,0.3); }

/* ── Contenu principal ── */
.main-content { max-width: 1200px; margin: 0 auto; padding: 16px 20px; }

/* ── Hero ── */
.hero { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.hero-inner { background: var(--red-light); border-radius: 12px; padding: 24px; display: flex; align-items: 
center; justify-content: space-between; gap: 16px; }
.hero-txt h1 { font-size: 22px; font-weight: 700; color: #791F1F; margin-bottom: 6px; line-height: 1.3; }
.hero-txt p { font-size: 13px; color: var(--red-dark); margin-bottom: 14px; }
.hero-cta { background: var(--red); color: #fff; border: none; border-radius: 8px; padding: 9px 18px; font-size: 
13px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; }
.hero-cta:hover { background: var(--red-dark); }
.hero-badges { display: flex; gap: 8px; flex-shrink: 0; }
.hero-badge { background: var(--red); color: #fff; border-radius: 12px; padding: 12px 18px; text-align: center; 
min-width: 90px; }
.hero-badge.dark { background: var(--red-dark); }
.hero-badge .num { font-size: 24px; font-weight: 700; display: block; line-height: 1.1; }
.hero-badge .lbl { font-size: 10px; opacity: 0.85; margin-top: 3px; display: block; }

/* ── Stats ── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 12px; text-align: center; border: 0.5px 
solid var(--border); }
.stat-card .num { font-size: 18px; font-weight: 700; display: block; }
.stat-card .lbl { font-size: 11px; color: #888; margin-top: 2px; }

/* ── Titres sections ── */
.section-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; 
justify-content: space-between; }
.section-title a { font-size: 12px; font-weight: 400; color: #378ADD; }
.badge-new { font-size: 10px; background: var(--green-light); color: #27500A; border-radius: 4px; padding: 2px 
6px; margin-left: 6px; }
.badge-exp { font-size: 10px; background: var(--amber-light); color: #633806; border-radius: 4px; padding: 2px 
6px; margin-left: 6px; }

/* ── Grille catalogues ── */
.catalogue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.cat-card { background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; 
cursor: pointer; transition: border-color 0.15s; }
.cat-card:hover { border-color: rgba(226,75,74,0.3); }
.cat-card .cat-img { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 28px; 
}
.cat-card .cat-body { padding: 8px 10px; }
.cat-card .cat-name { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.cat-card .cat-date { font-size: 10px; color: #aaa; }

/* ── Grille bons plans ── */
.bons-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.bp-card { background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius); padding: 12px; }
.bp-tag { font-size: 10px; background: #E6F1FB; color: #0C447C; border-radius: 4px; padding: 2px 7px; display: 
inline-block; margin-bottom: 8px; }
.bp-tag.remb { background: var(--green-light); color: #27500A; }
.bp-tag.grat { background: #FBEAF0; color: #72243E; }
.bp-discount { font-size: 15px; font-weight: 700; color: var(--red-dark); float: right; }
.bp-title { font-size: 12px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; clear: right; }
.bp-enseigne { font-size: 11px; color: #aaa; }

/* ── Enseignes ── */
.enseignes-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ens-chip { background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius); padding: 7px 
12px; font-size: 12px; color: #555; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: 
all 0.15s; }
.ens-chip:hover { background: var(--red-light); border-color: rgba(226,75,74,0.25); color: var(--red-dark); }
.ens-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Newsletter ── */
.newsletter { background: var(--purple-light); border-radius: 14px; padding: 20px 24px; display: flex; 
align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.newsletter-txt { flex: 1; }
.newsletter-txt h3 { font-size: 14px; font-weight: 600; color: #26215C; margin-bottom: 4px; }
.newsletter-txt p { font-size: 12px; color: var(--purple); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { border: 0.5px solid #AFA9EC; border-radius: 8px; padding: 8px 12px; font-size: 13px; 
outline: none; width: 200px; font-family: 'Inter', sans-serif; }
.newsletter-form button { background: var(--purple); color: #EEEDFE; border: none; border-radius: 8px; padding: 
8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; }
.newsletter-form button:hover { background: #3C3489; }

/* ── Footer ── */
.footer { background: #fff; border-top: 0.5px solid var(--border); padding: 14px 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: 
space-between; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: #aaa; }
.footer-links a:hover { color: var(--red); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
  .bons-plans-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-badges { justify-content: center; }
  .main-nav { display: none; position:absolute; top:60px; left:0; right:0; background:#fff; border-top:0.5px solid rgba(0,0,0,0.08); padding:12px 16px; flex-direction:column; gap:4px; box-shadow:0 4px 20px rgba(0,0,0,0.1); z-index:999; }
  .main-nav.open { display:flex; }
  .main-nav a { padding:10px 12px; border-radius:8px; font-size:14px; display:block; }
  .hamburger { display:flex !important; }
  .search-bar { flex:1; max-width:100%; }
  .header-inner { position:relative; flex-wrap:nowrap; }
  .newsletter { flex-direction: column; text-align: center; }
  .newsletter-form input { width: 100%; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}

/* ── Fix footer mobile ── */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .footer-links a {
    font-size: 11px;
  }
  .cats-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cats-bar::-webkit-scrollbar { display: none; }
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .search-bar {
    width: 100%;
  }
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bons-plans-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-badges {
    justify-content: center;
  }
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .enseignes-row {
    gap: 6px;
  }
  .ens-chip {
    font-size: 11px;
    padding: 5px 8px;
  }
  .newsletter {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  .newsletter-form input {
    width: 100% !important;
  }
}

/* Hamburger button */
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; margin-left:8px; }
.hamburger span { display:block; width:22px; height:2px; background:#1a1a1a; border-radius:2px; transition:all .3s; }
.hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }
