/* Pages œuvres et à propos — même mur blanc, mêmes touches de bleu que le mur */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/instrument-sans.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); }

/* Transitions entre pages (navigateurs qui savent le faire ; les autres changent de page normalement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .3s ease both page-sort; }
::view-transition-new(root) { animation: .45s ease .1s both page-entre; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.25,.8,.25,1); }
::view-transition-image-pair(*) { isolation: auto; }
@keyframes page-sort { to { opacity: 0; } }
@keyframes page-entre { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

:root {
  --bleu: #072AC8;
  --gris: #5f666d;
  --encre: #1d1d1f;
  --mur: #ffffff;
  --police: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mx: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left));
  --my: clamp(20px, 4vh, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--mur); }
/* même largeur utile partout, barre de défilement ou non : sinon Chrome annule la transition entre pages */
html { scrollbar-gutter: stable; }
/* Curseur : flèche bleue partout, main sur les liens */
html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 26 26'%3E%3Cpath d='M5 3l14.5 10.2-6.6 1.3-3.7 6.2z' fill='%23072AC8'/%3E%3C/svg%3E") 9 6, auto; }
a, button, label, summary { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
body {
  background: var(--mur);
  color: var(--encre);
  font: 400 16px/1.65 var(--police);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--bleu); color: #fff; }
a { color: inherit; }

/* En-tête */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: max(var(--my), env(safe-area-inset-top)) max(var(--mx), env(safe-area-inset-right)) 0 var(--mx);
}
header .logo { line-height: 0; }
header .logo a { display: inline-block; view-transition-name: logo; }
header .liens { view-transition-name: liens; }
header .logo img { display: block; height: clamp(26px, 3.2vw, 38px); width: auto; }
/* En-tête : pastilles accueil, à propos, FR/EN, contact */
.liens { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(29, 29, 31, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #1d1d1f;
  font: 500 12px/1 var(--police);
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .25s ease, color .25s ease, background .25s ease, transform .25s ease;
}
a.pastille:hover, a.pastille:focus-visible { border-color: var(--bleu); color: var(--bleu); outline: none; }
a.pastille:active { transform: scale(.96); }
a.pastille[aria-current] { border-color: var(--bleu); color: var(--bleu); }
.maison { width: 36px; padding: 0; }
.maison svg { width: 17px; height: 17px; }
.lettre-lien svg { display: none; flex: none; width: 17px; height: 17px; }
@media (max-width: 560px) {   /* sur mobile : l'enveloppe seule, pour garder les pastilles sur une ligne */
  .lettre-lien { width: 32px; padding: 0; }
  .lettre-lien svg { display: block; }
  .lettre-lien span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.langues { gap: 0; padding: 0 6px; }
.langues > * { padding: 0 6px; line-height: 34px; color: #5f666d; text-decoration: none; transition: color .25s ease; }
.langues a:hover, .langues a:focus-visible { color: var(--bleu); outline: none; }
.langues [aria-current] { color: var(--bleu); font-weight: 600; }
.langues .barre { padding: 0; color: rgba(29, 29, 31, .25); }
@media (max-width: 560px) {
  header { flex-direction: column; justify-content: center; gap: 22px; }   /* mobile : logo et pastilles centrés */
  .liens { gap: 6px; justify-content: center; }
  .pastille { height: 32px; padding: 0 12px; font-size: 11px; letter-spacing: 0; }
  .maison { width: 32px; padding: 0; }
  .langues { padding: 0 4px; }
  .langues > * { padding: 0 5px; line-height: 30px; }
  .langues .barre { padding: 0; }
}

/* Page œuvre : le tableau à gauche, son histoire à droite */
.fiche {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 120px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--mx) clamp(48px, 8vh, 96px);
}
.fiche-img { display: flex; justify-content: center; position: sticky; top: clamp(24px, 5vh, 48px); }
.zoom {
  display: block;
  width: min(100%, calc((100vh - 200px) * var(--r)));
  aspect-ratio: var(--r);
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.zoom img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.16)) drop-shadow(0 2px 3px rgba(0,0,0,.12));
}
.zoom:focus-visible { outline: 1px solid var(--bleu); outline-offset: 14px; }

