/* Cracoviae — Mise en page éditoriale de la page d'accueil */
.cr-home-wrap {
  padding: 20px 0 42px;
}

/* ---------------------------------------------------------
   Hero en 2 colonnes : Présentation + Diaporama compact
   --------------------------------------------------------- */
.cr-home-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 14px 24px;
  align-items: center;
  background: #fbf3e2;
  border: 1px solid #ebd9c2;
  border-radius: 16px;
  padding: 20px 26px;
  margin-bottom: 24px;
  box-shadow: 0 8px 26px rgba(70, 45, 25, 0.08);
}

.cr-hero-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecdcc4;
}

.cr-hero-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cr-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 45% 38%;
  border: 2px solid #e4cfa9;
  box-shadow: 0 3px 8px rgba(70, 45, 25, 0.14);
  flex-shrink: 0;
}

.cr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3e0c2;
  color: #7a1b47;
  border: 1px solid #e4cfa9;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cr-hero-head h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 700;
  color: #7a1b47;
}

.cr-hero-intro p {
  margin: 0 0 14px;
  font-size: 15.2px;
  line-height: 1.68;
  color: #44352c;
}

.cr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cr-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #8e1f54 !important;
  color: #ffffff !important;
  border: 1.5px solid #8e1f54;
  border-radius: 25px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(142, 31, 84, 0.24);
  transition: transform 0.18s ease, background 0.18s ease;
}

.cr-hero-btn-primary:hover {
  background: #731643 !important;
  transform: translateY(-1px);
}

.cr-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fffdfa !important;
  color: #8e1f54 !important;
  border: 1.5px solid #8e1f54;
  border-radius: 25px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cr-hero-btn-secondary:hover {
  background: #f8e8ef !important;
  transform: translateY(-1px);
}

.cr-hero-media .carousel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e4d0b5;
  box-shadow: 0 6px 20px rgba(70, 45, 25, 0.14);
}

.cr-hero-media .carousel-inner > .item > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1180 / 444;
  object-fit: cover;
}

.cr-hero-media .carousel-indicators {
  bottom: 8px !important;
  left: 50% !important;
  right: auto !important;
  width: auto !important;
  margin-left: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
}

/* ---------------------------------------------------------
   Sections catégories (« Avant-goût du jour »)
   --------------------------------------------------------- */
#cr-home-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cr-cat-section {
  background: #fbf3e2;
  border: 1px solid #ebd9c2;
  border-radius: 16px;
  padding: 24px 26px 26px;
  box-shadow: 0 6px 20px rgba(70, 45, 25, 0.06);
}

.cr-cat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid #f0e1cb;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.cr-cat-title-wrap h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #7a1b47;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.cr-cat-day-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #776253;
  background: #fffdfa;
  border: 1px solid #e4d0b5;
  padding: 3px 10px;
  border-radius: 14px;
}

.cr-cat-title-wrap p {
  margin: 0;
  font-size: 14.2px;
  color: #5b4638;
}

.cr-cat-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffdfa !important;
  color: #8e1f54 !important;
  border: 1.5px solid #8e1f54;
  border-radius: 22px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.cr-cat-more:hover {
  background: #8e1f54 !important;
  color: #ffffff !important;
}

.cr-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cr-home-card {
  background: #fffdfa;
  border: 1px solid #e4d0b5;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(70, 45, 25, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none !important;
  color: inherit;
}

.cr-home-card:hover,
.cr-home-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(70, 45, 25, 0.13);
  text-decoration: none !important;
  color: inherit;
}

.cr-home-card:hover h3,
.cr-home-card:hover p,
.cr-home-card:hover .cr-card-cta {
  text-decoration: none !important;
}

.cr-card-thumb {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0e1cb;
}

.cr-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cr-home-card:hover .cr-card-thumb img {
  transform: scale(1.05);
}

.cr-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.cr-card-body h3 {
  margin: 0 0 7px;
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 700;
  color: #7a1b47;
}

.cr-card-body p {
  margin: 0 0 12px;
  font-size: 13.8px;
  line-height: 1.55;
  color: #5b4638;
  flex: 1 1 auto;
}

.cr-cat-section[data-cat="aquarelles"] .cr-card-body p {
  display: none;
}

.cr-cat-section[data-cat="aquarelles"] .cr-card-body h3 {
  margin-bottom: 12px;
  flex: 1 1 auto;
}

.cr-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  background: #fffdfa;
  color: #8e1f54;
  border: 1.5px solid #8e1f54;
  border-radius: 22px;
  padding: 5px 14px;
  font-size: 12.8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cr-home-card:hover .cr-card-cta {
  background: #8e1f54;
  color: #ffffff;
}

/* ---------------------------------------------------------
   Animations au scroll (révélation fluide en cascade)
   --------------------------------------------------------- */
.cr-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cr-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cr-cat-grid .cr-reveal:nth-child(2) { transition-delay: 90ms; }
.cr-cat-grid .cr-reveal:nth-child(3) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  .cr-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 991px) {
  .cr-home-hero {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
  .cr-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cr-hero-head h1 {
    font-size: 21px;
  }
  .cr-cat-section {
    padding: 18px 16px 20px;
  }
  .cr-cat-grid {
    grid-template-columns: 1fr;
  }
}
