/* ============================================
   NUIT NOIRE TATTOO — Main stylesheet
   ============================================ */

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Couleurs */
  --bg: #0a120d;            /* faux noir, vert foret tres fonce */
  --bg-elevated: #12211a;
  --fg: #e8e2d4;            /* beige */
  --fg-muted: rgba(232, 226, 212, 0.65);
  --fg-dim: rgba(232, 226, 212, 0.4);
  --border: rgba(232, 226, 212, 0.12);
  --border-strong: rgba(232, 226, 212, 0.25);

  /* Typo */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espacements */
  --max-width: 1200px;
  --padding-x: 40px;
  --padding-x-mobile: 24px;

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--padding-x);
  background: rgba(10, 18, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
}

/* ============================================
   BANDEAU D'ANNONCE
   Glisse de sous la nav peu apres l'ouverture, PAR-DESSUS le contenu
   (position fixed) : la page ne bouge pas d'un pixel.
   Le conteneur est en overflow:hidden, la barre interieure remonte
   derriere la nav : effet de tiroir. Fond legerement transparent + flou,
   comme la nav, pour laisser deviner ce qui passe dessous.
   ============================================ */
.nn-banner {
  position: fixed;
  /* Colle sous la derniere barre fixe : la nav, ou la sous-nav des artistes
     quand elle existe (--nn-stack-h). Le -1px garantit qu'aucun filet de
     page ne passe entre les deux, quel que soit le zoom du navigateur :
     ce pixel de recouvrement disparait derriere la barre du dessus. */
  top: calc(var(--nn-nav-h, 76px) + var(--nn-stack-h, 0px) - 1px);
  left: 0;
  right: 0;
  z-index: 45; /* au-dessus du contenu, sous la nav (100) et la sous-nav (50) */
  overflow: hidden;
  max-height: 0;
  pointer-events: none;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.nn-banner.is-visible {
  pointer-events: auto;
  /* La hauteur exacte est posee par JS (--nn-banner-h) pour que
     l'animation dure vraiment le temps prevu. */
  max-height: var(--nn-banner-h, 200px);
}

.nn-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px calc(var(--padding-x) + 28px);
  background: rgba(10, 18, 13, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 0.5px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.nn-banner.is-visible .nn-banner-inner {
  transform: none;
}

.nn-banner-text {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  color: var(--fg);
}

.nn-banner-text strong {
  font-weight: 500;
}

.nn-banner-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.5px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color var(--t-fast), opacity var(--t-fast);
}

.nn-banner-text a:hover {
  text-decoration-color: var(--fg);
}

.nn-banner-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  transition: color var(--t-fast);
}

.nn-banner-close:hover {
  color: var(--fg);
}

.nn-banner-close svg {
  width: 13px;
  height: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .nn-banner,
  .nn-banner-inner {
    transition: none;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 36px;
  transition: opacity var(--t-fast);
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
}

.nav-chevron {
  font-size: 9px;
  transition: transform 0.3s ease;
  transform: translateY(1px);
}

/* Bouton MENU : visible uniquement sur mobile (voir media query) */
.nav-burger {
  display: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  transition: color var(--t-fast);
}

.nav.is-open .nav-burger {
  color: var(--fg);
}

/* DROPDOWN ARTISTS — ouverture pilotée en JS (classe is-open) */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--bg);
  border: 0.5px solid var(--border-strong);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav-item-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-item-dropdown.is-open .nav-chevron {
  transform: translateY(1px) rotate(180deg);
}

.nav-dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color var(--t-fast), padding var(--t-fast);
}

.nav-dropdown a:hover {
  color: var(--fg);
  padding-left: 28px;
}

.nav-dropdown-separator {
  border-top: 0.5px solid var(--border);
  margin-top: 6px;
  padding-top: 4px;
}

.nav-dropdown-separator a {
  color: var(--fg);
}

/* ============================================
   HERO — carrousel horizontal
   ============================================ */
