/*
 * HERO — OFFICIAL SINGLE LAYOUT
 *
 * Desktop (>= 1024px):
 *   left  = title + four actions
 *   right = featured box only
 *
 * Phone / tablet (< 1024px):
 *   title -> four actions -> featured box
 *
 * This file owns the resting Hero layout. Docked action states are owned by
 * 30-primary-actions.css after the action group is moved outside the Hero.
 */

[data-home-section="hero"] {
  --hero-inline: clamp(14px, 3vw, 58px);
  --hero-block-gap: clamp(14px, 2.2vh, 28px);
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
}

/* V56 — séquence néon rapide pour LA NUIT, mobile français uniquement. */
.hero-neon-la-nuit,
.hero-neon-commence {
  animation: hero-neon-la-nuit 21.8s linear infinite;
  transform-origin: center;
  will-change: opacity,filter;
}
.hero-neon-commence { animation-delay:.8s; }
@keyframes hero-neon-la-nuit {
  0%,8.24% { opacity:1; filter:brightness(1.05) drop-shadow(0 0 9px rgba(255,194,25,.58)); }
  8.52% { opacity:.1; filter:brightness(.12); }
  8.79% { opacity:1; filter:brightness(1.2) drop-shadow(0 0 12px rgba(255,210,60,.72)); }
  9.07% { opacity:.13; filter:brightness(.16); }
  9.34% { opacity:1; filter:brightness(1.16) drop-shadow(0 0 11px rgba(255,205,45,.68)); }
  9.62% { opacity:.08; filter:brightness(.1); }
  9.94%,20.61% { opacity:1; filter:brightness(1.06) drop-shadow(0 0 9px rgba(255,194,25,.6)); }
  20.89% { opacity:.1; filter:brightness(.12); }
  21.16% { opacity:1; filter:brightness(1.18) drop-shadow(0 0 12px rgba(255,210,60,.7)); }
  21.44% { opacity:.1; filter:brightness(.12); }
  21.71% { opacity:1; filter:brightness(1.15) drop-shadow(0 0 11px rgba(255,205,45,.66)); }
  21.98% { opacity:.08; filter:brightness(.1); }
  22.30%,26.57% { opacity:1; filter:brightness(1.05) drop-shadow(0 0 9px rgba(255,194,25,.58)); }
  27.03%,29.31% { opacity:.04; filter:brightness(.06); }
  29.59% { opacity:1; filter:brightness(1.22) drop-shadow(0 0 13px rgba(255,215,70,.76)); }
  29.86% { opacity:.1; filter:brightness(.12); }
  30.14% { opacity:1; filter:brightness(1.18) drop-shadow(0 0 12px rgba(255,210,60,.72)); }
  30.41% { opacity:.08; filter:brightness(.1); }
  30.69% { opacity:1; filter:brightness(1.16) drop-shadow(0 0 11px rgba(255,205,45,.68)); }
  30.96% { opacity:.12; filter:brightness(.14); }
  31.28%,100% { opacity:1; filter:brightness(1.08) drop-shadow(0 0 10px rgba(255,198,30,.62)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-neon-la-nuit,
  .hero-neon-commence { animation:none; }
}

/* V60 — néons à 65 %, avec COMMENCE ICI légèrement rapproché à gauche. */
@media (max-width: 1023px) {
  .hero-graffiti-mobile .hero-neon-la-nuit {
    position:relative;
    top:-18px;
    transform:translateX(-5%) scale(.84);
    transform-origin:right top;
  }
  .hero-graffiti-mobile .hero-neon-commence {
    position:relative;
    top:-29px;
    transform:translateX(-4%) scale(.98);
    transform-origin:left top;
  }
}

@media (max-width:1023px) {
  .hero-graffiti-mobile { margin-bottom:-18px; }
}

/* Suppression définitive de l'ancien trait typographique sous le titre. */
body:has(.home-screen-hero) .hero-main-title::after,
[data-home-section="hero"] .hero-main-title::after,
[data-home-section="hero"] .hero-scroll-cue,
[data-home-section="hero"] .hero-scroll-cue i {
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  background:none !important;
}
@media (min-width: 1024px) {
  .hero-neon-pair .hero-neon-la-nuit {
    position:relative;
    left:22%;
    top:28px;
    transform:scale(.65);
    transform-origin:center;
  }
  .hero-neon-pair .hero-neon-commence {
    position:relative;
    right:25%;
    top:28px;
    transform:scale(.74);
    transform-origin:center;
  }
}

[data-home-section="hero"] > .hero-background,
[data-home-section="hero"] > .hero-noise {
  position: absolute;
  inset: 0;
}

[data-home-section="hero"] .hero-content.hero-content-premium {
  position: relative;
  z-index: 2;
  width: min(calc(100% - (2 * var(--hero-inline))), 1500px);
  height: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

[data-home-section="hero"] .hero-copy,
[data-home-section="hero"] .hero-daily-feature,
[data-home-section="hero"] [data-primary-actions] {
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

[data-home-section="hero"] .hero-main-title,
[data-home-section="hero"] .hero-main-title > span {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  text-transform: uppercase !important;
}

[data-home-section="hero"] .hero-main-title {
  margin: 0;
  letter-spacing: .005em;
}

[data-home-section="hero"] .hero-main-title > span {
  white-space: nowrap;
}

[data-home-section="hero"] .hero-daily-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 520px);
  max-width: 100%;
  overflow: hidden;
}

[data-home-section="hero"] .hero-daily-feature > h2,
[data-home-section="hero"] .hero-featured-card {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

[data-home-section="hero"] .hero-daily-feature > h2 {
  margin: 0 0 clamp(6px, 1vh, 10px);
  padding: 0;
  color: #e8c878;
  text-align: center;
  font-size: clamp(.52rem, .7vw, .78rem);
  line-height: 1.15;
  letter-spacing: clamp(.06em, .18vw, .18em);
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
}

[data-home-section="hero"] .hero-featured-card {
  aspect-ratio: 16 / 9;
  border-radius: clamp(12px, 1.3vw, 20px);
  overflow: hidden;
}

[data-home-section="hero"] .hero-featured-card video,
[data-home-section="hero"] .hero-featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-home-section="hero"] .hero-scroll-cue {
  display: none !important;
}

/* Desktop: title and actions form the left column; featured stays alone right. */
@media (min-width: 1024px) {
  [data-home-section="hero"] .hero-content.hero-content-premium {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    grid-template-rows: auto auto;
    column-gap: clamp(42px, 6vw, 96px);
    row-gap: clamp(22px, 3vh, 38px);
    align-content: start;
    align-items: center;
    padding: clamp(18px, 4.5vh, 52px) 0 clamp(14px, 2.4vh, 28px);
  }

  [data-home-section="hero"] .hero-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: stretch;
    padding-left: clamp(38px, 5.8vw, 112px);
  }

  [data-home-section="hero"] .hero-main-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: fit-content;
    max-width: 100%;
    font-size: clamp(2.7rem, 5.4vw, 6.8rem);
    line-height: .88;
    white-space: normal;
  }

  [data-home-section="hero"] .hero-main-title > span {
    display: block;
    width: auto;
  }

  [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-refined-transition):not(.is-mobile-logo-dock) {
    position: static !important;
    grid-column: 1;
    grid-row: 2;
    align-self: start !important;
    justify-self: stretch;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(8px, .9vw, 12px) !important;
  }

  [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-refined-transition):not(.is-mobile-logo-dock) .primary-actions-dock-group {
    display: contents !important;
  }

  [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-refined-transition):not(.is-mobile-logo-dock) .button,
  [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-refined-transition):not(.is-mobile-logo-dock) .stay-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 9px clamp(10px, 1vw, 16px) !important;
    box-sizing: border-box !important;
  }

  [data-home-section="hero"] .hero-daily-feature {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    width: min(100%, 550px);
  }

  [data-home-section="hero"] .hero-featured-card {
    max-height: min(36vh, 330px);
  }
}

