/* Le Mag — page d'accueil /blog — Figma Make
   Primary #E8203A · Ink #0D1B2A · Mute #6B7280
   Hero typo : text-xs / text-5xl lg:text-7xl / text-xl
*/

.nq-c-Mag {
  font-family: var(--check-font-body, 'DM Sans', Helvetica, Arial, sans-serif);
  color: #0D1B2A;
  background: #fff;
}

.nq-c-Mag-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  box-sizing: border-box;
}

.nq-c-Mag-hero {
  text-align: center;
  margin-bottom: 64px;
}

/* text-xs · tracking-widest · mb-4 */
.nq-c-Mag-eyebrow {
  margin: 0 0 16px;
  font-family: var(--check-font-body, 'DM Sans', Helvetica, Arial, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #E8203A;
}

/* text-5xl lg:text-7xl · font-black · mb-5 */
.nq-c-Mag h1.nq-c-Mag-title,
.nq-c-Mag-title {
  margin: 0 0 20px;
  font-family: var(--check-font-display, 'Poppins', 'DM Sans', Helvetica, Arial, sans-serif);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #0D1B2A;
}

.nq-c-Mag-titleAccent {
  color: #E8203A;
}

/* text-xl · max-w-2xl · leading-relaxed */
.nq-c-Mag-lead {
  margin: 0 auto;
  max-width: 672px;
  font-family: var(--check-font-body, 'DM Sans', Helvetica, Arial, sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.625;
  color: #6B7280;
}

@media (min-width: 1024px) {
  .nq-c-Mag h1.nq-c-Mag-title,
  .nq-c-Mag-title {
    font-size: 72px;
    line-height: 1.05;
  }
}

@media (max-width: 639px) {
  .nq-c-Mag-inner {
    padding: 48px 16px 72px;
  }

  .nq-c-Mag-hero {
    margin-bottom: 40px;
  }

  /* Maquette : text-5xl (48px) conservé ; léger ajustement très petit écran */
  .nq-c-Mag h1.nq-c-Mag-title,
  .nq-c-Mag-title {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.04;
  }

  .nq-c-Mag-lead {
    font-size: 18px;
    line-height: 1.6;
  }
}

.nq-c-Mag-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.nq-c-Mag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.nq-c-Mag-empty {
  text-align: center;
  color: #6B7280;
  padding: 48px 0;
}

/* ── City card ─────────────────────────────────────────── */
.nq-c-MagCard {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  height: 250px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nq-c-MagCard--featured {
  height: 440px;
}

.nq-c-MagCard:hover,
.nq-c-MagCard:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  outline: none;
}

.nq-c-MagCard-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.nq-c-MagCard-img--placeholder {
  background: linear-gradient(135deg, #1a2a3a 0%, #0D1B2A 100%);
}

.nq-c-MagCard:hover .nq-c-MagCard-img,
.nq-c-MagCard:focus-visible .nq-c-MagCard-img {
  transform: scale(1.05);
}

.nq-c-MagCard-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 18, 30, 0.62) 0%,
    rgba(10, 18, 30, 0.18) 45%,
    transparent 100%
  );
}

.nq-c-MagCard-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}

.nq-c-MagCard-name {
  font-family: var(--check-font-display, 'Poppins', Helvetica, Arial, sans-serif);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.nq-c-MagCard--featured .nq-c-MagCard-name {
  font-size: 26px;
  letter-spacing: 0.01em;
}

.nq-c-MagCard-tagline {
  font-style: italic;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.nq-c-MagCard--featured .nq-c-MagCard-tagline {
  font-size: 13px;
}

.nq-c-MagCard-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #E8203A;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nq-c-MagCard:hover .nq-c-MagCard-cta,
.nq-c-MagCard:focus-visible .nq-c-MagCard-cta {
  background: #c91a32;
}

@media (min-width: 640px) {
  .nq-c-Mag-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nq-c-Mag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .nq-c-Mag-inner {
    padding: 64px 24px 112px;
  }

  .nq-c-Mag-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .nq-c-MagCard--featured {
    height: 320px;
  }
}

/* ── Ville du Mag ─────────────────────────────────────── */
.nq-c-MagCity {
  font-family: var(--check-font-body, 'DM Sans', Helvetica, Arial, sans-serif);
  color: #0D1B2A;
  background: #fff;
}

.nq-c-MagCity-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 55vw, 520px);
  background: #0D1B2A;
}

