.season-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .68fr);
  isolation: isolate;
  overflow: hidden;
  position: relative;
  margin-top: 20px;
  border-radius: 20px;
  background: #173b33;
  color: #fff6e5;
  text-decoration: none;
}
.season-banner-noel { background: #4a1e26; }
.season-banner-saint-valentin { background: #6b2948; }
.season-banner-halloween { background: #472637; }
.season-banner-paques { background: #345343; }
.season-banner-halloween .season-banner-action { background: #ffe0ad; color: #482116; }
.season-banner-saint-valentin .season-banner-action { background: #ffe2e9; color: #6b2948; }
.season-banner-paques .season-banner-action { background: #f9edc1; color: #2e493c; }
.season-banner-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 9px;
  padding: clamp(18px, 4vw, 39px);
  z-index: 1;
}
.season-banner-copy strong {
  font: 500 clamp(25px, 4vw, 43px)/1.05 Georgia, serif;
}
.season-banner-copy > span { font-size: clamp(12px, 2vw, 15px); }
.season-banner-action {
  margin-top: 4px;
  padding: 7px 12px;
  border-radius: 30px;
  color: #4a1e26;
  background: #fff1d5;
  font-weight: 750;
}
.season-banner:hover .season-banner-action { background: #fff; }
.season-banner img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 43%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  mask-image: linear-gradient(90deg, transparent, #000 25%);
}
.season-return {
  display: inline-block;
  margin: 25px 0 15px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green);
}
.season-admin-link {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  margin-left: 6px;
  font: 16px Georgia, serif;
  color: #536b5a;
  text-decoration: none !important;
}
.season-admin-link:hover, .season-admin-link:focus-visible { background: #e0e8db; border-radius: 6px; }
#main-hero[hidden], .season-return[hidden] { display: none; }
.season-admin { padding: 35px 0 60px; }
.season-admin h1 { font: 500 clamp(29px, 5vw, 44px)/1.1 Georgia, serif; }
.season-admin a { color: var(--green); text-decoration: underline; }
.admin-panel { max-width: 850px; padding: clamp(16px, 4vw, 28px); margin: 18px 0; border: 1px solid var(--border); border-radius: 17px; background: var(--paper); }
.admin-panel h2 { margin-top: 0; }
.admin-panel form, .admin-fields { display: grid; gap: 12px; }
.admin-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); }
.admin-panel form label { display: grid; gap: 5px; font-weight: 650; min-width: 0; }
.admin-panel input:not([type=checkbox]), .admin-panel select, .admin-panel textarea { width: 100%; min-width: 0; padding: 9px; border: 1px solid #b7c4b8; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.admin-panel .admin-check { display: flex; align-items: center; gap: 7px; }
.admin-panel fieldset { border: 1px solid var(--border); min-width: 0; border-radius: 8px; }
.admin-panel button, .admin-logout button { justify-self: start; border: 0; border-radius: 8px; padding: 10px 15px; background: var(--green); color: #fff; font-weight: 750; }
.admin-event-list { padding-left: 20px; line-height: 1.8; }
.admin-panel details { margin: 13px 0; }
.admin-panel summary { cursor: pointer; font-weight: 700; }
.admin-panel table { margin-top: 10px; border-collapse: collapse; width: 100%; font-size: .86rem; text-align: left; }
.admin-panel th, .admin-panel td { border-bottom: 1px solid var(--border); padding: 7px 4px; }
.admin-error, .admin-success { padding: 11px; border-radius: 8px; background: #fae5df; color: #651d18; }
.admin-success { background: #e6f4e4; color: #245029; }
@media (max-width: 540px) {
  .season-banner { grid-template-columns: minmax(0, 1fr) minmax(0, .38fr); }
  .season-banner img { width: 36%; }
}
@media print { .season-home-banner { display: none; } }

.season-home-banner[hidden], .season-category-banners[hidden] { display: none; }
.season-category-banners {
  --category-bg: #314437;
  --category-shade: #17271d;
  --category-focus: #617863;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}
.season-category-banners.theme-noel { --category-bg: #4a252c; --category-shade: #251119; --category-focus: #a96a52; }
.season-category-banners.theme-saint-valentin { --category-bg: #6b2948; --category-shade: #321124; --category-focus: #b86782; }
.season-category-banners.theme-halloween { --category-bg: #472637; --category-shade: #27131d; --category-focus: #b57237; }
.season-category-banners.theme-paques { --category-bg: #345343; --category-shade: #182b23; --category-focus: #758c65; }
.season-category-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
  min-height: 98px;
  padding: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--category-bg);
  color: #fff9ef;
  font-size: .94rem;
  font-weight: 750;
  text-decoration: none;
}
.season-category-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, var(--category-shade) 0%, var(--category-shade) 12%, transparent 88%);
}
.season-category-banner img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}
.season-category-banner:hover { border-color: var(--category-focus); }
.season-category-banner[aria-current="true"] {
  border-color: var(--category-focus);
  box-shadow: 0 0 0 2px #fff9ef, 0 0 0 4px var(--category-focus);
}
.season-category-banner:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.season-category-arrow { flex: none; }
@media (max-width: 800px) {
  .season-category-banners { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .season-category-banner { grid-column: span 2; min-height: 85px; }
  .season-category-banner:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 520px) {
  .season-category-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .season-category-banner, .season-category-banner:nth-last-child(-n+2) {
    grid-column: auto;
    min-height: 72px;
    padding: 8px 9px;
    font-size: .83rem;
  }
  .season-category-banner:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.admin-preview { padding-bottom: 48px; }
.admin-preview-head {
  margin-bottom: 30px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--paper);
}
.admin-preview-head h1 { margin: 0; font: 500 clamp(23px, 5vw, 33px)/1.2 Georgia, serif; }
.admin-preview-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-preview-controls a { text-decoration: none; }
.admin-preview .season-home-banner { width: 100%; }
.admin-preview .results { padding-top: 25px; }
.admin-preview-recipe { padding: clamp(18px, 4vw, 40px); }
