/* =====================================================================================
   Accueils, section #gallery « Exposition · vente » (16/09) : une œuvre à la fois comme dans une salle,
   cadre noir fin et passe-partout blanc, mur bleu nuit, cartel à côté, frise de vignettes dessous.
   Choix du client sur le témoin fr/_temoin-galerie-oeuvres.html?g=G2&c=noir&t=T1&m=nuit.
   v2 (16/09) : « le tableau suspendu » (témoin fr/_temoin-transition-galerie.html?tr=C) : panneau bleu nuit arrondi qui flotte sur le fond clair.
   Générateur : docs/generateur/galerie_expo_accueil.py. Mobile d'abord, ordinateur ≥ 980 px.
   ===================================================================================== */

/* ---------- le mur : bleu nuit, grain léger, plinthe sombre en bas ---------- */
body.page-home #gallery.gx-expo{position:relative;background-color:#22272e!important;background-image:linear-gradient(180deg,rgba(0,0,0,0) 0,rgba(0,0,0,0) calc(100% - 70px),rgba(0,0,0,.18) calc(100% - 70px),rgba(0,0,0,.32) 100%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .24 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E")!important;background-size:auto,auto!important;background-repeat:repeat!important}
body.page-home #gallery.gx-expo::before,body.page-home #gallery.gx-expo::after{background:none!important;background-image:none!important}