.fiche-txt { max-width: 34rem; }
.sur {
  color: var(--bleu);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h1 {
  font: 400 clamp(42px, 4.8vw, 72px)/1 var(--serif);
  letter-spacing: -.012em;
  text-wrap: balance;
}
.fiche h1 em, .apropos h1 em { font-style: italic; }
.par { color: var(--gris); font-size: 14px; margin: 8px 0 26px; }
.par a { text-decoration: none; border-bottom: 1px solid currentColor; }
.par a:hover { color: var(--bleu); }
.fiche-txt > p:not([class]) { margin-bottom: 14px; text-wrap: pretty; }

/* Caractéristiques */
.carac { margin: 40px 0 0; border-top: 1px solid #e6e6e6; }
.carac div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 4px 20px;
  padding: 11px 0;
  border-bottom: 1px solid #e6e6e6;
  font-size: 14px;
  line-height: 1.5;
}
.carac dt { color: var(--gris); }
.carac a { color: var(--bleu); text-decoration: none; }
.carac a:hover { text-decoration: underline; }

.prix { margin: 30px 0 18px; font: 400 34px/1 var(--serif); letter-spacing: 0; }
.prix span {
  display: block;
  color: var(--gris);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.acheter {
  display: inline-block;
  padding: 15px 32px;
  border: 1px solid var(--bleu);
  border-radius: 999px;
  background: var(--bleu);
  color: #fff;
  font: 500 13px/1 var(--police);
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.acheter:hover, .acheter:focus-visible { background: #fff; color: var(--bleu); outline: none; }
.note { color: var(--gris); font-size: 13px; line-height: 1.55; margin-top: 16px; text-wrap: pretty; }
.info-achat { margin-top: 6px; }   /* suit la note de paiement : un seul bloc, même interligne */

/* Précédent · tous · suivant */
.suite {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px var(--mx);
  border-top: 1px solid #e6e6e6;
  font-size: 14px;
}
.suite a { color: var(--gris); text-decoration: none; transition: color .25s ease; }
.suite a:hover, .suite a:focus-visible { color: var(--bleu); outline: none; }
.suite a[rel="next"] { text-align: right; }
.suite .tous { color: var(--bleu); letter-spacing: 0; text-transform: uppercase; font-size: 12px; }

/* Pied : Instagram + adresse */
.pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--mx) max(32px, env(safe-area-inset-bottom));
}
.pied a { color: var(--gris); font-size: 13px; letter-spacing: 0; text-decoration: none; }
.pied a:hover { color: var(--bleu); }
.pied-droite { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.insta { display: block; margin: -11px; padding: 11px; line-height: 0; color: var(--bleu) !important; }
.insta svg { width: 24px; height: auto; }
.insta:hover { opacity: .6; }

/* Vue agrandie */
.vue {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(clamp(16px, 5vh, 56px), env(safe-area-inset-top)) 16px max(clamp(16px, 5vh, 56px), env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s .35s;
  z-index: 3;
  cursor: zoom-out;
}
.vue.ouverte { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.vue img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); }
.vue .fermer {
  position: absolute;
  top: max(clamp(10px, 3vh, 28px), env(safe-area-inset-top));
  right: max(clamp(8px, 3vw, 40px), env(safe-area-inset-right));
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
}
.vue .fermer::before, .vue .fermer::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 26px; height: 2px; background: var(--bleu);
}
.vue .fermer::before { transform: translate(-50%,-50%) rotate(45deg); }
.vue .fermer::after  { transform: translate(-50%,-50%) rotate(-45deg); }
.vue .fermer:focus-visible { outline: 1px solid var(--bleu); }

/* À propos */
.apropos { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--mx) 40px; }
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { display: block; width: 100%; height: auto; position: sticky; top: 32px; }
.bio-txt { max-width: 38rem; }
.bio-txt h1 { margin-bottom: 22px; }
.chapo { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45; margin-bottom: 20px; color: var(--encre); }
.bio-txt p { margin-bottom: 14px; text-wrap: pretty; }
.bio-txt a { color: var(--bleu); text-decoration: none; }
.bio-txt a:hover { text-decoration: underline; }
.apropos h2 {
  margin: 36px 0 12px;
  color: var(--bleu);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
.bref { max-width: 52rem; margin-top: clamp(48px, 8vh, 88px); }
.bref .carac { margin-top: 0; }
.vignettes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 42vw), 1fr));
  gap: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 40px);
  align-items: end;
  margin-top: 8px;
}
.vignettes a { display: block; text-decoration: none; color: var(--gris); font-size: 13px; }
.vignettes img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.14)) drop-shadow(0 1px 2px rgba(0,0,0,.1));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.vignettes a:hover { color: var(--bleu); }
@media (hover: hover) { .vignettes a:hover img { transform: translateY(-4px); } }