.nq-c-MagCity-heroImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nq-c-MagCity-heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 27, 42, 0.28) 0%, rgba(13, 27, 42, 0.72) 100%);
}

.nq-c-MagCity-heroInner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: clamp(300px, 55vw, 520px);
  margin: 0 auto;
  padding: 32px 24px 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.nq-c-MagCity-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nq-c-MagCity-back:hover,
.nq-c-MagCity-back:focus-visible {
  text-decoration: underline;
}

.nq-c-MagCity-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(232, 32, 58, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.nq-c-MagCity-title {
  margin: 0 0 12px;
  font-family: var(--check-font-display, 'Poppins', Helvetica, Arial, sans-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.nq-c-MagCity-tagline {
  margin: 0;
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.nq-c-MagCity-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  box-sizing: border-box;
}

.nq-c-MagCity-description {
  margin: 0 0 40px;
  max-width: 920px;
  font-size: 14px;
  line-height: 1.7;
  color: #6B7280;
}

.nq-c-MagArticles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.nq-c-MagArticleCard {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nq-c-MagArticleCard:hover,
.nq-c-MagArticleCard:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  outline: none;
}

.nq-c-MagArticleCard-media {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.nq-c-MagArticleCard--featured .nq-c-MagArticleCard-media {
  height: 300px;
}

.nq-c-MagArticleCard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.nq-c-MagArticleCard-img--placeholder {
  background: linear-gradient(135deg, #d9dee3 0%, #bfc8d1 100%);
}

.nq-c-MagArticleCard:hover .nq-c-MagArticleCard-img,
.nq-c-MagArticleCard:focus-visible .nq-c-MagArticleCard-img {
  transform: scale(1.05);
}

.nq-c-MagArticleCard-mediaOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.35) 0%, transparent 60%);
}

.nq-c-MagArticleCard-content {
  padding: 24px;
}

.nq-c-MagArticleCard-meta {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #9CA3AF;
}

.nq-c-MagArticleCard-title {
  margin: 0 0 12px;
  font-family: var(--check-font-display, 'Poppins', Helvetica, Arial, sans-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  color: #0D1B2A;
}

.nq-c-MagArticleCard--featured .nq-c-MagArticleCard-title {
  font-size: 22px;
}

.nq-c-MagArticleCard-excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #6B7280;
}

.nq-c-MagArticleCard-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #E8203A;
}

.nq-c-MagArticleCard:hover .nq-c-MagArticleCard-title,
.nq-c-MagArticleCard:focus-visible .nq-c-MagArticleCard-title,
.nq-c-MagArticleCard:hover .nq-c-MagArticleCard-link,
.nq-c-MagArticleCard:focus-visible .nq-c-MagArticleCard-link {
  text-decoration: underline;
}

.nq-c-BlogPagination {
  margin-top: 48px;
}

@media (min-width: 768px) {
  .nq-c-MagArticles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .nq-c-MagCity-heroInner,
  .nq-c-MagCity-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nq-c-MagCity-heroInner {
    padding-bottom: 40px;
  }

  .nq-c-MagCity-title {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.04;
  }

  .nq-c-MagCity-tagline {
    font-size: 18px;
  }

  .nq-c-MagArticleCard--featured .nq-c-MagArticleCard-media {
    height: 240px;
  }
}

/* ── Article du Mag ───────────────────────────────────── */
.nq-c-MagArticle {
  font-family: var(--check-font-body, 'DM Sans', Helvetica, Arial, sans-serif);
  color: #0D1B2A;
  background: #fff;
}

.nq-c-MagArticle-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 55vw, 520px);
  background: #0D1B2A;
}

