.hero-copy {
  width: min(760px, 72vw);
  top: 50%;
  transform: translateY(-42%);
}

.hero h1 {
  font-size: clamp(40px, 3.4vw, 58px);
  line-height: .98;
  margin: 0 0 20px;
}

.hero h1 em {
  color: var(--pink);
  font-style: italic;
}

.hero-copy > .hero-intro {
  max-width: 760px;
  margin: 0 0 27px;
  color: #f1edf6;
  font: 400 clamp(16px, 1.2vw, 19px)/1.55 "DM Sans", sans-serif;
  letter-spacing: normal;
  text-shadow: 0 2px 12px #000b;
}

@media (min-width: 761px) {
  .hero-copy > .hero-intro {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-hero-text-offset: 80px;
    --mobile-hero-bottom-space: 48px;
    --mobile-next-section-overlap: 0px;
  }

  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(1, 9, 30, .94);
    box-shadow: 0 8px 24px #0007;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .topbar nav.open {
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }

  /* Bouton de recherche compact, commun à toutes les pages mobiles. */
  .topbar .search {
    position: absolute;
    top: 11px;
    right: 62px;
    display: flex;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-color: rgba(255, 114, 183, .72);
    background: rgba(6, 19, 49, .96);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
    transition: width .22s ease, top .22s ease, right .22s ease, left .22s ease;
  }

  .topbar .search input {
    width: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }

  .topbar .search button {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    padding: 0;
    cursor: pointer;
  }

  .topbar .search.is-open {
    top: 77px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .topbar .search.is-open input {
    width: auto;
    padding: 0 16px;
    opacity: 1;
    pointer-events: auto;
  }

  .hero-copy {
    position: relative;
    inset: auto;
    width: auto;
    padding:
      var(--mobile-hero-text-offset, 80px)
      22px
      calc(var(--mobile-hero-bottom-space, 48px) + 18px);
    text-align: left;
    transform: none;
  }

  .hero {
    display: grid;
    box-sizing: border-box;
    height: auto;
    min-height: clamp(430px, calc(100svh - 340px), 560px);
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(37px, 10.5vw, 47px);
  }

  .hero-copy > .hero-intro {
    max-width: 400px;
    margin-right: 0;
    margin-left: 0;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: normal;
  }

  .hero-copy > .hero-intro br {
    display: initial;
  }

  .motto {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
    font-size: clamp(13px, 3.8vw, 15px);
    line-height: 1.35;
  }

  .motto-line {
    width: clamp(44px, 15vw, 64px);
    margin: 0;
  }

  .motto-words {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    gap: 2px 6px;
    white-space: nowrap;
  }

  .motto-words > span:not(:last-child)::after {
    margin-left: 6px;
  }

  .univers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 24px);
    gap: 10px;
    margin-top: -36px;
  }

  .univers a {
    min-height: 126px;
    height: auto;
    padding: 14px 7px;
  }

  .univers i {
    font-size: 23px;
  }

  .univers b {
    margin: 5px 2px;
    font-size: clamp(16px, 4.7vw, 19px);
    text-align: center;
  }

  .univers small {
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
  }

  .univers em {
    margin-top: 6px;
    font-size: 17px;
  }

  /* Quatre inspirations : une carte complète par ligne, sans recadrage. */
  .daily-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 18px;
  }

  .daily-card {
    width: 100%;
    min-width: 0;
  }

  .daily-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

}

/* Très petits téléphones : le contenu reste lisible dès 320 px. */
@media (max-width: 380px) {
  .topbar {
    padding-inline: 11px;
  }

  .logo {
    gap: 4px;
  }

  .logo i {
    font-size: 32px;
  }

  .logo b {
    font-size: 16px;
  }

  .logo small {
    font-size: 9px;
  }

  .hero {
    height: auto;
    min-height: clamp(430px, calc(100svh - 320px), 540px);
  }

  .hero-copy {
    padding-right: 15px;
    padding-left: 17px;
  }

  .hero h1 {
    font-size: clamp(34px, 10.5vw, 40px);
  }

  .hero-copy > .hero-intro {
    font-size: 15px;
  }

  .motto {
    align-items: flex-start;
    gap: 9px;
  }

  .motto-line {
    width: 24px;
  }

  .motto {
    font-size: 12px;
  }

  .univers {
    gap: 8px;
  }

  .univers a {
    min-height: 119px;
  }
}

/* Téléphones utilisés horizontalement. */
@media (max-width: 920px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 460px;
  }

  .hero-copy {
    top: 52%;
    width: min(680px, 78vw);
    transform: translateY(-44%);
  }

  .hero h1 {
    font-size: clamp(36px, 6vw, 50px);
  }

  .hero-copy > .hero-intro {
    font-size: 15px;
  }
}

.daily-image {
  cursor: zoom-in;
}

.daily-image:focus-visible {
  outline: 3px solid #ff7cbc;
  outline-offset: -4px;
}

.image-viewer {
  width: min(94vw, 1500px);
  max-width: none;
  padding: 12px;
  border: 1px solid #ff79ba99;
  border-radius: 18px;
  background: #06112b;
  box-shadow: 0 25px 80px #000c;
  color: #fff;
}

.image-viewer::backdrop {
  background: #010716e8;
  backdrop-filter: blur(7px);
}

.image-viewer img {
  display: block;
  width: 100%;
  max-height: 82vh;
  border-radius: 11px;
  object-fit: contain;
}

.image-viewer p {
  margin: 10px 50px 2px;
  color: #f5dceb;
  font: 600 18px "Playfair Display";
  text-align: center;
}

.viewer-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid #fff8;
  border-radius: 50%;
  background: #07132de8;
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.viewer-close:hover {
  background: var(--pink);
}

/* Les commandes restent hors de l'image afin de ne jamais masquer son texte. */
.daily-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inspiration-icon {
  display: inline-block;
  margin-right: 7px;
  filter: drop-shadow(0 0 8px #ff7fbd);
  font: 31px/1 sans-serif;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .inspiration-icon {
    font-size: 26px;
  }
}

.daily-card > span {
  position: static;
  display: block;
  padding: 13px 16px;
  border-radius: 0;
  background: linear-gradient(135deg, #182852, #291b4c);
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  text-align: center;
}

.share-button {
  position: static;
  align-self: center;
  margin: 12px auto 13px;
  padding: 10px 25px;
  border-color: #ff76b7;
  background: linear-gradient(135deg, #ed3e8d, #8e4ff0);
  font-size: 14px;
}

.renewal-note {
  width: min(1180px, 92%);
  margin: 0 auto 42px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid #ff72b777;
  border-radius: 18px;
  background: linear-gradient(135deg, #17254a, #28163f);
  box-shadow: 0 12px 35px #0005;
  text-align: center;
  scroll-margin-top: 24px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.renewal-note:target,
.renewal-note.is-highlighted {
  border-color: #ff8bc4;
  box-shadow: 0 0 0 4px #ff69b429, 0 12px 42px #0007;
  transform: translateY(-3px);
}

.renewal-note > span {
  color: var(--pink);
  font-size: 25px;
}

.renewal-note strong {
  display: block;
  margin-bottom: 4px;
  color: #ff82be;
  font: 700 21px "Playfair Display";
}

.renewal-note p {
  margin: 0;
  color: #e4e8f3;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .renewal-note {
    padding: 16px;
    gap: 10px;
  }

  .renewal-note > span:last-child {
    display: none;
  }

  .renewal-note strong {
    font-size: 19px;
  }
}
