/* =========================================================
   KRIILL — feuille de style
   Un seul fond : le panorama Listen to the whale, fixe.
   À l'arrivée, cadrage sur Kriill qui boit le thé ; au premier
   défilement, la caméra glisse vers la baleine ; à Contact, elle
   revient sur le thé. Le contenu défile par-dessus, en blanc.
   ========================================================= */

/* ---------------- Typographies (dossier fonts/) ----------------
   Kriill : titres et menu. Jost : texte, boutons, infos pratiques. */
@font-face {
  font-family: "Kriill";
  src: url("fonts/kriill.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  size-adjust: 132%;   /* lettres très petites dans leur cadratin */
}
@font-face { font-family: "Jost"; src: url("fonts/jost-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --nuit:      #0b2a45;               /* le bleu le plus profond de la photo */
  --blanc:     #ffffff;
  --blanc-2:   rgba(255,255,255,.8);  /* texte secondaire */
  --line:      rgba(255,255,255,.3);
  --framboise: #c61354;               /* le bonnet et le pantalon du trio */

  --display: "Kriill", "Jost", "Helvetica Neue", Arial, sans-serif;
  --text: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 72rem;

  /* Durée du glissement entre le thé et la baleine */
  --glisse: 1.2s;

  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--blanc);
  font-family: var(--text);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;   /* iPhone : pas de zoom au double toucher (le pincement reste possible) */
  text-shadow: 0 1px 12px rgba(11,42,69,.35);
}
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }
strong { font-weight: 500; }

/* Style « étiquette » : capitales espacées pour les infos pratiques */
.btn, .gig-month, .past-more, .past-group-toggle, .menu-toggle, .platforms span, .intro-next {
  font-family: var(--text); font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem;
}

/* ---------------- Le fond fixe ----------------
   Tout est calculé en CSS (aucun script au redimensionnement).
   Le panorama fait --W de large ; trois cadrages horizontaux :
   le thé (accueil), la baleine (contenu), le thé décalé (Contact).

   Pour la fluidité sur tous les navigateurs (Firefox surtout),
   on ne fait pas glisser une image géante : elle est découpée en
   bandes de la taille de l'écran (.pan), qui glissent ensemble.
   Chaque bande reste petite, donc la carte graphique l'anime seule,
   sans solliciter le processeur. Les bandes se chevauchent de 2 px
   pour qu'aucune couture ne soit visible. */
:root {
  --vh: 100vh;
  --W: max(190vw, calc(var(--vh) * 2));           /* assez large pour isoler chaque sujet */
  --H: calc(var(--W) / 2);
  /* l'horizon (49 % de la hauteur de l'image) un peu au-dessus du milieu de l'écran */
  --y: clamp(calc(var(--vh) - var(--H)), calc(var(--vh) * .45 - var(--H) * .49), 0px);
  /* position du sujet dans la largeur de l'image : thé 0.745, baleine 0.22 */
  --x-the:     clamp(calc(100vw - var(--W)), calc(50vw - var(--W) * .745), 0px);
  --x-baleine: clamp(calc(100vw - var(--W)), calc(50vw - var(--W) * .22), 0px);
  --x-contact: clamp(calc(100vw - var(--W)), calc(72vw - var(--W) * .745), 0px);   /* le trio à droite, le texte à gauche */
  --x: var(--x-the);
}
/* Sur mobile, la hauteur « large » évite que le fond saute quand la barre d'adresse apparaît */
@supports (height: 100lvh) { :root { --vh: calc(100lvh + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)); } }
/* mobile : au contact, le trio est cadré plus à droite (60 % de la largeur) pour libérer le texte à gauche */
@media (max-width: 760px) { :root { --x-contact: clamp(calc(100vw - var(--W)), calc(60vw - var(--W) * .745), 0px); } }
body.on-whale   { --x: var(--x-baleine); }
body.on-contact { --x: var(--x-contact); }

.backdrop {
  position: fixed; left: 0; right: 0; z-index: -1;
  /* iPhone : on déborde de la zone de sécurité (encoche en haut, barre en bas)
     et on s'accroche aux deux bords, pour qu'aucune bande bleue n'apparaisse
     quand les barres de Safari / Chrome se rétractent. */
  top: calc(-1 * env(safe-area-inset-top, 0px)); bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  min-height: var(--vh);
  overflow: hidden; background: var(--nuit);
  pointer-events: none;
}
.pan {
  position: absolute; top: 0; left: 0;
  width: calc(100vw + 2px); height: 100%;
  background: url("img/fond.webp") no-repeat;
  background-size: var(--W) var(--H);
  background-position: calc(var(--i) * -100vw) var(--y);
  transform: translate3d(calc(var(--x) + var(--i) * 100vw), 0, 0);
  transition: transform var(--glisse) cubic-bezier(.65, 0, .35, 1);
  backface-visibility: hidden;
  /* Préparée dès le chargement (pas seulement au survol/scroll) pour que
     Safari mobile la mette déjà en couche graphique : sinon la première
     bande qui entre en jeu lors d'un trajet est composée au moment même
     du scroll, ce qui saccade. Les 3 trajets (thé, baleine, contact) ne
     mobilisent pas toujours les 2 mêmes bandes, donc on prépare les 6. */
  will-change: transform;
}
@media (max-width: 760px) {
  .pan {
    background-image: url("img/fond-mobile.webp");
    background-image: image-set(url("img/fond-mobile.webp") 1x, url("img/fond.webp") 2x);   /* écrans haute densité */
  }
}
.veil {             /* voile de lecture : absent à l'accueil, présent sous le contenu */
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,42,69,.25) 0%, rgba(11,42,69,.55) 100%);
  opacity: 0;
  transition: opacity var(--glisse) ease;
}
body.on-whale .veil { opacity: 1; }
body.on-contact .veil { opacity: .7; }