/* Téléphones et tablettes en portrait */
@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  :root { --mx: 20px; }
  header { padding-top: max(28px, env(safe-area-inset-top)); }
  header .logo img { height: 30px; }
  .fiche { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; }
  .fiche-img { position: static; }
  .zoom { width: min(84vw, 520px, calc(62vh * var(--r))); }
  .fiche-txt { margin: 0 auto; }
  .carac div { grid-template-columns: 1fr; gap: 0; }
  .suite { grid-template-columns: 1fr 1fr; }
  .suite .tous { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .bio { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Stock, à côté du prix */
.prix .stock {
  display: inline-block;
  margin-left: 12px;
  color: var(--bleu);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  vertical-align: middle;
}
.prix .stock::before { content: "●"; margin-right: 6px; font-size: 9px; vertical-align: 2px; }
.prix .epuise { color: var(--gris); }

/* Livraison & retours */
.infos-page { max-width: 52rem; margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--mx) 40px; }
.infos-page h1 { margin-bottom: 22px; }
.infos-page .chapo { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; margin-bottom: 36px; text-wrap: pretty; }
.infos-page .carac { margin: 0 0 36px; }
.infos-page .carac div { font-size: 15px; }
.infos-page dd { text-wrap: pretty; }
.pied a[aria-current] { color: var(--bleu); }

/* ── Le tableau en 3D (js/vue3d.js) ──────────────────────────
   L'image reste dessous : elle s'affiche tant que la 3D charge,
   et pour toujours si le navigateur ne sait pas faire de WebGL. */
.fiche-img { width: 100%; }
body.page { overflow-x: clip; }   /* les étiquettes 3D ne doivent jamais élargir la page */
.scene3d {
  position: relative;
  width: 100%;
  height: clamp(440px, calc(100vh - 150px), 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.scene3d .zoom { width: min(100%, calc((100vh - 260px) * var(--r))); max-height: calc(100% - 96px); transition: opacity .6s ease; }
.toile {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  transition: opacity .8s ease;
  outline: none;
}
.toile canvas { display: block; width: 100%; height: 100%; }
.toile:active { cursor: grabbing; }
.toile:focus-visible { box-shadow: inset 0 0 0 1px var(--bleu); }
.scene3d.pret .toile { opacity: 1; }
.scene3d.pret .zoom { opacity: 0; pointer-events: none; transition-duration: .2s; transition-delay: .8s; }   /* l'affiche ne s'efface qu'une fois la 3D entièrement apparue par-dessus : pas de fondu délavé */

/* étiquettes posées sur la 3D */
.etiquettes { position: absolute; inset: 0; pointer-events: none; }
.etiquettes span { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; will-change: transform, opacity; }
.cote {
  margin: -9px 0 0 0;
  color: var(--bleu);
  font: 500 11px/18px var(--police);
  letter-spacing: 0;
  translate: -50% 0;
  padding: 0 6px;
  background: rgba(255,255,255,.88);
  border-radius: 9px;
}
.cote.fine { font-weight: 400; }
.couche {
  display: grid;
  translate: 0 calc(-100% - var(--h, 26px));
  padding-left: 9px;
  border-left: 1px solid var(--bleu);
  color: var(--gris);
  font: 400 11px/1.35 var(--police);
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,0));
}
.couche::before {
  content: "";
  position: absolute;
  left: -1px; top: 100%;
  width: 1px; height: var(--h, 26px);
  background: var(--bleu);
  opacity: .45;
}
.couche::after {
  content: "";
  position: absolute;
  left: -3px; top: calc(100% + var(--h, 26px) - 2px);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bleu);
}
.couche.bas { translate: 0 var(--h, 26px); }
.couche.bas::before { top: auto; bottom: 100%; }
.couche.bas::after { top: auto; bottom: calc(100% + var(--h, 26px) - 2px); }
.couche b { color: var(--bleu); font-weight: 500; font-size: 11px; letter-spacing: 0; text-transform: uppercase; }

