/* ================================================================
   ACCUEIL — Une pensée chaque matin.
   Titre et présentation au-dessus d'une photographie panoramique.
   Ce fichier ne touche pas aux autres rubriques du site.
   ================================================================ */

body.page-home main#contenu-principal {
  display: flex !important;
  flex-direction: column !important;
}

/* Ordre préservé même si un éditeur déplace les blocs dans le HTML. */
body.page-home main#contenu-principal > .hero { order: -30 !important; }
body.page-home main#contenu-principal > .home-bonjour { order: -20 !important; }
body.page-home main#contenu-principal > .daily-section { order: -10 !important; }

.page-home .home-bonjour {
  padding: clamp(42px, 5vw, 76px) max(2.2%, 18px);
  background: #0b1732;
}

.page-home .home-bonjour-heading {
  width: min(1600px, 100%);
  margin: 0 auto 28px;
}

.page-home .home-bonjour-eyebrow {
  margin: 0 0 12px;
  color: #ff96be;
  font: 700 12px/1.5 'DM Sans', sans-serif;
  letter-spacing: .22em;
}

.page-home .home-bonjour-heading h2 {
  margin: 0 0 10px;
  color: #fffaf4;
  font: 600 clamp(39px, 3.7vw, 61px)/1.1 'Playfair Display', Georgia, serif;
  letter-spacing: -.035em;
}

.page-home .home-bonjour-heading h2 em {
  color: #ff83b5;
  font-weight: 500;
}

.page-home .home-bonjour-heading > p:last-child {
  max-width: 960px;
  margin: 0;
  color: #dce2ee;
  font: 400 clamp(16px, 1.2vw, 19px)/1.6 'DM Sans', sans-serif;
}

.page-home .home-bonjour-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  width: min(1600px, 100%);
  min-height: 470px;
  margin: auto;
  overflow: hidden;
  border: 1px solid #bc9a72;
  border-radius: 30px;
  background: #0b1732;
  box-shadow: 0 26px 55px #02081970;
}

.page-home .home-bonjour-photo,
.page-home .home-bonjour-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .home-bonjour-photo {
  object-fit: cover;
  object-position: center;
}

.page-home .home-bonjour-shade {
  background: linear-gradient(90deg, #09152a00 25%, #09152a7a 47%, #09152ae8 62%, #09152afa 100%);
  pointer-events: none;
}

.page-home .home-bonjour-card {
  position: relative;
  z-index: 1;
  grid-column: 2;
  min-width: 0;
  padding: 34px clamp(24px, 4vw, 70px) 30px 12px;
  color: #fff;
}

.page-home .home-bonjour-card-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 16px;
  color: #ffd2a8;
  font: 700 11px/1.4 'DM Sans', sans-serif;
  letter-spacing: .16em;
}

.page-home .home-bonjour-card-top > span span {
  margin-right: 7px;
  color: #f4b8cd;
}

.page-home .home-bonjour-card-top time {
  color: #d8dfed;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-home .home-bonjour-card blockquote {
  margin: 26px 0 0;
  color: #fffaf7;
  font: italic 500 clamp(23px, 1.8vw, 30px)/1.4 'Playfair Display', Georgia, serif;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 15px #0209189e;
}

.page-home .home-bonjour-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 9px;
  color: #efb6a0;
  font: 23px 'Playfair Display', Georgia, serif;
}

.page-home .home-bonjour-rule::before,
.page-home .home-bonjour-rule::after {
  width: 55px;
  height: 1px;
  background: #d6aa7b;
  content: '';
}

.page-home .home-bonjour-wish {
  margin: 0 0 21px;
  color: #ffbfda;
  font: italic 500 20px 'Playfair Display', Georgia, serif;
}

.page-home .home-bonjour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.page-home .home-bonjour-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #d3a7c1;
  border-radius: 100px;
  background: #111c39b9;
  color: #fff;
  font: 700 11px/1.25 'DM Sans', sans-serif;
  cursor: pointer;
}

