.fiche { max-width: 1160px; padding-block: 23px 58px; min-height: 70vh; }
.detail-view .masthead-inner { padding: var(--dock-height) 0 0; }
.detail-view .categories { display: none; }
.detail-view .search-slot { min-height: 0; margin: 0; }
.fiche-toolbar, .fiche-actions, .fiche-actions button, .fiche-place { display: flex; align-items: center; }
.fiche-toolbar { justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.fiche-back, .fiche-actions button { font-size: .875rem; font-weight: 650; }
.fiche-back { color: var(--green); text-underline-offset: 3px; }
.fiche-actions { gap: 8px; }
.fiche-actions button, .fiche-all-photos {
  justify-content: center; gap: 7px; min-height: 37px; padding: 7px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: white; color: var(--green);
}
.fiche-actions button:hover, .fiche-all-photos:hover { background: var(--cream); }
.fiche-actions button[aria-pressed="true"] .icon { fill: var(--orange); stroke: var(--orange); }
.fiche-actions .icon { width: 16px; height: 16px; }
.fiche-heading { margin-bottom: 19px; }
.fiche-heading h1 { font-size: clamp(2.3rem, 4.5vw, 4.3rem); letter-spacing: -.055em; }
.fiche-heading h1:focus { outline: none; }
.fiche-category { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 7px; color: var(--orange); font-size: .875rem; font-weight: 700; }
#fiche-demo { border: 1px solid var(--border); border-radius: 99px; padding: 2px 9px; color: var(--muted); font-size: .75rem; font-weight: 550; }
.fiche-place { gap: 5px; margin: 9px 0 0; color: var(--muted); }
.fiche-place .icon { width: 16px; }
.fiche-gallery { position: relative; }
.fiche-photos {
  display: grid; height: clamp(280px, 36vw, 440px);
  grid-template-columns: 1.65fr .8fr .8fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.fiche-photo {
  min-width: 0; min-height: 0; overflow: hidden; padding: 0;
  border: 0; border-radius: 14px; background: #f0e6d9; color: var(--green);
}
.fiche-photo:hover img { filter: brightness(.94); }
.fiche-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fiche-photo:first-child { grid-row: span 2; border-radius: 23px 14px 14px 23px; }
.fiche-photos[data-count="0"], .fiche-photos[data-count="1"] { grid-template-columns: 1fr; }
.fiche-photos[data-count="2"], .fiche-photos[data-count="3"] { grid-template-columns: 1.7fr 1fr; }
.fiche-photos[data-count="2"] .fiche-photo:nth-child(2) { grid-row: span 2; }
.fiche-photos[data-count="4"] .fiche-photo:nth-child(2) { grid-column: span 2; }
.fiche-all-photos { position: absolute; bottom: 14px; right: 14px; display: flex; align-items: center; font-size: .875rem; font-weight: 650; }
.fiche-all-photos .icon { width: 15px; height: 15px; }
.fiche-thumbnails { display: none; }
.fiche-empty-photo, .card-image-empty {
  display: grid; place-items: center; color: var(--green);
  background: linear-gradient(135deg, #e8eddf, #f8eadb);
}
.fiche-empty-photo .icon { width: 55px; height: 55px; opacity: .62; }
.card-image-empty .icon { width: 32px; height: 32px; opacity: .62; }
.fiche-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 325px); gap: clamp(24px, 6vw, 84px); margin-top: 25px; align-items: start; }
.fiche-description { min-width: 0; padding-block: 8px; overflow-wrap: anywhere; }
.fiche-description p { white-space: pre-line; margin: 12px 0; color: var(--muted); line-height: 1.65; }
.fiche-facts { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 16px 0 0; padding: 0; }
.fiche-facts li { padding: 5px 10px; background: #eaf0e6; color: var(--green); border-radius: 8px; font-size: .875rem; }
.fiche-credits { margin-top: 22px; color: var(--muted); font-size: .8125rem; }
.fiche-credits summary { cursor: pointer; }
.fiche-contact {
  position: sticky; top: calc(var(--dock-height) + 16px); padding: 20px;
  border: 1px solid var(--border); border-radius: 20px; background: white; box-shadow: 0 5px 18px #4734290c;
}
.fiche-price { margin: 0 0 15px; color: var(--green); font: 1.65rem/1.1 var(--serif); }
.fiche-host { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: .875rem; }
.fiche-avatar { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--orange); font-weight: 700; }
.fiche-cta {
  display: block; width: 100%; min-height: 43px; padding: 9px 14px; text-align: center; text-decoration: none;
  border: 0; border-radius: 999px; color: white; background: var(--orange); font-weight: 700;
}
.fiche-cta:hover { background: #9e3613; }
.fiche-dialog {
  width: min(calc(100% - 28px), 620px); max-height: 90dvh; padding: 20px; margin: auto;
  border: 1px solid var(--border); border-radius: 20px; background: var(--paper); color: var(--ink);
}
.fiche-dialog::backdrop { background: #253a30a0; }
.fiche-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fiche-dialog-close { min-height: 36px; min-width: 36px; border-radius: 50%; border: 1px solid var(--border); color: var(--green); background: white; font-size: 1.3rem; }
.fiche-dialog-image { display: block; width: 100%; height: min(55dvh, 410px); object-fit: contain; border-radius: 12px; background: #eee9df; }
.fiche-dialog-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.fiche-dialog-controls button { border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; color: var(--green); background: white; }
.fiche-dialog-field { display: block; width: 100%; margin: 10px 0; border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; color: var(--ink); font: inherit; }

@media (max-width: 800px) {
  .fiche { padding-top: 16px; }
  .fiche-toolbar { margin-bottom: 15px; }
  .fiche-actions button { font-size: 0; width: 36px; padding: 0; }
  .fiche-heading h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .fiche-photos, .fiche-photos[data-count] { height: auto; display: block; }
  .fiche-photos > .fiche-photo:first-child { display: block; width: 100%; height: auto; aspect-ratio: 1.34; border-radius: 16px; }
  .fiche-photos > .fiche-empty-photo:first-child { display: grid; }
  .fiche-photos > .fiche-photo:nth-child(n+2), .fiche-all-photos { display: none; }
  .fiche-thumbnails { display: flex; gap: 7px; margin-top: 8px; overflow-x: auto; padding: 3px; }
  .fiche-thumbnails .fiche-photo { flex: 0 0 73px; height: 51px; border-radius: 8px; }
  .fiche-thumbnails [aria-pressed="true"] { outline: 2px solid var(--green); outline-offset: 1px; }
  .fiche-content { grid-template-columns: 1fr; gap: 13px; margin-top: 16px; }
  .fiche-contact { position: static; }
}

@media (min-width: 801px) {
  .section:is([data-category="exemples"], [data-category="services"]) .cards {
    grid-auto-columns: min(400px, calc((100% - 16px) / 2));
  }
}