.hero {
  /* Hauteur exacte = viewport moins la nav (mesuree en JS -> --hero-h) */
  height: var(--hero-h, calc(100svh - 76px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chaque slide est superposée, on les translate via JS */
.hero-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 720px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  /* Transition par défaut quand on bouge — sera surchargée par les classes */
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.6s ease;
  will-change: transform, opacity;
}

/* Slide actuellement visible */
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

/* Slide qui est sortie vers la gauche (déjà passée) */
.hero-slide.is-leaving-left {
  opacity: 0;
  transform: translate(calc(-50% - 60vw), -50%);
}

/* Slide qui attend à droite (pas encore passée) */
.hero-slide.is-waiting-right {
  opacity: 0;
  transform: translate(calc(-50% + 60vw), -50%);
  /* Pas de transition quand on remet la slide à droite (téléportation) */
  transition: none;
}

/* Slide qui arrive depuis la droite (en train d'entrer) */
.hero-slide.is-entering {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* VIDEO HERO — plein cadre (pleine largeur + pleine hauteur) */
.hero-video {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
  display: block;
}

/* Fleche discrete qui invite au scroll et mene aux derniers travaux */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--fg);
  background: rgba(10, 18, 13, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 0.5px solid var(--border-strong);
  opacity: 0.75;
  transition: opacity var(--t-fast), background var(--t-fast);
  animation: hero-scroll-bounce 2.4s ease-in-out infinite;
}

.hero-scroll:hover {
  opacity: 1;
  background: rgba(10, 18, 13, 0.75);
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
}

/* LOGO */
.hero-logo {
  width: 100%;
  max-width: 520px;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* PHRASES */
.hero-phrase {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* DOTS — masques (plus d'indicateur de position demande) */
.hero-dots {
  display: none;
}

.hero-dots .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0.25;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.hero-dots .dot.active {
  opacity: 1;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   INTRO
   ============================================ */
.intro {
  padding: 40px var(--padding-x) 70px;
  display: flex;
  justify-content: center;
}

.intro p {
  max-width: 620px;
  text-align: center;
  font-size: 18px;
  line-height: 1.9;
  color: var(--fg-muted);
}

/* ============================================
   LATEST WORK
   ============================================ */
.latest-work {
  padding: 40px var(--padding-x) 100px;
  max-width: var(--max-width);
  margin: 0 auto;
  scroll-margin-top: 90px;
}

.latest-work-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 0.5px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.latest-work-header h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.latest-work-handle {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  transition: color var(--t-fast);
}

.latest-work-handle:hover {
  color: var(--fg);
}

.latest-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.work-item {
  /* Ratio 3:4 — format Instagram portrait 1080x1440 */
  aspect-ratio: 3 / 4;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

/* Curseur main uniquement quand la photo mene quelque part */
a.work-item {
  cursor: pointer;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* --nn-zoom / --nn-origin : cadrage choisi dans le CMS (voir js/media.js) */
  transform-origin: var(--nn-origin, 50% 50%);
  transform: scale(var(--nn-zoom, 1));
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  filter: grayscale(0%);
}

.work-item:hover img {
  transform: scale(calc(var(--nn-zoom, 1) * 1.04));
}

/* Placeholder pour items sans image */
.work-item-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
}

.work-item-placeholder svg {
  opacity: 0.3;
}

.latest-work-footer {
  margin-top: 48px;
  text-align: center;
}

.link-underline {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 0.5px solid var(--border-strong);
  padding-bottom: 4px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.link-underline:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 36px var(--padding-x) 28px;
  border-top: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

.footer a {
  transition: color var(--t-fast);
}

.footer a:hover {
  color: var(--fg);
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px 10px;
}

.footer-pair {
  white-space: nowrap;
}

.footer-pair .footer-sep {
  margin: 0 10px;
}

.footer-sep {
  color: var(--fg-dim);
}

.footer-strong {
  font-weight: 500;
  color: var(--fg);
}

.footer-credit {
  color: var(--fg-dim);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 12px;
}

/* ============================================
   FAB — bouton contact flottant
   ============================================ */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fab-toggle,
.fab-action {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 18, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid var(--border-strong);
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0;
}

.fab-toggle {
  width: 52px;
  height: 52px;
  color: var(--fg);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.fab-toggle:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.fab-toggle svg {
  width: 20px;
  height: 20px;
}

.fab-icon-close {
  display: none;
}

.fab.is-open .fab-icon-open {
  display: none;
}

.fab.is-open .fab-icon-close {
  display: block;
}

.fab-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab-action {
  width: 44px;
  height: 44px;
  opacity: 0;
  transform: translateY(14px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.25s ease,
              transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
              color var(--t-fast),
              border-color var(--t-fast);
}

.fab-action svg {
  width: 18px;
  height: 18px;
}

.fab-action:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.fab.is-open .fab-action {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Apparition en cascade, de bas en haut */
.fab.is-open .fab-action:nth-last-child(1) { transition-delay: 0s; }
.fab.is-open .fab-action:nth-last-child(2) { transition-delay: 0.05s; }
.fab.is-open .fab-action:nth-last-child(3) { transition-delay: 0.1s; }
.fab.is-open .fab-action:nth-last-child(4) { transition-delay: 0.15s; }
.fab.is-open .fab-action:nth-last-child(5) { transition-delay: 0.2s; }

.fab-hours-popover {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 64px;
  background: var(--bg);
  border: 0.5px solid var(--border-strong);
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--fg);
  white-space: nowrap;
}

.fab-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
}

.fab-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fab-status.is-open-now .fab-status-dot {
  background: #8fb88f;
}

.fab-status.is-closed-now .fab-status-dot {
  background: #b58383;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --padding-x: var(--padding-x-mobile);
  }

  .nav {
    padding: 16px var(--padding-x-mobile);
  }

  /* Bouton MENU visible, liens repliés dans un panneau */
  .nav-burger {
    display: inline-flex;
  }

  /* Le panneau s'ouvre comme un petit cadre sous le bouton MENU, aligné à droite */
  .nn-banner-inner {
    padding: 9px 40px;
  }

  .nn-banner-text {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .nn-banner-close {
    right: 10px;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    max-width: 72vw;
    background: var(--bg);
    border: 0.5px solid var(--border-strong);
    padding: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.22s ease,
                transform 0.3s ease;
  }

  .nav.is-open .nav-menu {
    max-height: 75vh;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu > li {
    width: 100%;
    border-top: 0.5px solid var(--border);
  }

  .nav-menu > li:first-child {
    border-top: none;
  }

  .nav-link {
    display: flex;
    width: 100%;
    padding: 14px 22px;
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  /* Sur mobile, on cache le sous-menu — le clic emmène à la page artists */
  .nav-dropdown {
    display: none;
  }

  .nav-chevron {
    display: none;
  }

  /* Pastille langue : centrée dans le cadre */
  .nav-lang {
    justify-content: center;
    padding: 14px 22px;
  }

  .nav-lang-btn {
    padding: 4px 6px;
  }

  .hero {
    /* fallback nav mobile = 64px si le JS ne s'execute pas */
    height: var(--hero-h, calc(100svh - 64px));
  }

  .hero-carousel {
    height: 280px;
  }

  .hero-logo {
    max-width: 340px;
  }

  .hero-phrase {
    font-size: clamp(26px, 7vw, 36px);
    padding: 0 20px;
  }

  .latest-work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .footer {
    padding: 36px var(--padding-x-mobile) 28px;
    font-size: 11px;
    gap: 12px;
  }

  /* On masque le séparateur central : la ligne 1 se coupe
     proprement en deux paires insécables.
     Le nom du shop est masqué pour que l'adresse tienne sur une ligne. */
  .footer-sep-mid,
  .footer-name {
    display: none;
  }

  .footer-line {
    gap: 5px 10px;
  }

  .fab {
    right: 16px;
    bottom: 16px;
  }

  .fab-hours-popover {
    right: calc(100% + 10px);
  }
}

@media (max-width: 480px) {
  .nav-lang-btn {
    font-size: 10px;
  }
}

/* ============================================
   PAGE HEADER (commune aux sous-pages)
   ============================================ */
.page-header {
  /* Titres de sous-pages masques (Artists, Shop, FAQ, Contact...) :
     le contenu remonte sous la nav. Les elements restent dans le DOM
     pour ne pas casser le JS qui ecrit dedans. */
  display: none;
  padding: 52px var(--padding-x);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-eyebrow {
  display: none;
}

.page-title {
  font-family: var(--font-body);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 0;
}

.page-subtitle {
  display: none;
}

/* ============================================
   ABOUT / A PROPOS
   Page pleine hauteur : tout visible sans scroller.
   Hauteur = viewport moins la nav (mesuree en JS -> --about-h).
   ============================================ */
.about-content {
  height: var(--about-h, calc(100svh - 76px));
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--padding-x) 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 3.2vh, 34px);
}

.about-photo {
  margin: 0;
  flex: 0 1 auto;
  min-height: 0;
  text-align: center;
}

.about-photo img {
  max-width: 100%;
  max-height: 50vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.about-body {
  flex: 0 0 auto;
}

.about-body p {
  font-size: clamp(13px, 1.55vh, 16px);
  line-height: 1.6;
  color: var(--fg-muted);
  margin-bottom: clamp(8px, 1.4vh, 18px);
}

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

@media (max-width: 768px) {
  .about-content {
    height: var(--about-h, calc(100svh - 64px));
    padding: 10px var(--padding-x-mobile) 16px;
    gap: clamp(12px, 2vh, 20px);
  }

  .about-photo img {
    max-height: 40vh;
  }

  .about-body p {
    font-size: clamp(12px, 1.7vh, 15px);
    line-height: 1.5;
  }
}

/* ============================================
   ARTISTS — quicknav sticky
   ============================================ */
.artists-quicknav {
  position: sticky;
  top: 76px; /* hauteur de la nav principale */
  z-index: 50;
  background: rgba(10, 18, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
}

.artists-quicknav-inner {
  display: flex;
  gap: 28px;
  padding: 0 var(--padding-x);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  justify-content: center;
}

.artists-quicknav-inner::-webkit-scrollbar {
  display: none;
}

.artists-quicknav-link {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color var(--t-fast);
  flex-shrink: 0;
  padding: 4px 0;
  position: relative;
}

.artists-quicknav-link:hover {
  color: var(--fg-muted);
}

.artists-quicknav-link.is-active {
  color: var(--fg);
}

/* Indicateurs de scroll (fleches discretes aux bords).
   Non cliquables : montrent juste qu'il reste des noms a gauche / a droite.
   Affiches via .can-scroll-left / .can-scroll-right poses en JS. */
.artists-quicknav::before,
.artists-quicknav::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: var(--fg-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast);
  z-index: 2;
}

.artists-quicknav::before {
  content: '‹';
  left: 0;
  justify-content: flex-start;
  padding-left: 10px;
  background: linear-gradient(to right, var(--bg) 40%, transparent);
}

.artists-quicknav::after {
  content: '›';
  right: 0;
  justify-content: flex-end;
  padding-right: 10px;
  background: linear-gradient(to left, var(--bg) 40%, transparent);
}

.artists-quicknav.can-scroll-left::before {
  opacity: 1;
}

.artists-quicknav.can-scroll-right::after {
  opacity: 1;
}

/* ============================================
   ARTISTS — sections
   ============================================ */
.artists-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x) 80px;
}

.artist-section {
  padding: 70px 0;
  border-bottom: 0.5px solid var(--border);
  scroll-margin-top: 130px;
}

.artist-section:last-child {
  border-bottom: none;
}

.artist-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 40px;
}

.artist-section.is-reversed .artist-intro {
  grid-template-columns: 1.5fr 1fr;
}

.artist-section.is-reversed .artist-portrait {
  order: 2;
  justify-self: end;
}

.artist-portrait {
  aspect-ratio: 3 / 4;
  max-width: 320px;
  width: 100%;
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
}

.artist-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cadrage choisi dans le CMS (voir js/media.js) */
  transform-origin: var(--nn-origin, 50% 50%);
  transform: scale(var(--nn-zoom, 1));
}

.artist-portrait.no-image::after {
  content: '◌';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--fg-dim);
}

.artist-info {
  padding-top: 20px;
}

.artist-role {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}

.artist-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.05;
}

.artist-bio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 24px;
  max-width: 520px;
}

.artist-instagram {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 0.5px solid var(--border-strong);
  padding-bottom: 3px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.artist-instagram:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.artist-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 960px;
  margin: 0 auto;
}

/* ============================================
   ARTISTS — section guests
   ============================================ */
/* Nom en italique dans le dropdown nav et la quicknav */
.nav-dropdown a.is-guest,
.artists-quicknav-link.is-guest {
  font-style: italic;
}

.guest-section {
  text-align: center;
}

.guest-name {
  font-style: italic;
}

.guest-image {
  max-width: 520px;
  margin: 0 auto 28px;
  background: var(--bg-elevated);
  position: relative;
}

.guest-image img {
  width: 100%;
  height: auto;
}

.guest-image.no-image {
  aspect-ratio: 3 / 4;
}

.guest-image.no-image::after {
  content: '◌';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--fg-dim);
}

.guest-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ============================================
   CONTACT — layout deux colonnes (map / formulaire)
   ============================================ */
.contact-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--padding-x) 100px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Map */
.contact-map {
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  scroll-margin-top: 110px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Rendu sombre / désaturé pour coller au thème */
  filter: grayscale(100%) invert(90%) contrast(88%);
}

/* Encart accès sous la map */
.contact-access {
  border: 0.5px solid var(--border);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.access-label {
  font-weight: 500;
  color: var(--fg);
}

.contact-access em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.contact-access a {
  border-bottom: 0.5px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color var(--t-fast);
}

.contact-access a:hover {
  border-color: var(--fg);
}

.contact-access a em {
  transition: color var(--t-fast);
}

.contact-access a:hover em {
  color: var(--fg);
}

/* Coordonnées sous l'encart */
.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  padding-top: 8px;
}

.contact-block {
  text-align: left;
}

.contact-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}