/* Contact (ordinateur) = « carte postale » : le voile de lecture s'estompe
   progressivement de gauche (texte) à droite (trio), sans cassure.
   Sur téléphone, le voile uniforme habituel est conservé. */
.veil-post { display: none; }
@media (min-width: 761px) {
  body.on-contact .veil { opacity: 0; }
  .veil-post {
    display: block; position: absolute; inset: 0; opacity: 0;
    transition: opacity var(--glisse) ease;
    background: linear-gradient(90deg,
      rgba(11,42,69,.5) 0%, rgba(11,42,69,.46) 22%, rgba(11,42,69,.36) 40%,
      rgba(11,42,69,.24) 56%, rgba(11,42,69,.15) 72%, rgba(11,42,69,.1) 100%);
  }
  body.on-contact .veil-post { opacity: 1; }
}
/* Téléphone : le glissement est animé par main.js (voir « LE FOND ») */
.js-glide .pan, .js-glide .veil, .js-glide .veil-post { transition: none; }


/* ---------------- Fondu des titres sous le menu ----------------
   Sur ordinateur, l'opacité de chaque titre est pilotée depuis main.js
   (lecture de sa position réelle à l'écran, pas de dégradé calé sur la
   page) : plus fiable sur tous les navigateurs qu'un dégradé fixe, qui
   s'est révélé capricieux sur Firefox et inopérant sur Safari iPhone.
   Sur mobile, rien : la barre du haut s'y range déjà toute seule.
   Contact est exclu par main.js, il reste toujours pleinement net. */
:root { --fade: 5.5rem; }

/* ---------------- Barre du haut ---------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--gutter) 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  /* voile très léger, juste pour asseoir le menu ; le paysage reste visible */
  background: linear-gradient(180deg, rgba(11,42,69,.28), rgba(11,42,69,0));
  transition: transform .35s ease;
}
/* Mobile uniquement : la barre (juste deux boutons ronds) se range en
   descendant et revient en remontant. Sans effet sur ordinateur : le
   menu complet y reste affiché en permanence. */
