:root {
  --bg: #060606;
  --card: #151515;
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --line: #2a2a2a;
  --white: #ffffff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top right, #1f1f1f 0, var(--bg) 42%), var(--bg);
  color: var(--text);
  font-family: "Barlow", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, #1a1a1a 0, #070707 45%), #070707;
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.4;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-wrap {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: #fff;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-logo {
  width: clamp(140px, 18vw, 220px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.brand-text small {
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.btn {
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  transition: transform 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--white);
  color: #000;
}

.btn-outline {
  border: 1px solid var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 7rem 0 3rem;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.84)),
    url("assets/workshop.jpg") center / cover no-repeat;
  filter: grayscale(0.45) contrast(1.08);
  border-radius: 1.1rem;
  z-index: -1;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  font-family: "Cinzel", serif;
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

p {
  color: #e5e5e5;
  max-width: 70ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0;
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.hero-metrics li {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #101010, #0c0c0c);
  padding: 1rem;
  border-radius: 0.9rem;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics span {
  color: var(--muted);
  margin-top: 0.4rem;
}

.section {
  padding: 4.3rem 0;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.6rem;
}

.atelier-panel {
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #181818, #0a0a0a);
  border-radius: 1rem;
  padding: 1.5rem;
}

.clean-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.clean-list li {
  padding: 0.6rem 0.8rem;
  border-left: 2px solid var(--white);
  background: #0f0f0f;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #535353;
}

.card small {
  color: var(--muted);
}

.compare-toolbar {
  width: min(100%, 500px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0 0.7rem;
}

.compare-title {
  margin: 0;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.before-after {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 3 / 4;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 1.4rem;
  background: #0b0b0b;
}

.compare-base,
.compare-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transform: scale(0.9);
}

.compare-overlay {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, var(--position) 0, var(--position) 100%, 0 100%);
}

.before-after input[type="range"] {
  position: absolute;
  inset: auto 1rem 1rem;
  width: calc(100% - 2rem);
}

.compare-label {
  position: absolute;
  top: 0.8rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.before-tag {
  left: 0.8rem;
}

.after-tag {
  right: 0.8rem;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.note {
  color: var(--muted);
  margin-top: 0.8rem;
}

.soon-zone {
  position: relative;
  margin-top: 0.7rem;
}

.soon-zone-wide {
  width: min(100%, 640px);
}

.soon-blur {
  filter: blur(3px) saturate(0.85);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.soon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.5rem 1rem;
  border: 1px solid #6a6a6a;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #f0f0f0;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
  align-items: start;
}

/* --- Galerie réalisations --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.filter-btn.active {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.gallery-item img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 350ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 1rem;
}

.gallery-caption h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.gallery-caption p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  max-width: none;
}

.gallery-item.hidden {
  display: none;
}

/* --- Images dans les pages de contenu --- */
.img-round {
  border-radius: 1rem;
  border: 1px solid var(--line);
  object-fit: cover;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.about-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.newsletter,
.quote-form {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: #0f0f0f;
}

.newsletter-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.65rem 0.8rem;
  background: #080808;
  color: var(--text);
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quote-form {
  display: grid;
  gap: 0.5rem;
}

.shop-page .shop-intro {
  margin-bottom: 1.2rem;
}

.shop-hero {
  min-height: 48vh;
  padding: 6rem 0 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.shop-hero p {
  font-size: 1.05rem;
}

.section-heading,
.product-title-row,
.admin-toolbar,
.form-heading,
.inventory-content > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.catalog-count,
.muted-text {
  color: var(--muted);
}

.shop-status {
  min-height: 10rem;
  display: grid;
  place-content: center;
  gap: 0.7rem;
  color: var(--muted);
}

.shop-empty {
  justify-items: center;
  text-align: center;
  padding: 2rem;
  border: 1px dashed #444;
  border-radius: 1rem;
}

.shop-empty strong,
.shop-empty span {
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  border-color: #666;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0b0b0b;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.025);
}

.availability {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #080808;
  font-size: 0.78rem;
  font-weight: 700;
}

.photo-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

.category-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-filter-bar {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.category-filter {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #0d0d0d;
  color: var(--text);
  cursor: pointer;
}

.category-filter.active {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}

.availability.unavailable {
  background: rgba(20, 20, 20, 0.9);
  color: var(--muted);
  border: 1px solid #555;
}

.product-body {
  padding: 1.2rem;
}

.product-title-row {
  align-items: flex-start;
}

.product-title-row h3 {
  font-size: 1.05rem;
}

.product-title-row strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.product-body p {
  color: var(--muted);
  min-height: 4.5em;
}

.product-body .btn {
  display: block;
  text-align: center;
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.product-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #454545;
  border-radius: 1.2rem;
  background: #0d0d0d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.product-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid #555;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.product-modal-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #050505;
}

.product-modal-image-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.gallery-prev {
  left: 0.75rem;
}

.gallery-next {
  right: 0.75rem;
}

.product-thumbnails {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.product-thumbnail {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  background: #111;
  cursor: pointer;
}

.product-thumbnail.active {
  border-color: #fff;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-details {
  align-self: center;
  padding: 2.5rem 0.5rem 1rem;
}

.product-modal-details .product-title-row {
  align-items: flex-start;
}

.product-modal-details > p:not(.eyebrow) {
  color: var(--muted);
  white-space: pre-line;
}

.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.admin-main {
  padding: 4rem 0;
}

.auth-card,
.product-form,
.inventory {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #101010;
}

.auth-card {
  width: min(100%, 520px);
  margin: 3rem auto;
  padding: 2rem;
}

.notice {
  margin: 1rem 0;
  padding: 0.9rem;
  border-radius: 0.7rem;
}

.notice-warning {
  border: 1px solid #775d1b;
  background: #211b0b;
  color: #f4daa0;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  border: 0;
  cursor: pointer;
}

.google-button svg {
  width: 22px;
  height: 22px;
}

.admin-toolbar {
  margin-bottom: 2rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  align-items: start;
  gap: 1.5rem;
}

.product-form,
.inventory {
  padding: 1.4rem;
}

.product-form {
  display: grid;
  gap: 0.65rem;
  position: sticky;
  top: 6rem;
}

.product-form small {
  color: var(--muted);
}

.image-order-list {
  display: grid;
  gap: 0.6rem;
}

.image-order-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #0b0b0b;
}

.image-order-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.55rem;
}

.image-order-item strong,
.image-order-item span {
  display: block;
}

.image-order-item span {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.image-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.product-form input,
.product-form textarea,
.product-form select {
  min-height: 44px;
}

.category-manager {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.category-form {
  display: grid;
  gap: 0.55rem;
}

.category-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.category-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #0b0b0b;
}

.category-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-row input {
  width: 20px;
  min-height: 20px;
}

.form-message {
  min-height: 1.5em;
  color: var(--muted);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
}

.text-button.danger {
  color: #ff9d9d;
}

.inventory-list {
  display: grid;
  gap: 0.75rem;
}

.inventory-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.inventory-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 0.6rem;
}

.inventory-content h3,
.inventory-content p {
  margin: 0;
}

.inventory-content h3 {
  font-size: 0.95rem;
}

.inventory-content p {
  color: var(--muted);
  margin-top: 0.45rem;
}

.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.5rem 0 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.shop-page .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
  }

  .split,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .newsletter-row {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .product-form {
    position: static;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
  }

  .product-modal-details {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .compare-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .compare-title {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 0.2rem;
  }

  .shop-hero,
  .admin-toolbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .inventory-item {
    grid-template-columns: 72px 1fr;
  }

  .inventory-item img {
    width: 72px;
    height: 72px;
  }

  .inventory-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .category-form-row {
    grid-template-columns: 1fr;
  }

  .category-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-actions {
    justify-content: flex-start;
  }

  .image-order-item {
    grid-template-columns: 64px 1fr;
  }

  .image-order-item img {
    width: 64px;
    height: 64px;
  }

  .image-order-actions {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Lightbox / Visionneuse d'images --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lightbox:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: auto;
}

.lightbox[aria-hidden="true"] {
  display: none;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: scale(0.95);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox:not([aria-hidden="true"]) .lightbox-content {
  transform: scale(1);
}

.lightbox img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--text);
  max-width: 600px;
}

.lightbox-caption h3 {
  font-family: "Cinzel", serif;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.lightbox-caption p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* Boutons de navigation et fermeture de la Lightbox */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
  z-index: 1010;
  border-radius: 50%;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--white);
  color: #000;
  border-color: var(--white);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 0.5rem;
    width: 40px;
    height: 40px;
  }
  .lightbox-next {
    right: 0.5rem;
    width: 40px;
    height: 40px;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}
