/* Fenaison · page Réalisations (/realisations)
   Six fiches de réception. Les trois qui ont une vraie photo la montrent ;
   les trois autres ont à la place leur carte (menu, programme, coffret),
   posée comme sur une nappe. Filtres Tout · Mariages · Entreprises · Fêtes
   de famille ; les fiches se reposent à chaque changement. */

html { scroll-padding-top: calc(var(--hdr) + 24px); }

/* ---------- Introduction ---------- */
.r-intro { padding-top: clamp(40px, 6vw, 88px); }
.r-intro-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: end; }
.r-intro-in .titre-page { grid-column: 1 / 7; font-size: clamp(40px, 4.45vw, 64px); }
.r-intro-corps { grid-column: 7 / 13; padding-bottom: 6px; }
.r-fictif {
  display: inline-flex; margin-top: 18px; background: var(--pre); border-radius: 16px; padding: 9px 14px;
  font-size: 14px; font-weight: 520; line-height: 1.4; color: var(--encre);
}
.r-filtres-in { display: none; }
.js .r-filtres-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 56px; }
.r-filtres { display: flex; flex-wrap: wrap; gap: 4px; background: var(--pre); padding: 5px; border-radius: 999px; }
.r-filtre {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 18px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 15.5px; font-weight: 560; line-height: 1;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.r-filtre:hover { background: rgb(255 255 255 / .55); }
.r-filtre[aria-pressed="true"] { background: var(--porcelaine); box-shadow: 0 8px 18px -12px rgba(23, 48, 42, .5); }
.r-nb {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--lin); font-size: 12.5px; font-weight: 650; color: var(--encre-douce); font-variant-numeric: proportional-nums lining-nums;
}
.r-filtre[aria-pressed="true"] .r-nb { background: var(--regain); color: #fff; }
.r-statut { font-size: 14.5px; color: var(--encre-douce); }

/* ---------- Fiches ---------- */
.r-liste { padding-top: 72px; display: grid; row-gap: 128px; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.r-liste.r-change { opacity: 0; transform: translate3d(0, 14px, 0); }
.fiche { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.fiche[hidden] { display: none; }
.fiche-visuel { grid-column: 1 / 8; grid-row: 1; }
.fiche-texte { grid-column: 9 / 13; grid-row: 1; }
.fiche:nth-child(even):not([data-cote]) .fiche-visuel, .fiche[data-cote="droite"] .fiche-visuel { grid-column: 6 / 13; }
.fiche:nth-child(even):not([data-cote]) .fiche-texte, .fiche[data-cote="droite"] .fiche-texte { grid-column: 1 / 5; }

.fiche-cadre {
  position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #D6DACE;
  clip-path: inset(calc((1 - var(--v)) * 5%) calc((1 - var(--v)) * 4%) round 28px);
}
.fiche-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#loches .fiche-cadre img { object-position: 50% 60%; }
#tours .fiche-cadre img { object-position: 50% 68%; }
#montbazon .fiche-cadre img { object-position: 50% 55%; }

.fiche-cat { font-size: 14px; font-weight: 600; color: var(--regain); }
.fiche-titre { margin-top: 10px; font-stretch: 116%; --w: 116; font-weight: 500; font-size: clamp(28px, 2.5vw, 36px); letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; }
.fiche-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.fiche-meta li { background: var(--pre); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 560; line-height: 1.3; }
.fiche-recit { margin-top: 18px; font-size: 16.5px; line-height: 1.6; }
.fiche-details { display: grid; gap: 8px; margin-top: 20px; }
.fiche-details li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--encre-douce); }
.fiche-details li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--regain); }
.fiche-details strong { color: var(--encre); font-weight: 600; }
.fiche-texte .lien { margin-top: 14px; }

/* La carte de la réception, à la place d’une photo */
.fiche-menu {
  position: relative; aspect-ratio: 4 / 3; border-radius: 28px; background: var(--pre);
  display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 48px);
}
.fiche-menu::before {
  content: ""; position: absolute; inset: clamp(16px, 2vw, 24px); border-radius: 20px;
  background: var(--porcelaine); box-shadow: var(--ombre);
}
.fiche-menu > * { position: relative; }
.fm-label { padding: 8px 0 0 8px; font-size: 14px; font-weight: 600; color: var(--regain); }
.fm-plats { margin-block: auto; padding: 0 8px; display: grid; gap: clamp(10px, 1.3vw, 18px); }
.fm-plats li {
  font-stretch: 112%; --w: 112; font-weight: 480; font-size: clamp(21px, 2vw, 28px); letter-spacing: -.016em; line-height: 1.16;
  text-wrap: balance;
}
.fm-pied { padding: 0 0 8px 8px; font-size: 14px; color: var(--encre-douce); }

@media (prefers-reduced-motion: reduce) {
  .fiche-cadre { clip-path: inset(0 round 28px); }
  .r-liste.r-change { opacity: 1; transform: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1023px) {
  .r-intro-in .titre-page, .r-intro-corps { grid-column: 1 / -1; }
  .r-liste { row-gap: 88px; }
  .fiche, .fiche:nth-child(even):not([data-cote]), .fiche[data-cote="droite"] { row-gap: 32px; }
  .fiche .fiche-visuel, .fiche:nth-child(even):not([data-cote]) .fiche-visuel, .fiche[data-cote="droite"] .fiche-visuel { grid-column: 1 / -1; grid-row: 1; }
  .fiche .fiche-texte, .fiche:nth-child(even):not([data-cote]) .fiche-texte, .fiche[data-cote="droite"] .fiche-texte { grid-column: 1 / -1; grid-row: 2; max-width: 680px; }
  .fiche-cadre, .fiche-menu { aspect-ratio: 3 / 2; }
}

/* ---------- Mobile ---------- */
@media (max-width: 759px) {
  .r-intro { padding-top: 32px; }
  .js .r-filtres-in { margin-top: 36px; }
  .r-filtres { border-radius: 22px; }
  .r-filtre { padding: 0 10px 0 14px; font-size: 15px; }
  .r-liste { padding-top: 48px; row-gap: 72px; }
  .fiche .fiche-visuel { margin-inline: -10px; }
  .fiche-cadre { aspect-ratio: 4 / 3; border-radius: 22px; }
  .fiche-menu { aspect-ratio: auto; min-height: 0; border-radius: 22px; padding: 30px 26px; }
  .fiche-menu::before { inset: 10px; border-radius: 16px; }
  .fm-plats { margin-block: 18px; }
  .fm-plats li { font-size: 21px; }
  .fiche-titre { font-size: 27px; }
}