.contact-value {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
}

.contact-value a {
  border-bottom: 0.5px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color var(--t-fast);
}

.contact-value a:hover {
  border-color: var(--fg);
}

.contact-meta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--fg-dim);
  font-style: italic;
  font-family: var(--font-display);
}

/* Colonne formulaire */
.contact-right .contact-form-intro {
  text-align: left;
  margin-bottom: 40px;
}

.contact-form-intro h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 14px;
}

.contact-form-intro p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.contact-right .contact-form-intro p {
  margin: 0;
  max-width: none;
}

.form-photos-note {
  margin-top: 12px !important;
  font-size: 13px;
  line-height: 1.7;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--fg-dim);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border-strong);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  outline: none;
  transition: border-color var(--t-fast);
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-dim);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--fg);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23e8e2d4' opacity='0.5' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

.form-field select option {
  background: var(--bg);
  color: var(--fg);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  font-family: var(--font-body);
}

.form-submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.form-submit {
  background: transparent;
  color: var(--fg);
  border: 0.5px solid var(--fg);
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: background var(--t-fast), color var(--t-fast);
}

.form-submit:hover {
  background: var(--fg);
  color: var(--bg);
}

.form-submit-arrow {
  transition: transform var(--t-fast);
}

.form-submit:hover .form-submit-arrow {
  transform: translateX(4px);
}

