:root {
  --bordeaux: #7a1c3a;
  --bordeaux-900: #f7ecf0;
  --bordeaux-50: #2b0e17;
  --sky-50: #0a0f1a;
  --sky-100: #121a2a;
  --sky-500: #65c3ff;
  --sky-600: #3eb3ff;
  --ink: #f8fafc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  color: var(--ink);
  background: #0a0f1a;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--sky-500);
  text-decoration: none;
}
.container {
  max-width: 1120px;
  margin: auto;
  padding: 0 16px;
}

/* badges & bannières */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--sky-600);
  border-radius: 999px;
  background: #1e293b;
  color: var(--sky-500);
  font-size: 12px;
}
.banner {
  background: rgba(10, 15, 26, 0.9);
  border-bottom: 1px solid #1e293b;
  text-align: center;
  font-size: 12px;
  padding: 8px;
  color: #e2e8f0;
}
.notice {
  font-size: 12px;
  color: #94a3b8;
}
.hide {
  display: none;
}

/* header collant */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid #1e293b;
}
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bordeaux), var(--sky-600));
}
.brand-name {
  font-weight: 700;
  color: var(--sky-500);
  font-size: 14px;
}
.brand-tag {
  font-size: 12px;
  color: #cbd5e1;
}
header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
header nav a {
  position: relative;
  color: #e2e8f0;
  padding: 6px 4px;
}
header nav a:hover {
  color: var(--sky-500);
}
header nav a.active,
header nav a[aria-current="page"] {
  color: var(--sky-500);
}

/* underline animé */
header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-600), var(--sky-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
header nav a:hover::after,
header nav a.active::after,
header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-pill {
  border: 1px solid #334155;
  background: #121a2a;
  color: #cbd5e1;
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
}

/* icons */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}
.icon.sm {
  width: 0.9em;
  height: 0.9em;
}
.icon.lg {
  width: 1.2em;
  height: 1.2em;
}

/* sous-menu Galaxie */
.has-sub {
  position: relative;
}
.sub-toggle {
  border: 1px solid #334155;
  background: #121a2a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.has-sub:hover .sub,
.has-sub.open .sub {
  display: block;
}
.sub {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 220px;
  display: none;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #0e1421;
  border: 1px solid #1e293b;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 60;
}
.sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #d7e7ff;
}
.sub a:hover {
  background: #132035;
}

/* hero + canvas */
.hero {
  position: relative;
  overflow: hidden;
  background: #0a0f1a;
  min-height: 82vh;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#bg3d {
  width: 100%;
  height: 100%;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 26, 0.08) 0%,
    rgba(10, 15, 26, 0.5) 55%,
    rgba(10, 15, 26, 0.92) 100%
  );
}
.hero .inner {
  position: relative;
  z-index: 2;
  padding: 110px 0 120px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  color: var(--sky-500);
  font-weight: 900;
  font-size: 42px;
}
.hero p {
  max-width: 860px;
  margin: 16px auto;
  color: #cbd5e1;
}

/* backlight titres */
.backlit {
  text-shadow: 0 0 18px rgba(101, 195, 255, 0.18), 0 1px 0 rgba(0, 0, 0, 0.25);
}
.backlit-subtle {
  text-shadow: 0 0 12px rgba(101, 195, 255, 0.12);
}
.parallax-target {
  will-change: transform;
  transition: transform 0.2s;
}

/* CTA */
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary {
  background: var(--sky-600);
  color: #0b1220;
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-ghost {
  border: 1px solid #334155;
  color: var(--sky-500);
  background: #1e293b;
}
.glow {
  box-shadow: 0 0 0 0 rgba(101, 195, 255, 0);
  transition: box-shadow 0.25s;
}
.glow:hover {
  box-shadow: 0 10px 42px rgba(101, 195, 255, 0.28);
}

/* Waypoints */
.waypoints {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.wp {
  border: 1px solid #2a3a55;
  background: #121a2a;
  color: #cfe9ff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  will-change: transform;
}
.wp:hover {
  border-color: #3eb3ff;
  color: #fff;
}

/* sections / cards */
section {
  padding: 64px 0;
  scroll-margin-top: 96px;
}
h2 {
  color: var(--sky-500);
  font-size: 28px;
  margin: 0 0 16px;
  font-weight: 800;
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* cartes */
.card {
  border: 1px solid #111827;
  border-radius: 16px;
  background: #121a2a;
  box-shadow: 0 6px 20px rgba(101, 195, 255, 0.05);
}
.card.glass {
  background: rgba(18, 26, 42, 0.6);
  border: 1px solid rgba(62, 179, 255, 0.18);
  backdrop-filter: blur(8px);
}
.card .p {
  padding: 16px;
}
.shadow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(101, 195, 255, 0.18);
  transition: 0.25s;
}
.card-title {
  margin: 0 0 6px;
}
.card-meta {
  color: var(--sky-500);
  font-weight: 600;
  font-size: 14px;
}

/* quote */
.quote {
  border-left: 4px solid var(--sky-500);
  background: #0f172a;
  padding: 16px;
  border-radius: 12px;
  font-style: italic;
  color: #e2e8f0;
}

/* timeline */
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--sky-500), var(--sky-600));
}
.tl-item {
  position: relative;
  padding-left: 24px;
  opacity: 0;
  transform: translateY(14px);
  transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-item.show {
  opacity: 1;
  transform: none;
}
.dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--sky-600);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #0f172a;
}