/* Phone and tablet: exact visual order title -> actions -> featured. */
@media (max-width: 1023px) {
  [data-home-section="hero"] {
    --hero-inline: clamp(10px, 3vw, 24px);
  }

  [data-home-section="hero"] .hero-content.hero-content-premium {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    row-gap: clamp(8px, 1.6vh, 15px);
    align-content: start;
    align-items: start;
    padding: clamp(12px, 2.2vh, 22px) 0 clamp(10px, 1.8vh, 18px);
  }

  [data-home-section="hero"] .hero-copy {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    align-self: end;
    justify-self: stretch;
    padding-inline: clamp(2px, 1vw, 8px);
    text-align: left;
  }

  [data-home-section="hero"] .hero-main-title {
    display: grid;
    grid-template-columns: max-content max-content;
    grid-template-rows: repeat(3, auto);
    column-gap: .18em;
    row-gap: 0;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 0 0;
    align-items: baseline;
    justify-content: start;
    font-size: clamp(2.35rem, 10.8vw, 4.35rem);
    line-height: .88;
    white-space: normal;
  }

  [data-home-section="hero"] .hero-main-title > span {
    display: block;
    width: auto;
  }

  [data-home-section="hero"] .hero-main-title > span:nth-child(1) { grid-column: 1 / -1; grid-row: 1; }
  [data-home-section="hero"] .hero-main-title > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  [data-home-section="hero"] .hero-main-title > span:nth-child(3) { grid-column: 1; grid-row: 3; }
  [data-home-section="hero"] .hero-main-title > span:nth-child(4) { grid-column: 2; grid-row: 3; }

  [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) {
    position: static !important;
    grid-column: 1;
    grid-row: 2;
    align-self: start !important;
    justify-self: stretch;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) .primary-actions-dock-group {
    display: contents !important;
  }

  [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) .button,
  [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) .stay-button {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 6px 3px !important;
    font-size: clamp(.53rem, 2.35vw, .7rem) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  [data-home-section="hero"] .hero-daily-feature {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    justify-self: center;
    width: min(100%, 620px);
    max-height: 100%;
  }

  [data-home-section="hero"] .hero-daily-feature > h2 {
    font-size: clamp(.54rem, 2.3vw, .76rem);
    letter-spacing: clamp(.06em, .5vw, .18em);
  }

  [data-home-section="hero"] .hero-featured-card {
    max-height: min(33vh, 275px);
  }
}

/* V57 — les deux néons remplacent le titre unique sur ordinateur. */
@media (min-width: 1024px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-main-title:has(.hero-neon-pair) {
    width: min(82%,620px) !important;
  }
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-neon-pair {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:center;
    gap:clamp(12px,1.6vw,24px);
    width:100%;
  }
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-neon-pair img {
    display:block;
    width:100%;
    height:auto;
    min-width:0;
  }
}

/* V33 — featured composition and premium resting actions. */
[data-home-section="hero"] .hero-featured-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

[data-home-section="hero"] .hero-featured-card:hover,
[data-home-section="hero"] .hero-featured-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 200, 120, .62);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .48);
}

