.bulletin-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bulletin-header, .bulletin-row {
  display: grid;
  grid-template-columns: 150px 120px 1fr 1fr 1.5fr 100px;
  align-items: start;
  gap: 1rem;
  padding: 0.8rem;
  border-bottom: 1px solid #ddd;
}

.bulletin-header {
  background: #3c66a1;
  color: white;
  font-weight: 400;
  padding: 12px;
  border-radius: 9px 9px 0 0;
  text-transform: uppercase;
  font-size: 1.1em;
}

.bulletin-image-cell {
  position: relative;
}

.bulletin-cell h4 {
   font-weight: 700;
   font-size: 1em;
   text-transform: uppercase;
   margin-top: 0;
}

.bulletin-cell h5 {
   font-weight: 700;
   font-size: 1em;
   margin-top: 0;
}

.bulletin-image {
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bulletin-numero-box {
  position: absolute;
  top: 6px;
  left: 6px;
  background: white;
  color: #3c66a1;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bulletin-btn {
  display: inline-block;
  background: #3c66a1;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  text-align: center;
  font-size: 1.3em;
}
.bulletin-btn:hover {
  background: #3c66a1;
  color: white;
}
.bulletin-btn:visited {
  background: #3c66a1;
  color: white;
}


/* --- Responsive --- */
@media (max-width: 900px) {
  .bulletin-header {
    display: none; /* on cache la ligne d'entête */
  }

  .bulletin-row {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .bulletin-cell {
    display: flex;
    flex-direction: column;
  }

  .bulletin-image-cell {
    align-self: center;
  }

  .bulletin-image {
    width: 180px;
    height: 180px;
  }

  .bulletin-numero-box {
    top: 8px;
    left: 8px;
    font-size: 1.4rem;
  }

  .bulletin-row::before {
    content: attr(data-label);
  }

  .bulletin-table {
    gap: 1rem;
  }

  .bulletin-row .bulletin-cell:not(:first-child):not(:last-child) {
    margin-left: 0;
  }

  .bulletin-row ul {
    margin: 0;
    padding-left: 1.2rem;
  }

  .bulletin-row .bulletin-btn {
    align-self: flex-start;
  }
}

