/********************************************
General
********************************************/
:root {
  --ink: #2b1d1a;
  --muted: #6b5e57;
  --paper: #fdf8f0;
  --panel: rgba(255, 255, 255, 0.86);
  --red: #b3202a;
  --green: #1d6b43;
  --pine: #123d2a;
  --gold: #e8b64c;
  --snow: #ffffff;
  --shadow: 0 22px 55px rgba(18, 61, 42, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  color: var(--ink) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(179, 32, 42, 0.22), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(29, 107, 67, 0.24), transparent 30rem),
    linear-gradient(135deg, #fdf3ea 0%, #f6fbf7 48%, #fdf8f0 100%);
}

/* Petits flocons de neige en fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(18, 61, 42, 0.12) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(179, 32, 42, 0.10) 1px, transparent 1.5px);
  background-size: 46px 46px, 31px 31px;
  background-position: 0 0, 15px 20px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

a {
  color: var(--gold) !important;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

/********************************************
Big title
********************************************/
.title {
  position: relative;
  padding: 28px 20px 34px;
  color: var(--ink);
}

.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.subtitle::before,
.subtitle::after {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.title h1 {
  margin: 0;
  color: var(--pine);
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 0.92;
  text-wrap: balance;
}

/* Ruban rayé façon sucre d'orge */
.title h1::after {
  content: "";
  display: block;
  width: min(220px, 42vw);
  height: 10px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg,
      var(--red) 0 10px,
      var(--snow) 10px 20px,
      var(--green) 20px 30px,
      var(--snow) 30px 40px);
  box-shadow: 0 0 0 1px rgba(18, 61, 42, 0.15);
}

/********************************************
Themes
********************************************/
.box {
  padding: 18px 0;
  animation: rise-in 0.7s ease both;
}

.box:nth-of-type(2) {
  animation-delay: 0.05s;
}

.box:nth-of-type(3) {
  animation-delay: 0.1s;
}

.box:nth-of-type(4) {
  animation-delay: 0.15s;
}

.box:nth-of-type(5) {
  animation-delay: 0.2s;
}

.box:nth-of-type(6) {
  animation-delay: 0.25s;
}

.theme,
.list {
  min-height: 150px;
  border-radius: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.theme {
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid rgba(179, 32, 42, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(253, 248, 240, 0.8)),
    linear-gradient(135deg, rgba(179, 32, 42, 0.18), rgba(29, 107, 67, 0.18));
  box-shadow: 0 16px 34px rgba(18, 61, 42, 0.12);
}

.theme::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(29, 107, 67, 0.4);
  border-radius: 18px;
}

/* Petites boules de Noël */
.theme::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: -20px 24px 0 var(--red), 4px 34px 0 -3px var(--green);
}

.theme h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--red);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 850;
  line-height: 1.05;
  text-wrap: balance;
}

.box:hover .theme,
.box:hover .list {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/********************************************
Articles list
********************************************/
.list {
  color: #ffffff;
  position: relative;
  padding: 1.35rem 1.45rem;
  background:
    linear-gradient(145deg, rgba(18, 61, 42, 0.98), rgba(29, 92, 58, 0.96)),
    var(--pine);
  box-shadow: 0 16px 34px rgba(18, 61, 42, 0.2);
}

.list::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(232, 182, 76, 0.85), rgba(179, 32, 42, 0.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.list ul {
  display: grid;
  gap: 0.95rem;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.55rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--red));
  box-shadow: 0 0 0 5px rgba(232, 182, 76, 0.16);
}

.bold {
  display: inline-block;
  margin-bottom: 0.12rem;
  color: #ffffff;
  font-weight: 800;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 767.98px) {
  .page-shell {
    width: min(100% - 20px, 640px);
    padding: 28px 0 44px;
  }

  .title {
    padding-inline: 0;
  }

  .box {
    padding: 12px 0;
  }

  .theme,
  .list {
    min-height: auto;
    border-radius: 18px;
  }

  .theme {
    padding: 1.45rem 1rem;
  }

  .list {
    padding: 1.2rem;
  }
}
