/* Styles réservés à la page d’accueil */

body.c4c-home {
  --home-cream: #f6f2e8;
  --home-ink: #293421;
}

/* Menu lisible au-dessus des sections crème */
.c4c-home .site-header {
  background: #55743df5;
  border-radius: 16px;
}

.c4c-home .home-content {
  opacity: 1;
}

/* Présentation */
.c4c-home .home-hero {
  padding: 132px 24px 48px;
  text-align: center;
  color: var(--home-cream);
  background: #6f8e49;
}

.c4c-home .home-portrait {
  display: block;
  width: clamp(150px, 18vw, 220px);
  height: auto;
  margin: 0 auto 22px;
  border-radius: 50%;
}

.c4c-home .home-hero h1 {
  margin: 0;
  font: normal clamp(36px, 5vw, 64px)/1.12 Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.c4c-home .home-intro {
  margin: 20px 0 26px;
  font-size: 16px;
}

/* Boutons */
.c4c-home .home-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #55743d;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

.c4c-home .home-button:hover {
  background: #40592e;
}

.c4c-home .home-button-light {
  background: var(--home-cream);
  color: var(--home-ink);
}

.c4c-home .home-button-light:hover {
  background: #e9e1d0;
}

.c4c-home .home-button:focus-visible {
  outline: 3px solid #b87928;
  outline-offset: 4px;
}

/* Plateformes musicales */
.c4c-home .home-icons-overlay {
  position: static;
  transform: none;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px auto 0;
  gap: 8px;
}

.c4c-home .home-icons-overlay a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  opacity: .9;
}

/* Les trois rubriques */
.c4c-home .home-discover {
  padding: 48px 24px 64px;
  background: var(--home-cream);
  color: var(--home-ink);
}

.c4c-home .home-grid {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.c4c-home .home-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dcd9cd;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 120px;
}

.c4c-home .home-eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.c4c-home .home-card h2 {
  margin: 0 0 12px;
  font: normal clamp(24px, 2.2vw, 30px)/1.2 Georgia, serif;
  overflow-wrap: break-word;
}

.c4c-home .home-description {
  margin: 0 0 22px;
  color: #505648;
  font-size: 15px;
  line-height: 1.65;
}

/* Date de sortie */
.c4c-home .home-release-date {
  display: block;
  margin: -10px 0 22px;
  color: #59614f;
  font-size: 12px;
  line-height: 1.5;
}

.c4c-home .home-artwork {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-top: auto;
  border-radius: 4px;
}

.c4c-home .home-card .home-button {
  margin-top: 20px;
}

/* Tablette et mobile */
@media (max-width: 900px) {
  .c4c-home .home-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .c4c-home .home-hero {
    padding-top: 132px;
  }

  .c4c-home .home-card h2 {
    font-size: 30px;
  }
}

@media (max-width: 420px) {
  .c4c-home .home-discover {
    padding: 28px 16px 40px;
  }

  .c4c-home .home-card {
    padding: 20px;
  }

  .c4c-home .home-hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.c4c-home) {
    scroll-behavior: auto;
  }
}
/* Ajustements : accueil vert uni et plein écran */

body.c4c-home {
  --home-green: #55743D;
  background: var(--home-green);
  color: #fff;
}

/* Suppression du bandeau derrière le menu */
.c4c-home .site-header {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Premier écran complet :
   les trois rubriques restent sous la ligne de flottaison */
.c4c-home .home-hero {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 24px 40px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: var(--home-green);
  color: #fff;
}

.c4c-home .home-hero > * {
  flex-shrink: 0;
}

.c4c-home .home-hero h1,
.c4c-home .home-intro {
  color: #fff;
}

/* Même vert pour la partie inférieure */
.c4c-home .home-discover {
  background: var(--home-green);
  color: #fff;
}

/* Cartes transparentes, contours discrets */
.c4c-home .home-card {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: none;
}

.c4c-home .home-eyebrow,
.c4c-home .home-card h2,
.c4c-home .home-description,
.c4c-home .home-release-date {
  color: #fff;
}

/* Boutons assortis au fond, texte blanc */
.c4c-home .home-button,
.c4c-home .home-button-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}

.c4c-home .home-button:hover,
.c4c-home .home-button-light:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: #fff;
}

.c4c-home .home-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Icônes musicales blanches */
.c4c-home .home-icons-overlay a,
.c4c-home .home-icons-overlay img {
  opacity: 1;
}

/* Espacement adapté au mobile */
@media (max-width: 600px) {
  .c4c-home .home-hero {
    padding: 120px 20px 36px;
  }
}
/* Même police que les autres pages */
.c4c-home .home-hero h1,
.c4c-home .home-card h2 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: normal;
}

/* Hiérarchie du titre et du sous-titre sur mobile */
@media (max-width: 600px) {
  .c4c-home .home-hero h1 {
    font-size: clamp(27px, 7.5vw, 40px);
    white-space: nowrap;
    text-wrap: nowrap;
    letter-spacing: -0.03em;
  }

  .c4c-home .home-intro {
    font-size: 14px;
    line-height: 1.5;
  }
}
/* Animation d’arrivée — mobile et ordinateur */
@keyframes c4c-portrait-enter {
  from {
    transform: translateY(100vh);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes c4c-content-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Empêche le portrait de déborder pendant son arrivée */
.c4c-home .home-hero {
  overflow: hidden;
}

/* Portrait : départ hors écran, arrivée en douceur */
.c4c-home .home-portrait {
  animation: c4c-portrait-enter 1.5s cubic-bezier(.22, 1, .36, 1) both;
}

/* Les autres éléments apparaissent après le portrait */
.c4c-home .home-hero > :not(.home-portrait) {
  animation: c4c-content-enter .8s ease-out 1.5s both;
}

/* Respect des préférences de réduction des animations */
@media (prefers-reduced-motion: reduce) {
  .c4c-home .home-portrait,
  .c4c-home .home-hero > :not(.home-portrait) {
    animation: none;
  }
}