/* ---------- titre : « Exposition · vente » / Œuvres originales / sous-titre ---------- */
#gallery .gx-head{text-align:center;padding-block:0 4px}
#gallery .gx-cap{display:flex;align-items:center;justify-content:center;gap:16px;margin:0;font:600 11.5px/1 Inter,system-ui,sans-serif;letter-spacing:.32em;text-transform:uppercase;color:#e0b77c!important}
#gallery .gx-cap::before,#gallery .gx-cap::after{content:"";width:28px;height:1px;background:rgba(155,107,53,.55)}
#gallery .gx-head h2{margin:10px 0 6px;font:500 clamp(40px,7vw,64px)/1 "Cormorant Garamond",Georgia,serif;letter-spacing:.01em;color:#f6efe4!important;white-space:nowrap}
#gallery .gx-sub{margin:0;font:italic 400 14.5px/1.45 Lora,"Cormorant Garamond",Georgia,serif;color:#c9bfb2!important;white-space:nowrap}
@media (min-width:641px){#gallery .gx-cap::before,#gallery .gx-cap::after{width:48px}}

/* ---------- socle : cartel, prix, vendu, boutons, flèches ---------- */
#gallery .gx{--ink:#211a15;--txt:#4a3f36;--mute:#8a7d71;--ocre:#9b6b35;--dot:#b3342b;--fs:.72;color:var(--txt)}
#gallery .gx button{-webkit-appearance:none;appearance:none;margin:0;font:inherit;color:inherit;background:none;border:0;padding:0;min-height:0;min-width:0;letter-spacing:0;text-transform:none;box-shadow:none;border-radius:0}
#gallery .gx img{max-width:none;border-radius:0;box-shadow:none;margin:0;filter:none}
#gallery .gx-cartel{font-family:Inter,system-ui,sans-serif}
#gallery .gx-dim{display:block;font-size:12.5px;line-height:1.35;letter-spacing:.01em;white-space:nowrap;color:#c9bfb2!important}
#gallery .gx-price{font-size:14.5px;font-weight:600;color:#e0b77c;white-space:nowrap;font-variant-numeric:lining-nums}
#gallery .gx-sold{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:500;white-space:nowrap;color:#c9bfb2!important}
#gallery .gx-sold i{width:9px;height:9px;border-radius:50%;background:var(--dot);box-shadow:0 0 0 2px rgba(179,52,43,.14)}
#gallery .gx-acts{display:flex;gap:8px;flex-wrap:nowrap}
#gallery .gx .gx-btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 15px;border-radius:999px;font:600 13.5px/1 Inter,system-ui,sans-serif;white-space:nowrap;text-decoration:none;transition:background .2s ease,color .2s ease,border-color .2s ease}
#gallery .gx .gx-btn-wa{background:#f6efe4;color:#22272e;border:1px solid #f6efe4}
#gallery .gx .gx-btn-mail{background:transparent;color:#f6efe4;border:1px solid rgba(246,239,228,.4)}
#gallery .gx .gx-btn-mail:hover{border-color:#f6efe4}
#gallery .gx .gx-arrow,.gx-viewer .gx-arrow{position:absolute;z-index:3;display:inline-grid;place-items:center;width:44px;height:44px;padding:0 0 3px;border-radius:50%;border:1px solid rgba(120,90,60,.16);background:rgba(255,255,255,.9);color:#3a2e25;font:300 26px/1 Georgia,serif;box-shadow:0 8px 20px -10px rgba(40,28,18,.35);cursor:pointer;transition:opacity .25s ease,background .2s ease}
#gallery .gx .gx-arrow:hover{background:#fff}
#gallery .gx :focus-visible,.gx-viewer :focus-visible{outline:2px solid rgba(155,107,53,.9);outline-offset:3px}

/* ---------- l'exposition : une œuvre à la fois ---------- */
#gallery .gx-g2{--S:min(400px,calc(100svh - 452px));margin-top:4px}
#gallery .g2-room{position:relative}
#gallery .g2-slides{display:grid}
#gallery .g2-slide{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .55s ease,visibility 0s linear .55s}
#gallery .g2-slide.is-active{opacity:1;visibility:visible;transition:opacity .55s ease}
#gallery .g2-stage{position:relative;height:calc(var(--S) + 48px);margin-inline:-16px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse 46% 62% at 50% 0%,rgba(255,236,200,.22),transparent 72%)}
#gallery .gx .g2-art{position:relative;display:grid;place-items:center;cursor:zoom-in;height:var(--S);width:calc(100% - 32px);padding:calc(22px * var(--fs));box-sizing:border-box}
#gallery .g2-art img{grid-area:1/1;max-height:calc(var(--S) - 44px * var(--fs));max-width:100%;width:auto;height:auto;transition:opacity .45s ease}
/* le cadre noir fin et son passe-partout blanc, dessinés autour de la toile */
#gallery .g2-art .g2-img{box-shadow:0 0 0 calc(12px * var(--fs)) #fff,0 0 0 calc(13px * var(--fs)) #d9d4cc,0 0 0 calc(17px * var(--fs)) #1b1714,0 calc(26px * var(--fs)) calc(34px * var(--fs)) calc(-14px * var(--fs)) rgba(40,26,14,.5)}
#gallery .g2-art .g2-img-room{display:none;max-height:calc(var(--S) + 48px);box-shadow:none}
#gallery .g2-slide.is-room .g2-img-room{display:block}
#gallery .g2-slide.is-room .g2-img{opacity:0}
#gallery .g2-cartel{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:14px;row-gap:4px;padding:12px 0 0}
#gallery .g2-num{grid-column:1/-1;font:500 11.5px/1 Inter,system-ui,sans-serif;letter-spacing:.16em;font-variant-numeric:tabular-nums;color:#c9bfb2!important}
#gallery .g2-title{margin:2px 0 0;font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:30px;line-height:1.05;white-space:nowrap;color:#f6efe4!important}
#gallery .g2-line{display:contents}
#gallery .g2-line .gx-dim{grid-column:1/-1;grid-row:3}
#gallery .g2-line .gx-price,#gallery .g2-line .gx-sold{grid-column:2;grid-row:2;justify-self:end}
#gallery .g2-cartel .gx-acts{grid-column:1/-1;margin-top:8px}
#gallery .g2-roombtn{grid-column:1/-1;justify-self:start;margin-top:0!important;font:500 13px/1.2 Inter,system-ui,sans-serif!important;color:var(--ocre)!important;padding:6px 0!important;text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:4px;cursor:pointer;white-space:nowrap}
#gallery .g2-roombtn .g2-rb-off,#gallery .g2-slide.is-room .g2-roombtn .g2-rb-on{display:none}
#gallery .g2-slide.is-room .g2-roombtn .g2-rb-off{display:inline}
#gallery .g2-room .gx-arrow{top:calc((var(--S) + 48px) / 2);transform:translateY(-50%)}
#gallery .g2-room .g2-prev{left:-6px}
#gallery .g2-room .g2-next{right:-6px}
#gallery .g2-frise{display:flex;gap:10px;margin:14px -16px 0;padding:4px 16px 6px;overflow-x:auto;scrollbar-width:none}
#gallery .g2-frise::-webkit-scrollbar{display:none}
#gallery .gx .g2-thumb{position:relative;flex:none;height:58px;padding:0 0 7px;cursor:pointer;opacity:.55;transition:opacity .25s ease}
#gallery .g2-thumb img{display:block;height:100%;width:auto;box-shadow:0 1px 3px rgba(40,28,18,.2)}
#gallery .g2-thumb::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--ink);transform:scaleX(0);transition:transform .3s ease}
#gallery .g2-thumb.is-active{opacity:1}
#gallery .g2-thumb.is-active::after{transform:scaleX(1)}
#gallery .g2-thumb.is-sold::before{content:"";position:absolute;right:-3px;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--dot);z-index:1}
@media (hover:none) and (max-width:979px){#gallery .g2-room .gx-arrow{display:none}}
@media (min-width:980px){
  #gallery .gx{--fs:1}
  #gallery .gx-head h2{margin:12px 0 6px}
  #gallery .gx-sub{font-size:16px;line-height:1.5}
  #gallery .gx-g2{--S:min(520px,calc(100vh - 380px))}
  #gallery .g2-slide{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:stretch}
  #gallery .g2-stage{margin-inline:0;height:calc(var(--S) + 80px)}
  #gallery .gx .g2-art{width:calc(100% - 140px)}
  #gallery .g2-art .g2-img-room{max-height:calc(var(--S) + 80px)}
  #gallery .g2-cartel{align-self:end;display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:0 0 18px 40px;border-left:0}
  #gallery .g2-num{margin-bottom:18px}
  #gallery .g2-title{font-size:46px;margin:0 0 10px}
  #gallery .g2-line{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
  #gallery .g2-line .gx-price{font-size:17px}
  #gallery .g2-cartel .gx-acts{margin-top:24px}
  #gallery .g2-roombtn{margin-top:8px!important;padding:8px 0!important}
  #gallery .g2-room .gx-arrow{top:calc((var(--S) + 80px) / 2)}
  #gallery .g2-room .g2-prev{left:18px}
  #gallery .g2-room .g2-next{right:calc(300px + 18px)}
  #gallery .g2-frise{margin:16px 0 0;padding:4px 0 6px;justify-content:center;gap:16px}
  #gallery .gx .g2-thumb{height:64px}
  #gallery .gx .g2-thumb:hover{opacity:.9}
}

/* ---------- visionneuse : fond ivoire, l'œuvre seule, le cartel dessous ---------- */
.gx-viewer{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:rgba(247,243,237,.985);padding:56px 16px 20px;box-sizing:border-box;--ink:#211a15;--mute:#8a7d71;--ocre:#9b6b35;--dot:#b3342b;color:#4a3f36;animation:gxFade .3s ease}
.gx-viewer[hidden]{display:none!important}
@keyframes gxFade{from{opacity:0}to{opacity:1}}
.gx-viewer button{-webkit-appearance:none;appearance:none;margin:0;font:inherit;background:none;border:0;padding:0;color:inherit;letter-spacing:0;text-transform:none;box-shadow:none;min-height:0}
.gx-v-close{position:absolute;top:10px;right:12px;width:44px;height:44px;font:300 32px/1 Georgia,serif!important;color:#3a2e25!important;cursor:pointer}
.gx-v-fig{margin:0;display:flex;flex-direction:column;align-items:center;max-width:100%;max-height:100%}
.gx-v-stage{display:flex;align-items:center;justify-content:center;min-height:0}
.gx-v-stage img{display:block;max-width:calc(100vw - 32px);max-height:min(calc(100svh - 250px),calc(var(--nh,800px) * 1.4));width:auto;height:auto;box-shadow:0 30px 44px -30px rgba(40,28,18,.5),0 2px 8px rgba(40,28,18,.12)}
.gx-viewer.is-room .gx-v-stage img{box-shadow:none}
.gx-v-cartel{margin-top:20px;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:14px;row-gap:10px;width:min(100%,560px);font-family:Inter,system-ui,sans-serif}
.gx-v-id{display:grid;gap:3px}
.gx-viewer .gx-title{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:27px;line-height:1.05;color:var(--ink);white-space:nowrap}
.gx-viewer .gx-dim{display:block;font-size:12.5px;color:var(--mute);white-space:nowrap}
.gx-viewer .gx-dim[hidden]{display:none}
.gx-v-right{display:contents}
.gx-v-right>span:first-child{grid-column:2;grid-row:1;justify-self:end}
.gx-viewer .gx-price{font-size:15px;font-weight:600;color:var(--ocre);white-space:nowrap}
.gx-viewer .gx-sold{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--mute);white-space:nowrap}
.gx-viewer .gx-sold i{width:9px;height:9px;border-radius:50%;background:var(--dot)}
.gx-viewer .gx-acts{grid-column:1/-1;display:flex;gap:8px}
.gx-viewer .gx-acts:empty{display:none}
.gx-viewer .gx-btn{display:inline-flex;align-items:center;height:38px;padding:0 15px;border-radius:999px;font:600 13.5px/1 Inter,system-ui,sans-serif;white-space:nowrap;text-decoration:none}
.gx-viewer .gx-btn-wa{background:var(--ink);color:#fff}
.gx-viewer .gx-btn-mail{border:1px solid rgba(33,26,21,.28);color:var(--ink)}
.gx-viewer .gx-v-room{grid-column:1/-1;justify-self:start;font:500 13px/1.2 Inter,system-ui,sans-serif!important;color:var(--ocre)!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;padding:6px 0!important;cursor:pointer;white-space:nowrap}
.gx-viewer .gx-v-room[hidden]{display:none}
.gx-viewer .gx-arrow{top:50%;transform:translateY(-50%)}
.gx-v-prev{left:8px}
.gx-v-next{right:8px}
@media (hover:none) and (max-width:979px){.gx-viewer .gx-arrow{display:none}}
@media (min-width:980px){
  .gx-viewer{padding:60px 90px 34px}
  .gx-v-stage img{max-width:calc(100vw - 200px);max-height:min(calc(100vh - 210px),calc(var(--nh,800px) * 1.4))}
  .gx-v-cartel{width:auto;min-width:640px;display:flex;align-items:center;gap:22px;justify-content:center}
  .gx-v-id{grid-auto-flow:column;align-items:baseline;gap:14px}
  .gx-v-right{display:flex;align-items:center;gap:16px}
  .gx-v-prev{left:24px!important}
  .gx-v-next{right:24px!important}
}
body.gx-lock{overflow:hidden}
@media (prefers-reduced-motion:reduce){#gallery .g2-slide{transition:none}}

/* =====================================================================================
   v2 · LE TABLEAU SUSPENDU (choix du client, 16/09) : la galerie devient un panneau arrondi posé sur le fond clair,
   bords alignés sur les cartes de l'accueil (16 px sur téléphone), arrondi des cartes, ombre douce ;
   de l'air au-dessus du titre ; la scène se resserre d'autant pour que le panneau tienne dans l'écran.
   ===================================================================================== */
body.page-home #gallery.gx-expo{margin:26px 16px 30px!important;border-radius:28px;padding-top:34px!important;padding-bottom:22px!important;
  box-shadow:0 26px 54px -30px rgba(34,39,46,.6),0 1px 0 rgba(255,255,255,.06) inset;overflow:hidden}
body.page-home #gallery.gx-expo > .container{padding-inline:16px}
#gallery .gx-g2{--S:min(400px,calc(100svh - 470px))}
@media (min-width:980px){
  body.page-home #gallery.gx-expo{margin:40px max(24px,calc((100% - 1224px) / 2 - 36px)) 46px!important;border-radius:40px;padding-top:50px!important;padding-bottom:34px!important}
  body.page-home #gallery.gx-expo > .container{padding-inline:36px}
  #gallery .gx-g2{--S:min(520px,calc(100vh - 420px))}
}
