/* ========================================
   Jean Sidler Violons — Template sombre
   Musicien orchestre symphonique
   ======================================== */

:root {
  --bg-dark: #0d0d0f;
  --bg-card: #16161a;
  --bg-elevated: #1c1c21;
  --text-primary: #e8e6e3;
  --text-secondary: #a8a6a1;
  --text-muted: #6b6a66;
  --accent: #c9a962;
  --accent-hover: #d4b872;
  --accent-border-dark: rgba(86, 66, 36, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1100px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: "Lora", "Georgia", serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.45rem 1.5rem 0.35rem;
  min-height: var(--header-height);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  top: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.logo-text {
  font-size: clamp(0.92rem, 1.45vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hamburger — masqué sur desktop */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.header-tools {
  display: flex;
  align-items: center;
  order: 3;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  margin-left: 0.75rem;
  padding: 0.16rem 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.88), rgba(16, 16, 20, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.language-link {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  padding: 0.24rem 0.42rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #b7b6b2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(26, 26, 31, 0.84), rgba(16, 16, 20, 0.85));
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.language-link:hover {
  color: #f0eeea;
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(36, 36, 42, 0.92), rgba(19, 19, 24, 0.95));
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.24);
}

.language-link.is-active {
  color: var(--accent);
  border-color: rgba(201, 169, 98, 0.62);
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
  box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.18);
}

.language-separator {
  display: none;
}

.language-switch--menu {
  display: none;
}

.language-menu-inline {
  display: none;
}

.nav {
  margin-left: auto;
  order: 2;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: clamp(0.82rem, 0.74rem + 0.3vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.is-active {
  color: var(--accent);
}

/* Desktop: sélecteur de langue reste avec le menu */
@media (min-width: 901px) {
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    height: auto;
    min-height: var(--header-height);
    row-gap: 0;
  }

  .header-tools {
    flex: 0 0 auto;
    width: auto;
    order: 3;
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0.5rem;
  }

  .language-switch {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Intermediaire (ex: Z Fold): menu hamburger comme mobile */
@media (max-width: 900px) and (min-width: 641px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 64px;
    padding: 0.45rem 1rem 0.35rem;
    row-gap: 0.15rem;
  }

  .header-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-tools {
    order: 4;
    width: 100%;
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 0.2rem;
    display: none;
  }

  .language-switch {
    margin-left: 0;
    margin-right: 0.35rem;
    padding: 0.12rem 0.16rem;
  }

  .logo {
    gap: 0.6rem;
  }

  .logo-img {
    height: 30px;
  }

  .logo-text {
    font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .nav-toggle-label:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .hamburger-line {
    display: block;
    width: 24px;
    height: 2.2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: auto;
    right: 0.5rem;
    width: min(280px, calc(100vw - 1rem));
    order: 3;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(22, 22, 27, 0.98), rgba(14, 14, 18, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    padding: 1.25rem 0 0 0.9rem;
    z-index: 220;
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-toggle:checked ~ .nav {
    max-height: calc(100dvh - 5.2rem);
    min-height: clamp(20rem, 54vh, 27rem);
    opacity: 1;
    overflow-y: hidden;
    pointer-events: auto;
    transform: translateY(0);
  }

  .language-menu-inline {
    display: block;
    margin: 0;
    padding: clamp(0.85rem, 0.62rem + 0.6vw, 1.15rem) 0;
    font-size: clamp(0.92rem, 0.78rem + 0.45vw, 1.1rem);
    position: relative;
  }

  .language-menu-inline::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid var(--border);
  }

  .language-menu-link {
    color: var(--text-secondary);
    text-decoration: none;
  }

  .language-menu-link.is-active {
    color: var(--accent);
  }

  .language-menu-separator {
    margin: 0 0.35rem;
    color: var(--text-muted);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.35rem 0 0;
    gap: 0;
    min-height: auto;
  }

  .nav-list li {
    position: relative;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    min-height: 3.65rem;
    display: flex;
    align-items: center;
  }

  .nav-list li::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child::after {
    content: none;
  }


  .nav-link {
    display: block;
    padding: 0.9rem 0 0.9rem 0.75rem;
    font-size: clamp(0.92rem, 0.78rem + 0.45vw, 1.1rem);
    width: 100%;
    border-radius: 8px 0 0 8px;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-link.is-active {
    color: var(--accent);
    border: 1px solid rgba(201, 169, 98, 0.35);
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
    box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.18);
  }

  .nav-link:active,
  .nav-link:focus-visible {
    color: var(--accent);
    border: 1px solid rgba(201, 169, 98, 0.35);
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
    box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.18);
    outline: none;
  }
}

/* Violins presentation gallery */
.violins-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.6rem 0 2.5rem;
}

.violins-intro {
  margin-bottom: 1.25rem;
}

.violins-intro p {
  margin: 0 0 1rem;
}

.violin-card {
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  grid-template-rows: auto auto;
  gap: 1.4rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem;
  min-width: 0;
}

.violin-media-grid {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.violin-main-photo {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.6rem 0.6rem;
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.85), rgba(22, 22, 26, 0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.violin-main-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #0f0f13;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.violin-main-caption {
  margin: 0;
  padding: 0.4rem 0.2rem 0.2rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-secondary);
  min-height: 1.2rem;
}

.violin-main-caption.is-empty {
  display: none;
}

.violin-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.violin-thumbs {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  padding-bottom: 0.15rem;
  align-self: start;
  -webkit-overflow-scrolling: touch;
}

.violin-thumb-btn {
  width: 78px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.violin-thumb-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.violin-thumb-btn.is-active {
  opacity: 1;
  border-color: rgba(86, 66, 36, 0.84);
}

.violin-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.violin-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.05rem, 0.92rem + 0.55vw, 1.25rem);
  font-weight: 500;
  color: var(--text-primary);
}

.violin-title-mobile {
  display: block;
}

.violin-title-desktop {
  display: none;
}

.violin-description {
  margin-top: 0;
}

.violin-audio {
  margin-top: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 0.95rem 0.85rem;
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.85), rgba(22, 22, 26, 0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.violin-audio-label {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.violin-audio audio {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background-color: #101014;
}

/* Elegance du lecteur natif (Chromium/WebKit) */
.violin-audio audio::-webkit-media-controls-enclosure {
  border-radius: 999px;
}

.violin-audio audio::-webkit-media-controls-panel {
  background: linear-gradient(180deg, #1a1a20, #111117);
}

.violin-audio audio::-webkit-media-controls-play-button,
.violin-audio audio::-webkit-media-controls-mute-button {
  filter: invert(1) brightness(1.05);
}

.violin-audio audio::-webkit-media-controls-current-time-display,
.violin-audio audio::-webkit-media-controls-time-remaining-display {
  color: #e8e6e3;
  text-shadow: none;
}

.violin-audio audio::-webkit-media-controls-volume-slider,
.violin-audio audio::-webkit-media-controls-timeline {
  filter: saturate(0.9) brightness(0.95);
}

.violin-video {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.6rem 0.6rem;
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.85), rgba(22, 22, 26, 0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.violin-video-label {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

.violin-video video {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #0f0f13;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 901px) {
  .violin-info {
    display: flex;
    flex-direction: column;
    margin-top: 3.35rem;
  }

  .violin-video {
    order: 1;
    margin-top: 0;
  }

  .violin-description {
    order: 2;
    margin-top: 1rem;
  }

  .violin-audio {
    order: 3;
    margin-top: 1rem;
  }
}

/* Affichage intermediaire (ex: Z Fold): galerie puis texte/video en dessous */
@media (min-width: 641px) and (max-width: 900px) {
  .page-presentation .violin-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
  }

  .page-presentation .violin-media-grid {
    width: 100%;
    min-width: 0;
    order: 1;
  }

  .page-presentation .violin-thumbs {
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-presentation .violin-info {
    order: 3;
    display: block;
    margin-top: 0;
  }

  .page-presentation .violin-description,
  .page-presentation .violin-video,
  .page-presentation .violin-audio {
    margin-top: 1rem;
  }
}

/* Archets page */
.archets-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.4rem 0 2.5rem;
}

.archet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem;
}

.archet-main-photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.6rem 0.6rem;
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.85), rgba(22, 22, 26, 0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.archet-main-image {
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #0f0f13;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.archet-main-caption {
  margin: 0;
  padding: 0.25rem 0.15rem 0.1rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.archet-main-caption.is-empty {
  display: none;
}

.archet-photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.archet-thumbs {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.archet-thumb-btn {
  flex: 0 0 88px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.78;
}

.archet-thumb-btn.is-active {
  opacity: 1;
  border-color: rgba(86, 66, 36, 0.84);
}

.archet-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox mobile */
.mobile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  background: rgba(5, 5, 8, 0.94);
  cursor: zoom-out;
}

.mobile-lightbox.is-open {
  display: flex;
}

.mobile-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.archet-info {
  margin-bottom: 1rem;
}

.archet-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.05rem, 0.92rem + 0.55vw, 1.25rem);
}

/* Main content */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  width: 100%;
}

article h1 {
  font-size: clamp(1.45rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 400;
  margin: 0 0 2rem;
  letter-spacing: 0.03em;
}

/* Images — redimensionnées */
article figure {
  margin: 2rem 0;
}

/* Réduire l'espace entre photos et texte (présentation inline) */
.text-inline-images figure,
.text-inline-images .text-inline-figure {
  margin: 0.75rem 0;
}

.text-inline-images figure .responsive-image-wrap {
  margin-bottom: 0.5rem;
}

article figure img,
article figure .responsive-image img,
article figure .responsive-image picture img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

article figure .responsive-image-wrap {
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent-border-dark);
  border-radius: 8px;
}

article figure .responsive-image-wrap:last-child {
  margin-bottom: 0;
}

/* Images inline (présentation) : ombre + zoom au survol, sans bordure/cadre */
.text-inline-images .text-inline-figure .responsive-image-wrap,
.text-inline-images figure .responsive-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--accent-border-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.text-inline-images .text-inline-figure .responsive-image-wrap:hover,
.text-inline-images figure .responsive-image-wrap:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.text-inline-images .text-inline-figure .responsive-image-wrap img,
.text-inline-images .text-inline-figure .responsive-image-wrap picture img,
.text-inline-images figure .responsive-image-wrap img,
.text-inline-images figure .responsive-image-wrap picture img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-inline-images .text-inline-figure .responsive-image-wrap:hover img,
.text-inline-images .text-inline-figure .responsive-image-wrap:hover picture img,
.text-inline-images figure .responsive-image-wrap:hover img,
.text-inline-images figure .responsive-image-wrap:hover picture img {
  transform: scale(1.06);
}

/* Galerie : annuler max-width pour remplir le cadre */
.gallery-item-inner img,
.gallery-item-inner .responsive-image img,
.gallery-item-inner .responsive-image picture img {
  max-width: none;
}

article figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Texte — liens conformes à la charte */
article a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

article a:hover {
  color: var(--accent-hover);
}

/* Texte */
.text {
  font-size: clamp(0.84rem, 0.35rem + 0.9vw, 1rem);
  font-weight: 400;
  line-height: clamp(1.5, 1.42 + 0.2vw, 1.65);
}

.text p {
  margin: 0 0 1.25rem;
}

.text li {
  font-size: 1em;
  line-height: inherit;
}

.text p:last-child {
  margin-bottom: 0;
}

.text a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.text a:hover {
  color: var(--accent-hover);
}

/* Page Contact — charte graphique */
.contact-intro {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.75;
}

.contact-intro p {
  margin: 0 0 1rem;
}

.contact-details {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contact-item {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item strong {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: auto;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--accent-hover);
}

.contact-address .contact-address-content {
  display: block;
  white-space: pre-line;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.contact-address .contact-address-content p {
  margin: 0;
}

.text strong {
  font-weight: 500;
}

.text em {
  font-style: italic;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.copyright a {
  color: var(--accent);
  text-decoration: none;
}

.copyright a:hover {
  color: var(--accent-hover);
}

/* ========================================
   Galerie biographie — adaptative, responsive
   ======================================== */
.page-biographie .main-gallery,
.page-home .main-gallery,
main.main-gallery {
  max-width: 1100px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  grid-auto-rows: minmax(200px, auto);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

/* Accueil : image(s) affichée(s) en grand */
.page-home .gallery {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 1.2rem;
  margin: 0.4rem 0 0.15rem;
}

.page-home main {
  padding-top: 1.25rem;
}

.page-home .gallery .gallery-item {
  width: 100%;
  max-width: none;
}

.page-home .home-hero-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 98, 0.7);
  background: rgba(5, 5, 8, 0.45);
  backdrop-filter: blur(2px);
  color: #f4efe6;
  text-decoration: none;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.page-home .home-hero-link:hover {
  background: rgba(5, 5, 8, 0.62);
  color: #fff8eb;
}

.page-home .home-hero-link--mobile {
  display: none;
}

@media (max-width: 640px) {
  .page-home .gallery .gallery-item-inner.img-orientation-landscape,
  .page-home .gallery .gallery-item-inner.img-orientation-portrait,
  .page-home .gallery .gallery-item-inner.img-orientation-square {
    aspect-ratio: 16 / 9 !important;
  }

  .page-home .gallery .gallery-item {
    width: 100%;
    max-width: 100%;
  }

  .page-home .gallery .gallery-item-inner img,
  .page-home .gallery .gallery-item-inner picture img,
  .page-home .gallery .gallery-item-inner .responsive-image > img,
  .page-home .gallery .gallery-item-inner .responsive-image picture img {
    object-fit: cover !important;
  }

  .page-home .gallery {
    margin-bottom: 0 !important;
  }

  .page-home .gallery-item-caption {
    margin-bottom: 0.15rem;
  }

  .page-home .gallery-text {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .page-home .gallery-text p:first-child {
    margin-top: 0 !important;
  }

  .page-home main {
    padding-top: 0.75rem;
  }

  .page-home .home-hero-link--desktop {
    display: none;
  }

  .page-home .home-hero-link--mobile {
    display: inline-block;
  }

  .page-home .home-hero-link {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: clamp(1rem, 6vw, 1.35rem);
    letter-spacing: 0.06em;
    white-space: nowrap;
    z-index: 6;
  }
}

.gallery-item {
  margin: 0;
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Orientation automatique (paysage / portrait / carré) */
.gallery-item-inner.img-orientation-landscape {
  aspect-ratio: 4/3;
}

.gallery-item-inner.img-orientation-portrait {
  aspect-ratio: 3/4;
}

.gallery-item-inner.img-orientation-square {
  aspect-ratio: 1;
}

.gallery-item-inner {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--accent-border-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.page-home .gallery-item-inner {
  border: none;
}

.gallery-item-inner:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.gallery-item-inner img,
.gallery-item-inner picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item-inner .responsive-image {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.gallery-item-inner .responsive-image picture,
.gallery-item-inner .responsive-image > img {
  flex: 1;
  min-height: 0;
  position: relative;
}

.gallery-item-inner .responsive-image picture img,
.gallery-item-inner .responsive-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-item-inner .responsive-image figcaption {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.gallery-item-inner:hover img,
.gallery-item-inner:hover picture img {
  transform: scale(1.06);
}

/* Visibilité par appareil — masque cadre + photo + légende entièrement */
figure.gallery-item.img-visibility-desktop,
figure.biographie-portrait-photo.img-visibility-desktop,
figure.text-inline-figure.img-visibility-desktop,
.responsive-image-wrap.img-visibility-desktop,
.img-visibility-desktop,
.gallery-item-inner .responsive-image.img-visibility-desktop,
.biographie-portrait .responsive-image.img-visibility-desktop {
  display: none !important;
}

figure.gallery-item.img-visibility-mobile,
figure.biographie-portrait-photo.img-visibility-mobile,
figure.text-inline-figure.img-visibility-mobile,
.responsive-image-wrap.img-visibility-mobile {
  display: flex !important;
  flex-direction: column !important;
}

.img-visibility-mobile,
.gallery-item-inner .responsive-image.img-visibility-mobile,
.biographie-portrait .responsive-image.img-visibility-mobile {
  display: flex !important;
}

@media (min-width: 641px) {
  .page-home .gallery .gallery-item-inner {
    aspect-ratio: 16 / 7;
  }

  .page-home .gallery .gallery-item-inner.img-orientation-landscape,
  .page-home .gallery .gallery-item-inner.img-orientation-portrait,
  .page-home .gallery .gallery-item-inner.img-orientation-square {
    aspect-ratio: 16 / 7 !important;
  }

  .page-home .gallery .gallery-item-inner img,
  .page-home .gallery .gallery-item-inner picture img {
    object-fit: cover;
  }

  /* Galerie : une colonne, photos à 50 % alignées à gauche sur ordinateur */
  .gallery {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .gallery .gallery-item {
    width: 50%;
    max-width: 50%;
  }

  /* Figures (layout liste) : 50 % alignées à gauche */
  article figure .responsive-image-wrap {
    width: 50%;
    max-width: 50%;
    margin-left: 0;
    margin-right: auto;
  }

  /* Images inline dans le texte (image: filename) : 50 % alignées à gauche */
  .text-inline-images figure,
  .text-inline-images .text-inline-figure {
    display: block;
    width: 50%;
    max-width: 50%;
    margin: 0.75rem 0;
    margin-left: 0;
    margin-right: auto;
  }

  .text-inline-images .text-inline-figure .responsive-image-wrap,
  .text-inline-images figure .responsive-image-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }

  .text-inline-images figure img,
  .text-inline-images .text-inline-figure img {
    width: 100%;
    height: auto;
  }

  /* Biographie desktop: 1re image inline a gauche, texte a droite puis dessous */
  .page-biographie .text-inline-images::after {
    content: "";
    display: table;
    clear: both;
  }

  .page-biographie .text-inline-images .text-inline-figure:first-of-type,
  .page-biographie .text-inline-images > figure:first-of-type {
    float: left;
    width: 42%;
    max-width: 380px;
    margin: 0 2rem 1.25rem 0;
  }

  /* Portrait biographie (desktop): photo à gauche, texte à droite puis dessous */
  .biographie-portrait {
    display: block;
  }

  .biographie-portrait-photo {
    float: left;
    width: 42%;
    max-width: 380px;
    margin: 0 2rem 1.25rem 0;
  }

  .biographie-portrait-text {
    display: block;
  }

  figure.gallery-item.img-visibility-desktop,
  figure.biographie-portrait-photo.img-visibility-desktop,
  figure.text-inline-figure.img-visibility-desktop,
  .responsive-image-wrap.img-visibility-desktop {
    display: flex !important;
    flex-direction: column !important;
  }
  .img-visibility-desktop,
  .gallery-item-inner .responsive-image.img-visibility-desktop,
  .biographie-portrait .responsive-image.img-visibility-desktop {
    display: flex !important;
  }
  figure.gallery-item.img-visibility-mobile,
  figure.biographie-portrait-photo.img-visibility-mobile,
  figure.text-inline-figure.img-visibility-mobile,
  .responsive-image-wrap.img-visibility-mobile,
  .img-visibility-mobile,
  .gallery-item-inner .responsive-image.img-visibility-mobile,
  .biographie-portrait .responsive-image.img-visibility-mobile {
    display: none !important;
  }
}

.gallery-item figcaption,
.gallery-item-caption,
.biographie-portrait-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

.responsive-image-wrap .gallery-item-caption,
.text-inline-images .responsive-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

.gallery-text {
  margin-top: 0;
}

/* Biographie — portrait : photo à gauche, texte à côté puis pleine largeur en dessous */
.biographie-portrait {
  margin: 2rem 0 1.5rem;
}

.biographie-portrait-photo {
  margin: 0 2rem 1.5rem 0;
  float: left;
  width: 380px;
  max-width: 42%;
  display: flex;
  flex-direction: column;
}

.biographie-portrait-photo .gallery-item-inner {
  flex: 0 0 auto;
}

.biographie-portrait-photo .gallery-item-inner.img-orientation-landscape {
  aspect-ratio: 4/3;
}

.biographie-portrait-photo .gallery-item-inner.img-orientation-portrait {
  aspect-ratio: 3/4;
}

.biographie-portrait-photo .gallery-item-inner.img-orientation-square {
  aspect-ratio: 1;
}

.biographie-portrait-photo figcaption {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.4;
}

.biographie-portrait-text {
  margin: 0;
}

.biographie-portrait-text::after {
  content: "";
  display: table;
  clear: both;
}

/* ========================================
   Page Concerts
   ======================================== */
.concerts-intro {
  margin-bottom: 2rem;
}

.concerts-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.concerts-section-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
  letter-spacing: 0.03em;
}

.concerts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.concert-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.concert-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 5rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.concert-day {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

.concert-month {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.concert-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.concert-details {
  flex: 1;
  min-width: 0;
}

.concert-title {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.concert-venue {
  margin: 0.375rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.concert-tickets {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.concert-tickets:hover {
  background: var(--accent-hover);
}

.concerts-empty {
  color: var(--text-secondary);
  font-style: italic;
}

/* Mobile — concerts */
@media (max-width: 640px) {
  .concert-card {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .concert-date {
    width: 4rem;
    padding: 0.5rem;
  }

  .concert-day {
    font-size: 1.25rem;
  }

  .concert-tickets {
    width: 100%;
    text-align: center;
  }
}

/* Mobile — global */
@media (max-width: 640px) {
  /* Harmoniser la lisibilite du texte courant avec la page Contact */
  .text {
    font-size: 1.05rem;
    line-height: 1.72;
  }

  .text li {
    font-size: 1em;
    line-height: inherit;
  }

  /* Forcer l'affichage des images « Mobile uniquement » */
  figure.biographie-portrait-photo.img-visibility-mobile {
    display: block !important;
  }
  .biographie-portrait .responsive-image.img-visibility-mobile {
    display: flex !important;
  }

  .biographie-portrait {
    margin: 1.5rem 0 1rem;
  }

  .biographie-portrait-photo {
    float: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
  }

  .biographie-portrait-photo .gallery-item-inner.img-orientation-landscape {
    aspect-ratio: 4/3;
  }

  .biographie-portrait-photo .gallery-item-inner.img-orientation-portrait {
    aspect-ratio: 3/4;
  }

  .biographie-portrait-photo .gallery-item-inner.img-orientation-square {
    aspect-ratio: 1;
  }

  .biographie-portrait-photo .gallery-item-inner img {
    position: relative;
    inset: unset;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    justify-items: center;
  }

  .gallery .gallery-item {
    width: 100%;
    max-width: 360px;
  }

  .gallery-item-inner {
    flex: none;
    min-height: 0;
  }

  .gallery-item-inner img {
    position: relative;
    inset: unset;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Galerie : orientation selon format (paysage / portrait / carré) */
  .gallery .gallery-item-inner.img-orientation-landscape {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    flex: none;
  }

  .gallery .gallery-item-inner.img-orientation-portrait {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    flex: none;
  }

  .gallery .gallery-item-inner.img-orientation-square {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    flex: none;
  }

  .gallery .gallery-item-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 64px;
    padding: 0.45rem 1rem 0.35rem;
    row-gap: 0.15rem;
    top: 0;
  }

  .header-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-tools {
    order: 4;
    width: 100%;
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 0.2rem;
  }

  .header-tools {
    display: none;
  }

  .language-switch {
    margin-left: 0;
    margin-right: 0.35rem;
    padding: 0.12rem 0.16rem;
  }

  .logo {
    gap: 0.6rem;
  }

  .logo-img {
    height: 30px;
  }

  .logo-text {
    font-size: clamp(0.72rem, 3.6vw, 0.9rem);
  }

  /* Hamburger visible sur mobile — zone tactile agrandie, aligné à droite */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
  }

  .nav-toggle-label:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .hamburger-line {
    display: block;
    width: 24px;
    height: 2.2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  /* Nav en dessous, masqué par défaut */
  .nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: auto;
    right: 0.5rem;
    width: min(280px, calc(100vw - 1rem));
    order: 3;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(22, 22, 27, 0.98), rgba(14, 14, 18, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    padding: 1.25rem 0 0 0.9rem;
    z-index: 220;
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-toggle:checked ~ .nav {
    max-height: calc(100dvh - 5.2rem);
    min-height: clamp(19rem, 52vh, 25rem);
    opacity: 1;
    overflow-y: hidden;
    pointer-events: auto;
    transform: translateY(0);
  }

  .language-menu-inline {
    display: block;
    margin: 0;
    padding: clamp(0.78rem, 0.52rem + 0.6vw, 1.05rem) 0;
    font-size: clamp(0.88rem, 0.74rem + 0.6vw, 1.02rem);
    position: relative;
  }

  .language-menu-inline::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid var(--border);
  }

  .language-menu-link {
    color: var(--text-secondary);
    text-decoration: none;
  }

  .language-menu-link.is-active {
    color: var(--accent);
  }

  .language-menu-separator {
    margin: 0 0.35rem;
    color: var(--text-muted);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.35rem 0 0;
    gap: 0;
    min-height: auto;
  }

  .nav-list li {
    position: relative;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
    min-height: 3.4rem;
    display: flex;
    align-items: center;
  }

  .nav-list li::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-list li:last-child::after {
    content: none;
  }


  .nav-link {
    display: block;
    padding: 0.82rem 0 0.82rem 0.75rem;
    font-size: clamp(0.88rem, 0.74rem + 0.6vw, 1.02rem);
    width: 100%;
    border-radius: 8px 0 0 8px;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-link.is-active {
    color: var(--accent);
    border: 1px solid rgba(201, 169, 98, 0.35);
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
    box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.18);
  }

  .nav-link:active,
  .nav-link:focus-visible {
    color: var(--accent);
    border: 1px solid rgba(201, 169, 98, 0.35);
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.2), rgba(201, 169, 98, 0.1));
    box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.18);
    outline: none;
  }

  .violin-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow: hidden;
  }

  .violins-intro {
    margin-bottom: 1rem;
  }

  .violins-intro p {
    margin: 0 0 0.9rem;
  }

  .violin-media-grid {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .violin-thumbs {
    grid-column: auto;
    grid-row: auto;
    order: 2;
    margin-top: -0.1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .violin-info {
    order: 3;
  }

  .violin-title-mobile {
    display: block;
    margin: 0 0 0.6rem;
  }

  .violin-title-desktop {
    display: none;
  }

  .violin-thumbs {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
  }

  .violin-thumb-btn {
    flex: 0 0 72px;
  }

  .archet-thumb-btn {
    flex: 0 0 76px;
  }

  main {
    padding: 2rem 1rem 3rem;
  }

  article h1 {
    font-size: 1.5rem;
  }

  article figure img,
  .gallery-item-inner img {
    max-width: 100%;
  }
}

@media (max-width: 900px) and (max-height: 760px) {
  .nav {
    padding: 1.25rem 0 0 0.9rem;
  }

  .language-menu-inline {
    padding: 0.62rem 0;
    font-size: 0.88rem;
  }

  .nav-link {
    padding: 0.62rem 0 0.62rem 0.75rem;
    font-size: 0.88rem;
  }

  .nav-list {
    min-height: auto;
    justify-content: flex-start;
  }

  .nav-list li {
    min-height: auto;
  }

  .nav-toggle:checked ~ .nav {
    max-height: calc(100dvh - 5.85rem);
    min-height: 0;
  }
}