.form-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: var(--fg-dim);
  font-style: italic;
  font-family: var(--font-display);
}

.form-disclaimer a {
  color: var(--fg-muted);
  border-bottom: 0.5px solid var(--border-strong);
}

.form-disclaimer a:hover {
  color: var(--fg);
}

/* ============================================
   SHOP
   ============================================ */
.shop-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--padding-x);
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.shop-filter {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--fg-muted);
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-fast);
}

.shop-filter:hover {
  border-color: var(--border-strong);
  color: var(--fg);
}

.shop-filter.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.shop-grid-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x) 60px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast);
}

.product-card:hover .product-image img {
  transform: scale(calc(var(--nn-zoom, 1) * 1.04));
}

.product-image {
  aspect-ratio: 3 / 4;
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cadrage choisi dans le CMS (voir js/media.js) */
  transform-origin: var(--nn-origin, 50% 50%);
  transform: scale(var(--nn-zoom, 1));
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image.no-image::after {
  content: '◌';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--fg-dim);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg);
  color: var(--fg);
  padding: 5px 10px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 0.5px solid var(--border-strong);
}

/* Remplacee plus bas : l'attenuation porte desormais sur la piste photo,
   pour que le bandeau "sold out" reste pleinement lisible. */

.product-info {
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 1.2;
}

