/* ==========================================================================
   NORUBI - accueil, sur le modèle de l'accueil du blog (lecole.norubi.com) :
   tuiles de navigation, derniers contenus avec vignettes, actualités.
   Complète le style de la page (variables --paper, --radius, --soft-shadow).
   ========================================================================== */
.home-tilegrid, .home-posts { margin: 0; padding: 0; list-style: none; }
.home-tilegrid > li, .home-posts > li { margin: 0; }

/* 1. tuiles */
.home-tilegrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px);
  width: min(1100px, 100%); margin: clamp(28px, 4.5vw, 56px) auto 0;
}
.home-tile-wide { grid-column: 1 / -1; }
.home-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 100%; min-height: clamp(112px, 11vw, 150px); padding: 18px 14px; border-radius: 30px; text-align: center;
  color: #070707; background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(243, 247, 250, .86));
  border: 1px solid rgba(255, 255, 255, .86); box-shadow: 0 20px 50px rgba(0, 0, 0, .14);
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.home-tile:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(0, 0, 0, .18); }
.home-tile .latin { font-family: Georgia, "Times New Roman", serif; font-size: clamp(20px, 2.6vw, 34px); font-weight: 950; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; }
.home-tile .jp { font-size: clamp(14px, 1.7vw, 22px); font-weight: 950; line-height: 1.4; overflow-wrap: anywhere; }
.home-tile .note { font-size: 13px; font-weight: 800; line-height: 1.4; color: #444; overflow-wrap: anywhere; }
.home-tile--blue { background: linear-gradient(180deg, #edf4ff, #d9e7fb); }
.home-tile--gold { background: linear-gradient(180deg, #fff7dc, #ffe8a6); }
.home-tile--shop { background: linear-gradient(180deg, #f3fbf5, #dcf3e3); }
.home-tile--contact { background: linear-gradient(180deg, #5aa0df, #3b82c6); border-color: rgba(255, 255, 255, .42); min-height: clamp(96px, 9vw, 120px); }
.home-tile--contact .note { color: #070707; }

/* 2. panneaux de publications */
.home-panel {
  width: min(1100px, 100%); margin: clamp(26px, 4vw, 48px) auto 0; padding: clamp(20px, 3vw, 34px);
  text-align: left; border-radius: var(--radius, 30px); background: var(--paper, rgba(255, 255, 255, .9));
  border: 1px solid rgba(255, 255, 255, .78); box-shadow: var(--soft-shadow, 0 16px 38px rgba(0, 0, 0, .12));
  backdrop-filter: blur(12px);
}
.home-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 16px; }
.home-panel-head h2 { margin: 0; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.4; letter-spacing: .02em; font-weight: 900; }
.home-panel-head .info-link { white-space: nowrap; }
.home-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.home-post {
  display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(0, 0, 0, .06);
}
.home-post-thumb { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; background: #e3ebf2; }
.home-post-thumb img { display: block; width: 88px; height: 88px; object-fit: cover; }
.home-post-body { min-width: 0; }
.home-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 4px; font-size: 13px; font-weight: 800; line-height: 1.5; }
.home-post-cat { padding: 2px 10px; border-radius: 999px; background: #e7f0fb; color: #1d4f8f; }
.home-post-meta time { color: #444; }
.home-post-title { display: inline-block; font-weight: 850; line-height: 1.6; color: #0b2a52; overflow-wrap: anywhere; text-decoration: none; }
.home-post-title:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .home-tilegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-posts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-tile { padding: 16px 10px; border-radius: 26px; }
  .home-tile .note { font-size: 12px; }
  .home-post { gap: 12px; padding: 10px; }
}
@media (max-width: 359px) {
  .home-tilegrid { grid-template-columns: 1fr; }
}