[data-home-section="hero"] .hero-daily-feature > h2 {
  font-size: clamp(.46rem, .55vw, .64rem) !important;
  letter-spacing: clamp(.05em, .12vw, .13em) !important;
  margin-bottom: 6px !important;
}

[data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) .button {
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(35, 32, 39, .96), rgba(13, 12, 16, .96)) !important;
  color: #fff !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-weight: 750 !important;
  letter-spacing: .035em !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .24) !important;
}

[data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) .button:hover,
[data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) .button:focus-visible {
  border-color: rgba(232, 200, 120, .72) !important;
  background: linear-gradient(180deg, rgba(53, 47, 39, .98), rgba(20, 18, 17, .98)) !important;
  transform: translateY(-1px) !important;
}

@media (min-width: 1024px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-content.hero-content-premium {
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr) !important;
    column-gap: clamp(34px, 4.5vw, 76px) !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    width: min(100%, 640px) !important;
    max-width: 640px !important;
    margin-top: clamp(38px, 5vh, 58px) !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-featured-card {
    max-height: min(45vh, 420px) !important;
    aspect-ratio: 16 / 10 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) {
    justify-self: center !important;
    width: min(88%, 690px) !important;
    max-width: 690px !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) .button {
    min-height: 48px !important;
    font-size: clamp(.73rem, .78vw, .86rem) !important;
  }
}

@media (max-width: 1023px) {
  body:has(.home-screen-hero) [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) .button {
    border-radius: 10px !important;
    font-size: clamp(.56rem, 2.45vw, .72rem) !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    width: min(100%, 650px) !important;
  }
}

/* V40 — language-specific graffiti artwork with semantic HTML title retained. */
body:has(.home-screen-hero) [data-home-section="hero"] .hero-main-title {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  line-height: 1 !important;
}

