body.secret_santa {
  main > * {
    outline: 1px solid red;
  }

  &.events.show {
    main {
      display: grid;
      grid-template-areas:
        "header header"
        "users santas"
        "users children";

      header {
        grid-area: header;
      }

      .users {
        grid-area: users;
      }

      .santas {
        grid-area: santas;
      }

      .children {
        grid-area: children;
        .child {
          outline: 1px solid blue;
        }
      }
    }
  }

  &.participations.show {
    height: 100dvh;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr;

    main {
      overflow: hidden;
      display: grid;
      grid-template-areas:
        "header header"
        "letter messages";
      /* On définit les colonnes (ex: 40% lettre, 60% messages) */
      grid-template-columns: 1fr 1.5fr;
      /* Le header est auto, le reste (lettre/messages) prend tout le bas */
      grid-template-rows: auto 1fr;

      header {
        grid-area: header;
      }

      .letter {
        grid-area: letter;
        overflow-y: auto;
        /* La lettre peut scroller indépendamment si trop longue */

        margin: 1rem;
        padding: 1rem;
        border: 1px solid green;
        border-radius: 5px;
        background-color: wheat;
        color: rgb(128, 97, 41);
        font-family: cursive;
      }

      .messages {
        grid-area: messages;
        display: grid;
        grid-template-areas:
          "title"
          "list"
          "form";
        grid-template-rows: auto 1fr auto;
        height: 100%;
        /* min-height: 0; */
        overflow: hidden;

        h2 {
          grid-area: title;
          margin: 0;
          padding: 10px;
          background-color: white;
          z-index: 1;
        }

        .list {
          grid-area: list;
          overflow-y: auto;
          display: flex;
          flex-direction: column-reverse;
          /* L'astuce pour l'auto-scroll */
          padding: 1rem;
          gap: 1rem;
          mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);

          article {
            border: 1px solid #eee;
            border-radius: 5px;
            padding: 0.8rem;
            background-color: antiquewhite
          }
        }

        form {
          grid-area: form;
          background-color: white;
          padding: 10px;
          border-top: 1px solid #eee;

          input[type="text"] {
            width: 100%;
          }
        }
      }
    }

    @media (max-width: 768px) {
      main {
        /* On définit deux colonnes de 100% de large chacune */
        /* grid-template-columns: 100% 100%; */
        grid-template-areas:
          "header header"
          "letter messages";

        overflow-x: auto;
        scroll-snap-type: x mandatory;

        /* On s'assure que le header ne scrolle pas avec le reste */
        header {
          position: sticky;
          left: 0;
          width: 100dvw;
        }

        .letter,
        .messages {
          scroll-snap-align: start;
          scroll-margin: 1rem;
          width: 85dvw;
        }
      }
    }
  }
}