/* =====================================================================
   Des etoiles dans leurs yeux — Nouveautes de la saison
   Charte : nuit #0f0b1e / or #e8c061 + #f3d98c / turquoise #9fe4e6
            creme #f7f1e6 / rouge #cf5a52
   Mise en page FLUIDE : aucun scaler JS (cf. tasks/lessons.md).
   Largeurs alignees sur .dhl .wrap du theme (1440px, padding 56px).
   ===================================================================== */

.dhl-nv-banner,
.nv-hero,
.nv-section {
  --nv-night: #0f0b1e;
  --nv-night2: #1a1130;
  --nv-gold: #e8c061;
  --nv-gold-soft: #f3d98c;
  --nv-aqua: #9fe4e6;
  --nv-cream: #f7f1e6;
  --nv-muted: #b9aecd;
  --nv-sans: 'Mulish', system-ui, -apple-system, sans-serif;
  --nv-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --nv-script: 'Pinyon Script', 'Cormorant Garamond', cursive;
}

/* ------------------------------ BANDEAU ------------------------------ */

.dhl-nv-banner {
  position: relative;
  z-index: 3;
  background: linear-gradient(90deg, rgba(232, 192, 97, .12), rgba(159, 228, 230, .10) 60%, rgba(232, 192, 97, .12));
  border-bottom: 1px solid rgba(232, 192, 97, .38);
}

.dhl-nv-banner-in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 9px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--nv-sans);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.dhl-nv-banner .nv-tag {
  color: var(--nv-gold);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dhl-nv-banner .nv-msg { color: var(--nv-cream); }

.dhl-nv-banner .nv-cta {
  color: var(--nv-aqua);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(159, 228, 230, .5);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}

.dhl-nv-banner .nv-cta:hover { color: var(--nv-gold-soft); border-color: var(--nv-gold-soft); }

/* ------------------- CARTES NOUVEAUTES DANS LE HERO ------------------- */

.nv-hero { position: relative; z-index: 2; }

.nv-hero-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--nv-gold);
  font-family: var(--nv-sans);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nv-hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.nv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(232, 192, 97, .20);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(47, 31, 85, .60), rgba(26, 17, 48, .60));
  text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.nv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 192, 97, .55);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .85);
}

.nv-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--nv-aqua);
  color: #0c2a2b;
  font-family: var(--nv-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nv-shot {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, .04);
}

.nv-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nv-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px;
  color: var(--nv-muted);
  font-family: var(--nv-sans);
  font-size: 11px;
  text-align: center;
}

.nv-gamme {
  display: block;
  margin-top: 10px;
  color: var(--nv-gold);
  font-family: var(--nv-sans);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nv-card .nv-title {
  display: block;
  margin-top: 3px;
  color: var(--nv-cream);
  font-family: var(--nv-serif);
  font-size: 19px;
  line-height: 1.18;
}

.nv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.nv-price {
  color: var(--nv-gold-soft);
  font-family: var(--nv-serif);
  font-size: 21px;
  font-weight: 700;
}

.nv-see {
  color: var(--nv-muted);
  font-family: var(--nv-sans);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.nv-card:hover .nv-see { color: var(--nv-aqua); }

/* --------------- SECTION "TOUT JUSTE SORTI DE L'ATELIER" --------------- */

.nv-section { position: relative; padding: 78px 0 10px; }

.nv-wrap { max-width: 1440px; margin: 0 auto; padding: 0 56px; }

.nv-sechead { text-align: center; margin-bottom: 40px; }

.nv-script {
  display: block;
  color: var(--nv-gold);
  font-family: var(--nv-script);
  font-size: 27px;
  line-height: 1;
}

.nv-sechead h2 {
  margin: 8px 0 0;
  color: var(--nv-cream);
  font-family: var(--nv-serif);
  font-size: 42px;
  font-weight: 600;
  line-height: 1.12;
}

.nv-sechead p {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--nv-muted);
  font-family: var(--nv-sans);
  font-size: 16px;
  line-height: 1.6;
}

.nv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.nv-bigcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(232, 192, 97, .16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(47, 31, 85, .55), rgba(26, 17, 48, .55));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.nv-bigcard:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 192, 97, .5);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8);
}

.nv-bigshot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, .04);
}

.nv-bigshot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nv-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }

.nv-body h3 { margin: 4px 0 0; font-family: var(--nv-serif); font-size: 25px; line-height: 1.14; }

.nv-body h3 a { color: var(--nv-cream); text-decoration: none; }

.nv-body h3 a:hover { color: var(--nv-gold-soft); }

.nv-desc {
  margin: 8px 0 0;
  color: var(--nv-muted);
  font-family: var(--nv-sans);
  font-size: 13px;
  line-height: 1.55;
}

.nv-row.bottom { margin-top: auto; padding-top: 16px; align-items: center; }