/* commandes */
.commandes {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  opacity: 0;
  translate: 0 8px;
  transition: opacity .6s ease .3s, translate .6s ease .3s;
  pointer-events: none;
}
.scene3d.pret .commandes { opacity: 1; translate: 0 0; pointer-events: auto; }
.commandes button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--gris);
  font: 500 11px/1 var(--police);
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 0;
  position: relative;
  transition: color .25s ease;
}
.commandes button:hover, .commandes button:focus-visible { color: var(--bleu); outline: none; }
.commandes button[aria-pressed="true"] { color: var(--bleu); }
.vues { display: flex; gap: 22px; }
.vues button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--bleu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.vues button[aria-pressed="true"]::after { transform: scaleX(1); }
.outils { display: flex; align-items: center; gap: 14px; }
.outils [data-cotes]::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: 0;
  transition: background .25s ease;
}
.outils [data-cotes][aria-pressed="true"]::before { background: var(--bleu); }
.commandes .ico { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 1px solid #e3e3e3; border-radius: 50%; }
.commandes .ico:hover, .commandes .ico:focus-visible { border-color: var(--bleu); }
.commandes .ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.astuce {
  position: absolute;
  top: 0; left: 50%;
  translate: -50% 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--gris);
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.astuce svg { width: 22px; height: 11px; fill: none; stroke: var(--bleu); stroke-width: 1.3; animation: va-vient 2.4s ease-in-out infinite; }
@keyframes va-vient { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.scene3d.pret:not(.touche) .astuce { opacity: 1; transition-delay: 1.2s; }
.scene3d.pret.cotes .astuce, .scene3d.pret[data-vue="eclate"] .astuce { opacity: 0; transition-delay: 0s; }

/* plein écran : la figure collante (sticky) forme son propre empilement, on la passe devant tout */
html.plein-ecran .fiche-img { z-index: 50; }
.scene3d.plein {
  position: fixed;
  inset: 0;
  z-index: 50;
  height: auto;
  background: var(--mur);
  padding: max(16px, env(safe-area-inset-top)) var(--mx) max(16px, env(safe-area-inset-bottom));
}
.scene3d.plein .commandes { left: var(--mx); right: var(--mx); bottom: max(16px, env(safe-area-inset-bottom)); }
.scene3d.plein .toile { inset: 0 0 64px; }
.scene3d.plein .astuce { top: max(20px, env(safe-area-inset-top)); }

@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  .scene3d { height: min(78vh, 640px); min-height: 400px; }
  .scene3d .zoom { width: min(84vw, 520px, calc(56vh * var(--r))); }
  .commandes { justify-content: center; }
  .vues { gap: 18px; }
}
@media (hover: none) { .commandes [data-zoom] { display: none; } }

/* ── Refonte : entrée des textes, poster partagé avec le mur ── */
.prix span, .prix .stock { font-family: var(--police); }
.fiche-txt > * { animation: monte .9s cubic-bezier(.2,.7,.2,1) both; }
.fiche-txt > :nth-child(2) { animation-delay: .06s; }
.fiche-txt > :nth-child(3) { animation-delay: .12s; }
.fiche-txt > :nth-child(4) { animation-delay: .18s; }
.fiche-txt > :nth-child(5) { animation-delay: .24s; }
.fiche-txt > :nth-child(n+6) { animation-delay: .3s; }
.apropos .bio-txt > *, .infos-page > * { animation: monte .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes monte { from { opacity: 0; transform: translateY(16px); } }
.scene3d:not(.pret) .zoom img { view-transition-name: var(--vt); }
.sur { font-size: 11px; }
.carac dt { font-size: 12px; letter-spacing: 0; text-transform: uppercase; padding-top: 1px; }
.suite a:not(.tous) { font: italic 400 19px/1.2 var(--serif); }
.chapo { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px) !important; line-height: 1.2 !important; }
/* À propos : les intertitres (« Des pièces pensées pour durer », « Parcours », « En bref », « Les tableaux ») dans le style de la phrase d'ouverture */
.apropos .bio-txt h2, .apropos #bref, .apropos #oeuvres { margin: 44px 0 14px; font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--serif); color: var(--encre); text-transform: none; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) { .fiche-txt > *, .apropos .bio-txt > *, .infos-page > * { animation: none; } }

/* Vignettes « À propos » en 3D (js/vignettes3d.js) */
.vignettes { position: relative; }
.vignettes3d { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; }
.vignettes.pret3d img { opacity: 0; transition: opacity .4s ease; }
/* la 3D n'apparaît qu'une fois toutes les illustrations chargées (sinon : tirages noirs) */
.vignettes:not(.pret3d) .vignettes3d { opacity: 0; }
.vignettes .vignettes3d { transition: opacity .4s ease; }

/* Lien d'évitement : invisible tant qu'on n'y arrive pas au clavier */
.evitement { position: absolute; left: var(--mx); top: -100px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--bleu); color: #fff; font: 500 13px/1 var(--police); text-decoration: none; }
.evitement:focus { top: 12px; outline: 2px solid var(--bleu); outline-offset: 2px; }

/* Information avant achat, sous le bouton */
.info-achat a { color: var(--bleu); white-space: nowrap; }

/* Pages légales */
.legal section { margin: 0 0 34px; }
.legal h2 { margin: 0 0 12px; color: var(--bleu); font: 500 13px/1.3 var(--police); letter-spacing: 0; text-transform: uppercase; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 2px 0; }
.legal a { color: var(--bleu); }
.legal table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; margin: 6px 0 12px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid #e6e6e6; min-width: 120px; }
.legal th { color: var(--gris); font-weight: 500; font-size: 12px; text-transform: uppercase; }
.legal code { font-size: 12.5px; background: #f3f3f1; padding: 1px 5px; border-radius: 4px; }
.a-remplir { background: #fff3a8; color: #1d1d1f; padding: 0 3px; border-radius: 3px; }
.formulaire-type { border: 1px solid #e6e6e6; border-radius: 12px; padding: 20px 22px; margin-top: 12px; }
.formulaire-type p { margin: 0 0 10px; }
.pied-droite { flex-wrap: nowrap; gap: 4px 18px; white-space: nowrap; }   /* tout sur une ligne */
@media (max-width: 1100px) { .pied { flex-direction: column; align-items: flex-start; } .pied-droite { flex-wrap: wrap; white-space: normal; justify-content: flex-start; } }

/* Titre lu par les lecteurs d'écran et les moteurs, mais pas affiché */
.masque { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Page merci */
.merci-articles { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid #e6e6e6; }
.merci-articles li { padding: 12px 0; border-bottom: 1px solid #e6e6e6; font-size: 15px; }
.merci-articles .total { font-weight: 600; }
button.acheter { cursor: pointer; }
button.acheter:disabled { opacity: .6; cursor: progress; }

/* Format : encadré ou tirage seul */
.formats { border: 0; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.formats label {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 18px;
  border: 1px solid #d9dbe0;
  border-radius: 14px;
  cursor: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.formats input { position: absolute; opacity: 0; pointer-events: none; }
.formats label:hover { border-color: var(--gris); }
.formats label:has(input:checked) { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.formats label:has(input:focus-visible) { outline: 2px solid var(--bleu); outline-offset: 3px; }
.formats b { font-weight: 500; }
.formats i { font-style: normal; color: var(--gris); margin-left: 4px; }
.formats small { display: block; margin-top: 3px; color: var(--gris); font-size: 12.5px; }
.formats em { font: 400 22px/1 var(--serif); font-style: normal; white-space: nowrap; }
.formats label:has(input:checked) em { color: var(--bleu); }
/* Zone de livraison (tarif affiché, vérifié par le paiement) */
.zone { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; font-size: 14px; }
.zone select { font: inherit; color: inherit; padding: 7px 30px 7px 12px; border: 1px solid #d9dbe0; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23072AC8' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px; appearance: none; cursor: inherit; }
.zone select:hover { border-color: var(--gris); }
.zone select:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.zone small { color: var(--gris); font-size: 12.5px; }
/* prix, stock, puis le bouton Acheter juste à côté */
.achat { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 24px; }
.achat .prix { margin: 0; }
.prix .montant { font-weight: 400; }


/* Pendant la transition depuis le mur, l'affiche reste seule : la 3D apparaît ensuite par-dessus */
html.en-transition .scene3d.pret .toile { opacity: 0; }
html.en-transition .scene3d.pret .zoom { opacity: 1; }

/* ── Newsletter : bloc sous les fiches, page /newsletter/ ── */
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lettre-bloc { max-width: 1280px; margin: 0 auto; padding: 56px var(--mx) 64px; border-top: 1px solid #e6e6e6; text-align: center; }
.lettre-bloc h2 { margin: 0 0 8px; font: 400 clamp(30px, 3vw, 40px)/1.1 var(--serif); }
.lettre-bloc > p { margin: 0 auto; max-width: 460px; color: var(--gris); text-wrap: pretty; }
.lettre-bloc .lettre { max-width: 460px; margin: 24px auto 0; }
.lettre-bloc .note { margin: 14px auto 0; max-width: 460px; }
.lettre-champ { display: flex; gap: 10px; }
.lettre-champ[hidden], .lettre[hidden] { display: none; }
.lettre-champ input {
  flex: 1; min-width: 0;
  padding: 0 20px; height: 45px;
  border: 1px solid #d5d5d8; border-radius: 999px;
  background: #fff; color: var(--encre);
  font: 400 15px/1 var(--police);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lettre-champ input::placeholder { color: #9a9ea3; }
.lettre-champ input:focus { outline: none; border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.lettre-champ .acheter { flex: none; height: 45px; padding: 0 26px; cursor: pointer; }
.lettre-champ .acheter:disabled { opacity: .6; cursor: progress; }
.lettre-msg, .lettre-etat { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--bleu); text-wrap: pretty; }
.lettre-msg[data-etat="erreur"], .lettre-msg[data-etat="adresse"], .lettre-etat[data-etat="expire"], .lettre-etat[data-etat="erreur"], .lettre-etat[data-etat="adresse"] { color: #b3261e; }
.lettre-page .lettre { max-width: 520px; margin-top: 8px; }
.lettre-page .lettre-etat { margin: 0 0 22px; font-size: 17px; }
.lettre-page .note { max-width: 520px; }
.note a { color: var(--bleu); }
@media (max-width: 480px) {
  .lettre-champ { flex-direction: column; }
  .lettre-champ input, .lettre-champ .acheter { flex: none; width: 100%; }
}

.apropos #bref { margin: 0 0 18px; }
.apropos #oeuvres { margin: 64px 0 22px; }

/* ── Avis clients : formulaire /avis/, section des fiches ── */
.avis-form { max-width: 560px; margin-top: 8px; }
.avis-form .champ { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.avis-form label, .avis-form legend { display: block; margin: 0 0 7px; padding: 0; font-size: 14px; font-weight: 500; color: var(--encre); }
.avis-form label span { font-weight: 400; color: var(--gris); }
.avis-form small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--gris); }
.avis-form input:not([type=radio]):not([type=checkbox]), .avis-form select, .avis-form textarea {
  display: block; width: 100%; padding: 12px 16px;
  border: 1px solid #d5d5d8; border-radius: 14px; background: #fff; color: var(--encre);
  font: 400 15px/1.4 var(--police); transition: border-color .2s ease, box-shadow .2s ease;
}
.avis-form select { appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235f666d' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.avis-form textarea { min-height: 150px; resize: vertical; }
.avis-form input:focus, .avis-form select:focus, .avis-form textarea:focus { outline: none; border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.avis-form ::placeholder { color: #9a9ea3; }
.avis-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.etoiles-choix { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.etoiles-choix label { margin: 0; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; }
.etoiles-choix label::before { content: "★"; font-size: 32px; line-height: 1; color: #d9dbe0; transition: color .15s ease; }
.etoiles-choix input:checked ~ label::before, .etoiles-choix label:hover::before, .etoiles-choix label:hover ~ label::before { color: var(--bleu); }
.etoiles-choix:hover input:checked ~ label:not(:hover):not(:hover ~ label)::before { color: #d9dbe0; }
.etoiles-choix input:focus-visible + label { outline: 2px solid var(--bleu); outline-offset: 1px; border-radius: 8px; }
.avis-form .accord label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.45; cursor: pointer; }
.avis-form .accord input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--bleu); }
.avis-form .accord { margin: 4px 0 24px; }
.avis-form .acheter { cursor: pointer; }
.avis-regles { margin-top: 64px; padding-top: 28px; border-top: 1px solid #e6e6e6; }
.avis-regles h2 { margin: 0 0 14px; font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--serif); }
.avis-regles ul { margin: 0; padding-left: 1.1em; color: var(--gris); font-size: 15px; line-height: 1.55; }
.avis-regles li { margin-bottom: 8px; text-wrap: pretty; }
@media (max-width: 480px) { .avis-duo { grid-template-columns: 1fr; } }

.avis-etoiles { position: relative; display: inline-block; font-size: 17px; line-height: 1; letter-spacing: 2px; vertical-align: -1px; }
.avis-etoiles::before { content: "★★★★★"; color: #d9dbe0; }
.avis-etoiles::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: calc(var(--n) / 5 * 100%); overflow: hidden; white-space: nowrap; color: var(--bleu); }
.avis-bloc { max-width: 1280px; margin: 0 auto; padding: 56px var(--mx) 48px; border-top: 1px solid #e6e6e6; }
.avis-bloc h2 { margin: 0 0 10px; font: 400 clamp(30px, 3vw, 40px)/1.1 var(--serif); }
.avis-resume { display: flex; gap: 10px; align-items: center; margin: 0 0 28px; color: var(--gris); font-size: 15px; }
.avis-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.avis-liste li { padding: 22px 24px; border: 1px solid #e6e6e6; border-radius: 14px; }
.avis-liste blockquote { margin: 12px 0 14px; }
.avis-liste blockquote p { margin: 0; font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.avis-auteur { margin: 0; font-size: 13.5px; color: var(--gris); }
.avis-bloc .note { margin-top: 22px; }

@media (max-width: 360px) {   /* très petits écrans : les 5 pastilles tiennent encore sur une ligne */
  .liens { gap: 4px; }
  .pastille { height: 30px; padding: 0 8px; font-size: 10.5px; }
  .maison, .lettre-lien { width: 30px; padding: 0; }
  .langues { padding: 0 2px; }
  .langues > * { padding: 0 4px; line-height: 28px; }
}
