/**
 * Home — Magazine layouts (Maag-inspired, artisanat-branded)
 * Responsive-first: mobile → tablet → desktop
 */

/* ========================================
   SECTION LABELS (overline + rule)
   ======================================== */

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--wp--preset--color--nuit-medina);
}

.section-label__text {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wp--preset--color--nuit-medina);
  white-space: nowrap;
}

.section-label__link {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--argile-terracotta);
  text-decoration: none;
  white-space: nowrap;
}

.section-label__link:hover {
  text-decoration: underline;
}

.section-label__line {
  flex: 1;
  height: 0;
}

.section-label--light {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.section-label--light .section-label__text {
  color: rgba(244, 238, 229, 0.7);
}

/* Divider between sections */
.section-divider {
  border: none;
  border-top: 1px solid var(--wp--preset--color--gris-leger);
  margin: 0;
}

/* ========================================
   CONTAINER
   ======================================== */

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .home-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ========================================
   HERO — Full bleed featured
   ======================================== */

.home-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .home-hero {
    min-height: 65vh;
  }
}

@media (min-width: 1024px) {
  .home-hero {
    min-height: 75vh;
  }
}

.home-hero__bg {
  position: absolute;
  inset: 0;
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 26, 23, 0.92) 0%,
    rgba(31, 26, 23, 0.5) 35%,
    rgba(31, 26, 23, 0.15) 70%,
    transparent 100%
  );
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .home-hero__content {
    padding: 3rem 1.5rem;
  }
}

.home-hero__cat {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--wp--preset--color--argile-terracotta);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.home-hero__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  max-width: 650px;
  margin: 0;
}

.home-hero__title a {
  color: inherit;
  text-decoration: none;
}

.home-hero__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(244, 238, 229, 0.7);
  max-width: 500px;
  margin-top: 0.75rem;
  display: none;
}

@media (min-width: 768px) {
  .home-hero__excerpt {
    display: block;
  }
}

.home-hero__meta {
  font-size: 0.6875rem;
  color: rgba(244, 238, 229, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

/* ========================================
   FEATURED GRID — 1 large + 3 side
   ======================================== */

.home-section {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .home-section {
    padding: 2.5rem 0;
  }
}

@media (min-width: 1024px) {
  .home-section {
    padding: 3rem 0;
  }
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 1.75rem;
  }
}

.card__image-wrap {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--wp--preset--color--gris-leger);
}

.card__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-grid__main .card__image-wrap {
  aspect-ratio: 4/3;
}

.featured-grid__main:hover .card__image-wrap img {
  transform: scale(1.03);
}

.card__cat-tag {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--argile-terracotta);
  text-decoration: none;
  margin-top: 0.75rem;
}

.card__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0.35rem;
  color: var(--wp--preset--color--nuit-medina);
}

@media (min-width: 768px) {
  .featured-grid__main .card__title {
    font-size: 1.5rem;
  }
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a:hover {
  color: var(--wp--preset--color--argile-terracotta);
}

.card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--wp--preset--color--gris-chaud);
  margin-top: 0.4rem;
}

.card__meta {
  font-size: 0.6875rem;
  color: var(--wp--preset--color--gris-chaud);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

/* Side stack */
.featured-grid__side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  align-items: start;
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--wp--preset--color--gris-leger);
}

.side-card:first-child {
  padding-top: 0;
}

.side-card:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .side-card {
    grid-template-columns: 110px 1fr;
  }
}

.side-card__image {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--wp--preset--color--gris-leger);
}

.side-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-card:hover .side-card__image img {
  transform: scale(1.05);
}

.side-card__cat {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--argile-terracotta);
  margin: 0;
}

.side-card__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wp--preset--color--nuit-medina);
  margin-top: 0.15rem;
}

.side-card:hover .side-card__title {
  color: var(--wp--preset--color--argile-terracotta);
}

.side-card__meta {
  font-size: 0.625rem;
  color: var(--wp--preset--color--gris-chaud);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* ========================================
   HORIZONTAL STRIP — Topic of the week
   ======================================== */

.topic-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.topic-strip__card {
  text-decoration: none;
  display: block;
}

.topic-strip__image {
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--wp--preset--color--gris-leger);
}

.topic-strip__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.topic-strip__card:hover .topic-strip__image img {
  transform: scale(1.05);
}

.topic-strip__cat {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--argile-terracotta);
  margin-top: 0.5rem;
  display: block;
}

.topic-strip__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wp--preset--color--nuit-medina);
  margin-top: 0.15rem;
}

.topic-strip__card:hover .topic-strip__title {
  color: var(--wp--preset--color--argile-terracotta);
}

@media (max-width: 1023px) {
  .topic-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .topic-strip__card:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 599px) {
  .topic-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .topic-strip__card {
    min-width: 65vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .topic-strip__card:nth-child(n+4) {
    display: block;
  }
}

/* ========================================
   NEWS GRID — 1 large + 2 stacked
   ======================================== */

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.75rem;
  }
}

.news-grid__main .card__image-wrap {
  aspect-ratio: 16/10;
}

.news-grid__main .card__title {
  font-size: 1.3rem;
}

@media (min-width: 768px) {
  .news-grid__main .card__title {
    font-size: 1.5rem;
  }
}

.news-grid__side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ========================================
   POPULAR — Featured + numbered list
   ======================================== */

.popular-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .popular-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
  }
}