.nv-btn {
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--nv-gold-soft), var(--nv-gold));
  color: #2a1c05;
  font-family: var(--nv-sans);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .2s;
}

.nv-btn:hover { filter: brightness(1.08); }

/* ------------------------------ MOBILE ------------------------------ */

@media (max-width: 1180px) {
  .dhl-nv-banner-in { padding: 9px 24px; }
  .nv-wrap { padding: 0 24px; }
  .nv-sechead h2 { font-size: 34px; }
}

@media (max-width: 860px) {
  .nv-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .nv-section { padding: 54px 0 6px; }
}

@media (max-width: 768px) {
  .dhl-nv-banner-in { font-size: 12px; gap: 8px; padding: 8px 16px; }

  /* Carrousel horizontal a aimantation, sans barre de defilement visible. */
  .nv-hero-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .nv-hero-cards::-webkit-scrollbar { display: none; }

  .nv-card {
    flex: 0 0 172px;
    scroll-snap-align: start;
    min-height: 44px;
  }

  .nv-card .nv-title { font-size: 17px; }

  /* Option BO : sur mobile, le bandeau nouveautes remplace la barre J-XX.
     .dhl-nv-banner est FRERE de #header dans <main>, d'ou le selecteur ~. */
  .dhl-nv-banner.nv-hide-cd ~ #header .jbar { display: none !important; }
}

@media (max-width: 560px) {
  .nv-grid { grid-template-columns: 1fr; }
  .nv-sechead h2 { font-size: 29px; }
}

/* --------------------- ACCESSIBILITE / MOUVEMENT --------------------- */

@media (prefers-reduced-motion: reduce) {
  .nv-card,
  .nv-bigcard,
  .nv-btn,
  .dhl-nv-banner .nv-cta {
    transition: none !important;
  }

  .nv-card:hover,
  .nv-bigcard:hover { transform: none; }

  .nv-hero-cards { scroll-behavior: auto; }
}

/* =====================================================================
   VIGNETTES DU HERO AGRANDIES — 31/08/2026
   La colonne droite du hero etait la plus etroite (1.05fr / .95fr),
   ce qui serrait les 3 cartes. On rebascule la grille en faveur des
   cartes et on resserre legerement le titre editorial.

   Le selecteur :has(.nv-hero) limite l'effet au cas ou les nouveautes
   sont affichees : module desactive -> le hero d'origine retrouve
   exactement ses proportions actuelles, sans rien a defaire.
   ===================================================================== */

@media (min-width: 992px) {
  .dhl .heroGrid:has(.nv-hero) { grid-template-columns: .92fr 1.08fr; gap: 40px; }
  .dhl .heroGrid:has(.nv-hero) h1.title { font-size: 60px; }
  .dhl .heroGrid:has(.nv-hero) .lede { font-size: 17.5px; max-width: 440px; margin-bottom: 28px; }
}

/* Cartes elles-memes : plus d'air et une typo plus lisible. */
.nv-hero-kicker { font-size: 12.5px; margin-bottom: 18px; }

.nv-hero-cards { gap: 18px; }

.nv-card { padding: 14px; border-radius: 18px; }

.nv-shot { border-radius: 12px; }

.nv-card .nv-gamme { font-size: 10.5px; margin-top: 12px; }

.nv-card .nv-title { font-size: 22px; margin-top: 4px; }

.nv-card .nv-row { margin-top: 12px; }

.nv-card .nv-price { font-size: 24px; }

.nv-card .nv-see { font-size: 12.5px; }

/* =====================================================================
   CORRECTIF RESPONSIVE DU HERO — 31/08/2026
   Symptome : sur mobile (344px teste), la page entiere debordait a
   droite — titre du hero et boutons coupes.

   Cause : les cartes du carrousel font 172px fixes (3 x 172 + gaps
   = ~540px). Or un element de grille/flex a `min-width:auto` par
   defaut : la colonne refuse donc de descendre sous la largeur de
   son contenu et pousse toute la page, au lieu de laisser le
   carrousel defiler dans sa propre boite.
   Aggravant : mes `margin-inline:-16px` ajoutaient 32px de large.

   Correctif : min-width:0 sur toute la chaine (colonne de grille ->
   .heroArt -> .nv-hero -> .nv-hero-cards), et suppression des
   marges negatives.
   ===================================================================== */

@media (max-width: 991px) {
  .dhl .heroGrid > *,
  .dhl .heroArt,
  .nv-hero,
  .nv-hero-cards {
    min-width: 0;
    max-width: 100%;
  }

  .nv-hero-cards {
    margin-inline: 0;
    padding-inline: 0;
    overscroll-behavior-x: contain;
  }

  /* Le kicker ne doit pas forcer la largeur non plus. */
  .nv-hero-kicker {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Tres petits ecrans : cartes un peu plus etroites pour en voir
   deux entieres et amorcer la troisieme (affordance de defilement). */
@media (max-width: 400px) {
  .nv-card { flex-basis: 158px; }
}