.product-artist {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  font-style: italic;
  font-family: var(--font-display);
}

.product-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.product-price {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-top: auto;
}

.shop-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--fg-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* SHOP INFO */
.shop-info {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px var(--padding-x) 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  border-top: 0.5px solid var(--border);
}

.shop-info-block h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 16px;
}

.shop-info-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--padding-x) 100px;
}

.faq-item {
  padding: 40px 0;
  border-bottom: 0.5px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 16px;
}

.faq-answer {
  font-size: 15px;
  line-height: 1.9;
  color: var(--fg-muted);
}

.faq-answer a {
  color: var(--fg);
  border-bottom: 0.5px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color var(--t-fast);
}

.faq-answer a:hover {
  border-color: var(--fg);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px var(--padding-x) 100px;
}

.faq-item {
  border-bottom: 0.5px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--fg);
  line-height: 1.3;
  transition: color var(--t-fast);
}

.faq-item summary:hover .faq-question {
  color: var(--fg-muted);
}

.faq-marker {
  font-size: 20px;
  color: var(--fg-dim);
  flex-shrink: 0;
  transition: transform 0.3s ease, color var(--t-fast);
}

.faq-item[open] .faq-marker {
  transform: rotate(45deg);
  color: var(--fg);
}

.faq-answer {
  padding: 0 0 30px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 640px;
}

.faq-answer a {
  color: var(--fg);
  border-bottom: 0.5px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color var(--t-fast);
}

.faq-answer a:hover {
  border-color: var(--fg);
}

/* ============================================
   ERREURS
   ============================================ */