@media (max-width: 760px) {
  body.topbar-hidden .topbar { transform: translateY(-130%); }
}
.wordmark { display: block; line-height: 0; }
.wordmark img { height: 2.4rem; width: auto; opacity: 0; transition: opacity .35s; }
.topbar.show-logo .wordmark img { opacity: 1; }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a {
  font-family: var(--display); font-size: 1.05rem; text-decoration: none;
  padding: .25rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.is-current { border-bottom-color: currentColor; }
.menu-toggle { display: none; }
@media (min-width: 761px) {
  .topbar { gap: 1.5rem; }
  .topbar-actions { order: 3; }         /* le bouton de langue reste à droite, après le menu */
}
.lang {
  font-family: var(--text); font-weight: 500; letter-spacing: .1em; font-size: .8rem;
  color: inherit; background: none; border: 1px solid currentColor; border-radius: 999px;
  padding: .35rem .75rem; cursor: pointer; line-height: 1; white-space: nowrap;
}
.lang:hover { background: rgba(255,255,255,.15); }

/* ---------------- Accueil ---------------- */
.intro {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: max(6.5rem, 9vh) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.sentinel { position: absolute; top: 10px; left: 0; width: 1px; height: 1px; }   /* repère du « premier défilement » */
/* Téléphone : le fond bascule vers la baleine une fois passé ≈ 1/4 d'écran. */
@media (max-width: 760px) {
  .sentinel { top: 25vh; top: 25svh; }
}
.intro-logo { margin: 0; line-height: 0; }
.intro-logo img { width: min(34vh, 26rem, 62vw); height: auto; }
.intro-album {
  margin: 1.1rem 0 0;
  font-weight: 400; text-transform: uppercase; letter-spacing: .28em;
  font-size: clamp(.8rem, 1.1vw, 1rem);
}
.intro-next {
  margin-top: auto; text-decoration: none; padding: .5rem 0; border-bottom: 1px solid currentColor;
  transition: opacity .25s ease, visibility .25s ease;
}
/* Il disparaît dès le tout premier défilement (voir main.js), pour ne pas
   réapparaître à l'esprit du visiteur une fois qu'il lit plus bas. */
.intro-next.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------------- Rubriques ---------------- */
.section {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: clamp(5rem, 18vh, 10rem);
}
/* Contact : dernière scène du site, sur la photo du thé. Pas de hauteur
   forcée à un écran plein : le bloc garde la taille de son contenu, avec
   juste un peu plus d'air au-dessus (pour ne pas coller au menu) et en
   dessous (avant le pied de page), quelle que soit la taille de l'écran. */
.section-contact {
  padding-top: clamp(6rem, 14vh, 8rem);
  padding-bottom: clamp(2rem, 6vh, 3rem);
}
@media (min-width: 761px) {
  .section-contact > * { max-width: min(38rem, 55%); }   /* le texte à gauche, le trio à droite */
  .section-contact .contacts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 761px) {
  /* Contact occupe un écran entier (moins le pied de page) : en bas de page,
     plus aucun bout de vidéo en haut de l'écran. */
  .section-contact { padding-bottom: 1rem; min-height: calc(100vh - var(--footer-h, 10.5rem)); min-height: calc(100svh - var(--footer-h, 10.5rem)); }
}
@media (max-width: 760px) {
  /* de l'air sous la newsletter : au bout de la page, le trio apparaît en entier
     entre le formulaire et le pied de page, au lieu de passer derrière eux */
  .section-contact { padding-bottom: max(14rem, 28svh); }
}

/* Arrivée sur Contact : les blocs apparaissent l'un après l'autre (main.js
   ajoute .contact-in au <body> une seule fois, et .js-reveal seulement si l'animation
   est possible : sans script, tout reste visible). */
.js-reveal .section-contact > *, .js-reveal body:not(.store) .footer {
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
}
.js-reveal body.contact-in .section-contact > *, .js-reveal body.contact-in:not(.store) .footer { opacity: 1; transform: none; }
body.contact-in .section-contact > :nth-child(2) { transition-delay: .15s; }
body.contact-in .section-contact > :nth-child(3) { transition-delay: .3s; }
body.contact-in:not(.store) .footer { transition-delay: .45s; }

/* ---------------- Boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .55rem 1.5rem;
  text-decoration: none; white-space: nowrap; text-shadow: none;
  background: var(--blanc); color: var(--nuit);
  border: 1px solid var(--blanc); border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--framboise); border-color: var(--framboise); color: var(--blanc); }
.btn-ghost { background: transparent; color: var(--blanc); }
.btn-ghost:hover { background: var(--blanc); color: var(--nuit); border-color: var(--blanc); }
.btn[aria-disabled="true"] { background: transparent; border-color: var(--line); color: var(--blanc-2); pointer-events: none; }

/* ---------------- En-têtes de rubrique ---------------- */
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 2rem;
  padding-bottom: 1.1rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.section h2 {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05;
}
.section-note { margin: 0; color: var(--blanc-2); }
.quiet-link { color: var(--blanc-2); text-underline-offset: .25em; }
.quiet-link:hover { color: var(--blanc); }

/* ---------------- Concerts ---------------- */
.tour { list-style: none; margin: 0; padding: 0; }
.gig {
  display: grid; grid-template-columns: 7rem 1fr auto;
  align-items: center; gap: 1.5rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.gig-date { line-height: 1; }
.gig-day { display: block; font-size: 2.4rem; font-weight: 300; }
.gig-month { display: block; margin-top: .35rem; color: var(--blanc-2); }
.gig-city { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.2; }
.gig-venue { margin: .15rem 0 0; color: var(--blanc-2); }
.tour-status { padding: 1.5rem 0; color: var(--blanc-2); max-width: 38rem; }
.tour-status a { color: var(--blanc); }

.past { margin-top: 2.5rem; }
.past-title { margin: 0 0 .5rem; font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.past-list { list-style: none; margin: 0; padding: 0; }
.past-gig {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  color: var(--blanc-2); font-size: 1rem;
}
.past-gig time { font-variant-numeric: tabular-nums; }
.past-city { color: var(--blanc); font-weight: 400; }
.past-gig.is-extra { display: none; }
.past.is-open .past-gig.is-extra { display: grid; }
.past-more, .past-group-toggle {
  padding: .3rem 0; background: none; border: 0; border-bottom: 1px solid currentColor;
  color: var(--blanc); cursor: pointer;
}
.past-more { margin-top: 1.1rem; align-self: flex-start; }
.past-group { align-items: baseline; }
.past-group-toggle::after { content: " +"; }
.past-group-toggle[aria-expanded="true"]::after { content: " −"; }
.past-group-list {
  grid-column: 1 / -1;
  list-style: none; margin: .6rem 0 .3rem; padding: 0;
  columns: 3 13rem; column-gap: 2rem; font-size: .95rem;
}
.past-group-list li { break-inside: avoid; padding: .15rem 0; }
.past-group-list time { display: inline-block; min-width: 7.5rem; }

/* ---------------- Musique ---------------- */
.music { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.music-player iframe { width: 100%; height: 380px; border: 0; border-radius: 12px; display: block; }
.about { margin: 0 0 1.5rem; max-width: 34rem; font-size: 1rem; line-height: 1.6; }
.platforms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.platforms a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
  font-weight: 400; text-decoration: none;
}
.platforms span { color: var(--blanc-2); }
.platforms a:hover span { color: var(--blanc); }

/* ---------------- Boutique ---------------- */
.shop {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.product { display: flex; flex-direction: column; }
/* Tailles : plus d'aspect-ratio ni de flex ici, mais des proportions de la largeur (méthode du
   « padding en pourcentage »). Safari et Chrome sur iPhone recalculaient ces tailles à chaque
   mouvement de la barre d'adresse. --r = format de la zone (largeur / hauteur), --s = taille de la pochette. */
.product-visual { --r: 1.3; --s: .72; position: relative; height: 0; padding-bottom: max(calc(100% / var(--r)), calc(var(--s) * 100%)); margin-bottom: 1rem; }
.product-sleeve {
  position: absolute; z-index: 2; left: 0; top: 50%; translate: 0 -50%;
  width: calc(var(--s) * 100%); height: 0; padding-bottom: calc(var(--s) * 100%);
  background: #3c9ecf center / cover no-repeat;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
  transition: opacity .55s cubic-bezier(.22,.7,.2,1), transform .55s cubic-bezier(.22,.7,.2,1);
}
.product-sleeve.is-empty { background: linear-gradient(170deg, #1466a3, #3c9ecf); font-family: var(--display); font-size: 2rem; display: grid; place-items: center; }
.product-disc { position: absolute; z-index: 1; top: 50%; width: var(--d); height: 0; padding-bottom: var(--d); border-radius: 50%; transition: transform .55s cubic-bezier(.22,.7,.2,1), opacity .45s ease; }
.product-disc.is-vinyl { --d: 70%; left: 26%; transform: translateY(-50%); background: url("img/disc.webp") center / 100% 100% no-repeat; }
.product-disc.is-cd {
  --d: 58%; left: 36%; transform: translateY(-50%);
  background:
    radial-gradient(circle, transparent 0 7%, rgba(255,255,255,.8) 7.5% 9%, #d8dee6 9.2% 17%, transparent 17.2%),
    conic-gradient(from 0deg, #e6ecf2, #b9d6ff, #f6d5f0, #d6f5e3, #fff3c4, #c9e6ff, #e6ecf2);
  background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
}
@media (hover: hover) and (pointer: fine) {   /* souris seulement : sur iPhone, le « survol » reste collé après un toucher */
  .product:hover .product-disc.is-vinyl { transform: translate(8%, -50%) rotate(40deg); }
  .product:hover .product-disc.is-cd    { transform: translate(10%, -50%) rotate(60deg); }
}

/* Tactile : pas de survol, donc pas d'effet ci-dessus. Au lieu de ça,
   toucher le disque le fait tourner sur lui-même en continu, jusqu'au
   prochain toucher (classe posée par main.js). */
@keyframes disc-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
.product-disc.is-spinning { animation: disc-spin 3s linear infinite; }

/* La vraie photo du produit : visible quand on choisit sa vignette (souris ou tactile) */
.product-mockup {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(.97); visibility: hidden;
  transition: opacity .45s cubic-bezier(.22,.7,.2,1), transform .5s cubic-bezier(.22,.7,.2,1), visibility 0s linear .5s;
  pointer-events: none;
}
.product-mockup.is-active { opacity: 1; transform: scale(1); visibility: visible; transition-delay: 0s; filter: drop-shadow(0 20px 34px rgba(0,0,0,.45)); }

/* Page d'accueil : la photo du produit se révèle au survol (souris uniquement) */
@media (hover: hover) and (pointer: fine) {
  body:not(.store) .product:has(.product-mockup):hover .product-sleeve { opacity: 0; transform: scale(.96); }
  body:not(.store) .product:has(.product-mockup):hover .product-disc { opacity: 0; }
  body:not(.store) .product:hover .product-mockup { opacity: 1; transform: scale(1); visibility: visible; transition-delay: 0s; filter: drop-shadow(0 20px 34px rgba(0,0,0,.45)); }
}
.product.is-mock .product-sleeve { opacity: 0; transform: scale(.96); }
.product.is-mock .product-disc { opacity: 0; }
.product-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.product.is-mock .product-visual { cursor: zoom-in; }
.product-mockup { border-radius: 8px; }
.product-thumb {
  width: 2.8rem; height: 2.8rem; padding: 0; border-radius: 6px; cursor: pointer;
  background: rgba(11,42,69,.35) center / cover no-repeat; border: 1px solid var(--line); opacity: .7;
  transition: opacity .2s ease, border-color .2s ease;
}
.product-thumb:hover { opacity: 1; }
.product-thumb.is-active { opacity: 1; border-color: var(--blanc); }
.product-thumb:focus-visible { outline: 2px solid var(--blanc); outline-offset: 2px; }
.product-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.product-info { margin: 0 0 .2rem; }
.product-meta { margin: .2rem 0 1rem; color: var(--blanc-2); }
.product-meta strong { color: var(--blanc); }
.product .btn { align-self: flex-start; margin-top: auto; }
.section-head .btn { min-height: 2.5rem; padding: .4rem 1.3rem; align-self: center; }   /* bouton à droite du titre (Boutique) */

/* ---------------- Vidéos ---------------- */
.video { aspect-ratio: 16 / 9; background: rgba(11,42,69,.35); border-radius: 12px; overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-empty { display: grid; place-items: center; height: 100%; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; }
.video-empty span {
  background: var(--blanc); color: var(--nuit); padding: .8rem 1.5rem; border-radius: 999px; text-shadow: none;
  font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
}

/* ---------------- Contact ---------------- */
.contacts { margin: 0 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 2rem; }
.contacts div { padding-top: 0; }
.contacts dt { font-family: var(--display); font-size: 1.3rem; }
.contacts dd { margin: .2rem 0 0; color: var(--blanc-2); overflow-wrap: anywhere; }
.reveal-mail { font: inherit; color: var(--blanc); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.reveal-mail:hover { color: var(--blanc-2); }
.contacts dd a { color: var(--blanc); }

.newsletter { max-width: 36rem; padding-top: .5rem; }
.newsletter-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 4.2vw, 2.7rem); line-height: 1.1; }
.newsletter-intro { margin: .2rem 0 1rem; color: var(--blanc-2); }
.newsletter-row { display: flex; gap: .6rem; }
.newsletter input {
  flex: 1; min-width: 0; min-height: 2.75rem; padding: .5rem 1.2rem;
  font: 300 1rem var(--text); color: var(--blanc);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.6); border-radius: 999px;
}
.newsletter input::placeholder { color: rgba(255,255,255,.65); }
.newsletter input:focus-visible { outline: 2px solid var(--blanc); outline-offset: 2px; }
.newsletter .btn:disabled { opacity: .6; cursor: wait; }
.newsletter-msg { min-height: 1.6em; margin: .6rem 0 0; font-size: 1rem; color: var(--blanc-2); }
.newsletter-msg.is-ok { color: var(--blanc); }
.newsletter-msg.is-error { color: #ffb3cb; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Pied de page ---------------- */
.footer {
  width: min(var(--maxw), 100% - 2 * var(--gutter)); margin: 0 auto;
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  border-top: 1px solid var(--line); font-size: .95rem; text-align: center;
}
.footer p { margin: 0; color: var(--blanc-2); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; transition: background .2s; }
.socials a:hover { background: rgba(255,255,255,.14); }
.socials img { width: 1.6rem; height: 1.6rem; object-fit: contain; }

/* Ordinateur : le pied de page se range à gauche, sous le texte, pour ne pas passer sur le trio */
@media (min-width: 761px) {
  body:not(.store) .footer { border-top: 0; align-items: flex-start; text-align: left; padding-top: 0; margin-top: 0; }
  body:not(.store) .footer::before { content: ""; align-self: flex-start; width: min(38rem, 55%); border-top: 1px solid var(--line); margin-bottom: .75rem; }
  body:not(.store) .footer > * { max-width: min(38rem, 55%); }
  body:not(.store) .socials, body:not(.store) .footer-links { justify-content: flex-start; }
}

/* ---------------- Mobile ---------------- */
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block; background: none; color: inherit;
    border: 1px solid currentColor; padding: .45rem 1rem; border-radius: 999px;
  }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem;
    background: var(--nuit);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav a { font-size: 2.2rem; }
  .nav.is-open { opacity: 1; visibility: visible; }

  .gig { grid-template-columns: 4.5rem 1fr; gap: .4rem 1rem; }
  .gig .btn { grid-column: 2; justify-self: start; min-height: 2.4rem; }
  .gig-day { font-size: 2rem; }
  /* Concerts passés : ville à gauche, date à droite sur la même ligne, salle en petit dessous */
  .past-gig {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "city date" "venue venue";
    gap: .1rem .8rem; align-items: baseline;
  }
  .past-gig time, .past-gig .past-when { grid-area: date; font-size: .85rem; white-space: nowrap; }
  .past-gig .past-city { grid-area: city; }
  .past-gig .past-venue { grid-area: venue; font-size: .9rem; }
  .past-gig .past-group-list { grid-area: auto; }
  .music { grid-template-columns: 1fr; }
  .music-player iframe { height: 352px; }
  .shop { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; max-width: 22rem; margin-inline: auto; }
  .product-visual { --r: 1.5; --s: .6; }
  /* Sur mobile la pochette rétrécit (60 % au lieu de 72 %) mais le vinyle
     gardait sa taille d'ordinateur : il dépassait la pochette. On le
     réduit dans la même proportion, pour un rendu réaliste. */
  .product-disc.is-vinyl { --d: 56%; left: 36%; }
  .product-disc.is-cd { --d: 48%; left: 32%; }
  .newsletter-row { flex-direction: column; }
  .newsletter .btn { align-self: flex-start; }
  .intro-next { display: none; }   /* abandonné sur mobile */
}
@media (min-width: 761px) and (max-width: 1199px) {
  .shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 4 produits : 2 × 2 */
}
@media (min-width: 1200px) {
  .shop { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2vw, 2rem); }
  .shop .product-title { font-size: clamp(1.15rem, 1.75vw, 1.4rem); }   /* « T-shirt Listen to the whale » sur une seule ligne */   /* 4 produits : une seule ligne */
}

/* ---------------- Mouvement réduit : cadrage changé sans glissement ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pan, .veil, .veil-post { transition: none; }
  .product-disc, .product-sleeve, .product-mockup { transition: none; }
  .product-disc.is-spinning { animation: none; }
  .intro-next { transition: none; }
}


/* =========================================================
   BOUTIQUE : panier, bandeau de consentement, liens du pied de page
   ========================================================= */
.shop-note { margin: 1.75rem 0 0; color: var(--blanc-2); font-size: .98rem; max-width: 46rem; }

/* Bouton « Panier » de la barre du haut */
.cart-toggle {
  font-family: var(--text); font-weight: 500; letter-spacing: .1em; font-size: .8rem; text-transform: uppercase;
  color: inherit; background: none; border: 1px solid currentColor; border-radius: 999px;
  padding: .35rem .85rem; cursor: pointer; line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5rem;
}
.cart-toggle[hidden] { display: none; }
.cart-toggle:hover { background: rgba(255,255,255,.15); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem;
  border-radius: 999px; background: var(--framboise); color: var(--blanc); font-size: .72rem; letter-spacing: 0;
}

/* Panneau du panier */
body.cart-open { overflow: hidden; }
.cart-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(5,18,32,.55); }
.cart-backdrop[hidden], .cart[hidden] { display: none; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(26rem, 100%); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) 1.5rem calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
  background: var(--nuit); border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px -20px rgba(0,0,0,.6);
  text-shadow: none; font-size: 1rem;
}
.cart-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cart-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.cart-close { font: 300 2rem/1 var(--text); color: inherit; background: none; border: 0; cursor: pointer; width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.cart-close:hover { background: rgba(255,255,255,.14); }
.cart-empty { color: var(--blanc-2); margin: 1.5rem 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 4rem 1fr auto; gap: .9rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line-pic { width: 4rem; aspect-ratio: 1; background: #3c9ecf center / cover no-repeat; }
.cart-line-title { margin: 0; font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.cart-line-format { margin: .1rem 0 .5rem; color: var(--blanc-2); font-size: .92rem; }
.cart-line-price { margin: 0; font-weight: 500; white-space: nowrap; }
.cart-qty { display: flex; align-items: center; gap: .4rem; }
.cart-qty > span { min-width: 1.5rem; text-align: center; }
.cart-qty button {
  font: 400 1.1rem/1 var(--text); color: inherit; background: none; cursor: pointer;
  width: 2.1rem; height: 2.1rem; border: 1px solid var(--line); border-radius: 50%;
}
.cart-qty button:hover { background: rgba(255,255,255,.14); }
.cart-qty .cart-remove {
  width: auto; height: auto; border: 0; border-radius: 0; margin-left: .6rem; padding: .3rem 0;
  font-size: .85rem; color: var(--blanc-2); text-decoration: underline; text-underline-offset: .2em;
}
.cart-qty .cart-remove:hover { background: none; color: var(--blanc); }
.cart-foot { padding-top: 1.1rem; }
.cart-foot[hidden] { display: none; }
.cart-country { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; color: var(--blanc-2); font-size: .92rem; }
.cart-country select {
  font: 400 1rem var(--text); color: var(--blanc); min-height: 2.75rem; padding: .5rem 1rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
}
.cart-country select option { color: #000; }
.cart-perso { margin: 0 0 1.1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.cart-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; line-height: 1.45; cursor: pointer; }
.cart-check input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--framboise); }
.cart-perso-note { margin: .6rem 0 0; color: var(--blanc-2); font-size: .85rem; line-height: 1.5; }
.cart-totals { margin: 0; }
.cart-totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.cart-totals dt { color: var(--blanc-2); }
.cart-totals dd { margin: 0; white-space: nowrap; }
.cart-totals .is-total { margin-top: .4rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: 1.2rem; }
.cart-totals .is-total dt { color: var(--blanc); }
.cart-totals .is-total dd { font-weight: 500; }
.cart-vat { margin: .1rem 0 1rem; color: var(--blanc-2); font-size: .88rem; text-align: right; min-height: 1.3em; }
.cart-cgv { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1rem; font-size: .95rem; line-height: 1.45; }
.cart-cgv input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--framboise); }
.cart-foot .btn { width: 100%; }
.cart-foot .btn:disabled { opacity: .55; cursor: not-allowed; }
.cart-msg { min-height: 1.5em; margin: .7rem 0 0; color: var(--blanc-2); font-size: .95rem; }
.cart-msg.is-error { color: #ffb3cb; }
.cart-note { margin: .5rem 0 0; color: var(--blanc-2); font-size: .85rem; line-height: 1.5; }

/* Pied de page : liens légaux */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-size: .9rem; }
.footer-links a, .footer-links button { color: var(--blanc-2); text-underline-offset: .25em; }
.footer-links a:hover, .footer-links button:hover { color: var(--blanc); }
.footer-links button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.footer-links button[hidden] { display: none; }

/* Bandeau de consentement : discret, sans bloquer la page ; « Refuser » = « Accepter » */
.consent {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  max-width: 30rem; padding: 1.1rem 1.25rem 1.2rem;
  background: var(--nuit); color: var(--blanc); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,.65); text-shadow: none; font-size: .95rem; line-height: 1.5;
}
.consent p { margin: 0 0 .6rem; }
.consent-title { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.consent-body { color: var(--blanc-2); }
.consent-actions { display: flex; gap: .6rem; margin-top: .9rem; }
.consent-actions .btn { flex: 1; min-height: 2.6rem; padding-inline: 1rem; }
@media (min-width: 761px) { .consent { right: auto; left: 1.5rem; bottom: 1.5rem; } }
@media (max-width: 760px) {
  .cart-toggle { padding: .45rem .9rem; }
  body.has-cart.topbar-hidden .topbar { transform: none; }   /* panier non vide : la barre ne se range plus */
}
@media (prefers-reduced-motion: reduce) { .cart-backdrop, .cart { transition: none; } }

/* =========================================================
   Fiches produit : « En savoir plus »
   ========================================================= */
/* Ordinateur / tablette : les cartes partagent les mêmes lignes (visuel, vignettes, titre, prix, bouton, « En savoir plus »),
   donc les boutons « Ajouter » sont alignés, et déplier une fiche n'étire que la dernière ligne. */
@media (min-width: 761px) {
  .shop { align-items: stretch; row-gap: 0; }
  .product { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 2.5rem; }
}
.product-more { margin: 0 0 1rem; }
.product-more summary {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none;
  color: var(--blanc-2); text-decoration: underline; text-underline-offset: .25em;
  font-size: .98rem; padding: .35rem 0; min-height: 2.75rem;
}
.product-more summary::-webkit-details-marker { display: none; }
.product-more summary::after {
  content: ""; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s ease;
}
.product-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.product-more summary:hover { color: var(--blanc); }
.product-more-body {
  margin: .4rem 0 0; padding: 1rem 1.1rem; font-size: 1rem; line-height: 1.6; color: var(--blanc-2);
  background: rgba(11,42,69,.55); border: 1px solid var(--line); border-radius: 12px; text-shadow: none;
  animation: more-in .3s ease;
}
@keyframes more-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .product-more-body { animation: none; } .product-more summary::after { transition: none; } }

/* =========================================================
   Page /boutique (boutique.html) : arrivée depuis les publicités
   ========================================================= */
.store-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + .8rem) var(--gutter) .8rem;
  background: linear-gradient(180deg, rgba(11,42,69,.92), rgba(11,42,69,.7));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.store-head .wordmark img { opacity: 1; height: 2.2rem; }
.store-head-actions { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.store-head .quiet-link { font-size: .95rem; }
.store-section { padding-top: clamp(2rem, 6vh, 4rem); }
.section h1 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05;
}
.store-intro { margin: 0 0 2rem; font-size: 1.25rem; color: var(--blanc); max-width: 40rem; }
.store-perks {
  list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 2rem 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
}
.store-perks h2 { margin: 0 0 .3rem; font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
.store-perks p { margin: 0; color: var(--blanc-2); font-size: .98rem; line-height: 1.55; }
body.store .footer { margin-top: 3rem; }
@media (max-width: 760px) {
  .store-perks { grid-template-columns: 1fr; }
  .store-head .quiet-link { display: none; }   /* le logo ramène déjà à l'accueil */
}

/* ---------------- Lecteurs : clic pour charger ---------------- */
.embed-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center;
  min-height: 12rem; height: 100%; padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(11,42,69,.35); }
.embed-gate p { margin: 0; max-width: 26rem; font-size: .85rem; opacity: .85; }
.embed-gate a { color: inherit; }
.music-player .embed-gate { min-height: 380px; }
@media (max-width: 760px) { .music-player .embed-gate { min-height: 14rem; } }

/* Photo agrandie */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(5,20,34,.88); cursor: zoom-out; }
.lightbox img { max-width: min(96vw, 1100px); max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: .8rem; right: 1rem; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* ---- T-shirt : choix de la taille ---- */
.product-visual.is-apparel { --s: .72; }
.product-visual.is-apparel .product-sleeve { left: calc((1 - var(--s)) * 50%); }
.product-sleeve.is-empty { text-align: center; line-height: 1.1; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.product-size { display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.product-actions .btn { margin-top: 0; padding-inline: 1.1rem; letter-spacing: .1em; }
.product-size-label { color: var(--blanc-2); }
.product-size-select {
  font: inherit; color: var(--blanc); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .4rem .55rem; min-height: 2.5rem; cursor: pointer; width: auto;
}
.product-size-select option, .product-size-select optgroup { color: #000; }
.product-size-select.is-missing { border-color: var(--framboise); box-shadow: 0 0 0 2px var(--framboise); }
.product .btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.product-visual.is-apparel .product-sleeve { background-color: transparent; box-shadow: none; background-size: contain; }

/* ---------------- Fiche produit (/produit/xxx) ---------------- */
.pd-crumbs { margin: 0 0 1.5rem; font-size: .95rem; color: var(--blanc-2); }
.pd-crumbs a { color: var(--blanc); }
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.pd-media { min-width: 0; }
.pd-stage {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; cursor: zoom-in;
  background: rgba(11,42,69,.28); border: 0; border-radius: 12px; overflow: hidden;
}
.pd-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-stage.is-apparel { background: transparent; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.pd-thumb {
  width: 4.6rem; height: 4.6rem; padding: 0; border-radius: 8px; cursor: pointer;
  background: rgba(11,42,69,.35) center / cover no-repeat; border: 1px solid var(--line); opacity: .7;
  transition: opacity .2s ease, border-color .2s ease;
}
.pd-thumb:hover, .pd-thumb.is-active { opacity: 1; }
.pd-thumb.is-active { border-color: var(--blanc); }
.pd-thumb:focus-visible, .pd-stage:focus-visible { outline: 2px solid var(--blanc); outline-offset: 2px; }
.pd-info { min-width: 0; }
.pd-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.1; }
.pd-format { margin: .5rem 0 0; color: var(--blanc-2); font-size: 1.15rem; }
.pd-price { margin: .6rem 0 1.4rem; font-size: 1.9rem; }
.pd-actions { margin: 0 0 1.8rem; }
.pd-desc { margin: 0 0 1.4rem; font-size: 1.08rem; line-height: 1.65; max-width: 38rem; }
.pd-notes { margin: 0; padding: 1.2rem 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--blanc-2); font-size: .98rem; line-height: 1.55; max-width: 38rem; }
.pd-notes li + li { margin-top: .4rem; }
.section .pd-related-title { margin: clamp(4.5rem, 10vw, 7rem) 0 1.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 1.7rem); line-height: 1.2; }
.pd-related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 11.5rem)); gap: clamp(1.2rem, 3vw, 2rem); }
.pd-card a { display: block; text-decoration: none; color: inherit; }
.pd-card-pic { display: block; aspect-ratio: 1; background: rgba(11,42,69,.28) center / cover no-repeat; border-radius: 10px; transition: transform .35s cubic-bezier(.22,.7,.2,1); }
.pd-card-pic.is-apparel { background-color: transparent; background-size: contain; }
.pd-card a:hover .pd-card-pic { transform: translateY(-4px); }
.pd-card-title { display: block; margin-top: .6rem; font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.pd-card-meta { display: block; margin-top: .15rem; color: var(--blanc-2); font-size: .92rem; }
.pd-card-meta strong { color: var(--blanc); }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) {
  .pd { grid-template-columns: 1fr; }
  .pd-thumb { width: 3.8rem; height: 3.8rem; }
  .pd-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section .pd-related-title { margin-top: 3.5rem; }
}

/* ---------------- Ordinateur (souris) : tailles par aspect-ratio ----------------
   Firefox ordinateur ne compte pas le padding en % dans la hauteur des lignes de la grille
   (subgrid) : les cartes se chevauchaient. Sur les écrans avec souris on garde donc la méthode
   aspect-ratio (sans problème là-bas). Le correctif « padding en % » reste pour les écrans
   tactiles (iPhone, iPad), où le défaut des pochettes qui grandissent a été constaté. */
@media (min-width: 761px) and (hover: hover) {
  .product-visual { height: auto; padding-bottom: 0; aspect-ratio: var(--r); display: flex; align-items: center; }
  .product-sleeve { position: relative; left: auto; top: auto; translate: none; height: auto; padding-bottom: 0; aspect-ratio: 1; display: grid; place-items: center; }
  .product-disc { height: auto; padding-bottom: 0; aspect-ratio: 1; }
  .product-visual.is-apparel .product-sleeve { left: auto; margin-inline: auto; }
}

/* ---------------- Firefox ordinateur : grille sans subgrid ----------------
   Firefox calcule mal la hauteur des lignes partagées (subgrid) de la boutique : les boutons
   et « En savoir plus » débordaient sur le texte qui suit. Sur Firefox seulement, chaque carte
   redevient une simple colonne (cartes de même hauteur) : les boutons restent alignés et la
   page reprend la hauteur réelle des cartes. Chrome et Safari gardent le subgrid. */
@supports (-moz-appearance: none) {
  @media (min-width: 761px) {
    .shop { align-items: stretch; }
    .product { display: flex; flex-direction: column; grid-row: auto; grid-template-rows: none; padding-bottom: 2.5rem; }
  }
}