body:has(.home-screen-hero) [data-home-section="hero"] .hero-title-seo {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body:has(.home-screen-hero) [data-home-section="hero"] .hero-graffiti-picture,
body:has(.home-screen-hero) [data-home-section="hero"] .hero-graffiti-picture img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

body:has(.home-screen-hero) [data-home-section="hero"] .hero-graffiti-mobile {
  display: none !important;
}

@media (min-width: 1024px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-main-title {
    width: clamp(210px, 20.25vw, 323px) !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 1023px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-main-title {
    width: 100% !important;
    margin: 0 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-graffiti-desktop {
    display: none !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-graffiti-mobile {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(8px, 3vw, 20px);
    width: 100%;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-graffiti-mobile img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0;
  }

  /* Larger artworks converge toward the center while keeping a safe gutter. */
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-graffiti-mobile img:first-child {
    width: 82% !important;
    justify-self: end;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-graffiti-mobile img:last-child {
    width: 88% !important;
    justify-self: start;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    justify-self: center !important;
    width: 80% !important;
    max-width: 80% !important;
  }
}

/* Resting Hero actions: icon above the label. */
[data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) .button {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

[data-home-section="hero"] .home-action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #e8c878;
}

[data-home-section="hero"] .home-action-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-home-section="hero"] .home-action-label { display: block; line-height: 1; }

@media (min-width: 1024px) {
  [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) .button {
    min-height: 62px !important;
  }
}

@media (max-width: 1023px) {
  [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) .button {
    height: 50px !important;
    min-height: 50px !important;
    padding-block: 4px !important;
  }
  [data-home-section="hero"] .home-action-icon { width: 17px; height: 17px; }
}

/* Very narrow phones. */
@media (max-width: 420px) {
  [data-home-section="hero"] .hero-content.hero-content-premium {
    row-gap: 8px;
  }

  [data-home-section="hero"] .hero-main-title {
    column-gap: .13em;
    font-size: clamp(2rem, 10.2vw, 2.75rem);
  }

  [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) .button,
  [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) .stay-button {
    height: 36px !important;
    min-height: 36px !important;
    font-size: clamp(.49rem, 2.25vw, .61rem) !important;
  }

  [data-home-section="hero"] .hero-featured-card {
    max-height: min(30vh, 215px);
  }
}

/* Short mobile screens, including landscape phones. */
@media (max-width: 1023px) and (max-height: 620px) {
  [data-home-section="hero"] .hero-content.hero-content-premium {
    row-gap: 6px;
    padding-top: 6px;
    padding-bottom: 7px;
  }

  [data-home-section="hero"] .hero-main-title {
    font-size: clamp(1.75rem, 7.2vh, 2.8rem);
    line-height: .86;
  }

  [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) .button,
  [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) .stay-button {
    height: 34px !important;
    min-height: 34px !important;
  }

  [data-home-section="hero"] .hero-daily-feature > h2 {
    margin-bottom: 4px;
  }

  [data-home-section="hero"] .hero-featured-card {
    max-height: min(25vh, 170px);
  }
}

/* Short desktop windows: preserve the two-column composition without overflow. */
@media (min-width: 1024px) and (max-height: 700px) {
  [data-home-section="hero"] .hero-content.hero-content-premium {
    row-gap: 14px;
    padding-block: 8px;
  }

  [data-home-section="hero"] .hero-main-title {
    font-size: clamp(2.3rem, 7.6vh, 4.8rem);
  }

  [data-home-section="hero"] .hero-featured-card {
    max-height: min(42vh, 270px);
  }
}

/* Title positioning — validated composition baseline before word-by-word tuning. */
[data-home-section="hero"] .hero-main-title,
[data-home-section="hero"] .hero-main-title > span {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
}

@media (min-width: 1024px) {
  [data-home-section="hero"] .hero-content.hero-content-premium {
    align-content: start;
    padding-top: max(var(--home-header-height), var(--header-height));
  }

  [data-home-section="hero"] .hero-copy {
    display: flex;
    align-self: start !important;
    justify-content: flex-end;
    padding: 0 clamp(10px, 1.5vw, 26px) 0 0 !important;
  }

  [data-home-section="hero"] .hero-main-title {
    margin: 0 !important;
  }

  [data-home-section="hero"] .hero-daily-feature {
    align-self: start !important;
  }
}

@media (max-width: 1023px) {
  [data-home-section="hero"] .hero-content.hero-content-premium {
    grid-template-rows: auto auto minmax(0, 1fr);
    padding-top: max(var(--home-header-height), var(--header-height));
  }

  [data-home-section="hero"] .hero-copy {
    display: flex;
    grid-row: 1 !important;
    justify-content: flex-start;
    padding-inline: 0 !important;
    text-align: left;
  }

  [data-home-section="hero"] .hero-main-title {
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: start;
  }

  [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) {
    grid-row: 2 !important;
  }

  [data-home-section="hero"] .hero-daily-feature {
    grid-row: 3 !important;
  }
}

/* Final hero position lock: foundation.css already reserves the fixed header. */
[data-home-section="hero"].home-screen-hero {
  padding-top: 4px !important;
}

/* Sur mobile, la marge visuelle sous la barre vaut 25 % de l'ancienne marge. */
@media (max-width: 1023px) {
  [data-home-section="hero"].home-screen-hero {
    padding-top: 1px !important;
  }
}

@media (min-width: 1024px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-content.hero-content-premium {
    grid-template-rows: auto auto !important;
    align-content: start !important;
    align-items: start !important;
    padding-top: 0 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-copy,
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    align-self: start !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 1023px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-content.hero-content-premium {
    grid-template-rows: auto auto auto !important;
    align-content: start !important;
    align-items: start !important;
    padding-top: 0 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-copy {
    grid-row: 1 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] [data-primary-actions]:not(.is-mobile-logo-dock):not(.is-group-transition):not(.is-mobile-refined-transition) {
    grid-row: 2 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    grid-row: 3 !important;
    align-self: start !important;
    margin-top: 0 !important;
  }
}

/* Keep the larger desktop feature slightly below the title's top edge. */
@media (min-width: 1024px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-content.hero-content-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto !important;
    row-gap: clamp(8px, 1.2vh, 14px) !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: relative !important;
    z-index: 3 !important;
    justify-content: center !important;
    justify-self: stretch !important;
    padding-inline: 0 !important;
    transform: none !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-main-title {
    margin-inline: auto !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    justify-self: center !important;
    width: 68% !important;
    max-width: 68% !important;
    margin-top: clamp(38px, 5vh, 58px) !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-featured-card {
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    align-self: start !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: min(90%, 690px) !important;
    max-width: 690px !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 1023px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-content.hero-content-premium {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: center !important;
    width: 80% !important;
    max-width: 80% !important;
    margin-top: 0 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-featured-card {
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* V43 final mobile sequence and resting-button geometry. Kept last so older
   compact-screen rules cannot put the featured box before the actions. */
@media (max-width: 1023px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 1 !important;
    flex: 0 0 auto !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    order: 2 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] [data-primary-actions]:not(.is-group-transition):not(.is-mobile-side-logo-transition):not(.is-mobile-logo-dock) .button {
    display: inline-flex !important;
    flex-direction: column !important;
    height: 50px !important;
    min-height: 50px !important;
    gap: 3px !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    grid-column: 1 !important;
    grid-row: 3 !important;
    order: 3 !important;
  }
}

/* V45 — exact Hero proportions: 60% editorial / 40% featured on desktop,
   with a slightly larger featured box on phone and tablet. */
@media (min-width: 1024px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-content.hero-content-premium {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 1023px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    width: 92% !important;
    max-width: 92% !important;
  }
}

/* V49 — réduction de la box À la une sur ordinateur uniquement. */
@media (min-width: 1024px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    width: 80% !important;
    max-width: 80% !important;
    justify-self: center !important;
  }
}

/* V50 — ordre mobile garanti au repos : titre, quatre boutons, puis box.
   Dès que le groupe est déplacé dans body par le script, les styles du dock
   supérieur de 30-primary-actions.css prennent automatiquement le relais. */
@media (max-width: 1023px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-content.hero-content-premium {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 1 !important;
    flex: 0 0 auto !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] [data-primary-actions] {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    order: 2 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
  }

  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    grid-column: 1 !important;
    grid-row: 3 !important;
    order: 3 !important;
    flex: 0 0 auto !important;
    margin-top: 16px !important;
    align-self: center !important;
  }
}

/* V64 — aucun séparateur décoratif au-dessus des quatre boutons. */
[data-primary-actions],
.hero-actions.hero-actions-five {
  border-top: 0 !important;
}
[data-primary-actions]::before,
[data-primary-actions]::after,
.hero-actions.hero-actions-five::before,
.hero-actions.hero-actions-five::after {
  content: none !important;
  display: none !important;
}

/* V61 — derniers ajustements de dimension et d'alignement de la box. */
@media (min-width: 1024px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    width: 84% !important;
    max-width: 84% !important;
  }
}

@media (max-width: 1023px) {
  body:has(.home-screen-hero) [data-home-section="hero"] .hero-daily-feature {
    align-self: center !important;
    margin-inline: auto !important;
  }
}
