/* ================================
   MMB HOME MAGAZINE - STYLES
================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Manrope:wght@400;500;600&display=swap');

:root {
  --orange: #FF5C35;
  --orange-light: #FFF1EE;
  --dark: #111111;
  --gray: #6B6B6B;
  --border: #E8E8E8;
  --bg: #F9F8F6;
  --white: #ffffff;
  --blue: #E6F1FB;
  --green: #EAF3DE;
  --purple: #F0EEFF;
}

.mmb-home {
  font-family: 'Manrope', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- TAGS ---- */
.mmb-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: var(--orange-light);
  color: var(--orange);
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
  margin-bottom: 0.6rem;
}
.mmb-tag--small { font-size: 9px; padding: 2px 8px; }

/* ---- HERO ---- */
.mmb-hero { margin: 2rem 0 3rem; }
.mmb-hero__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.mmb-hero__featured {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mmb-hero__img {
  position: absolute;
  inset: 0;
}
.mmb-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mmb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.mmb-hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}
.mmb-hero__content .mmb-tag {
  background: rgba(255,92,53,0.9);
  color: white;
}
.mmb-hero__title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.mmb-hero__title a { color: white; text-decoration: none; }
.mmb-hero__title a:hover { color: var(--orange); }
.mmb-hero__excerpt {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.mmb-hero__btn {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.mmb-hero__btn:hover { opacity: 0.85; }

/* Sidebar hero */
.mmb-hero__sidebar { display: flex; flex-direction: column; gap: 1rem; }
.mmb-hero__side-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mmb-hero__side-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.mmb-side-img { width: 110px; flex-shrink: 0; }
.mmb-side-img img { width: 100%; height: 100%; object-fit: cover; }
.mmb-side-body { padding: 1rem; }
.mmb-side-body h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  margin: 0.3rem 0 0.5rem;
}
.mmb-side-body h3 a { color: var(--dark); text-decoration: none; }
.mmb-side-body h3 a:hover { color: var(--orange); }
.mmb-date { font-size: 11px; color: var(--gray); }

/* ---- CATÉGORIES ---- */
.mmb-cats {
  margin-bottom: 2.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mmb-cats__inner { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.mmb-cats__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); }
.mmb-cat-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--dark);
  text-decoration: none;
  transition: all 0.2s;
}
.mmb-cat-pill:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }

/* ---- SECTION HEADERS ---- */
.mmb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.mmb-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.mmb-see-all {
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.mmb-see-all:hover { color: var(--orange); border-color: var(--orange); }

/* ---- GRILLE ARTICLES ---- */
.mmb-articles { margin-bottom: 3.5rem; }
.mmb-articles__inner { }

.mmb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mmb-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mmb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}
.mmb-card__img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.mmb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.mmb-card:hover .mmb-card__img img { transform: scale(1.03); }
.mmb-card__img--placeholder {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.mmb-card__body { padding: 1.1rem; }
.mmb-card__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  margin: 0.4rem 0 0.5rem;
}
.mmb-card__title a { color: var(--dark); text-decoration: none; }
.mmb-card__title a:hover { color: var(--orange); }
.mmb-card__excerpt { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 0.75rem; }
.mmb-card__meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray); }
.mmb-read-time { font-weight: 600; }

/* ---- OUTILS ---- */
.mmb-tools {
  background: var(--bg);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
}
.mmb-tools__label { font-size: 12px; color: var(--gray); font-weight: 500; font-style: italic; }
.mmb-tools__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mmb-tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}
.mmb-tool-card--featured { border-color: var(--orange); }
.mmb-tool-card__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.mmb-tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.mmb-tool-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; }
.mmb-tool-cat { font-size: 11px; color: var(--gray); }
.mmb-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.mmb-badge--blue { background: var(--blue); color: #185FA5; }
.mmb-badge--green { background: var(--green); color: #3B6D11; }
.mmb-badge--orange { background: var(--orange-light); color: var(--orange); }
.mmb-badge--purple { background: var(--purple); color: #5B2DB0; }

.mmb-tool-desc { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 1rem; }
.mmb-tool-btn {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.mmb-tool-btn:hover { opacity: 0.85; }
.mmb-tool-btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.mmb-tool-btn--outline:hover { border-color: var(--orange); color: var(--orange); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .mmb-hero__inner { grid-template-columns: 1fr; }
  .mmb-hero__sidebar { flex-direction: row; }
  .mmb-grid { grid-template-columns: repeat(2, 1fr); }
  .mmb-tools__grid { grid-template-columns: 1fr; }
  .mmb-newsletter { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .mmb-grid { grid-template-columns: 1fr; }
  .mmb-hero__sidebar { flex-direction: column; }
  .mmb-nl-form { flex-direction: column; }
  .mmb-nl-form input { width: 100%; }
}