/* galerie */
.gallery figure {
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 16px;
  background: #0f172a;
  cursor: zoom-in;
}
.gallery img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery figure:hover img {
  transform: scale(1.05);
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card .meta {
  padding: 0.75rem 1rem;
  font-weight: 600;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#lightbox[open] {
  display: flex;
}
#lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
}
#lightbox .controls {
  position: absolute;
  inset: auto 0 2rem 0;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
#lightbox button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}

/* footer + topbar */
.footer {
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 40px 0;
}
.topbar {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  z-index: 70;
  background: var(--sky-600);
}

/* reveals */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.show {
  opacity: 1;
  transform: none;
}

/* Command Palette */
.cmdk {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.6);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.cmdk-panel {
  width: min(720px, 92vw);
  background: #0e1421;
  border: 1px solid #1e293b;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.cmdk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #172133;
  color: #cbd5e1;
}
.cmdk-close {
  border: 0;
  background: transparent;
  color: #8aa5c7;
  font-size: 16px;
  cursor: pointer;
}
.cmdk-input {
  width: 100%;
  padding: 14px 16px;
  background: #0a101b;
  color: #e2e8f0;
  border: 0;
  outline: none;
  font-size: 16px;
}
.cmdk-list {
  list-style: none;
  margin: 0;
  padding: 6px 6px 10px;
  max-height: 50vh;
  overflow: auto;
}
.cmdk-item {
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7e7ff;
  cursor: pointer;
}
.cmdk-item:hover,
.cmdk-item[aria-selected="true"] {
  background: #132035;
}
.cmdk-foot {
  padding: 8px 12px;
  border-top: 1px solid #172133;
  color: #8aa5c7;
  font-size: 12px;
}
.cmdk.hide {
  display: none !important;
}

/* Onglets médias */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.tab {
  border: 1px solid #2a3a55;
  background: #121a2a;
  color: #cfe9ff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.tab.active {
  border-color: #3eb3ff;
  color: #fff;
}
.panel {
  display: block;
}
.panel.hide {
  display: none;
}

