/* Accueil — œuvre du jour + sélection (16/11/2026, maquette et spec de Louise). Complète base.css. Aucun style inline.
   Chargée sur l'accueil seulement, quand HOME_DAILY_FEATURE = True. */

/* L’œuvre du jour n’est jamais recadrée ni agrandie : cimaise existante, contain. */
.une-jour .cimaise a.cadre{cursor:pointer}
.une-jour .cimaise img{
  max-width:100%;
  height:auto;
  max-height:min(75vh, 640px);
  width:auto;
  object-fit:contain;
}
.une-jour .cartel .actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--s3);
  margin:0;
}
.une-jour .cartel .actions .btn{min-height:44px;display:inline-flex;align-items:center}
.une-jour .cartel dl{margin-top:0}

/* Rangée de sélection : 5 colonnes dès 860 px, grille 2×2 en dessous (la 5e est masquée). */
.selection-grille{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:var(--s5) var(--s4);
}
.selection-grille a{
  display:flex;
  flex-direction:column;
  gap:var(--s2);
  min-height:44px;
  text-decoration:none;
  color:inherit;
  height:100%;
}
.selection-visuel{
  display:block;
  aspect-ratio:1;
  background:var(--cimaise);
  overflow:hidden;
}
.selection-visuel picture{display:block;width:100%;height:100%}
.selection-visuel img{
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center;
  display:block;
}
.selection-grille .legende .titre-oeuvre,
.selection-grille .legende .by{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
}
.selection-grille a:hover .titre-oeuvre,
.selection-grille a:focus-visible .titre-oeuvre{color:var(--encre)}
.selection-grille a:hover .selection-visuel,
.selection-grille a:focus-visible .selection-visuel{
  outline:1px solid var(--trait-fort);
  outline-offset:0;
}
.selection-grille a:focus-visible{
  outline:3px solid #2E5BD8;
  outline-offset:3px;
}

@media (max-width:859px){
  .selection-grille{grid-template-columns:repeat(2, minmax(0, 1fr));gap:var(--s4) var(--s3)}
  .selection-grille li:nth-child(5){display:none}
  .une-jour .cimaise{min-height:0;padding:var(--s4)}
  .une-jour .cimaise img{max-height:70vh}
}