.error-message {
  text-align: center;
  padding: 60px var(--padding-x);
  color: var(--fg-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* ============================================
   RESPONSIVE — sous-pages
   ============================================ */
@media (max-width: 768px) {
  .page-header {
    padding: 44px var(--padding-x-mobile);
  }

  .artists-quicknav {
    top: 64px; /* nav mobile plus petite */
  }

  .artists-quicknav-inner {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .artist-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .artist-section.is-reversed .artist-intro {
    grid-template-columns: 1fr;
  }

  .artist-section.is-reversed .artist-portrait {
    order: 0;
  }

  .artist-portrait {
    max-width: 280px;
    margin: 0 auto;
  }

  .artist-info {
    text-align: center;
    padding-top: 0;
  }

  .artist-bio {
    text-align: left;
  }

  .artist-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .artist-section {
    padding: 60px 0;
    scroll-margin-top: 110px;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 10px var(--padding-x-mobile) 60px;
  }

  .contact-details {
    gap: 28px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .form-submit {
    justify-content: center;
  }

  .form-disclaimer {
    text-align: center;
  }

  /* FAQ */
  .faq-list {
    padding: 0 var(--padding-x-mobile) 60px;
  }

  .faq-item {
    padding: 30px 0;
  }

  .faq-question {
    font-size: 22px;
  }

  /* FAQ */
  .faq-list {
    padding: 0 var(--padding-x-mobile) 60px;
  }

  .faq-item summary {
    padding: 12px 0;
    gap: 16px;
  }

  .faq-question {
    font-size: 20px;
  }

  /* Shop */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .product-name {
    font-size: 18px;
  }

  .shop-info {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px var(--padding-x-mobile) 60px;
  }
}

@media (max-width: 480px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SELECTEUR DE LANGUE (FR / EN) - navbar
   ============================================ */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-lang-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  transition: color var(--t-fast);
  line-height: 1;
}

.nav-lang-btn:hover {
  color: var(--fg-muted);
}

.nav-lang-btn.is-active {
  color: var(--fg);
}

.nav-lang-sep {
  font-size: 10px;
  color: var(--fg-dim);
  user-select: none;
}

@media (max-width: 480px) {
  .nav-lang-btn {
    font-size: 9.5px;
  }
}

/* ============================================
   ACCESSIBILITE / SEO
   --------------------------------------------
   Masque un element visuellement tout en le laissant lisible par Google
   et par les lecteurs d'ecran. Technique d'accessibilite standard : l'element
   reste dans le flux du document, il occupe juste 1px invisible.

   Utilise par les h1 de index.html et about.html.

   ATTENTION : cette regle doit rester EN DEHORS de tout bloc @media,
   sinon les h1 redeviennent visibles aux autres largeurs d'ecran.
   Ne pas remplacer par display:none ni visibility:hidden : ces deux
   proprietes retirent reellement le contenu, Google ne le lira pas.
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   BOUTIQUE EN LIGNE
   Panier, achat depuis la fiche produit, page de confirmation.
   Reprend les tokens du haut du fichier : pas de nouvelle couleur,
   pas de nouvelle police, bordures a 0.5px et libelles capitales
   espacees, comme le reste du site.
   ============================================ */

/* Plusieurs blocs du panier sont masques via l'attribut HTML [hidden] et
   portent aussi un display:flex ou display:grid. Un selecteur de classe
   l'emporte sur la regle [hidden] du navigateur : sans cette ligne, les
   totaux et l'etat "panier vide" resteraient visibles. */
[hidden] {
  display: none !important;
}

/* --------------------------------------------
   PASTILLE PANIER DANS LA NAV
   -------------------------------------------- */
.nav-cart-item {
  display: flex;
  align-items: center;
}

/* Exemplaire mobile : masque tant que la barre de menu est deployee.
   Double classe volontaire : sans elle, la regle .nav-cart plus bas
   (display: inline-flex) l'emporterait par simple ordre de declaration. */
.nav-cart.nav-cart-mobile {
  display: none;
}

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--fg-muted);
  transition: color var(--t-fast);
}

.nav-cart:hover,
.nav-cart.has-items {
  color: var(--fg);
}

.nav-cart svg {
  width: 19px;
  height: 19px;
}

.nav-cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: 9px;
  font-weight: 500;
  line-height: 15px;
  text-align: center;
  letter-spacing: 0;
}

/* --------------------------------------------
   ACHAT DEPUIS LA FICHE PRODUIT
   -------------------------------------------- */
.product-buy {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-size {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-size-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
}

.product-size-select {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border-strong);
  padding: 6px 22px 6px 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--fg);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23e8e2d4' opacity='0.5' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  transition: border-color var(--t-fast);
}

.product-size-select:focus {
  border-bottom-color: var(--fg);
}

.product-size-select option {
  background: var(--bg);
  color: var(--fg);
}

.product-add {
  width: 100%;
  background: transparent;
  color: var(--fg);
  border: 0.5px solid var(--border-strong);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.product-add:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.product-add.is-added {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.product-stock-note {
  font-size: 11px;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--fg-muted);
}

.product-soldout-note {
  margin-top: 14px;
  font-size: 11px;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--fg-dim);
}

/* --------------------------------------------
   PAGE PANIER
   -------------------------------------------- */
.cart-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--padding-x) 100px;
}

.cart-notices {
  border: 0.5px solid var(--border-strong);
  padding: 16px 20px;
  margin-bottom: 34px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.cart-notices p + p {
  margin-top: 6px;
}

.cart-empty {
  text-align: center;
  padding: 60px 0 100px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
}

.cart-empty a {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 0.5px solid var(--border-strong);
  padding-bottom: 3px;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

/* --- Lignes du panier --- */
.cart-lines {
  list-style: none;
  border-top: 0.5px solid var(--border);
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto auto 24px;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
}

.cart-line-media {
  width: 72px;
  aspect-ratio: 3 / 4;
  background: var(--bg-elevated);
  overflow: hidden;
}

.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--nn-origin, 50% 50%);
  transform: scale(var(--nn-zoom, 1));
}

.cart-line-name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  color: var(--fg);
}

.cart-line-size {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 5px;
}

.cart-line-unit {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 5px;
}

.cart-line-qty {
  display: inline-flex;
  align-items: center;
  border: 0.5px solid var(--border-strong);
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}

.cart-qty-btn:hover:not(:disabled) {
  background: var(--fg);
  color: var(--bg);
}

.cart-qty-btn:disabled {
  color: var(--fg-dim);
  cursor: not-allowed;
}

