.main-wrap:has(.presentations-page) > .hero,
.main-wrap:has(.presentations-page) > .edition-nav {
  display: none;
}

.forum-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  min-height: 44px;
  border-radius: 2px;
  color: #e5e7eb;
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.forum-menu summary::-webkit-details-marker { display: none; }
.forum-menu summary:hover { background: #25252b; }
.forum-menu:has(a[aria-current="page"]) summary { background: var(--red); color: #fff; }
.forum-menu-chevron { margin-left: auto; }
.forum-menu[open] .forum-menu-chevron { transform: rotate(180deg); }

.forum-menu-links {
  margin: 4px 0 4px 16px;
  border-left: 1px solid #555;
}

.main-nav .forum-menu-links a {
  min-height: 44px;
  font-size: 16px;
}

.main-nav .forum-menu-links a[aria-current="page"] {
  background: #25252b;
  box-shadow: none;
}

.presentation-pin svg,
.presentation-create svg,
#presentation-search svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.forum-menu summary svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forum-menu summary .forum-menu-chevron {
  width: 15px;
}

.presentations-page {
  padding: clamp(4px, 1vw, 16px) 0 24px;
}

.presentations-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 20px;
}

.presentations-header h1 {
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.12;
}

.presentations-header p {
  margin-top: 7px;
  color: var(--muted);
}

#presentation-search {
  display: flex;
  align-items: center;
  flex: 0 1 290px;
  max-width: 100%;
  min-height: 46px;
  border: 1px solid #a7b8c7;
  border-radius: 6px;
  background: #fff;
}

#presentation-search input {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  font: inherit;
}

#presentation-search button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  color: #174e79;
}

.presentation-create {
  min-height: 46px;
  border-radius: 6px;
  cursor: pointer;
  font: 700 18px var(--serif);
}

.presentation-create::-webkit-details-marker {
  display: none;
}

.presentation-editor form {
  max-width: 680px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.presentation-editor .field + .field {
  margin-top: 12px;
}

.presentation-editor textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #a7b8c7;
  border-radius: 3px;
  resize: vertical;
  font: inherit;
}

.presentation-editor [role="alert"]:not(:empty) {
  margin: 8px 0;
  color: var(--red);
}

.presentation-welcome {
  margin: 24px 0 26px;
  padding: 20px clamp(16px, 3vw, 28px);
  min-height: 166px;
  border-radius: 8px;
  background: #d8e8f4;
  background-image: linear-gradient(90deg, #d8e8f4, #d8e8f400 42%), url('./presentation-bienvenue.webp');
  background-repeat: no-repeat;
  background-size: min(55%, 550px) auto;
  background-position: right center;
}

.presentation-welcome h2 {
  margin: 8px 0 4px;
  font-size: clamp(22px, 2.4vw, 32px);
}

.presentation-welcome p {
  margin-bottom: 9px;
}

.presentation-welcome a,
.presentation-pages a {
  color: #164c77;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.presentation-pin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #174e79;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.presentation-list ul {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.presentation-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  font: 700 19px var(--serif);
  overflow-wrap: anywhere;
}

.presentation-row:hover {
  background: var(--soft);
}

.presentation-row > span:last-child {
  color: var(--muted);
  font-size: 26px;
}

.presentation-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 14px;
}

@media (max-width: 700px) {
  #presentation-search { flex-basis: 100%; }
  .presentation-welcome {
    background-image: linear-gradient(90deg, #d8e8f4 48%, #d8e8f4c7 80%), url('./presentation-bienvenue.webp');
    background-size: cover, auto 100%;
  }
}
