/* ==========================================================================
   HERO BLACK FRIDAY (19 au 30/11/2026) - section générée par generer_template.php --edition=hiver --operation=black-friday
   Feuille chargée par le contenu de l'opération : /img/cms/home-w26-2/css/black-friday.css
   Portée : .dlx-blackfriday uniquement. Point de rupture à 900px. Mesures : SPECS-HERO.md du handoff.
   Ordinateur : photo à 118 % de la largeur décalée de -18 %, calée en haut ; bloc noir de 410 à droite (1440 x 854).
   Le haut du bloc réserve la place de l'en-tête transparent du site, absent de la maquette : 118px (82 + bandeau 36) à partir
   de 1200px, + 22 comme la maquette (104 pour 82) ; en dessous, barre mobile de 62 + bandeau 28 = 90, + 14.
   Mobile : photo plein cadre, bloc noir posé en bas. Aucun voile sur la photo (choix d'Iskander du 18/11).
   Les polices "DLX Instrument Sans / Serif" sont déclarées par home-w26-2.css.
   ========================================================================== */
.dlx-blackfriday {
  --dlx-bf-black: #12100D;
  --dlx-bf-cream: #F6F2E9;
  --dlx-bf-caramel: #D9A86F;
  --dlx-bf-rule: rgba(246, 242, 233, .2);
  --dlx-bf-sans: "DLX Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --dlx-bf-serif: "DLX Instrument Serif", Georgia, "Times New Roman", serif;
  position: relative;
  /* 59,3vw = 854 à 1440 ; plancher de 600 pour que le bloc tienne entre 900 et 1012, plafond 1000 au-delà de 1686.
     À partir de 1200px, limité aussi par la hauteur d'écran (voir plus bas). */
  height: clamp(600px, 59.3vw, 1000px);
  overflow: hidden;
  background: #6B4A30;
  color: var(--dlx-bf-cream);
  font-family: var(--dlx-bf-sans);
  box-sizing: border-box;
}
.dlx-blackfriday *,
.dlx-blackfriday *::before,
.dlx-blackfriday *::after {
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ photo */
.dlx-blackfriday picture.dlx-blackfriday__media {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
}
/* Le thème impose height:auto et max-width:100% aux images */
.dlx-blackfriday img.dlx-blackfriday__img {
  position: absolute;
  top: 0;
  left: -18%;
  display: block;
  width: 118% !important;
  height: auto !important;
  max-width: none !important;
}

/* ------------------------------------------------------------------ bloc noir (ordinateur) */
.dlx-blackfriday .dlx-blackfriday__panel {
  position: absolute;
  top: 104px;
  right: clamp(24px, 2.778vw, 40px);
  bottom: clamp(24px, 2.778vw, 40px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: clamp(300px, 28.472vw, 410px);
  padding: clamp(26px, 2.778vw, 40px) clamp(24px, 2.5vw, 36px) clamp(22px, 2.361vw, 34px);
  background: var(--dlx-bf-black);
  box-shadow: inset 0 0 0 1px rgba(246, 242, 233, .08);
  overflow: hidden;
}
.dlx-blackfriday .dlx-blackfriday__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.dlx-blackfriday h2.dlx-blackfriday__title {
  margin: 0;
  padding: 0;
  color: var(--dlx-bf-cream);
  font-family: var(--dlx-bf-serif);
  font-size: clamp(38px, 3.611vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: none !important;
  white-space: nowrap;
}
.dlx-blackfriday h2.dlx-blackfriday__title em,
.dlx-blackfriday .dlx-blackfriday__upto {
  font-family: var(--dlx-bf-serif);
  font-style: italic;
}
.dlx-blackfriday .dlx-blackfriday__dates {
  color: var(--dlx-bf-caramel);
  font-family: var(--dlx-bf-sans);
  font-size: clamp(10.5px, .833vw, 12px);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dlx-blackfriday h1.dlx-blackfriday__brand {
  margin: 12px 0 0;
  padding: 0;
  color: rgba(246, 242, 233, .66);
  font-family: var(--dlx-bf-sans);
  font-size: clamp(11px, .868vw, 12.5px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none !important;
}
.dlx-blackfriday .dlx-blackfriday__offers {
  margin-top: clamp(16px, 1.806vw, 26px);
  border-top: 1px solid var(--dlx-bf-rule);
}
.dlx-blackfriday .dlx-blackfriday__offer {
  padding: clamp(14px, 1.528vw, 22px) 0 clamp(13px, 1.389vw, 20px);
  border-bottom: 1px solid var(--dlx-bf-rule);
}
.dlx-blackfriday .dlx-blackfriday__label {
  display: block;
  color: rgba(246, 242, 233, .82);
  font-family: var(--dlx-bf-sans);
  font-size: clamp(10.5px, .833vw, 12px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dlx-blackfriday .dlx-blackfriday__line {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.111vw, 16px);
  margin-top: 8px;
  white-space: nowrap;
}
.dlx-blackfriday .dlx-blackfriday__upto {
  color: rgba(246, 242, 233, .85);
  font-size: clamp(22px, 2.083vw, 30px);
  line-height: 1;
}
.dlx-blackfriday .dlx-blackfriday__rate {
  color: var(--dlx-bf-cream);
  font-family: var(--dlx-bf-serif);
  font-size: clamp(66px, 6.944vw, 100px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.03em;
}
/* Bouton unique à angles droits (calé en bas du bloc sous 1200px, juste sous les offres au-delà). Le thème force a{font-size:.875rem} */
.dlx-blackfriday a.dlx-blackfriday__cta {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(48px, 4.028vw, 58px);
  margin-top: auto;
  border-radius: 0;
  background: var(--dlx-bf-cream);
  color: var(--dlx-bf-black) !important;
  font-family: var(--dlx-bf-sans);
  font-size: clamp(12px, .903vw, 13px) !important;
  font-weight: 600;
  letter-spacing: .14em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .25s ease;
}
.dlx-blackfriday a.dlx-blackfriday__cta:hover,
.dlx-blackfriday a.dlx-blackfriday__cta:focus-visible {
  background: #fff;
  color: var(--dlx-bf-black) !important;
}
.dlx-blackfriday a.dlx-blackfriday__cta:focus-visible {
  outline: 2px solid var(--dlx-bf-caramel);
  outline-offset: 3px;
}
.dlx-blackfriday p.dlx-blackfriday__note {
  margin: clamp(10px, .972vw, 14px) 0 0;
  color: rgba(246, 242, 233, .5);
  font-family: var(--dlx-bf-sans);
  font-size: clamp(10px, .799vw, 11.5px);
  line-height: 1.45;
}

/* ------------------------------------------------------------------ ordinateur à partir de 1200px */
/* À partir de 1200px, hauteur ajustée au contenu, bouton juste sous les offres (19/11, Iskander : trop d'espace noir).
   En dessous, le bloc remplit déjà presque toute la hauteur du hero : il reste calé en haut et en bas.
   19/11 (Iskander) : hero limité à la hauteur d'écran moins le bandeau défilant (38) et la réassurance (82), pour que les deux
   bandeaux soient visibles sans défiler dès 724px de haut (en dessous, plancher de 600). Le bloc se resserre avec la HAUTEUR
   d'écran : tailles de la maquette à partir de 940px, version compacte à 720px et en dessous, linéaire entre les deux
   (calc(<compact> + (100vh - 720px) * <pente>), pente = écart / 220). Place disponible : hero - 140 (haut) - 24 (bas). */
@media (min-width: 1200px) {
  .dlx-blackfriday {
    height: clamp(600px, min(59.3vw, calc(100vh - 124px)), 1000px);
  }
  .dlx-blackfriday .dlx-blackfriday__panel {
    top: 140px;
    bottom: auto;
    max-height: calc(100% - 164px);
    padding-top: clamp(22px, min(2.778vw, calc(22px + (100vh - 720px) * .082)), 40px);
    padding-bottom: clamp(18px, min(2.361vw, calc(18px + (100vh - 720px) * .073)), 34px);
  }
  .dlx-blackfriday h2.dlx-blackfriday__title {
    font-size: clamp(38px, min(3.611vw, calc(40px + (100vh - 720px) * .055)), 52px);
  }
  .dlx-blackfriday h1.dlx-blackfriday__brand {
    margin-top: clamp(8px, calc(8px + (100vh - 720px) * .018), 12px);
  }
  .dlx-blackfriday .dlx-blackfriday__offers {
    margin-top: clamp(12px, min(1.806vw, calc(12px + (100vh - 720px) * .064)), 26px);
  }
  .dlx-blackfriday .dlx-blackfriday__offer {
    padding-top: clamp(10px, min(1.528vw, calc(10px + (100vh - 720px) * .055)), 22px);
    padding-bottom: clamp(10px, min(1.389vw, calc(10px + (100vh - 720px) * .045)), 20px);
  }
  .dlx-blackfriday .dlx-blackfriday__line {
    margin-top: clamp(4px, calc(4px + (100vh - 720px) * .018), 8px);
  }
  .dlx-blackfriday .dlx-blackfriday__upto {
    font-size: clamp(22px, min(2.083vw, calc(22px + (100vh - 720px) * .036)), 30px);
  }
  .dlx-blackfriday .dlx-blackfriday__rate {
    font-size: clamp(58px, min(6.944vw, calc(58px + (100vh - 720px) * .19)), 100px);
  }
  .dlx-blackfriday a.dlx-blackfriday__cta {
    min-height: clamp(48px, min(4.028vw, calc(48px + (100vh - 720px) * .045)), 58px);
    margin-top: clamp(12px, calc(12px + (100vh - 720px) * .036), 20px);
  }
  .dlx-blackfriday p.dlx-blackfriday__note {
    margin-top: clamp(8px, min(.972vw, calc(8px + (100vh - 720px) * .027)), 14px);
  }
}

/* ------------------------------------------------------------------ mobile et tablette portrait */
@media (max-width: 899.98px) {
  .dlx-blackfriday {
    height: auto;
  }
  .dlx-blackfriday picture.dlx-blackfriday__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1170 / 2060;
    max-height: 1000px;
    overflow: hidden;
  }
  .dlx-blackfriday img.dlx-blackfriday__img {
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: 50% 0;
  }
  .dlx-blackfriday .dlx-blackfriday__panel {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 18px 18px;
  }
  .dlx-blackfriday .dlx-blackfriday__head {
    gap: 10px;
  }
  .dlx-blackfriday h2.dlx-blackfriday__title {
    font-size: 36px;
  }
  .dlx-blackfriday .dlx-blackfriday__dates {
    font-size: 10.5px;
    letter-spacing: .12em;
  }
  .dlx-blackfriday h1.dlx-blackfriday__brand {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
  }
  /* Les deux offres côte à côte, séparées par un filet vertical, filets haut et bas */
  .dlx-blackfriday .dlx-blackfriday__offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    border-bottom: 1px solid var(--dlx-bf-rule);
  }
  .dlx-blackfriday .dlx-blackfriday__offer {
    padding: 14px 12px 12px 0;
    border-bottom: 0;
  }
  .dlx-blackfriday .dlx-blackfriday__offer + .dlx-blackfriday__offer {
    padding: 14px 0 12px 14px;
    border-left: 1px solid var(--dlx-bf-rule);
  }
  .dlx-blackfriday .dlx-blackfriday__label {
    font-size: 10px;
    letter-spacing: .14em;
  }
  .dlx-blackfriday .dlx-blackfriday__line {
    display: block;
    margin-top: 6px;
  }
  .dlx-blackfriday .dlx-blackfriday__upto {
    display: block;
    font-size: 16px;
    line-height: 1.3;
  }
  .dlx-blackfriday .dlx-blackfriday__rate {
    display: block;
    font-size: 56px;
  }
  .dlx-blackfriday a.dlx-blackfriday__cta {
    min-height: 48px;
    margin-top: 16px;
    font-size: 12px !important;
    letter-spacing: .12em;
  }
  .dlx-blackfriday p.dlx-blackfriday__note {
    margin-top: 10px;
    font-size: 10px;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dlx-blackfriday a.dlx-blackfriday__cta {
    transition: none;
  }
}