/* YouTube playlist */
.yt-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
}
.yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.pill {
  border: 1px solid #2a3a55;
  background: #121a2a;
  color: #cfe9ff;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
.yt-list {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0 2px;
  overflow: auto;
  scroll-behavior: smooth;
}
.yt-card {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #1e293b;
  background: #0e1421;
  color: #d7e7ff;
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  min-width: 210px;
  will-change: transform;
}
.yt-card img {
  width: 84px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #0f1a2b;
}
.yt-card .yt-meta {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.yt-card .yt-title {
  font-weight: 600;
  line-height: 1.2;
}
.yt-card.active {
  background: #132035;
  border-color: #3eb3ff;
}

/* Audio */
.audio {
  width: 100%;
}
.audio-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wave {
  width: 100%;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #0b1220;
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audio-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.audio-item {
  border: 1px solid #1e293b;
  background: #0e1421;
  color: #d7e7ff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  will-change: transform;
}
.audio-item.active {
  background: #132035;
  border-color: #3eb3ff;
}

/* Focus visibles */
:focus-visible {
  outline: 2px solid var(--sky-600);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .shadow,
  .reveal,
  .cta,
  .wp,
  .yt-card,
  .audio-item {
    transition: none;
  }
}
/* --- Typewriter / Note de morceau --- */
.typewriter {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #0f172a;
  min-height: 84px;
  color: #22c55e; /* vert Tailwind (green-500) */
  line-height: 1.55;
  position: relative;
}
.typewriter[data-typing="true"]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 8px;
  height: 1.1em;
  background: #3effa2;
  opacity: 0.6;
  animation: tw-blink 1s steps(1) infinite;
}
@keyframes tw-blink {
  50% {
    opacity: 0;
  }
}

/* --- Modal PDF --- */
.modal.hide {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  width: min(1100px, 92vw);
  height: min(80vh, 820px);
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.modal-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #1e293b;
}
.modal-head .spacer {
  flex: 1;
}
#pdfFrame {
  flex: 1;
  border: 0;
  width: 100%;
  background: #0f172a;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* --- Accordéons projets --- */
.acc-section,
.acc-sub {
  margin-bottom: 14px;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #0f172a;
  overflow: hidden;
}

.acc-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-weight: 600;
  color: #cfe9ff;
  cursor: pointer;
  background: #0b1220;
  border: none;
}
.acc-header:hover {
  background: #122033;
}
.acc-header::after {
  content: "▸";
  transition: transform 0.2s ease;
}
.acc-header[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.acc-panel {
  display: none;
  padding: 12px 16px;
}
.acc-panel.show {
  display: block;
}

/* Grille de cartes dans les panneaux */
.acc-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
/* --- Vignette des cartes projet --- */
.card-thumb {
  margin-bottom: 10px;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #0b1220;
  overflow: hidden;
  height: 120px; /* hauteur contrôlée */
  max-height: 120px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* --- Compteur d'éléments dans les accordéons (robuste) --- */
.acc-count {
  margin-left: auto; /* aligne à droite dans le header */
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

/* 0 projet = badge gris neutre */
.acc-count.zero {
  opacity: 0.7;
  background: #374151;
  color: #d1d5db;
}

/* Couleurs par section (on cible via une classe posée en JS sur .acc-section) */
.sec-siteweb > .acc-header .acc-count:not(.zero) {
  background: #3b82f6;
  color: #dbeafe;
} /* Bleu */
.sec-infoscripts > .acc-header .acc-count:not(.zero) {
  background: #dc2626;
  color: #fecaca;
} /* Rouge */
.sec-tutos > .acc-header .acc-count:not(.zero) {
  background: #16a34a;
  color: #bbf7d0;
} /* Vert */
.sec-ecriture > .acc-header .acc-count:not(.zero) {
  background: #7c3aed;
  color: #ddd6fe;
} /* Violet */
.sec-musique > .acc-header .acc-count:not(.zero) {
  background: #d97706;
  color: #fef3c7;
} /* Orange */

/* Cartes d'album améliorées */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Vignette en ratio propre + léger zoom au survol */
.gallery-card .thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  opacity: 0.98;
}
.gallery-card:hover img {
  transform: scale(1.06);
  opacity: 1;
}

/* Lueur oblique (sheen) pour un peu de relief */
.thumb-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 60% at 120% -10%,
    rgba(255, 255, 255, 0.15),
    transparent 55%
  );
  pointer-events: none;
}

/* Bandeau d'infos */
.gallery-card .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 32%,
    rgba(0, 0, 0, 0.6) 100%
  );
}
.gallery-card .title {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.gallery-card .pill {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
#lightbox .caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4.5rem;
  max-width: min(92vw, 1200px);
  color: #fff;
  text-align: center;
  line-height: 1.4;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  font-size: 0.95rem;
}
/* === Galerie : overlay premium (titre + compteur) === */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  background: var(--ink);
  border: 5px solid rgba(2, 35, 132, 0.473);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(2, 35, 132, 0.473);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 35, 132, 0.473);
  border-color: rgba(2, 35, 132, 0.473);
}

/* Vignette au bon ratio + léger zoom au survol */
.gallery-card .thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gallery-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  opacity: 0.98;
}
.gallery-card:hover .thumb img {
  transform: scale(1.06);
  opacity: 1;
}

/* Lueur oblique (sheen) pour un peu de relief */
.gallery-card .thumb-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 60% at 120% -10%,
    rgba(255, 255, 255, 0.15),
    transparent 55%
  );
  pointer-events: none;
}

/* Bandeau d'infos en bas de la carte */
.gallery-card .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 32%,
    rgba(0, 0, 0, 0.6) 100%
  );
}
.gallery-card .overlay .title {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.gallery-card .overlay .pill {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Accessibilité & mouvement */
@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .gallery-card .thumb img {
    transition: none;
  }
}
/* --- Fix vignettes galerie : image pleine largeur/hauteur et zéro marge --- */

/* 1) Le <figure> a un margin par défaut -> on l'annule */
.gallery-card .thumb {
  margin: 0; /* supprime le blanc sous la vignette */
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  width: 100%;
  height: auto;
}

/* 2) L'image occupe 100% de la zone, quoi qu'il arrive */
.gallery-card .thumb img {
  position: absolute; /* colle l'image au conteneur */
  inset: 0; /* top/right/bottom/left = 0 */
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit sans déformer */
  object-position: center; /* centre le cadrage */
  display: block;

  transform: scale(1.05);
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  opacity: 0.98;
}
.gallery-card:hover .thumb img {
  transform: scale(1.1);
  opacity: 1;
}

/* 3) S'assure que l'overlay passe au-dessus */
.gallery-card .overlay {
  z-index: 3;
}
.gallery-card .thumb-sheen {
  z-index: 2;
}
