/* Retouches de lisibilité : mêmes polices, couleurs, photos et composition. */
.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}
.page-home .hero__actions .button {
  min-height: 62px;
  padding: 17px 24px;
  line-height: 1.45;
  letter-spacing: .045em;
}
.page-home .hero__actions .button > span { flex-shrink: 0; }
.page-home .hero__actions .button--ghost {
  color: #fbf6ee !important;
  background: rgba(12, 11, 8, .88);
  border-color: #c8aa64;
}
.page-home .hero__actions .button--ghost:hover {
  background: #282213;
  border-color: #ebd597;
}
.hero__projects { margin: 18px 0 0; }
.hero__projects a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper);
  font-size: .95rem;
  text-underline-offset: 5px;
}
.page-home .hero__copy { color: #eee8dc; text-shadow: 0 2px 12px #000; }
.page-home .hero__content { padding-bottom: 82px; }
html[data-theme="light"] .page-home .hero__actions .button--ghost {
  color: #302610 !important;
  border-color: #8b6d2e;
  background: rgba(255, 252, 243, .95);
}
html[data-theme="light"] .page-home .hero__actions .button--ghost:hover { background: #eee2c4; }
html[data-theme="light"] .page-home .hero__copy { color: #211b12; text-shadow: none; }
.gallery-page .tabs a { min-height: 48px; line-height: 1.5; text-align: center; }
.gallery-project-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding: 24px 0;
  border-top: 1px solid var(--line, rgba(225,197,127,.25));
}
.gallery-project-cta p { margin: 0; font-family: "Playfair Display", Georgia, serif; }
.gallery-project-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid #c5a65f;
  border-radius: 12px;
  color: #181207;
  background: #dec687;
  font: 600 .85rem/1.5 "Cinzel", Georgia, serif;
  text-decoration: none;
}
.gallery-project-cta a:hover { background: #eedaa3; }
.site-public a:focus-visible, .gallery-page a:focus-visible, .rdv-body a:focus-visible {
  outline: 2px solid var(--copper-light, #e1c57f);
  outline-offset: 5px;
}
@media (max-width: 760px) {
  .page-home .hero__actions { flex-direction: column; }
  .page-home .hero__actions .button { width: 100%; min-height: 60px; font-size: .78rem; }
  .page-home .hero__projects { text-align: center; }
  .page-home .hero__projects a { font-size: .9rem; }
  .gallery-project-cta { flex-direction: column; align-items: stretch; }
  .gallery-project-cta a { text-align: center; }
}
@media (max-width: 520px) {
  html:not([data-theme="light"]) .page-home .hero__copy { background: rgba(8, 7, 5, .76); }
}

/* Photo cards keep their own dark palette in both page themes. */
.page-home .work-card {
  --paper: #fffaf1;
  --paper-dim: #eee5d6;
  --copper-light: #e1c57f;
}
.page-home .work-card__content { min-width: 0; }
.page-home .work-card .work-card__action {
  max-width: 100%;
  min-width: 0;
  padding-block: 12px;
  color: #17140e;
  border-color: #ead59a;
  background: #ead59a;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  line-height: 1.5;
  white-space: normal;
}
.page-home .work-card .work-card__action span { flex: 0 0 auto; color: #17140e; }
.page-home .work-card:hover .work-card__action,
.page-home .work-card:focus-visible .work-card__action {
  color: #17140e;
  background: #fff3cd;
  border-color: #fff3cd;
}
.page-home .work-card:hover .work-card__action span,
.page-home .work-card:focus-visible .work-card__action span { color: inherit; }
.page-home .work-card:focus-visible { outline: 3px solid #e1c57f; outline-offset: 5px; }

/* Category-specific headings and captions remain readable on small screens. */
.gallery-page .gallery-hero { gap: 18px; padding: 36px 8px 58px; }
.gallery-page .gallery-hero h1 {
  max-width: 22ch;
  font-size: clamp(1.85rem, 5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: .02em;
  overflow-wrap: break-word;
}
.gallery-page .gallery-hero__intro { max-width: 720px; }
.gallery-page .grid-item__caption {
  display: block;
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 12px 14px;
  color: #f4eddf;
  background: #17140e;
  font: 400 .94rem/1.5 "Playfair Display", Georgia, serif;
  overflow-wrap: anywhere;
}
.gallery-page .grid.is-balanced .grid-item img { height: calc(100% - var(--gallery-caption-height, 0px)); }
.gallery-page .grid-item::after,
.gallery-page .grid-item::before { bottom: var(--gallery-caption-height, 0px); }
.gallery-page .grid-item__action { bottom: calc(var(--gallery-caption-height, 0px) + 13px); color: #fffaf1; }
.gallery-page .grid-item__action > span { color: #e1c57f; }
.gallery-page .grid:not(.is-balanced) .grid-item { aspect-ratio: auto !important; }
.gallery-page .grid:not(.is-balanced) .grid-item img { height: auto; }
.gallery-page .grid:not(.is-balanced) .grid-item__caption { position: relative; }
.gallery-page .gallery-hero__links { position: relative; z-index: 1; margin: 0; line-height: 1.7; }
.gallery-page .gallery-hero__links a { color: var(--gallery-ivory); text-underline-offset: 4px; }
html[data-theme="light"] .gallery-page .grid-item__caption {
  color: #211b12;
  background: #faf7ef;
}
@media (max-width: 520px) {
  .page-home .work-card__content { padding: 22px 18px; }
  .page-home .work-card .work-card__action { width: 100%; justify-content: space-between; font-size: .8125rem; }
  .gallery-page .gallery-collection__heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .gallery-page .gallery-collection__heading h2 { font-size: 1.25rem; }
  .gallery-page .grid-item__caption { padding: 10px; font-size: .85rem; }
}

/* Accueil : échange direct avec le tatoueur, réservation en second choix. */
.page-home .hero__invitation {
  margin: 26px 0 14px;
  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 560px;
}
.page-home .hero__actions { margin-top: 0; }
.page-home .hero__projects { display: flex; flex-wrap: wrap; gap: 8px 26px; }
@media (max-width: 760px) {
  .page-home .hero__projects { justify-content: center; gap: 0 20px; }
  .page-home .hero__invitation { font-size: 1rem; }
}

@media (max-width: 760px) {
  .page-home .hero__location { display: block; font-size: .72rem; letter-spacing: .14em; line-height: 1.8; }
  .page-home .hero__location::before, .page-home .hero__location-separator { display: none; }
  .page-home .hero__location > span:last-child { display: block; }
}