.page-home .home-bonjour-button-main {
  border-color: #ff9fca;
  background: linear-gradient(110deg, #db4191, #ab43cf);
}

.page-home .home-bonjour-button:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.page-home .home-bonjour-button:focus-visible {
  outline: 3px solid #ffd7e8;
  outline-offset: 3px;
}

.page-home .home-bonjour-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: #f3d9e4;
  font: 500 12px/1.4 'DM Sans', sans-serif;
}

@media (max-width: 900px) {
  .page-home .home-bonjour-feature {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
  }

  .page-home .home-bonjour-photo {
    position: relative;
    height: clamp(210px, 42vw, 360px);
    object-position: left center;
  }

  .page-home .home-bonjour-shade {
    display: none;
  }

  .page-home .home-bonjour-card {
    padding: 28px clamp(20px, 5vw, 40px);
    background: #0b1732;
  }
}

@media (max-width: 600px) {
  .page-home .home-bonjour {
    padding: 39px 15px 44px;
  }

  .page-home .home-bonjour-heading {
    margin-bottom: 20px;
  }

  .page-home .home-bonjour-heading h2 {
    font-size: clamp(36px, 9vw, 49px);
  }

  .page-home .home-bonjour-heading > p:last-child {
    font-size: 15px;
  }

  .page-home .home-bonjour-feature {
    border-radius: 20px;
  }

  .page-home .home-bonjour-photo {
    height: 230px;
  }

  .page-home .home-bonjour-card {
    padding: 25px 20px;
  }

  .page-home .home-bonjour-card-top {
    flex-direction: column;
  }

  .page-home .home-bonjour-card blockquote {
    margin-top: 22px;
    font-size: clamp(22px, 5.8vw, 28px);
  }

  .page-home .home-bonjour-button {
    flex: 1 1 calc(50% - 9px);
    min-height: 46px;
  }
}

@media (max-width: 365px) {
  .page-home .home-bonjour-button { flex-basis: 100%; }
}

/* ================================================================
   Rythme commun des grandes rubriques de l'accueil.
   Deux demi-espaces de 32 px composent 64 px entre les contenus.
   La première rubrique reçoit l'espace entier sous le grand visuel.
   ================================================================ */

.page-home main#contenu-principal > .home-bonjour {
  padding-top: 64px;
  padding-bottom: 32px;
}

.page-home main#contenu-principal > .daily-section,
.page-home main#contenu-principal > .home-emotions,
.page-home main#contenu-principal > .home-new-worlds,
.page-home main#contenu-principal > .home-postcards-showcase,
.page-home main#contenu-principal > .home-personalized,
.page-home main#contenu-principal > .univers,
.page-home main#contenu-principal > .home-favorites {
  padding-top: 32px;
  padding-bottom: 32px;
}

.page-home main#contenu-principal > .home-story {
  margin-top: 32px;
  margin-bottom: 32px;
}

.page-home main#contenu-principal > .home-season > div {
  padding-top: 32px;
  padding-bottom: 32px;
}

@media (max-width: 760px) {
  .page-home main#contenu-principal > .home-bonjour {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .page-home main#contenu-principal > .daily-section,
  .page-home main#contenu-principal > .home-emotions,
  .page-home main#contenu-principal > .home-new-worlds,
  .page-home main#contenu-principal > .home-postcards-showcase,
  .page-home main#contenu-principal > .home-personalized,
  .page-home main#contenu-principal > .univers,
  .page-home main#contenu-principal > .home-favorites {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .page-home main#contenu-principal > .home-story {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .page-home main#contenu-principal > .home-season > div {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* Les plus aimés : cartes à image latérale, avec le sujet cadré sur la gauche. */
.page-home .home-favorites-grid .home-favorite-card {
  display: grid;
  min-height: 330px;
  grid-template-columns: 48% 1fr;
}

.page-home .home-favorites-grid .home-favorite-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .home-favorites-grid .home-favorite-card > span {
  display: flex;
  min-width: 0;
  padding: 20px;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 760px) {
  .page-home .home-favorites-grid .home-favorite-card {
    min-height: 220px;
    grid-template-columns: 44% 1fr;
  }

  .page-home .home-favorites-grid .home-favorite-card > span {
    padding: 16px;
  }
}