.popular-featured {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.popular-featured__bg {
  position: absolute;
  inset: 0;
}

.popular-featured__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 26, 23, 0.85) 0%,
    rgba(31, 26, 23, 0.3) 60%,
    transparent 100%
  );
}

.popular-featured__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

.popular-featured__cat {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--sable-kasbah);
}

.popular-featured__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin-top: 0.35rem;
}

.popular-featured__title a {
  color: inherit;
  text-decoration: none;
}

.popular-featured__excerpt {
  font-size: 0.8125rem;
  color: rgba(244, 238, 229, 0.6);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.popular-featured {
  min-height: 280px;
}

@media (min-width: 768px) {
  .popular-featured {
    min-height: 400px;
  }
  .popular-featured__title {
    font-size: 1.5rem;
  }
}

/* Numbered list */
.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pop;
}

.popular-list__item {
  counter-increment: pop;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--wp--preset--color--gris-leger);
}

.popular-list__item:last-child {
  border-bottom: none;
}

.popular-list__num {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wp--preset--color--gris-leger);
  line-height: 1;
  min-width: 2rem;
  text-align: right;
}

.popular-list__cat {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--argile-terracotta);
  margin: 0;
}

.popular-list__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wp--preset--color--nuit-medina);
  margin-top: 0.1rem;
}

.popular-list__title a {
  color: inherit;
  text-decoration: none;
}

.popular-list__title a:hover {
  color: var(--wp--preset--color--argile-terracotta);
}

/* ========================================
   CITIES — 4 column portrait cards
   ======================================== */

.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .cities-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.city-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}

.city-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-card:hover img {
  transform: scale(1.05);
}

.city-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 26, 23, 0.75) 0%,
    rgba(31, 26, 23, 0.05) 55%,
    transparent 100%
  );
}

.city-card__content {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.city-card__name {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.city-card__count {
  font-size: 0.6875rem;
  color: rgba(244, 238, 229, 0.55);
  margin-top: 0.15rem;
}

/* ========================================
   GUIDE SECTION — Image + text
   ======================================== */

.guide-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .guide-row {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.guide-row__image {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--wp--preset--color--gris-leger);
}

.guide-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-row__overline {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wp--preset--color--argile-terracotta);
}

.guide-row__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--wp--preset--color--nuit-medina);
  margin-top: 0.5rem;
}

.guide-row__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--wp--preset--color--gris-chaud);
  margin-top: 0.75rem;
}

.guide-row__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--argile-terracotta);
  text-decoration: none;
  margin-top: 1rem;
  transition: gap 0.3s;
}

.guide-row__link:hover {
  gap: 0.6rem;
}

.guide-row__link::after {
  content: "→";
}

   PRODUCT SHELF
   ======================================== */

.product-shelf {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .product-shelf {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.product-card {
  border: 1px solid var(--wp--preset--color--gris-leger);
  border-radius: 4px;
  overflow: hidden;
  background: var(--wp--preset--color--blanc-chaux);
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(31, 26, 23, 0.08);
}

.product-card__image {
  aspect-ratio: 1;
  background: var(--wp--preset--color--platre-riad);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--wp--preset--color--gris-leger);
}

.product-card__placeholder {
  width: 40px;
  height: 40px;
  border: 2px dashed var(--wp--preset--color--gris-leger);
  border-radius: 50%;
}

.product-card__body {
  padding: 0.75rem;
}

.product-card__origin {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--gris-chaud);
  margin: 0;
}

.product-card__name {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wp--preset--color--nuit-medina);
  margin-top: 0.2rem;
}

.product-card__price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wp--preset--color--argile-terracotta);
  margin-top: 0.35rem;
}

/* ========================================
   LATEST NEWS — List with thumbnails
   ======================================== */

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latest-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--wp--preset--color--gris-leger);
  text-decoration: none;
}

.latest-item:last-child {
  border-bottom: none;
}

.latest-item__image {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--wp--preset--color--gris-leger);
}

.latest-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-item__cat {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--argile-terracotta);
  margin: 0;
}

.latest-item__title {
  font-family: var(--wp--preset--font-family--display);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wp--preset--color--nuit-medina);
  margin-top: 0.1rem;
}

.latest-item:hover .latest-item__title {
  color: var(--wp--preset--color--argile-terracotta);
}

.latest-item__meta {
  font-size: 0.625rem;
  color: var(--wp--preset--color--gris-chaud);
  margin-top: 0.15rem;
}

/* ========================================
   UTILITY
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.bg-platre { background: var(--wp--preset--color--platre-riad); }
.bg-nuit { background: var(--wp--preset--color--nuit-medina); }
.bg-blanc { background: var(--wp--preset--color--blanc-chaux); }

/* ========================================
   SECTION TRANSITION - Full Width
   ======================================== */

.transition-section,
.transition {
  width: 100%;
  max-width: 100%;
}

.transition {
  background: #EDE6DA;
  padding: 100px 40px;
}

@media (min-width: 768px) {
  .transition {
    padding: 100px 40px;
  }
}

.transition-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}


/* FIX: Transition section full-width breakout (2026-03-26) */
.transition-section.wp-block-group {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

section.transition {
  width: 100vw !important;
  max-width: none !important;
  position: relative !important;
  left: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: #EDE6DA;
  box-sizing: border-box;
}

.transition-section {
  overflow-x: clip;
}

/* Prevent horizontal overflow from 100vw breakouts */
body {
  overflow-x: clip;
}
