/* =========================================================
   NORDVIK — accrochage des photos dans les numéros du Logbook
   ========================================================= */

/* photo suspendue dans la marge d'un chapitre */
.gx-chapitre{position:relative;min-height:calc(var(--gx-haut,40px) + var(--gx-larg,260px) * 1.55 + 80px)}
.gx-cote{position:absolute;top:calc(var(--gx-haut,40px) + 90px);width:var(--gx-larg,260px);margin:0;z-index:1}
.gx-cote--d{right:clamp(16px,2.6vw,48px)}
.gx-cote--g{left:clamp(16px,2.6vw,48px)}
.gx-cote img{display:block;width:100%;height:auto}

/* mur : photos de tailles et de hauteurs différentes sur une grille de 12 colonnes */
.gx-mur{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(16px,2vw,32px);row-gap:clamp(40px,5vw,72px);align-items:start;max-width:1440px;margin:clamp(64px,8vw,120px) auto;padding:0 var(--gutter,clamp(20px,3vw,48px))}
.gx-mur-fig{margin:0;margin-top:var(--gx-dec,0)}
.gx-mur-fig img{display:block;width:100%;height:auto}

/* cartel */
.gx-cote figcaption,.gx-mur-fig figcaption{display:flex;gap:12px;margin-top:10px;font-size:12px;line-height:1.4;color:var(--muted,#5A5A5A)}
.gx-num{flex:none;color:var(--text,#0C0B0B);letter-spacing:.04em}

/* écrans moyens et petits : les photos rentrent dans le fil du texte */
@media (max-width:1180px){
  .gx-cote{position:static;width:auto;max-width:520px;margin:0 0 32px}
  .gx-chapitre{display:grid;min-height:0}
  .gx-mur{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gx-mur-fig{grid-column:auto!important;margin-top:0}
  .gx-mur-fig:nth-child(3n+1){grid-column:1 / -1!important}
}
@media (max-width:600px){.gx-mur{grid-template-columns:minmax(0,1fr)}.gx-mur-fig{grid-column:1 / -1!important}}

/* =========================================================
   Hero des numéros : photo plein écran, texte centré (comme l'accueil)
   ========================================================= */
html body .art-hero{position:relative!important;isolation:isolate;display:flex!important;align-items:center;justify-content:center;min-height:100svh!important;margin:0!important;padding:calc(var(--banner-h,0px) + var(--header-h,70px) + 40px) 20px 140px!important;background:var(--nv-mork,#0C0B0B)!important;color:var(--nv-neige,#EAEAEA)!important;overflow:hidden;text-align:center!important;opacity:1!important;transform:none!important}
html body .art-hero .art-hero-photo{position:absolute!important;inset:0!important;z-index:-2!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;object-fit:cover!important;object-position:50% 50%}
html body .art-hero .art-hero-voile{position:absolute!important;inset:0!important;z-index:-1!important;display:block!important;background:linear-gradient(180deg,rgba(12,11,11,.35) 0%,rgba(12,11,11,.45) 55%,rgba(12,11,11,.75) 100%)!important;opacity:1!important}
html body .art-hero .art-hero-inner{position:relative!important;z-index:1;display:flex!important;flex-direction:column;align-items:center!important;max-width:1200px;margin:0 auto!important;padding:0!important;background:none!important}
html body .art-hero .art-hero-inner>div:first-child{display:flex!important;flex-direction:column;align-items:center!important}
html body .art-hero .art-hero-eyebrow{display:block;margin:0!important;color:var(--nv-neige,#EAEAEA)!important;font-size:clamp(12px,1vw,14px)!important;letter-spacing:.24em!important;text-indent:.24em;text-transform:uppercase!important;opacity:.9}
html body .art-hero .art-hero-title{margin:22px 0 0!important;color:var(--nv-neige,#EAEAEA)!important;font-size:clamp(1.8rem,3vw,2.8rem)!important;line-height:1.08!important;letter-spacing:.06em!important;text-transform:uppercase!important;font-weight:400!important}
html body .art-hero .art-hero-deck{display:block!important;max-width:44ch;margin:24px auto 0!important;color:rgba(234,234,234,.82)!important;font-size:clamp(16px,1.3vw,19px)!important;line-height:1.45!important;text-align:center!important}
html body .art-hero .narr-cta{margin:40px auto 0!important;min-height:52px;padding:0 36px!important;border:0!important;border-radius:0!important;background:var(--nv-neige,#EAEAEA)!important;color:var(--nv-mork,#0C0B0B)!important;font-size:13px!important;letter-spacing:.2em!important;text-transform:uppercase!important;transition:background .3s ease}
html body .art-hero .narr-cta:hover{background:#fff!important}
html body .art-hero .narr-cta *{color:inherit!important;fill:currentColor}
html body .art-hero .art-hero-meta{display:flex!important;flex-wrap:wrap;justify-content:center!important;gap:6px 0;margin:28px 0 0!important;padding:0!important;border:0!important}
html body .art-hero .art-hero-meta span{padding:0 16px!important;border:0!important;border-left:1px solid rgba(234,234,234,.35)!important;color:rgba(234,234,234,.78)!important;font-size:13px!important;letter-spacing:.04em}
html body .art-hero .art-hero-meta span:first-child{border-left:0!important}
html body .art-hero .art-scroll{position:absolute!important;left:50%!important;bottom:0!important;z-index:1;width:1px!important;height:clamp(48px,9vh,96px)!important;margin:0!important;padding:0!important;background:rgba(234,234,234,.55)!important;border:0!important;font-size:0!important;color:transparent!important;transform:none!important}
html body .art-hero .art-scroll *{display:none!important}
html body .art-hero [class*="cartel"],html body .art-hero figcaption{display:none!important}
html body .art-hero .art-hero-meta span,html body .art-hero .art-hero-meta span *{color:rgba(234,234,234,.85)!important;font-weight:400!important}

/* =========================================================
   Mouvement des numéros : discret, lent, jamais gratuit
   ========================================================= */
@media (prefers-reduced-motion:no-preference){
  /* hero : la photo se pose lentement, le texte arrive ligne à ligne */
  html body .art-hero .art-hero-photo{animation:gxPose 2.6s cubic-bezier(.2,.7,.2,1) both}
  html body .art-hero .art-hero-inner>div:first-child>*,html body .art-hero .art-hero-meta{animation:gxMonte 1s cubic-bezier(.2,.7,.2,1) both}
  html body .art-hero .art-hero-eyebrow{animation-delay:.25s!important}
  html body .art-hero .art-hero-title{animation-delay:.4s!important}
  html body .art-hero .art-hero-deck{animation-delay:.6s!important}
  html body .art-hero .narr-cta{animation-delay:.75s!important}
  html body .art-hero .art-hero-meta{animation-delay:.9s!important}
  @keyframes gxPose{from{transform:scale(1.07)!important;opacity:.4}to{transform:scale(1);opacity:1}}
  @keyframes gxMonte{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

  /* photos de la galerie : un rideau qui se lève, puis le cartel */
  .gx-anim .gx-mur-fig img,.gx-anim .gx-cote img{clip-path:inset(100% 0 0 0);transform:scale(1.04);transition:clip-path 1.1s cubic-bezier(.2,.7,.2,1),transform 1.6s cubic-bezier(.2,.7,.2,1)}
  .gx-anim .gx-mur-fig figcaption,.gx-anim .gx-cote figcaption{opacity:0;transform:translateY(8px);transition:opacity .6s ease .5s,transform .6s ease .5s}
  .gx-anim .gx-vu img{clip-path:inset(0 0 0 0);transform:none}
  .gx-anim .gx-vu figcaption{opacity:1;transform:none}

  /* photos suspendues : léger décalage au défilement */
  .gx-anim .gx-cote{will-change:transform;transform:translateY(var(--gx-p,0px))}
}

/* tableau des performances : retrouve sa largeur dans la colonne de texte */
html body .hero-slideshow.hs-specs{margin-left:0!important;margin-right:0!important;width:auto!important;max-width:100%!important}

/* =========================================================
   Frise chronologique : horizontale, centrée, sur un filet
   ========================================================= */
html body .art-aside:has(.art-timeline){position:relative!important;left:auto!important;width:auto!important;max-width:1180px!important;margin:clamp(56px,7vw,96px) auto!important;padding:0 var(--gutter,24px)!important;transform:none!important}
html body .art-timeline{position:relative!important;display:grid!important;grid-template-columns:repeat(var(--tl-n,7),minmax(0,1fr))!important;gap:0 clamp(16px,2vw,28px)!important;margin:0!important;padding:32px 0 0!important;list-style:none!important;border:0!important}
html body .art-timeline::before{content:''!important;position:absolute!important;left:0;right:0;top:0;height:1px;background:var(--nv-brume,#A7A7A7);transform-origin:left;display:block!important;width:auto!important}
html body .art-timeline::after{display:none!important}
html body .art-timeline .tl-item{position:relative!important;display:flex!important;flex-direction:column!important;gap:10px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;opacity:1;transform:none}
html body .art-timeline .tl-dot{position:absolute!important;left:0!important;top:-36px!important;width:7px!important;height:7px!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--text,#0C0B0B)!important;transform:none!important}
html body .art-timeline .tl-year{display:block!important;margin:0!important;font-family:var(--font-titre,inherit)!important;font-size:clamp(1.6rem,2.4vw,2.4rem)!important;line-height:1!important;letter-spacing:-.04em!important;color:var(--text,#0C0B0B)!important}
html body .art-timeline .tl-year::after{display:none!important}
html body .art-timeline .tl-text{display:block!important;margin:0!important;font-size:14px!important;line-height:1.45!important;color:var(--muted,#5A5A5A)!important}
html body .art-timeline .tl-item:last-child .tl-year{color:var(--text)!important}

@media (prefers-reduced-motion:no-preference){
  .gx-anim .art-timeline::before{transform:scaleX(0);transition:transform 1.6s cubic-bezier(.2,.7,.2,1)}
  .gx-anim .art-timeline .tl-item{opacity:0;transform:translateY(14px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(.25s + var(--i,0) * .14s)}
  .gx-anim .art-timeline.gx-vu::before{transform:scaleX(1)}
  .gx-anim .art-timeline.gx-vu .tl-item{opacity:1;transform:none}
}

/* tablette : frise qui défile horizontalement ; téléphone : liste */
@media (max-width:1000px){
  html body .art-timeline{grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:minmax(180px,1fr)!important;overflow-x:auto!important;padding-bottom:12px!important;scroll-snap-type:x mandatory}
  html body .art-timeline .tl-item{scroll-snap-align:start}
  html body .art-timeline::before{right:auto;width:calc(var(--tl-n,7) * 200px)!important}
}
html body .art-aside:has(.art-timeline){width:min(1180px,calc(100vw - 2 * var(--gutter,24px)))!important;max-width:none!important;margin-left:calc(50% - min(590px,calc(50vw - var(--gutter,24px))))!important;margin-right:0!important;padding:0!important;grid-column:1 / -1!important;justify-self:start!important}
html body .art-timeline .tl-item::before,html body .art-timeline .tl-item::after{display:none!important}
html body .art-timeline .tl-dot::before,html body .art-timeline .tl-dot::after{display:none!important}

/* =========================================================
   Agrandissement des photos et curseur « Voir »
   ========================================================= */
.gx-zoomable{cursor:zoom-in}
@media (hover:hover) and (pointer:fine){ .gx-avec-curseur .gx-zoomable{cursor:none} }
.gx-zoomable:focus-visible{outline:2px solid var(--text,#0C0B0B);outline-offset:4px}

.gx-curseur{position:fixed;left:0;top:0;z-index:300;display:flex;align-items:center;justify-content:center;width:76px;height:76px;margin:-38px 0 0 -38px;background:var(--nv-mork,#0C0B0B);color:var(--nv-neige,#EAEAEA);font:400 11px/1 var(--font,'Inter',sans-serif);letter-spacing:.24em;text-indent:.24em;text-transform:uppercase;pointer-events:none;opacity:0;transform:translate3d(var(--x,-200px),var(--y,-200px),0) scale(.6);transition:opacity .25s ease,transform .25s cubic-bezier(.2,.7,.2,1)}
.gx-curseur.est-visible{opacity:1;transform:translate3d(var(--x),var(--y),0) scale(1)}

.gx-boite{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:rgba(12,11,11,.96);color:var(--nv-neige,#EAEAEA)}
.gx-boite::backdrop{background:transparent}
.gx-boite[open]{display:grid;grid-template-rows:1fr auto;animation:gxOuvre .35s ease both}
@keyframes gxOuvre{from{opacity:0}to{opacity:1}}
.gx-boite figure{display:flex;align-items:center;justify-content:center;min-height:0;margin:0;padding:72px clamp(56px,7vw,120px) 16px}
.gx-boite img{max-width:100%;max-height:100%;object-fit:contain;animation:gxImage .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes gxImage{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
.gx-boite-bas{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px clamp(20px,3vw,48px) 28px;font-size:13px;color:rgba(234,234,234,.75)}
.gx-boite-bas b{margin-right:12px;color:var(--nv-neige,#EAEAEA);font-weight:400;letter-spacing:.04em}
.gx-boite button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border:1px solid rgba(234,234,234,.4);border-radius:0;background:transparent;color:var(--nv-neige,#EAEAEA);font:400 12px/1 var(--font,'Inter',sans-serif);letter-spacing:.2em;text-transform:uppercase;cursor:pointer;transition:background .25s ease,color .25s ease}
.gx-boite button:hover{background:var(--nv-neige,#EAEAEA);color:var(--nv-mork,#0C0B0B)}
.gx-boite-fermer{position:absolute;top:20px;right:clamp(20px,3vw,48px)}
.gx-boite-nav{display:flex;gap:8px}
@media (prefers-reduced-motion:reduce){.gx-boite[open],.gx-boite img,.gx-curseur{animation:none;transition:none}}

/* =========================================================
   Hero des numéros, version suisse (comme l'accueil) :
   informations sur un filet en haut, titre en bas à gauche,
   chapô et lecteur en bas à droite
   ========================================================= */
html body .art-hero{display:block!important;padding:calc(var(--banner-h,0px) + var(--header-h,70px)) 0 0!important;text-align:left!important}
html body .art-hero .art-hero-inner{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto 1fr auto auto;column-gap:clamp(16px,2vw,28px);align-items:start!important;justify-items:stretch!important;max-width:none!important;min-height:calc(100svh - var(--banner-h,0px) - var(--header-h,70px));margin:0!important;padding:clamp(24px,3vw,40px) var(--gutter,clamp(20px,3vw,48px)) clamp(32px,4.5vw,64px)!important;text-align:left!important}
html body .art-hero .art-hero-inner>div:first-child{display:contents!important}
html body .art-hero .art-hero-eyebrow{grid-column:1 / 4;grid-row:1;padding-top:14px!important;border-top:1px solid rgba(234,234,234,.35);font-size:13px!important;letter-spacing:0!important;text-indent:0!important;text-transform:none!important;text-align:left!important;opacity:1!important}
html body .art-hero .art-hero-meta{grid-column:4 / -1;grid-row:1;justify-content:flex-start!important;gap:0!important;margin:0!important;padding-top:14px!important;border-top:1px solid rgba(234,234,234,.35)!important}
html body .art-hero .art-hero-meta span{padding:0 28px 0 0!important;border-left:0!important;font-size:13px!important;letter-spacing:0!important}
html body .art-hero .art-hero-title{grid-column:1 / span 8;grid-row:3 / span 2;align-self:end!important;margin:0!important;font-size:clamp(2rem,3.4vw,3.25rem)!important;line-height:1.04!important;letter-spacing:-.035em!important;text-transform:none!important;text-align:left!important}
html body .art-hero .art-hero-deck{grid-column:9 / -1;grid-row:3;align-self:end!important;max-width:36ch!important;margin:0!important;padding-top:16px;border-top:1px solid rgba(234,234,234,.35);font-size:15px!important;line-height:1.5!important;text-align:left!important}
html body .art-hero .narr-cta{grid-column:9 / -1;grid-row:4;justify-self:start!important;align-self:end;margin:20px 0 0!important;min-height:48px;padding:0 22px!important}
html body .art-hero .art-scroll{display:none!important}
@media (max-width:900px){
  html body .art-hero .art-hero-eyebrow,html body .art-hero .art-hero-meta{grid-column:1 / -1}
  html body .art-hero .art-hero-meta{grid-row:2;border-top:0!important;padding-top:8px!important;flex-direction:column;align-items:flex-start}
  html body .art-hero .art-hero-inner{grid-template-rows:auto auto 1fr auto auto auto}
  html body .art-hero .art-hero-title{grid-column:1 / -1;grid-row:4}
  html body .art-hero .art-hero-deck{grid-column:1 / -1;grid-row:5;margin-top:24px!important}
  html body .art-hero .narr-cta{grid-column:1 / -1;grid-row:6}
}

/* titres de chapitre : discrets, au fer à gauche de la colonne de texte */
html body .art h2,html body .art-body h2,html body .art-h2{text-align:left!important;margin-left:0!important;margin-right:auto!important;font-size:clamp(1.4rem,2vw,1.9rem)!important;line-height:1.15!important;letter-spacing:-.02em!important;text-transform:none!important;color:var(--text,#0C0B0B)!important;justify-self:start!important;align-self:start!important}
html body.nv-legacy .art :is(h2,.art-h2):not(#nv-x){text-align:left!important;margin-left:0!important;margin-right:auto!important}
html body .art-hero .art-hero-inner:not(#nv-x){min-height:calc(100svh - var(--banner-h,0px) - var(--header-h,70px))!important;height:auto!important}
html body .art-hero .art-hero-title:not(#nv-x){text-align:left!important;margin:0!important}
html body .art-hero .art-hero-eyebrow:not(#nv-x),html body .art-hero .art-hero-deck:not(#nv-x){text-align:left!important}

/* =========================================================
   Hero des numéros, façon Polestar : photo pleine page,
   un seul bloc en bas à gauche — filet, titre, fiche technique
   ========================================================= */
html body .art-hero .art-hero-inner.hp:not(#nv-x){display:flex!important;align-items:flex-end!important;justify-content:flex-start!important;min-height:calc(100svh - var(--banner-h,0px) - var(--header-h,70px))!important;padding:0 var(--gutter,clamp(20px,3vw,48px)) clamp(40px,6vw,88px)!important;grid-template-columns:none}
.hp-bloc{display:grid;grid-template-columns:auto auto;align-items:start;column-gap:clamp(32px,4vw,56px);row-gap:20px;padding-top:24px;border-top:1px solid rgba(234,234,234,.55);color:var(--nv-neige,#EAEAEA);text-align:left}
html body .art-hero .hp-bloc .art-hero-title:not(#nv-x){grid-column:1;grid-row:1 / span 2;align-self:start!important;margin:0!important;font-size:clamp(1.9rem,3vw,2.8rem)!important;line-height:1.05!important;letter-spacing:-.035em!important;text-transform:none!important}
.hp-specs{grid-column:2;display:grid;grid-template-columns:auto auto;column-gap:clamp(24px,3vw,44px);row-gap:4px;margin:6px 0 0;font-size:clamp(15px,1.25vw,18px);line-height:1.35}
.hp-specs dt{color:rgba(234,234,234,.62)}
.hp-specs dd{margin:0}
html body .art-hero .hp-bloc .narr-cta:not(#nv-x){grid-column:2;grid-row:2;justify-self:start!important;align-self:start;margin:8px 0 0!important;min-height:44px;padding:0 20px!important}
@media (max-width:700px){
  .hp-bloc{grid-template-columns:1fr;row-gap:18px}
  html body .art-hero .hp-bloc .art-hero-title:not(#nv-x){grid-row:auto}
  .hp-specs,html body .art-hero .hp-bloc .narr-cta:not(#nv-x){grid-column:1;grid-row:auto}
}
html body .art-hero .art-hero-inner.hp>.hp-bloc:not(#nv-x){display:grid!important}
html body .art-hero .art-hero-inner.hp:not(#nv-x){flex-direction:row!important}
html body .art-hero .hp-specs :is(dt,dd):not(#nv-x){font-weight:400!important;letter-spacing:0!important}

/* filet vertical : séparateur entre le titre et la fiche */
html body .art-hero .art-hero-inner.hp>.hp-bloc:not(#nv-x){grid-template-columns:auto 1px auto;padding-top:0;border-top:0}
html body .art-hero .hp-bloc::before{content:'';grid-column:2;grid-row:1 / span 2;align-self:stretch;width:1px;background:rgba(234,234,234,.55)}
html body .art-hero .hp-bloc .hp-specs:not(#nv-x),html body .art-hero .hp-bloc .narr-cta:not(#nv-x){grid-column:3}
@media (max-width:700px){
  html body .art-hero .art-hero-inner.hp>.hp-bloc:not(#nv-x){grid-template-columns:1fr}
  html body .art-hero .hp-bloc::before{grid-column:1;grid-row:2;width:56px;height:1px;align-self:auto}
  html body .art-hero .hp-bloc .hp-specs:not(#nv-x),html body .art-hero .hp-bloc .narr-cta:not(#nv-x){grid-column:1;grid-row:auto}
}