.nq-c-MagArticle-heroImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nq-c-MagArticle-heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 27, 42, 0.15) 0%, rgba(13, 27, 42, 0.8) 100%);
}

.nq-c-MagArticle-heroInner {
  position: relative;
  z-index: 1;
  min-height: clamp(300px, 55vw, 520px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.nq-c-MagArticle-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nq-c-MagArticle-back:hover,
.nq-c-MagArticle-back:focus-visible {
  text-decoration: underline;
}

.nq-c-MagArticle-title {
  max-width: 840px;
  margin: 0 0 16px;
  font-family: var(--check-font-display, 'Poppins', Helvetica, Arial, sans-serif);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
}

.nq-c-MagArticle-meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.nq-c-MagArticle-shell {
  padding: 64px 24px 0;
}

.nq-c-MagArticle-body {
  max-width: 720px;
  margin: 0 auto;
}

.nq-c-MagArticle-intro {
  margin: 0 0 32px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.7;
  color: #0D1B2A;
}

.nq-c-MagArticle-editor {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.nq-c-MagRelated {
  padding: 64px 24px 80px;
}

.nq-c-MagRelated-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 64px;
  border-top: 1px solid #F3F4F6;
}

.nq-c-MagRelated-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.nq-c-MagRelated-title {
  margin: 0;
  font-family: var(--check-font-display, 'Poppins', Helvetica, Arial, sans-serif);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  color: #0D1B2A;
}

.nq-c-MagRelated-swiper {
  overflow: visible;
}

.nq-c-MagRelated-swiper .swiper-slide {
  width: min(100%, 380px);
}

.nq-c-MagRelated-card {
  display: block;
  overflow: hidden;
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nq-c-MagRelated-card:hover,
.nq-c-MagRelated-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  outline: none;
}

.nq-c-MagRelated-cardMedia {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.nq-c-MagRelated-cardImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.nq-c-MagRelated-cardImg--placeholder {
  background: linear-gradient(135deg, #d9dee3 0%, #bfc8d1 100%);
}

.nq-c-MagRelated-card:hover .nq-c-MagRelated-cardImg,
.nq-c-MagRelated-card:focus-visible .nq-c-MagRelated-cardImg {
  transform: scale(1.05);
}

.nq-c-MagRelated-cardContent {
  padding: 20px;
}

.nq-c-MagRelated-cardTitle {
  margin: 0 0 12px;
  font-family: var(--check-font-display, 'Poppins', Helvetica, Arial, sans-serif);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  color: #0D1B2A;
}

.nq-c-MagRelated-cardLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #E8203A;
}

.nq-c-MagRelated-card:hover .nq-c-MagRelated-cardTitle,
.nq-c-MagRelated-card:focus-visible .nq-c-MagRelated-cardTitle,
.nq-c-MagRelated-card:hover .nq-c-MagRelated-cardLink,
.nq-c-MagRelated-card:focus-visible .nq-c-MagRelated-cardLink {
  text-decoration: underline;
}

.nq-c-MagRelated-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.nq-c-MagRelated-nav .swiper-button-prev,
.nq-c-MagRelated-nav .swiper-button-next {
  position: static;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #0D1B2A;
}

.nq-c-MagRelated-nav .swiper-button-prev:after,
.nq-c-MagRelated-nav .swiper-button-next:after {
  font-size: 15px;
  font-weight: 700;
}

.nq-c-MagRelated-nav .swiper-button-disabled {
  opacity: 0.35;
}

@media (max-width: 639px) {
  .nq-c-MagArticle-heroInner,
  .nq-c-MagArticle-shell,
  .nq-c-MagRelated {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nq-c-MagArticle-heroInner {
    padding-bottom: 40px;
  }

  .nq-c-MagArticle-title {
    font-size: clamp(26px, 8vw, 36px);
  }

  .nq-c-MagArticle-intro {
    font-size: 18px;
  }

  .nq-c-MagRelated-title {
    font-size: 28px;
  }

  .nq-c-MagRelated-swiper .swiper-slide {
    width: min(100%, 300px);
  }
}