.cart-qty-value {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--fg);
}

.cart-line-total {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--fg);
  white-space: nowrap;
}

.cart-line-remove {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  transition: color var(--t-fast);
}

.cart-line-remove:hover {
  color: var(--fg);
}

.cart-line-remove svg {
  width: 15px;
  height: 15px;
}

/* --- Colonne de droite : totaux et paiement --- */
.cart-summary {
  border: 0.5px solid var(--border);
  padding: 28px 26px;
  position: sticky;
  top: 100px;
}

.cart-country-field {
  margin-bottom: 26px;
}

.cart-totals {
  border-top: 0.5px solid var(--border);
  padding-top: 20px;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-muted);
  padding: 7px 0;
}

.cart-total-line dt {
  letter-spacing: 0.05em;
}

.cart-total-line.is-pending dd {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--fg-dim);
}

.cart-total-final {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--fg);
}

.cart-total-final dt {
  letter-spacing: 0.02em;
}

.cart-delay,
.cart-customs,
.cart-pay-hint,
.cart-secure {
  font-size: 11px;
  line-height: 1.65;
  color: var(--fg-dim);
  font-family: var(--font-display);
  font-style: italic;
}

.cart-delay {
  margin-top: 16px;
}

.cart-customs {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 0.5px solid var(--border);
}

.cart-error {
  margin-top: 18px;
  padding: 12px 14px;
  border: 0.5px solid var(--border-strong);
  font-size: 12px;
  line-height: 1.6;
  color: var(--fg);
}

.cart-pay {
  width: 100%;
  justify-content: center;
  margin-top: 22px;
}

.cart-pay:disabled {
  border-color: var(--border);
  color: var(--fg-dim);
  cursor: not-allowed;
}

.cart-pay:disabled:hover {
  background: transparent;
  color: var(--fg-dim);
}

.cart-pay.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.cart-pay-hint {
  margin-top: 12px;
  text-align: center;
}

.cart-secure {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
}

/* --------------------------------------------
   PAGE DE CONFIRMATION
   -------------------------------------------- */
.thanks {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px var(--padding-x) 140px;
  text-align: center;
}

.thanks-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-top: 24px;
}

.thanks-ref {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.thanks-actions {
  margin-top: 40px;
}

/* --------------------------------------------
   RESPONSIVE
   -------------------------------------------- */
@media (max-width: 900px) {
  .cart-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-wrapper {
    padding: 0 var(--padding-x-mobile) 70px;
  }

  /* Sur petit ecran, la ligne passe sur deux rangees : visuel + infos en
     haut, quantite et total en bas, pour ne pas comprimer les libelles. */
  /* Troisieme colonne en "auto" et non en 24px : elle accueille la croix de
     suppression sur la premiere rangee, mais aussi le prix total de la ligne
     sur la seconde, qui est bien plus large. */
  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "media info remove"
      "media qty  total";
    gap: 8px 14px;
    align-items: start;
  }

  .cart-line-media { grid-area: media; width: 64px; }
  .cart-line-info  { grid-area: info; }
  .cart-line-qty   { grid-area: qty; margin-top: 10px; }
  .cart-line-total { grid-area: total; align-self: center; text-align: right; margin-top: 10px; }
  .cart-line-remove{ grid-area: remove; justify-self: end; }

  .cart-line-name { font-size: 16px; }

  /* Le panier sort du menu repliable et se pose a gauche du bouton MENU :
     le client doit voir son panier sans avoir a ouvrir le menu. */
  .nav-cart-item {
    display: none;
  }

  .nav-cart.nav-cart-mobile {
    display: inline-flex;
    margin-left: auto;
    margin-right: 18px;
  }

  .nav-cart {
    width: 26px;
    height: 26px;
  }

  .nav-cart svg {
    width: 17px;
    height: 17px;
  }

  .thanks {
    padding: 20px var(--padding-x-mobile) 90px;
  }
}

/* ============================================
   BOUTIQUE — GALERIE PRODUIT, ZOOM, MESSAGE FLOTTANT
   Ajout du carrousel (jusqu'a 3 photos par article), de la vue plein
   ecran, du bandeau "sold out" et du retour d'action apres un ajout.
   ============================================ */

/* --------------------------------------------
   CARROUSEL DE LA CARTE
   Les photos sont posees cote a cote dans une piste que l'on translate.
   La translation porte sur la piste et jamais sur les <img>, qui gardent
   leur propre recadrage (--nn-zoom / --nn-origin) pose par le CMS.
   -------------------------------------------- */
.product-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-slide {
  flex: 1 1 0;
  height: 100%;
  overflow: hidden;
}

/* Zone cliquable pour le zoom : couvre toute la photo, sous les fleches.
   Un bouton plutot qu'un div, pour rester atteignable au clavier. */
.product-zoom {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.product-zoom:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: -3px;
}

