.page-index {
  background-image: url("/images/BodyAccueil.png");
  background-color: #000;
  background-size: auto 100vh;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin: 0;
  overflow-x: hidden;
}

.home-page {
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto 80px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.home-summary {
  position: sticky;
  top: calc(var(--header-height, 120px) + 20px);
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.home-summary nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-summary a {
  color: #1b1208;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  padding: 8px 10px;
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.home-summary a:hover,
.home-summary a:focus-visible {
  background: rgba(252, 102, 2, 0.35);
  transform: translateX(4px);
  outline: none;
}

/* Icônes du sommaire */
.summary-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Alignement icône + texte */
.home-summary a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-cta {
  display: flex;
  justify-content: center;
}

.summary-cta img {
  width: min(180px, 100%);
  height: auto;
  transition: transform 0.2s ease;
}

.summary-cta img:hover {
  transform: scale(1.04);
}

.back-to-summary {
  display: none;
}

.home-card {
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 2px 18px rgba(255, 255, 255, 0.45);
  font-size: 1.12rem;
  line-height: 1.65;
}

.home-card h1 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.home-section {
  scroll-margin-top: calc(var(--header-height, 120px));
  padding-top: 12px;
  margin-top: 28px;
}

.home-section:first-of-type {
  margin-top: 0;
}

.home-section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.home-section h3 {
  margin: 22px 0 12px;
  text-align: center;
  font-size: 1.35rem;
}

.home-section p {
  margin: 0 0 16px;
  text-align: justify;
  text-indent: 1.5em;
}

.home-section ul {
  margin: 16px auto;
  padding-left: 28px;
  max-width: 820px;
  text-align: left;
}

.home-section li {
  margin-bottom: 8px;
}

.section-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.home-note {
  text-align: center;
  text-indent: 0;
  font-weight: 700;
}

.home-note a,
.home-section a {
  color: #6c2500;
  font-weight: 700;
}

.home-note a:hover,
.home-section a:hover {
  color: #a43800;
}

.home-cta {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}

.cta-gif {
  max-width: min(420px, 100%);
  height: auto;
  transition: transform 0.2s ease;
}

.cta-gif:hover {
  transform: scale(1.04);
  cursor: url("/images/boutons/curseurPlume.png"), auto;
}

@media (max-width: 900px) {
  .home-page {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }

  .home-summary {
    position: static;
    width: 100%;
    margin: 0 auto;
  }

  .home-summary nav {
    flex-flow: row wrap;
    justify-content: center;
  }

  .home-summary a {
    text-align: center;
    background: rgba(255, 255, 255, 0.35);
  }

  .summary-cta {
    display: flex;
    justify-content: center;
  }

  .summary-cta img {
    margin: 0 auto;
  }

  .back-to-summary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(252, 206, 2, 0.35);
    color: #1b1208;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(108, 37, 0, 0.35);
  }

  .back-to-summary:hover,
  .back-to-summary:focus-visible {
    background: rgba(252, 206, 2, 0.55);
    outline: none;
  }
}

@media (max-width: 640px) {
  .home-page {
    width: min(100% - 20px, 1200px);
    margin-bottom: 48px;
  }

  .home-card {
    padding: 18px;
    font-size: 1rem;
  }

  .home-section p {
    text-align: left;
    text-indent: 0;
  }

  .section-icon {
    width: 32px;
    height: 32px;
  }
}