/* --- Fleches de navigation --- */
.product-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0.5px solid var(--border);
  background: rgba(10, 18, 13, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--fg);
  cursor: pointer;
  opacity: 0.62;
  transition: opacity var(--t-fast), background var(--t-fast);
}

.product-arrow svg {
  width: 16px;
  height: 16px;
}

.product-arrow:hover:not(:disabled) {
  opacity: 1;
  background: rgba(10, 18, 13, 0.8);
}

.product-arrow:disabled {
  opacity: 0.15;
  cursor: default;
}

.product-arrow-prev { left: 10px; }
.product-arrow-next { right: 10px; }

/* --- Points indicateurs --- */
.product-dots {
  position: absolute;
  z-index: 2;
  pointer-events: none;   /* le clic doit atteindre le bouton de zoom dessous */
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.product-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0.3;
  transition: opacity var(--t-fast);
}

.product-dot.is-active {
  opacity: 0.95;
}

/* --------------------------------------------
   BANDEAU "SOLD OUT"
   Bande en diagonale dans le coin, rognee par l'overflow du cadre photo.
   Les deux variables permettent de passer au rouge sans toucher au reste :
   il suffit de les redefinir dans le :root en haut du fichier.
   -------------------------------------------- */
.product-ribbon {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: -56px;
  width: 185px;
  padding: 8px 0;
  transform: rotate(45deg);
  background: var(--nn-ribbon-bg, var(--fg));
  color: var(--nn-ribbon-fg, var(--bg));
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.3em;
  text-indent: 0.3em;   /* compense l'espacement sur la derniere lettre */
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
}

/* L'attenuation porte sur la piste et non sur le cadre : sinon le bandeau
   serait attenue lui aussi, alors qu'il doit rester bien lisible. */
.product-card.is-sold-out .product-image {
  opacity: 1;
}

.product-card.is-sold-out .product-track {
  opacity: 0.42;
}

.product-card.is-sold-out .product-zoom {
  cursor: zoom-in;
}

/* --------------------------------------------
   VUE PLEIN ECRAN
   La photo y est affichee ENTIERE (object-fit: contain) et sans le
   recadrage du CMS : c'est tout l'interet du zoom.
   -------------------------------------------- */
.nn-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(10, 18, 13, 0.965);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.nn-lightbox.is-open {
  opacity: 1;
}

.nn-lightbox-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  max-width: min(1100px, 88vw);
}

.nn-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nn-lightbox-caption {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--fg-muted);
  text-align: center;
}

.nn-lightbox-arrow,
.nn-lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex: 0 0 auto;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}

.nn-lightbox-arrow svg { width: 20px; height: 20px; }
.nn-lightbox-close svg { width: 18px; height: 18px; }

.nn-lightbox-arrow:hover:not(:disabled),
.nn-lightbox-close:hover {
  background: var(--fg);
  color: var(--bg);
}

.nn-lightbox-arrow:disabled {
  opacity: 0.18;
  cursor: default;
}

.nn-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
}

/* Une seule photo : les fleches n'ont plus de raison d'etre. */
.nn-lightbox.is-single .nn-lightbox-arrow {
  display: none;
}

/* Empeche la page de defiler derriere la vue plein ecran. */
body.nn-noscroll {
  overflow: hidden;
}

/* --------------------------------------------
   MESSAGE FLOTTANT APRES UN AJOUT
   -------------------------------------------- */
.nn-toast {
  position: fixed;
  z-index: 220;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 14px);
  max-width: calc(100vw - 40px);
  padding: 13px 24px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nn-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nn-toast.is-warn {
  background: var(--bg-elevated);
  color: var(--fg);
  border: 0.5px solid var(--border-strong);
}

/* --------------------------------------------
   RESPONSIVE
   -------------------------------------------- */
@media (max-width: 768px) {
  /* Sans survol, les fleches doivent etre lisibles en permanence. */
  .product-arrow {
    opacity: 0.78;
    width: 30px;
    height: 30px;
  }

  .product-ribbon {
    top: 16px;
    right: -58px;
    letter-spacing: 0.24em;
    font-size: 9px;
  }

  .nn-lightbox {
    padding: 14px;
    gap: 4px;
  }

  .nn-lightbox-frame {
    max-width: 100%;
  }

  .nn-lightbox-img {
    max-height: 68vh;
  }

  .nn-lightbox-arrow,
  .nn-lightbox-close {
    width: 38px;
    height: 38px;
  }

  .nn-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .nn-toast {
    bottom: 24px;
    font-size: 9.5px;
    padding: 12px 18px;
    letter-spacing: 0.18em;
  }
}

/* Les personnes qui limitent les animations gardent l'interface, sans le
   glissement ni les fondus. */
@media (prefers-reduced-motion: reduce) {
  .product-track,
  .nn-lightbox,
  .nn-toast {
    transition: none;
  }
}
