/* THE PF LAB — main.css — do not modify visual styles */

/* ═══════════════════════════════════════════
   TOKENS — SYSTÈME CLINIQUE
═══════════════════════════════════════════ */
:root{
  --cr:#F5F2EC;   /* crème dominant */
  --ink:#0D0C0A;  /* encre presque-noir */
  --v:#5B0EAF;    /* violet lab */
  --v2:#8B3FE8;
  --v3:#C084FC;
  --rule:rgba(13,12,10,.1);
  --rule2:rgba(13,12,10,.55);
  --mono:'IBM Plex Mono',monospace;
  --cond:'Barlow Condensed',sans-serif;
  --grotesk:'Space Grotesk','Helvetica Neue',Helvetica,Arial,sans-serif;
  /* ── EASING TOKEN — signature kinesthésique PF Lab ── */
  --ease-pf:cubic-bezier(.22,1,.36,1);
}
/* ── FOCUS VISIBLE — keyboard navigation ── */
:focus-visible{
  outline:1.5px solid var(--v);
  outline-offset:3px;
}
/* ── TEXT SELECTION — violet on cream / cream on violet ── */
::selection{ background:var(--v); color:var(--cr); }
::-moz-selection{ background:var(--v); color:var(--cr); }
body.dark ::selection{ background:var(--v2); color:var(--ink); }
body.dark ::-moz-selection{ background:var(--v2); color:var(--ink); }
/* ── REDUCED MOTION — respect OS preference ── */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
/* Custom-cursor elements don't need a default outline ring —
   they have dedicated hover states. Cards, buttons inside galleries
   override this via their component styles. */

/* DARK */
body.dark{
  --cr:#0F0D0B;
  --ink:#E8E4DC;
  --rule:rgba(232,228,220,.07);
  --rule2:rgba(232,228,220,.2);
  --v:#9B5FE8;--v2:#C084FC;--v3:#DDB6FF;
}
/* ── GLOBAL ── */
body.dark .logo-svg path{fill:#F5F2EC;}
body.dark #dark-btn svg{stroke:var(--v3);}
body.dark .hctl-btn{color:rgba(232,228,220,.60);}
body.dark .hctl-btn:hover{color:#F5F2EC;}

/* ── NAV / HEADER — DARK MODE (cristaux individuels) ── */
body.dark .hdr-cell,
body.dark .hdr-cell-controls,
body.dark .hdr-cell-burger{
  background:rgba(15,13,11,.35);
  border-color:rgba(255,255,255,.10);
}
body.dark .hdr--scrolled .hdr-cell,
body.dark .hdr--scrolled .hdr-cell-controls{
  background:rgba(15,13,11,.78);
  border-color:rgba(255,255,255,.14);
}
body.dark .hdr-ctl-sep{background:rgba(255,255,255,.18);}
body.dark .hdr-status{color:rgba(232,228,220,.45);}
body.dark .hnav a{
  background:rgba(15,13,11,.35);
  border-color:rgba(255,255,255,.10);
  color:rgba(232,228,220,.65);
}
body.dark .hdr--scrolled .hnav a{
  background:rgba(15,13,11,.78);
  border-color:rgba(255,255,255,.14);
}
body.dark .hnav a::before{background:rgba(245,242,236,.10);}
body.dark .hnav a:hover,body.dark .hnav a.on{color:#F5F2EC;border-color:rgba(245,242,236,.55);}

/* ── FOOTER dark mode — cristal sombre ── */
body.dark .pf-fc{
  background:rgba(15,13,11,.52);
  border-color:rgba(232,228,220,.08);
}
body.dark .pf-fl{color:rgba(232,228,220,.42);}
body.dark .pf-fv{color:rgba(232,228,220,.92);}
body.dark .pf-ticker-inner span{color:#E8E4DC;}
body.dark .pf-ticker-inner span.sep{color:rgba(232,228,220,.25);}
body.dark .pf-ticker-inner span.sep.sep--double{color:rgba(232,228,220,.28);opacity:1;}
body.dark .pf-social a{color:rgba(232,228,220,.4);}
body.dark .pf-social a:hover{color:var(--v2);}

body.dark .hero-protocols{
  background:rgba(155,95,232,.07);
  border-color:rgba(155,95,232,.22);
}
body.dark .hero-proto-line{color:rgba(232,228,220,.5);}
body.dark .hero-proto-line:hover{color:rgba(232,228,220,.9);}
body.dark .hp-prompt{color:rgba(192,132,252,.6);}
body.dark .hp-fn{color:var(--v2);}
body.dark .hp-paren{color:rgba(232,228,220,.3);}
body.dark .hp-str{color:rgba(230,160,60,.8);}
body.dark .hp-var{color:rgba(90,190,255,.75);}
body.dark .hp-comment{color:rgba(232,228,220,.28);font-style:italic;}
body.dark .hp-return{color:rgba(80,210,120,.7);}
body.dark .hero-h1 .w1{color:rgba(232,228,220,.55);}
body.dark .hero-h1 .w4{color:rgba(232,228,220,.55);}
body.dark .hero-ey{color:var(--v2);}
body.dark .hero-ey::before{color:rgba(232,228,220,.28);}
body.dark .hero-tag{color:rgba(232,228,220,.72);}
body.dark .hero-tag b{color:var(--v2);}
body.dark .hero-alch-btn{border-color:rgba(245,242,236,.65);background:transparent;}
body.dark .hero-alch-btn::before{background:rgba(245,242,236,.09);}
body.dark .hero-alch-btn:hover{border-color:rgba(245,242,236,.9);}
body.dark .hero-alch-btn:hover .hero-alch-main,
body.dark .hero-alch-btn:hover .hero-alch-sub{color:#F5F2EC !important;}
body.dark .hero-alch-btn:hover .hero-alch-ico{color:var(--v) !important;}
body.dark .hero-alch-btn:hover .hero-alch-arrow{color:var(--v3) !important;}
body.dark .hero-alch-ico{color:rgba(245,242,236,.75);}
body.dark .hero-alch-main{color:rgba(245,242,236,.9);}
body.dark .hero-alch-arrow{color:rgba(245,242,236,.45);}
body.dark .hero-alch-sub{color:rgba(192,132,252,.78);}
/* hero-bg-num dark mode → déjà dans le bloc hero-bg-num */

/* ── WORK ── */
body.dark .wcat{background:transparent;}
body.dark .whead{border-bottom-color:rgba(232,228,220,.1);}
body.dark .pr::before{opacity:.75;} /* sweep plus visible en dark */
body.dark .pr-idx{color:rgba(232,228,220,.22);}
body.dark .pr-c{color:rgba(232,228,220,.48);}
body.dark .pr-f{color:rgba(232,228,220,.35);}
body.dark .pr-a{color:rgba(232,228,220,.3);}
body.dark .wf{color:rgba(232,228,220,.6);border-color:rgba(232,228,220,.2);}
body.dark .wf:hover,body.dark .wf.on{color:#F5F2EC;}
/* Filtres catégorie — underline coloré par catégorie (data-f attribute) */
.wf[data-f="Campaigns"]:hover{color:rgba(91,14,175,.7);}
.wf[data-f="Campaigns"].on{color:rgba(91,14,175,.92);}
.wf[data-f="Campaigns"]:hover::after,.wf[data-f="Campaigns"].on::after{background:rgba(91,14,175,.88);}
.wf[data-f="SocialMedia"]:hover{color:rgba(180,83,9,.7);}
.wf[data-f="SocialMedia"].on{color:rgba(180,83,9,.92);}
.wf[data-f="SocialMedia"]:hover::after,.wf[data-f="SocialMedia"].on::after{background:rgba(180,83,9,.88);}
.wf[data-f="Magazines"]:hover{color:rgba(190,24,93,.7);}
.wf[data-f="Magazines"].on{color:rgba(190,24,93,.92);}
.wf[data-f="Magazines"]:hover::after,.wf[data-f="Magazines"].on::after{background:rgba(190,24,93,.88);}
/* dark mode — couleurs signature lumineuses */
body.dark .wf[data-f="Campaigns"]:hover{color:rgba(192,132,252,.75);}
body.dark .wf[data-f="Campaigns"].on{color:rgba(192,132,252,.95);}
body.dark .wf[data-f="Campaigns"]:hover::after,body.dark .wf[data-f="Campaigns"].on::after{background:rgba(192,132,252,.9);}
body.dark .wf[data-f="SocialMedia"]:hover{color:rgba(250,180,80,.75);}
body.dark .wf[data-f="SocialMedia"].on{color:rgba(250,180,80,.95);}
body.dark .wf[data-f="SocialMedia"]:hover::after,body.dark .wf[data-f="SocialMedia"].on::after{background:rgba(250,180,80,.9);}
body.dark .wf[data-f="Magazines"]:hover{color:rgba(250,130,180,.75);}
body.dark .wf[data-f="Magazines"].on{color:rgba(250,130,180,.95);}
body.dark .wf[data-f="Magazines"]:hover::after,body.dark .wf[data-f="Magazines"].on::after{background:rgba(250,130,180,.9);}
body.dark .wlist-footer{color:rgba(232,228,220,.2);}

/* ── WORK PREVIEW ── */
body.dark .wp-doc{
  background:rgba(18,16,13,.82);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 0 1px rgba(232,228,220,.06);
}
body.dark .wp-tab{
  background:rgba(22,19,16,.7);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  border-color:rgba(255,255,255,.07);
}
body.dark .wp-thumb{background:rgba(232,228,220,.04);}
body.dark .wp-thumb-icon{color:rgba(232,228,220,.1);}
body.dark .wp-cat{color:rgba(232,228,220,.35);}
body.dark .wp-title{color:#E8E4DC;}
body.dark .wp-scope{color:rgba(232,228,220,.38);}

/* ── CASE ── */
body.dark .cs-ey{color:var(--v2);}
body.dark .cs-ml{color:rgba(232,228,220,.45);}
body.dark .cs-mv{color:#E8E4DC;}
body.dark .cbk{
  background:var(--v2);
  border-color:var(--v2);
  box-shadow:0 2px 8px rgba(91,14,175,.3);
}
body.dark .cbl{color:rgba(232,228,220,.42);}
body.dark .cbt h3{color:#E8E4DC;}
body.dark .cbt p{color:rgba(232,228,220,.52);}
body.dark .sgrid{border-color:rgba(232,228,220,.08);}
body.dark .sc{border-right-color:rgba(232,228,220,.08);}
body.dark .scn{color:var(--v2);}
body.dark .sc h4{color:#E8E4DC;}
body.dark .sc p{color:rgba(232,228,220,.42);}
body.dark .cnxt-l{color:rgba(232,228,220,.25);}
body.dark .cmed{background:rgba(232,228,220,.04);border-color:rgba(232,228,220,.07);}
body.dark .cmed-type{color:rgba(232,228,220,.32);}
body.dark .cmed-ref{color:rgba(232,228,220,.22);}

/* ── ABOUT ── */
body.dark .ab-top-ref,body.dark .ab-top-loc{color:rgba(232,228,220,.55);}
body.dark .abt .w-thin{color:rgba(232,228,220,.35);}
body.dark .abs{color:rgba(232,228,220,.58);}
body.dark .ab-tag{color:rgba(232,228,220,.52);}
body.dark .ab-body{color:rgba(232,228,220,.58);}
body.dark .pc{background:rgba(232,228,220,.04);border-left-color:rgba(232,228,220,.35);}
body.dark .pc::after{background:#F5F2EC;}
body.dark .pc:hover{box-shadow:0 14px 36px rgba(0,0,0,.35);border-left-color:#F5F2EC;}
body.dark .pc .pcn{color:rgba(232,228,220,.5);}
body.dark .pc:hover .pcn{color:rgba(13,12,10,.72);}
body.dark .pc:hover h3{color:#0D0C0A;}
body.dark .pc p{color:rgba(232,228,220,.48);}
body.dark .pc:hover p{color:rgba(13,12,10,.68);}
body.dark .ab-kpi-v{color:#E8E4DC;}
body.dark .ab-kpi-l{color:rgba(232,228,220,.42);}
body.dark .abl-badge{border-color:rgba(232,228,220,.1);background:rgba(20,18,16,.85);}
body.dark .abl-b-ref{color:rgba(232,228,220,.32);}
body.dark .abl-b-val{color:var(--v2);}
body.dark .abl-base{color:rgba(232,228,220,.6);border-color:rgba(232,228,220,.12);}
body.dark .abl-bases-label{color:rgba(232,228,220,.3);}
body.dark .chip{background:rgba(232,228,220,.05);border-color:rgba(232,228,220,.14);color:rgba(232,228,220,.65);}
body.dark .chip:hover{background:rgba(155,95,232,.15);border-color:var(--v);color:var(--v2);}

/* ── CONTACT ── */
body.dark .ct-t .w-thin{color:rgba(232,228,220,.32);}
body.dark .ct-eyelet{color:rgba(232,228,220,.48);}
/* infos bloc */
body.dark .ct-info-grid{
  background:rgba(232,228,220,.03);
  border-color:rgba(232,228,220,.12);
}
body.dark .ct-info-cell{border-bottom-color:rgba(232,228,220,.07);}
body.dark .ct-info-cell::after{background:#F5F2EC;}
body.dark .ct-info-cell:hover{background:transparent;}
body.dark .ct-info-cell:hover .ct-il{color:rgba(13,12,10,.82);}
body.dark .ct-info-cell:hover .ct-iv{color:#0D0C0A;}
body.dark .ct-info-cell:hover .ct-info-link{color:#0D0C0A;}
body.dark .ct-info-icon{
  background:rgba(232,228,220,.05);
  border-color:rgba(232,228,220,.14);
}
body.dark .ct-info-icon svg{color:rgba(232,228,220,.7);opacity:.7;}
body.dark .ct-info-cell:hover .ct-info-icon{border-color:rgba(13,12,10,.32);background:rgba(13,12,10,.10);}
body.dark .ct-info-cell:hover .ct-info-icon svg{opacity:1;color:#0D0C0A;}
body.dark .ct-il{color:rgba(232,228,220,.60);}
body.dark .ct-iv{color:#E8E4DC;}
body.dark .ct-iv a{color:#E8E4DC;}
body.dark .ct-iv a:hover{color:var(--v2);}
body.dark .ct-info-link{color:#E8E4DC;}
body.dark .ct-info-link:hover{color:var(--v2);}
/* formulaire */
body.dark .ct-form-header{border-bottom-color:rgba(232,228,220,.2);}
body.dark .ct-form-ref{color:rgba(232,228,220,.50);}
body.dark .ct-form-title{color:#E8E4DC;}
body.dark .cff{border-bottom-color:rgba(232,228,220,.12);}
body.dark .cfr:not(.full) .cff:first-child{border-right-color:rgba(232,228,220,.08);}
body.dark .cff label{color:rgba(232,228,220,.68);}
body.dark .cff input,body.dark .cff select,body.dark .cff textarea{
  color:#E8E4DC;
  border-bottom-color:rgba(232,228,220,.15);
  background:transparent;
}
body.dark .cff input::placeholder,body.dark .cff textarea::placeholder{color:rgba(232,228,220,.25);}
body.dark .cff input:focus,body.dark .cff select:focus{color:var(--v2);}
body.dark .cff select option{background:#1a1714;color:#E8E4DC;}
body.dark .ct-submit-note{color:rgba(232,228,220,.55);}
body.dark .cfbtn small{color:rgba(232,228,220,.48);}
body.dark .cfbtn:hover{color:#0D0C0A;}
/* tableaux process */
body.dark .ct-lab-element{border-color:rgba(232,228,220,.1);}
body.dark .ct-lab-head{background:rgba(232,228,220,.04);color:rgba(232,228,220,.35);}
body.dark .ct-lab-row{border-bottom-color:rgba(232,228,220,.06);color:rgba(232,228,220,.65);}
body.dark .ct-lab-ok{color:rgba(80,210,120,.85);}
body.dark .ct-lab-proc{color:var(--v2);}
body.dark .ct-lab-wait{color:rgba(232,228,220,.42);}

/* ── ALCHEMY — dark mode reinforcements (base already cold/dark) ── */
body.dark .alch-win{background:#0A0B12;border-color:rgba(140,155,200,.12);}
body.dark .ab{background:#0C0E16;border-color:rgba(140,155,200,.15);border-top:none;}
/* header barre — reste clair pour contraste tab */
body.dark .at{background:#F5F2EC;border-color:rgba(13,12,10,.18);border-bottom-color:transparent;}
body.dark .at-cell{border-right-color:rgba(13,12,10,.12);}
body.dark .at-ref{color:rgba(13,12,10,.45);}
body.dark .at-count{color:rgba(13,12,10,.82);}
body.dark .at-x{color:rgba(13,12,10,.35);}
body.dark .at-x:hover{color:rgba(13,12,10,.8);}
/* col gauche */
body.dark .al{border-right-color:rgba(140,155,200,.1);background:#0E1018;}
body.dark #dna-al{opacity:.1;}
body.dark .al-ref{color:rgba(150,165,210,.5);opacity:1;}
body.dark .al-title{color:rgba(200,212,240,.92);}
body.dark .al-title span{color:#C084FC;}
body.dark .al-inst{color:rgba(150,165,210,.65);}
body.dark .al-inst strong{color:#C084FC;}
body.dark .al-log-t{color:rgba(150,165,210,.28);border-bottom-color:rgba(140,155,200,.1);}
body.dark .al-log-item{color:#C084FC;}
/* centre — reinforce cold dot pattern */
body.dark .ac{
  background-color:#09090F;
  background-image:
    linear-gradient(180deg,rgba(0,0,0,.6) 0%,rgba(0,0,0,.15) 35%,transparent 65%),
    radial-gradient(ellipse 85% 50% at 50% 110%,rgba(91,14,175,.32) 0%,transparent 100%),
    radial-gradient(circle,rgba(140,160,220,.08) 1px,transparent 1px);
  background-size:auto,auto,4px 4px;
}
body.dark .ac-fire.lit::before{border-color:rgba(192,132,252,.5);box-shadow:inset 0 0 32px rgba(91,14,175,.28),0 0 26px rgba(91,14,175,.18);}
body.dark .ac::before,body.dark .ac::after{color:rgba(140,160,220,.22);}
body.dark .ac-res{border-top-color:rgba(140,155,200,.1);}
body.dark .r-n{color:#D4ADFF;}
body.dark .r-d{color:rgba(150,165,210,.58);}
body.dark .ac-lab{background:rgba(0,0,0,.35);border-top-color:rgba(140,155,200,.1);}
body.dark .ac-mix:not([disabled]):hover{background:var(--v);color:#F5F2EC;border-color:var(--v);box-shadow:0 0 22px rgba(91,14,175,.5);}
/* tubes — cold dark consistent */
body.dark .tc-dot{border-color:rgba(140,160,220,.22);}
body.dark .tc-nm{color:rgba(140,160,220,.45);}
body.dark .tc:hover .tc-nm{color:rgba(180,200,240,.88);}
body.dark .tcap{border-color:rgba(140,160,220,.22);}
body.dark .tg{background:rgba(8,12,24,.85);border-color:rgba(140,160,220,.2);}
body.dark .tg::after{background:rgba(200,220,255,.15);}
/* col droite — cold dark consistent */
body.dark .ar{border-left-color:rgba(140,155,200,.1);background:#06070D;}
body.dark .ar-head{color:rgba(140,155,200,.48);border-bottom-color:rgba(140,155,200,.1);}
body.dark .ar-slot{border-bottom-color:rgba(140,155,200,.08);}
body.dark .ar-slot:nth-child(odd){border-right-color:rgba(140,155,200,.06);}
body.dark .ar-slot:not(.found) .ar-slot-n{color:rgba(140,155,200,.32);}
body.dark .ar-slot:not(.found) .ar-slot-d{filter:blur(2.5px);opacity:.1;}
body.dark .ar-slot.found{background:rgba(91,14,175,.22);border-left-color:rgba(192,132,252,.8);}
body.dark .ar-slot.found .ar-slot-n{color:#D4ADFF;}
body.dark .ar-slot.celebrate{box-shadow:0 0 18px rgba(192,132,252,.28),inset 0 0 12px rgba(192,132,252,.08);}
body.dark .tg.depleted{opacity:.35;}
body.dark .ar-hint{color:rgba(192,132,252,.45);}
body.dark .tc.hint-partner .tg{border-color:rgba(192,132,252,.45) !important;}
body.dark .tc.hint-partner .tc-nm{color:rgba(192,132,252,.85);}
body.dark .ar-slot-n{color:rgba(180,195,230,.75);}
body.dark .ar-slot-d{color:rgba(140,155,200,.48);}
body.dark .ar-slot::before{color:rgba(140,155,200,.2);}
body.dark .ar-slot.found::before{color:rgba(192,132,252,.5);}
body.dark .ac-fire::before{background:radial-gradient(circle at 50% 82%,rgba(91,14,175,.14) 0%,transparent 68%);}
body.dark .al-inst{color:rgba(150,165,210,.68);}
body.dark .ldr-title{color:#E8E4DC;}
body.dark .ldr-title .ldr-t-dim{color:rgba(232,228,220,.35);}
body.dark .ldr-title .ldr-t-purple{color:#C084FC;}/* dark needs lighter purple for contrast */

/* ── FOOTER ── */
body.dark .ft-baseline{border-top-color:rgba(232,228,220,.08);}
body.dark .ft-copy{color:rgba(232,228,220,.28);}
/* Transitions dark mode ciblées */
body,
.hdr,.hdr-cell,
.hnav a,
.mob,
.view,
.hero,
.pf-footer,.pf-fc,
.wcat,.pr,
.case-h,.cbody,
.abr,.abl,
.alch-win,
.wp-doc,.wp-tab,
#ft,.ft-baseline,.ft-copy,
.logo-svg path,
button{
  transition:background-color .32s,color .32s,border-color .32s,fill .32s;
}
/* Mais PAS les éléments avec leur propre transition critique */
#site,#ldr,.view,.rv{transition:none;}
#site{transition:opacity .7s;}
#ldr{transition:opacity .5s;}
.rv{transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html,body{width:100%;height:100%;}
body{
  background:var(--cr);color:var(--ink);
  font-family:var(--mono);font-weight:400;
  font-size:clamp(14px,1.15vw,16px);
  overflow:hidden;cursor:none;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:none;background:none;border:none;color:inherit;}
::-webkit-scrollbar{width:2px;}
::-webkit-scrollbar-thumb{background:var(--v);}

/* ── CURSEUR LAB — croix + cercle orbital ── */
#cur{
  position:fixed;width:4px;height:4px;
  background:var(--v);border-radius:50%;
  pointer-events:none;z-index:9999;
  transform:translate(-50%,-50%);
}
#cur-h{
  position:fixed;width:18px;height:1px;
  background:var(--v);opacity:.55;
  pointer-events:none;z-index:9998;
  transform:translate(-50%,-50%);
  transition:width .14s,opacity .14s;
}
#cur-v{
  position:fixed;width:1px;height:18px;
  background:var(--v);opacity:.55;
  pointer-events:none;z-index:9998;
  transform:translate(-50%,-50%);
  transition:height .14s,opacity .14s;
}
/* cercle orbital — suit avec lag */
#cur-ring{
  position:fixed;
  width:32px;height:32px;
  border:1px solid var(--v);
  border-radius:50%;
  pointer-events:none;z-index:9997;
  transform:translate(-50%,-50%);
  opacity:.35;
  transition:width .22s,height .22s,opacity .22s,border-color .22s;
}
body.hov #cur-h{width:26px;opacity:.8;}
body.hov #cur-v{height:26px;opacity:.8;}
body.hov #cur-ring{width:48px;height:48px;opacity:.65;border-color:var(--v2);}
body.hov #cur{background:var(--v2);}
@media(hover:none){#cur,#cur-h,#cur-v,#cur-ring{display:none;}body{cursor:auto;}}

/* ── LOADER PROTOCOLE ── */
#ldr{
  position:fixed;inset:0;z-index:9000;
  background:var(--ink);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  grid-template-rows:1fr auto;
  transition:opacity .7s;
}
#ldr.out{opacity:0;pointer-events:none;}

/* LOGO SVG — centre */
.ldr-logo{
  grid-column:2;grid-row:1;
  display:flex;align-items:center;justify-content:center;
  padding:2rem;
}
.ldr-logo svg{
  width:clamp(80px,14vw,160px);height:auto;
  filter:drop-shadow(0 0 40px rgba(192,132,252,.18));
  animation:ldr-pulse 2.5s ease-in-out infinite;
}
@keyframes ldr-pulse{
  0%,100%{filter:drop-shadow(0 0 30px rgba(192,132,252,.15));opacity:.85;}
  50%{filter:drop-shadow(0 0 60px rgba(192,132,252,.45));opacity:1;}
}

/* COLONNE GAUCHE — process ADN */
.ldr-col-l{
  grid-column:1;grid-row:1;
  display:flex;flex-direction:column;justify-content:center;
  padding:3rem 2.5rem;
}
/* COLONNE DROITE — process créatif */
.ldr-col-r{
  grid-column:3;grid-row:1;
  display:flex;flex-direction:column;justify-content:center;
  padding:3rem 2.5rem;
}

.ldr-col-label{
  font-family:var(--mono);font-size:.34rem;letter-spacing:.25em;
  text-transform:uppercase;color:rgba(245,242,236,.18);
  margin-bottom:1rem;
}
.ldr-seq{
  font-family:var(--mono);font-size:.44rem;
  letter-spacing:.06em;color:rgba(245,242,236,.2);
  display:flex;flex-direction:column;gap:7px;
}
.ldr-seq span{
  display:flex;align-items:center;gap:8px;
  opacity:0;transform:translateY(8px);
  transition:opacity .45s var(--ease-pf),transform .45s var(--ease-pf),color .3s;
}
.ldr-seq span.vis{opacity:1;transform:none;}
.ldr-seq span.done{color:rgba(245,242,236,.22);transition:color .4s;}
.ldr-seq span.active{
  color:rgba(139,63,232,.95);
  text-shadow:0 0 18px rgba(192,132,252,.35);
}
.ldr-seq-dot{
  width:3px;height:3px;border-radius:50%;
  background:currentColor;flex-shrink:0;opacity:.7;
  transition:transform .3s;
}
.ldr-seq span.active .ldr-seq-dot{
  transform:scale(1.6);
  box-shadow:0 0 6px rgba(192,132,252,.6);
}

/* NOM — bas, toute la largeur */
.ldr-bottom{
  grid-column:1 / 4;grid-row:2;
  padding:1.2rem 2.5rem;
  display:flex;align-items:center;justify-content:space-between;
  border-top:1px solid rgba(245,242,236,.06);
}
.ldr-title{
  font-family:var(--grotesk);
  font-size:clamp(1.4rem,2.8vw,2.6rem);
  line-height:1;letter-spacing:-.03em;text-transform:uppercase;
  color:#F5F2EC;font-weight:700;
  white-space:nowrap;
}
.ldr-title span.ldr-t-dim{
  font-weight:200;opacity:.35;margin-right:.3em;
}
.ldr-title span.ldr-t-purple{
  color:#8B3FE8;
}
.ldr-copy{
  font-family:var(--mono);font-size:.42rem;font-weight:400;
  letter-spacing:.12em;opacity:.3;margin-left:.8em;
  vertical-align:middle;
}
.ldr-bar-label{
  font-family:var(--mono);font-size:.34rem;letter-spacing:.18em;
  text-transform:uppercase;color:rgba(245,242,236,.18);
  display:flex;justify-content:space-between;width:100%;
}
.ldr-bar-pct{color:rgba(139,63,232,.7);}
.ldr-bar{
  width:100%;height:1px;
  background:rgba(245,242,236,.06);overflow:hidden;
}
.ldr-fill{
  height:100%;width:0;background:linear-gradient(90deg,var(--v),var(--v3));
  transition:width .25s var(--ease-pf);
}

.hdr-ctl{display:none;}/* supprimé — remplacé par hdr-cell individuels */
.hctl-btn{
  display:flex;align-items:center;justify-content:center;
  background:none;border:none;
  font-family:var(--mono);font-size:.56rem;font-weight:500;
  letter-spacing:.12em;text-transform:uppercase;
  color:rgba(13,12,10,.42);
  cursor:none;
  transition:color .18s var(--ease-pf);
  padding:0;
}
.hctl-btn:hover{color:var(--v);}
.hctl-btn svg{stroke:currentColor;width:11px;height:11px;}

/* ── SITE SHELL ── */
#site{
  position:fixed;inset:0;
  display:flex;flex-direction:column;
  opacity:0;transition:opacity .7s;
  overflow:hidden;
}
#site.on{opacity:1;}

/* ── HEADER — CONTENEUR TRANSPARENT ── */
.hdr{
  position:absolute;
  top:max(12px,calc(env(safe-area-inset-top,0px) + 8px));left:12px;right:12px;
  height:56px;
  display:flex;flex-direction:row;
  align-items:stretch;
  gap:5px;
  z-index:300;
  /* Conteneur invisible — chaque cellule est son propre cristal */
  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border:none;
  border-radius:0;
  overflow:visible;
  box-shadow:none;
  pointer-events:none;
}
/* ── HEADER SEPARATOR — ligne fine sous le header (about + contact) ── */
.hdr-sep{
  position:absolute;
  top:calc(12px + 56px + 4px);
  left:0;right:0;
  height:1px;
  background:linear-gradient(90deg,transparent 0%,var(--rule2) 6%,var(--rule2) 94%,transparent 100%);
  z-index:50;
  pointer-events:none;
  opacity:.45;
}

/* Scrolled — les cristaux se renforcent légèrement */
.hdr--scrolled .hdr-cell,
.hdr--scrolled .hdr-cell-controls,
.hdr--scrolled .hnav a{
  background:rgba(245,242,236,.82);
  border-color:rgba(13,12,10,.12);
}

/* ── TRANSITIONS sur les éléments internes ── */
.hdr-cell,.hdr-cell-controls,.hdr-cell-burger,.hnav a{
  transition:color .2s var(--ease-pf),background .25s var(--ease-pf),
             border-color .25s var(--ease-pf);
}

/* ── LOGO CELL — cristal individuel ── */
.hdr-cell{
  display:flex;align-items:center;
  padding:0 1.2rem;
  border-radius:5px;
  background:rgba(245,242,236,.28);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  border:1px solid rgba(13,12,10,.09);
  box-shadow:none;
  pointer-events:all;
}

/* cellule nav — conteneur transparent (les liens ont leur propre cristal) */
.hdr-cell.hdr-nav-cell{
  flex:0 0 auto;
  background:transparent;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  border:none;
  border-radius:0;
  padding:0;
  gap:4px;
  display:flex;
  pointer-events:none;
  overflow:visible;
}

/* cellule contrôles fusionnée (FR + dark) — cristal unique */
.hdr-cell-controls{
  display:flex;align-items:center;
  gap:0;
  padding:0 1.2rem;
  margin-left:auto;
  border-radius:5px;
  background:rgba(245,242,236,.28);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  border:1px solid rgba(13,12,10,.09);
  box-shadow:none;
  pointer-events:all;
  position:relative;z-index:300;
}
.hdr-cell-controls .hctl-btn{
  padding:0 .7rem;
}
.hdr-ctl-sep{
  display:inline-block;
  width:1px;
  height:13px;
  background:rgba(13,12,10,.16);
  align-self:center;
  margin:0;
  flex-shrink:0;
}

/* anciennes cellules lang/dark — conservées pour compat, plus utilisées */
.hdr-cell-lang,.hdr-cell-dark{display:none;}

.hdr-cell-burger{
  display:none; /* masqué desktop — affiché mobile */
  padding:0 1rem;
  border-radius:5px;
  background:rgba(245,242,236,.28);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  border:1px solid rgba(13,12,10,.09);
  box-shadow:none;
  align-items:center;
  pointer-events:all;
  margin-left:auto;
}

/* logo */
.logo{
  font-family:var(--mono);font-size:.62rem;
  font-weight:500;letter-spacing:.18em;
  text-transform:uppercase;line-height:1.4;
}
.logo{display:flex;align-items:center;gap:9px;cursor:none;}
.logo-svg{height:28px;width:auto;flex-shrink:0;}
.logo-svg path{fill:#0D0C0A;}

/* ── NAV — chaque item = son propre bouton flottant ── */
.hnav{
  display:flex;gap:4px;list-style:none;
  align-items:stretch;
  height:100%;
  pointer-events:none;
}
.hnav li{display:flex;pointer-events:all;}

/* ── NAV ITEMS — chaque lien = son propre cristal ── */
.hnav a{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  height:100%;
  padding:0 14px;
  margin:0;
  border-radius:5px;
  background:rgba(245,242,236,.28);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  border:1px solid rgba(13,12,10,.09);
  box-shadow:none;
  font-family:var(--mono);
  font-size:.58rem;letter-spacing:.20em;text-transform:uppercase;
  font-weight:400;
  color:var(--ink);
  transition:color .2s var(--ease-pf),background .25s var(--ease-pf),border-color .2s var(--ease-pf);
  position:relative;
  overflow:hidden;
  isolation:isolate;
  cursor:none;
  pointer-events:all;
}
/* fill — left-origin wipe */
.hnav a::before{
  content:'';position:absolute;inset:0;
  background:var(--ink);transform:scaleX(0);transform-origin:left;
  transition:transform .3s var(--ease-pf);
  z-index:-1;
}
.hnav a:hover::before,.hnav a.on::before{transform:scaleX(1);}
.hnav a:hover,.hnav a.on{color:#F5F2EC;}
.hdr-status{
  display:flex;align-items:center;gap:8px;
  padding:0 1.8rem;
  font-size:.54rem;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(13,12,10,.65);
  border-left:1px solid var(--rule2);
}
.dot{width:4px;height:4px;background:var(--v2);border-radius:50%;animation:dp 2.4s infinite;}
@keyframes dp{0%,100%{opacity:.7}50%{opacity:.1}}
/* ── BURGER ICON ── */
.burger{display:none;flex-direction:column;gap:6px;padding:0 1.6rem;height:54px;min-width:48px;align-items:flex-end;justify-content:center;border-left:none;cursor:pointer;}
.burger span{display:block;width:22px;height:1.5px;background:var(--ink);border-radius:2px;transition:width .32s cubic-bezier(.22,1,.36,1),transform .32s cubic-bezier(.22,1,.36,1),opacity .22s ease;transform-origin:center;}
.burger span:nth-child(2){width:14px;}
.burger:hover span:nth-child(2){width:22px;}
body.dark .burger span{background:var(--v2);}
.burger.open span:nth-child(1){width:22px;transform:rotate(45deg) translate(5.5px,5.5px);}
.burger.open span:nth-child(2){opacity:0;transform:scaleX(0);}
.burger.open span:nth-child(3){width:22px;transform:rotate(-45deg) translate(5.5px,-5.5px);}
.burger:active{transform:scale(.92);}
a.logo{text-decoration:none;}

/* Bug: hide cursor + lock scroll when mob open */
body:has(.mob.open){overflow:hidden;}
body:has(.mob.open) #cur,
body:has(.mob.open) #cur-h,
body:has(.mob.open) #cur-v,
body:has(.mob.open) #cur-ring{opacity:0!important;transition:none;}

/* ── MOB MENU ── */
@keyframes mob-link-enter{from{opacity:0;transform:translateY(22px);clip-path:inset(0 100% 0 0)}to{opacity:1;transform:none;clip-path:inset(0)}}
@keyframes mob-fade-in{from{opacity:0}to{opacity:1}}

.mob{
  display:flex;flex-direction:column;
  position:fixed;inset:0;top:70px;z-index:250;
  overflow-y:auto;
  background-color:var(--cr);
  background-image:
    linear-gradient(rgba(13,12,10,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(13,12,10,.04) 1px,transparent 1px);
  background-size:36px 36px;
  border-top:1px solid rgba(13,12,10,.12);
  opacity:0;visibility:hidden;pointer-events:none;
  clip-path:inset(0 0 100% 0);
  transition:opacity .42s var(--ease-pf),visibility 0s .42s,clip-path .52s var(--ease-pf);
}
.mob.open{
  opacity:1;visibility:visible;pointer-events:auto;
  clip-path:inset(0);
  transition:opacity .32s var(--ease-pf),visibility 0s 0s,clip-path .55s var(--ease-pf);
}

/* ── Links ── */
.mob a{
  position:relative;
  height:clamp(84px,16vw,108px);flex-shrink:0;
  display:flex;align-items:center;gap:1.4rem;
  padding:0 2.2rem;
  font-family:var(--grotesk);font-size:clamp(1.7rem,6vw,2.4rem);
  font-weight:300;text-transform:uppercase;letter-spacing:-.015em;
  color:var(--ink);
  border-bottom:1px solid var(--rule);
  cursor:pointer;overflow:hidden;
  background:linear-gradient(to right,var(--ink) 50%,transparent 50%);
  background-size:200% 100%;background-position:100% 0;
  transition:background-position .38s var(--ease-pf),color .18s;
}
/* Specimen numbering via counter — uses ::before (accent bar moved to border-left) */
.mob{counter-reset:moblink;}
.mob a{counter-increment:moblink;border-left:0 solid var(--ink);transition:background-position .38s var(--ease-pf),color .18s,border-left-width .32s var(--ease-pf);}
.mob a:hover,.mob a:active{border-left-width:3px;}
/* Specimen number — replaces former accent bar pseudo */
.mob a::before{
  content:"0" counter(moblink) " —";
  font-family:var(--mono);font-size:.52rem;font-weight:400;
  letter-spacing:.18em;color:rgba(13,12,10,.32);
  flex-shrink:0;min-width:2.2rem;
  transition:color .22s,transform .32s var(--ease-pf);
}
.mob a:hover::before,.mob a:active::before{color:rgba(255,255,255,.7);transform:translateX(2px);}
.mob a:hover,.mob a:active{background-position:0 0;color:#F5F2EC;}
body.dark .mob a::before{color:rgba(192,132,252,.42);}
body.dark .mob a:hover::before{color:rgba(232,228,220,.7);}

/* Arrow */
.mob a::after{
  content:'→';margin-left:auto;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.05em;
  color:rgba(13,12,10,.28);flex-shrink:0;
  opacity:0;transform:translateX(-10px);
  transition:opacity .22s,transform .30s var(--ease-pf),color .18s;
}
.mob a:hover::after,.mob a:active::after{opacity:1;transform:translateX(0);color:rgba(255,255,255,.55);}

/* Staggered entrance — clip-path reveal + slide up */
.mob.open a{animation:mob-link-enter .58s var(--ease-pf) both;}
.mob.open a:nth-of-type(1){animation-delay:.18s;}
.mob.open a:nth-of-type(2){animation-delay:.26s;}
.mob.open a:nth-of-type(3){animation-delay:.34s;}
.mob.open .mob-ctl{animation:mob-link-enter .52s .44s var(--ease-pf) both;}
.mob.open .mob-ft{animation:mob-fade-in .5s .58s both;}

/* ── Controls row ── */
.mob-ctl{display:flex;gap:0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);margin-top:auto;}
.mob-ctl-btn{
  flex:1;padding:1.1rem 2rem;
  font-family:var(--mono);font-size:.58rem;font-weight:500;letter-spacing:.15em;
  background:none;border:none;border-right:1px solid var(--rule);
  color:rgba(13,12,10,.45);cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:.5rem;
  transition:color .18s,background .18s;
}
.mob-ctl-btn:last-child{border-right:none;}
.mob-ctl-btn:hover{color:var(--ink);background:rgba(13,12,10,.04);}
.mob-ctl-btn svg{stroke:currentColor;}
.mob-ft{padding:.7rem 2.2rem;font-family:var(--mono);font-size:.4rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(13,12,10,.22);}

/* ── Dark mode ── */
body.dark .mob{
  background-color:#0F0D0B;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:36px 36px;
  border-top-color:rgba(255,255,255,.14);
}
body.dark .mob a{color:rgba(232,228,220,.85);border-bottom-color:rgba(255,255,255,.06);border-left-color:rgba(255,255,255,.4);}
body.dark .mob a:hover,body.dark .mob a:active{color:#F5F2EC;}
body.dark .mob a::after{color:rgba(232,228,220,.35);}
body.dark .mob a:hover::after,body.dark .mob a:active::after{color:rgba(232,228,220,.6);}
body.dark .mob-ctl{border-color:rgba(255,255,255,.07);}
body.dark .mob-ctl-btn{color:rgba(232,228,220,.4);border-color:rgba(255,255,255,.07);}
body.dark .mob-ctl-btn:hover{color:rgba(232,228,220,.9);background:rgba(255,255,255,.06);}
body.dark .mob-ft{color:rgba(232,228,220,.18);}

/* ── VIEWS ── */
.view{display:none;flex:1;overflow:hidden;flex-direction:column;position:relative;}
#vc.view{overflow:hidden;}
.view.on{display:flex;}

/* ════════════════════════════════
   HOME
════════════════════════════════ */
#vh{flex-direction:column;overflow-y:auto;overflow-x:hidden;padding-bottom:0;}
.hero{
  flex:none;min-height:calc(100vh + 32px);min-height:calc(100dvh + 32px);position:relative;overflow:hidden;
  background:var(--cr);
  background-image:
    linear-gradient(var(--rule) 1px,transparent 1px),
    linear-gradient(90deg,var(--rule) 1px,transparent 1px);
  background-size:40px 40px;
}
/* dna-h canvas — hélix ADN toujours active */
#dna-h{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1;}

/* ── HERO MATRIX — 2 colonnes code terminal ─────────────── */
/* ── hero-matrix keyframes ─────────────────────── */
@keyframes hm-col-enter{
  from{ opacity:0; transform:translateY(10px); }
  to{   opacity:1; transform:translateY(0); }
}
@keyframes hm-new-in{
  0%  { text-shadow:0 0 10px currentColor; letter-spacing:.068em; }
  100%{ text-shadow:none; letter-spacing:.04em; }
}
/* ── hero-matrix container ──────────────────────── */
#hero-matrix{
  position:absolute;
  top:16px; left:0;
  width:clamp(300px,48%,660px);
  height:auto; /* driven by content, not a fixed tall box */
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  padding:0;
  pointer-events:none;
  z-index:1;
  overflow:hidden;
  padding-left:1.4rem;
}
/* column stagger entrance */
#hm-col-a{
  animation:hm-col-enter .72s var(--ease-pf) both;
  animation-delay:.42s;
}
#hm-col-b{
  animation:hm-col-enter .72s var(--ease-pf) both;
  animation-delay:.62s;
}
.hm-col{
  display:flex;
  flex-direction:column;
  justify-content:flex-start; /* lines anchor at TOP of container */
  overflow:hidden;
  padding-right:clamp(.6rem,1.2vw,1.4rem);
  /* soft entry from very top, solid body, fade at bottom (off-screen) */
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.45) 4%,#000 10%,#000 85%,rgba(0,0,0,.4) 95%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.45) 4%,#000 10%,#000 85%,rgba(0,0,0,.4) 95%,transparent 100%);
}
.hm-col:last-child{
  padding-right:0;
  padding-left:clamp(.6rem,1.2vw,1.4rem);
  border-left:1px solid rgba(91,14,175,.06);
}
body.dark .hm-col:last-child{border-left-color:rgba(139,63,232,.08);}

/* Lines — base */
.hm-line{
  font-family:var(--mono);
  font-size:clamp(.40rem,.88vw,.56rem);
  letter-spacing:.04em;
  line-height:1.65;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  /* floor 0.28 — aucune ligne invisible, gradient reste lisible .28→1.0 */
  opacity:max(0.28, var(--hm-o, .5));
  transition:opacity .65s var(--ease-pf);
}
/* flash when a new line arrives */
.hm-line.hm-new{
  animation:hm-new-in .55s var(--ease-pf) forwards;
}
/* Command lines — violet (no ::before — prefix handled by JS) */
.hm-line.hm-cmd{
  color:rgba(13,12,10,.52);
}
/* Comment lines — grey */
.hm-line.hm-cmt{
  color:rgba(13,12,10,.34);
  font-style:italic;
}
/* Dark mode */
body.dark .hm-line.hm-cmd{color:rgba(245,242,236,.42);}
body.dark .hm-line.hm-cmt{color:rgba(245,242,236,.26);}

/* Blinking cursor */
.hm-cursor{
  width:6px; height:.82em;
  background:var(--ink);
  margin-top:3px;
  display:inline-block;
  border-radius:1px;
  box-shadow:none;
  animation:blink .72s step-end infinite;
}
body.dark .hm-cursor{background:rgba(232,228,220,.6);box-shadow:none;}
/* hero-cells supprimé — remplacé par #hero-matrix */
#hero-cells{display:none;}
/* Le hero reçoit les events souris via le container */
.hero{cursor:none;}
/* ─── HDR BEACON — indicateur atmosphérique centré dans le header ─── */
.hdr-beacon{
  flex:1;
  display:flex;justify-content:center;align-items:center;
  position:relative;
  pointer-events:all;
  z-index:250;
  opacity:0;
  transition:opacity .7s .45s;
}
#site.on .hdr-beacon{opacity:1;}

/* ── TRIGGER — pill ── */
.hdrb-trigger{
  display:flex;align-items:center;gap:6px;
  padding:6px 16px 6px 12px;
  position:relative;overflow:hidden;
  background:rgba(245,242,236,.28);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  border:1px solid rgba(13,12,10,.09);
  border-radius:20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
  cursor:default;
  transition:background .32s var(--ease-pf),
             border-color .32s var(--ease-pf),
             box-shadow .32s var(--ease-pf),
             transform .28s var(--ease-pf);
}
/* specular glint — invisible au repos, sweep au hover */
.hdrb-trigger::before{
  content:'';
  position:absolute;top:0;left:-60%;
  width:55%;height:100%;
  background:linear-gradient(
    108deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.32) 40%,
    rgba(255,255,255,.08) 55%,
    rgba(255,255,255,0) 70%
  );
  pointer-events:none;
  opacity:0;
  transition:opacity .22s var(--ease-pf),
             left .42s var(--ease-pf);
}
/* HOVER */
.hdr-beacon:hover .hdrb-trigger{
  background:rgba(245,242,236,.58);
  border-color:rgba(204,204,204,.36);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.45),
    0 2px 8px rgba(204,204,204,.12),
    0 5px 22px rgba(204,204,204,.08);
  transform:translateY(-1px);
}
.hdr-beacon:hover .hdrb-trigger::before{
  opacity:1;
  left:110%;
}

/* DARK */
body.dark .hdrb-trigger{
  background:rgba(15,13,11,.35);
  border-color:rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
body.dark .hdr-beacon:hover .hdrb-trigger{
  background:rgba(10,8,7,.60);
  border-color:rgba(204,204,204,.28);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.10),
    0 2px 8px rgba(204,204,204,.15),
    0 5px 22px rgba(204,204,204,.08);
  transform:translateY(-1px);
}

/* ── LIVE DOT ── */
.hdrb-live-dot{
  width:6px;height:6px;border-radius:50%;
  background:rgba(204,204,204,.58);
  box-shadow:0 0 0 0 rgba(204,204,204,.28);
  position:relative;flex-shrink:0;display:inline-block;
  transition:background .32s var(--ease-pf),box-shadow .32s var(--ease-pf);
}
.hdr-beacon:hover .hdrb-live-dot{
  background:rgba(204,204,204,.92);
  box-shadow:0 0 7px 1px rgba(204,204,204,.22);
}
.hdrb-live-dot::after{
  content:'';position:absolute;inset:-3px;border-radius:50%;
  border:1px solid rgba(204,204,204,.28);
  animation:hdrb-ring 2.8s var(--ease-pf) infinite;
}
@keyframes hdrb-ring{
  0%{transform:scale(1);opacity:.55;}
  55%{transform:scale(2.2);opacity:0;}
  100%{transform:scale(2.2);opacity:0;}
}
body.dark .hdrb-live-dot{background:rgba(204,204,204,.55);box-shadow:0 0 0 0 rgba(204,204,204,.25);}
body.dark .hdr-beacon:hover .hdrb-live-dot{background:rgba(204,204,204,.90);box-shadow:0 0 7px 1px rgba(204,204,204,.22);}
body.dark .hdrb-live-dot::after{border-color:rgba(204,204,204,.28);}

/* ── FREQUENCY BARS — hover only ── */
.hdrb-bars{
  display:flex;
  align-items:flex-end;
  gap:1.5px;
  height:7px;
  width:0;
  flex-shrink:0;
  overflow:hidden;
  opacity:0;
  transition:width .28s var(--ease-pf),
             opacity .22s var(--ease-pf);
}
.hdrb-bars span{
  display:block;
  width:2px;
  min-width:2px;
  border-radius:1px;
  background:rgba(204,204,204,.72);
  transform-origin:bottom;
}
.hdrb-bars span:nth-child(1){
  height:40%;
  animation:hdrb-b1 1.5s ease-in-out infinite;
}
.hdrb-bars span:nth-child(2){
  height:100%;
  animation:hdrb-b2 1.1s ease-in-out infinite;
}
.hdrb-bars span:nth-child(3){
  height:55%;
  animation:hdrb-b3 1.8s ease-in-out infinite;
}
@keyframes hdrb-b1{
  0%,100%{transform:scaleY(1);}
  50%{transform:scaleY(.22);}
}
@keyframes hdrb-b2{
  0%,100%{transform:scaleY(.35);}
  42%{transform:scaleY(1);}
}
@keyframes hdrb-b3{
  0%,100%{transform:scaleY(.65);}
  58%{transform:scaleY(.18);}
}
/* Reveal on hover */
.hdr-beacon:hover .hdrb-bars{
  width:9px;
  opacity:1;
}
body.dark .hdrb-bars span{background:rgba(204,204,204,.78);}
body.dark .hdr-beacon:hover .hdrb-bars{opacity:1;width:9px;}

/* ── TRIGGER ::after — inner ring hover ── */
.hdrb-trigger::after{
  content:'';
  position:absolute;
  inset:2px;
  border-radius:17px;
  border:1px solid rgba(204,204,204,0);
  pointer-events:none;
  transition:border-color .32s var(--ease-pf),
             box-shadow .32s var(--ease-pf);
}
.hdr-beacon:hover .hdrb-trigger::after{
  border-color:rgba(204,204,204,.14);
  box-shadow:inset 0 0 10px rgba(204,204,204,.05);
}
body.dark .hdr-beacon:hover .hdrb-trigger::after{
  border-color:rgba(204,204,204,.18);
  box-shadow:inset 0 0 10px rgba(204,204,204,.08);
}

/* ── TIME ── */
.hdrb-time{
  font-family:var(--mono);font-size:.61rem;
  letter-spacing:.13em;text-transform:uppercase;
  color:rgba(13,12,10,.52);
  font-variant-numeric:tabular-nums;
  transition:color .28s var(--ease-pf),
             letter-spacing .28s var(--ease-pf);
}
.hdr-beacon:hover .hdrb-time{
  color:rgba(13,12,10,.84);
  letter-spacing:.16em;
}
body.dark .hdrb-time{color:rgba(232,228,220,.38);}
body.dark .hdr-beacon:hover .hdrb-time{color:rgba(232,228,220,.84);}

/* ── Panel — glass crystal gris clair ── */
.hdrb-panel{
  position:absolute;
  top:calc(100% + 6px);
  left:50%;
  transform:translateX(-50%) translateY(-6px) scale(0.983);
  transform-origin:top center;
  width:clamp(354px,36vw,430px);
  clip-path:inset(0 0 100% 0 round 14px);
  opacity:0;pointer-events:none;
  transition:clip-path .40s var(--ease-pf),
             opacity .20s var(--ease-pf),
             transform .40s var(--ease-pf);
  will-change:clip-path,transform;
  background:
    radial-gradient(ellipse 80% 38% at 68% -4%, rgba(255,235,160,.18) 0%, transparent 58%),
    radial-gradient(ellipse 55% 28% at 50% 0%, rgba(255,255,255,.13) 0%, transparent 52%),
    linear-gradient(176deg,
      rgba(8,44,132,1) 0%,
      rgba(20,86,180,1) 16%,
      rgba(42,130,210,1) 34%,
      rgba(60,154,228,1) 54%,
      rgba(66,162,232,1) 76%,
      rgba(60,154,224,1) 100%);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.42);
  border-radius:14px;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255,255,255,.82),
    inset 1.5px 0 0 0 rgba(255,255,255,.22),
    inset -1px 0 0 0 rgba(255,255,255,.10),
    inset 0 -1px 0 0 rgba(0,0,0,.10),
    0 28px 72px rgba(8,44,132,.36),
    0 10px 28px rgba(8,44,132,.20),
    0 2px 6px rgba(8,44,132,.12);
  overflow:hidden;z-index:25;
}
.hdrb-panel::before{
  content:'';position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 20%),
    radial-gradient(ellipse 50% 14% at 50% 0%, rgba(220,195,255,.18) 0%, transparent 100%);
  pointer-events:none;z-index:-1;
  border-radius:inherit;
}
body:not(.dark) .hdrb-panel::before{
  background:linear-gradient(180deg, rgba(255,255,255,.16) 0%, transparent 24%);
}
body.dark .hdrb-panel{
  background:
    linear-gradient(170deg,
      rgba(10,20,58,.94) 0%,
      rgba(16,30,72,.78) 14%,
      rgba(22,18,54,.52) 30%,
      rgba(28,14,44,.28) 48%,
      transparent 66%),
    radial-gradient(ellipse 100% 60% at 84% -8%,
      rgba(110,58,210,.38) 0%,
      rgba(78,32,168,.14) 45%,
      transparent 66%),
    rgba(10,8,18,.88);
  border-color:rgba(255,255,255,.09);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.11),
    inset 1px 0 0 0 rgba(255,255,255,.06),
    inset -1px 0 0 0 rgba(255,255,255,.03),
    0 32px 88px rgba(0,0,0,.58),
    0 12px 30px rgba(0,0,0,.26),
    0 0 0 1px rgba(192,132,252,.05);
}
body.dark .hdrb-panel::before{
  background:
    linear-gradient(158deg, rgba(255,255,255,.07) 0%, transparent 44%),
    radial-gradient(ellipse 74% 32% at 50% 0%, rgba(192,132,252,.11) 0%, transparent 100%),
    radial-gradient(ellipse 42% 50% at 82% 100%, rgba(139,63,232,.07) 0%, transparent 100%);
}
.hdr-beacon:hover .hdrb-panel{
  clip-path:inset(0 0 0% 0 round 14px);
  opacity:1;pointer-events:all;
  transform:translateX(-50%) translateY(0) scale(1);
}

/* ── Top accent strip — crystal edge highlight ── */
.hdrb-accent-strip{
  height:1px;flex-shrink:0;
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.46) 12%,
    rgba(255,255,255,.76) 50%,
    rgba(255,255,255,.46) 88%,
    transparent 100%
  );
  pointer-events:none;
}
body.dark .hdrb-accent-strip{
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.11) 12%,
    rgba(255,255,255,.20) 50%,
    rgba(255,255,255,.11) 88%,
    transparent 100%
  );
}

/* Scanline animée — crystal light sweep */
.hdrb-scan{
  position:absolute;top:0;left:-40%;
  width:36%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
  pointer-events:none;z-index:2;
}
.hdr-beacon:hover .hdrb-scan{animation:hdrb-scan-anim 3.5s .06s linear infinite;}
@keyframes hdrb-scan-anim{
  0%  {left:-40%;opacity:0;}
  2%  {opacity:1;}
  18% {left:120%;opacity:0;}
  100%{left:120%;opacity:0;}
}
body.dark .hdrb-scan{background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);}

/* ── Corner marks — L-brackets ── */
.hdrb-corner{
  position:absolute;width:8px;height:8px;
  pointer-events:none;opacity:0;
  transition:opacity .28s var(--ease-pf);
}
.hdrb-corner--tl{
  top:6px;left:6px;
  border-top:1px solid rgba(160,155,148,.30);
  border-left:1px solid rgba(160,155,148,.30);
}
.hdrb-corner--br{
  bottom:6px;right:6px;
  border-bottom:1px solid rgba(160,155,148,.30);
  border-right:1px solid rgba(160,155,148,.30);
}
.hdr-beacon:hover .hdrb-corner{opacity:1;transition-delay:.40s;}
body.dark .hdrb-corner--tl,
body.dark .hdrb-corner--br{border-color:rgba(200,195,190,.18);}

/* ── Header : titre + badge ── */
.hdrb-hd{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 17px 8px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
body.dark .hdrb-hd{border-bottom-color:rgba(255,255,255,.07);}

/* ── Atmospheric panel — ALL TEXT WHITE (light mode) ── */
body:not(.dark) .hdrb-panel{color:rgba(255,255,255,.88);}
/* Header zone */
body:not(.dark) .hdrb-panel .hdrb-title{color:rgba(255,255,255,.92);}
body:not(.dark) .hdrb-panel .hdrb-live-badge{color:rgba(255,255,255,.95);}
body:not(.dark) .hdrb-panel .hdrb-pulse{background:rgba(255,255,255,1);}
body:not(.dark) .hdrb-panel .hdrb-pulse::after{border-color:rgba(255,255,255,.42);}
body:not(.dark) .hdrb-panel .hdrb-weather-ico{color:rgba(255,255,255,.82);}
body:not(.dark) .hdrb-panel .hdrb-hd{border-bottom-color:rgba(255,255,255,.14);}
/* Coords zone */
body:not(.dark) .hdrb-panel .hdrb-coords-row{color:rgba(255,255,255,.92);}
body:not(.dark) .hdrb-panel .hdrb-coord-ico{color:rgba(255,255,255,.58);}
body:not(.dark) .hdrb-panel .hdrb-corner--tl,
body:not(.dark) .hdrb-panel .hdrb-corner--br{border-color:rgba(255,255,255,.35);}
body:not(.dark) .hdrb-panel .hdrb-moon-label{color:rgba(255,255,255,.88);}
body:not(.dark) .hdrb-panel .hdrb-moon .moon-fill{fill:rgba(255,255,255,.92);}
body:not(.dark) .hdrb-panel .hdrb-moon .moon-outline{stroke:rgba(255,255,255,.65);}
body:not(.dark) .hdrb-panel .hdrb-sun-label{color:rgba(255,255,255,.88);}
body:not(.dark) .hdrb-panel .hdrb-viz-sep{background:rgba(255,255,255,.28);}
body:not(.dark) .hdrb-panel .hdrb-sun .arc-track{stroke:rgba(255,255,255,.25);}
body:not(.dark) .hdrb-panel .hdrb-sun .arc-traveled{stroke:rgba(255,255,255,.72);}
body:not(.dark) .hdrb-panel .hdrb-sun .arc-marker{fill:rgba(255,255,255,.45);}
/* Metrics zone — labels et icônes lisibles sur fond bleu */
body:not(.dark) .hdrb-panel .hdrb-key{color:rgba(255,255,255,.84)!important;}
body:not(.dark) .hdrb-panel .hdrb-row:hover .hdrb-key{color:rgba(255,255,255,1)!important;}
body:not(.dark) .hdrb-panel .hdrb-ico{color:rgba(255,255,255,.80)!important;}
body:not(.dark) .hdrb-panel .hdrb-row:hover .hdrb-ico{color:rgba(255,255,255,1)!important;}
body:not(.dark) .hdrb-panel .hdrb-val{color:rgba(255,255,255,.98)!important;}
body:not(.dark) .hdrb-panel .hdrb-row:hover .hdrb-val{color:rgba(255,255,255,1)!important;}
body:not(.dark) .hdrb-panel .hdrb-val-fl{color:rgba(255,255,255,1)!important;opacity:.72!important;}
body:not(.dark) .hdrb-panel .hdrb-gauge{background:rgba(255,255,255,.30)!important;}
body:not(.dark) .hdrb-panel .hdrb-metrics{border-top-color:rgba(255,255,255,.18);}
body:not(.dark) .hdrb-panel .hdrb-metrics .hdrb-row:first-child{border-bottom-color:rgba(255,255,255,.20)!important;}
body:not(.dark) .hdrb-panel .hdrb-row:hover::before{background:rgba(255,255,255,.11);}
body:not(.dark) .hdrb-panel .hdrb-coord-ico{color:rgba(255,255,255,.72);}
/* Footer */
body:not(.dark) .hdrb-panel .hdrb-ft{color:rgba(255,255,255,.65);border-bottom-color:rgba(255,255,255,.18)!important;}
body:not(.dark) .hdrb-panel .hdrb-ft-label{color:rgba(255,255,255,.62);}
/* Gauge fills — désaturées en blanc au repos, couleur au hover */
body:not(.dark) .hdrb-panel .hdrb-fill{
  filter:saturate(0) brightness(2.2) opacity(.72);
  transition:filter .35s cubic-bezier(.22,1,.36,1);
}
body:not(.dark) .hdrb-panel .hdrb-row:hover .hdrb-fill{
  filter:none;
}
/* °F toggle — white pour fond atmosphérique */
body:not(.dark) .hdrb-panel .ht-conv{
  --htc-fg: rgba(255,255,255,.62);
  --htc-fg-inv: rgba(8,44,132,.95);
  --htc-bg-inv: rgba(255,255,255,.92);
  --htc-halo: rgba(255,255,255,.28);
}

/* ── Weather condition gradients — atmospheric full-panel (light mode) ── */
/* Partly cloudy — steel blue diffuse veil */
body:not(.dark) .hdrb-panel.hdrb--pcloudy{
  background:linear-gradient(175deg,
    rgba(50,68,98,1) 0%,
    rgba(72,96,132,1) 20%,
    rgba(90,118,155,1) 42%,
    rgba(102,130,168,1) 65%,
    rgba(108,136,172,1) 85%,
    rgba(104,132,168,1) 100%);
}
/* Overcast — pewter ceiling */
body:not(.dark) .hdrb-panel.hdrb--cloud{
  background:linear-gradient(175deg,
    rgba(52,60,72,1) 0%,
    rgba(72,80,92,1) 26%,
    rgba(86,95,108,1) 54%,
    rgba(92,102,115,1) 78%,
    rgba(88,98,112,1) 100%);
}
/* Fog — milky cotton atmosphere */
body:not(.dark) .hdrb-panel.hdrb--fog{
  background:linear-gradient(175deg,
    rgba(80,82,88,1) 0%,
    rgba(102,104,110,1) 26%,
    rgba(116,118,125,1) 54%,
    rgba(122,124,131,1) 78%,
    rgba(118,120,127,1) 100%);
}
/* Rain — moody steel-slate */
body:not(.dark) .hdrb-panel.hdrb--rain{
  background:linear-gradient(175deg,
    rgba(20,36,62,1) 0%,
    rgba(32,56,88,1) 20%,
    rgba(44,72,108,1) 42%,
    rgba(52,84,120,1) 65%,
    rgba(56,88,124,1) 85%,
    rgba(52,84,118,1) 100%);
}
/* Snow — icy crystalline blue */
body:not(.dark) .hdrb-panel.hdrb--snow{
  background:linear-gradient(175deg,
    rgba(52,82,132,1) 0%,
    rgba(72,108,162,1) 22%,
    rgba(90,128,180,1) 45%,
    rgba(100,140,190,1) 68%,
    rgba(105,145,194,1) 88%,
    rgba(100,140,190,1) 100%);
}
/* Storm — dramatic dark electric slate */
body:not(.dark) .hdrb-panel.hdrb--storm{
  background:linear-gradient(175deg,
    rgba(8,12,28,1) 0%,
    rgba(14,20,44,1) 20%,
    rgba(22,30,60,1) 42%,
    rgba(28,38,72,1) 65%,
    rgba(32,44,78,1) 85%,
    rgba(28,40,72,1) 100%);
}

.hdrb-hd-right{display:flex;align-items:center;gap:7px;}
/* Weather condition icon — inline SVG, matches lab icon style */
.hdrb-weather-ico{
  display:inline-flex;align-items:center;
  font-family:var(--mono);font-size:.50rem;font-weight:500;
  letter-spacing:.05em;
  color:rgba(13,12,10,.7);
  opacity:0;transform:scale(.8);
  transition:opacity .30s var(--ease-pf), transform .30s var(--ease-pf);
  flex-shrink:0;
}
.hdrb-weather-ico:not(:empty){opacity:1;transform:scale(1);}
body.dark .hdrb-weather-ico{color:rgba(232,228,220,.7);}

.hdrb-title{
  font-family:var(--mono);font-size:.52rem;
  letter-spacing:.20em;text-transform:uppercase;
  color:rgba(13,12,10,.58);
}
body.dark .hdrb-title{color:rgba(232,228,220,.55);}

.hdrb-live-badge{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--mono);font-size:.47rem;
  letter-spacing:.20em;text-transform:uppercase;
  color:rgba(13,12,10,.82);
}
body.dark .hdrb-live-badge{color:rgba(232,228,220,.78);}

.hdrb-pulse{
  width:6px;height:6px;border-radius:50%;
  background:rgba(13,12,10,.78);
  position:relative;flex-shrink:0;display:inline-block;
}
.hdrb-pulse::after{
  content:'';position:absolute;inset:-3px;border-radius:50%;
  /* Ring outline seulement — pas de fond rempli */
  border:1px solid rgba(13,12,10,.42);
  animation:hdrb-pulse 2.4s var(--ease-pf) infinite;
}
@keyframes hdrb-pulse{
  0%{transform:scale(1);opacity:.65;}
  65%{transform:scale(2.6);opacity:0;}
  100%{transform:scale(2.6);opacity:0;}
}
body.dark .hdrb-pulse{background:rgba(232,228,220,.80);}
body.dark .hdrb-pulse::after{border-color:rgba(232,228,220,.42);}

/* ── Coords — compact, intégré sous le titre ── */
.hdrb-coords-row{
  font-family:var(--mono);font-size:.60rem;
  letter-spacing:.10em;text-transform:uppercase;
  color:rgba(13,12,10,.62);
  padding:6px 17px 7px;
  display:flex;align-items:center;gap:8px;
  opacity:0;transform:translateY(3px);
  transition:opacity .22s var(--ease-pf),
             transform .22s var(--ease-pf);
}
.hdr-beacon:hover .hdrb-coords-row{opacity:1;transform:translateY(0);transition-delay:.16s;}
body.dark .hdrb-coords-row{color:rgba(232,228,220,.38);}
/* Typewriter scanning animation on coords text */
.hdrb-coord-text{
  display:inline-block;white-space:nowrap;
}
/* Animation typewriter retirée — PARIS toujours visible en entier */

/* Crosshair icon in coords */
.hdrb-coord-ico{flex-shrink:0;color:rgba(120,115,108,.48);}

/* ── Atmos viz — sparkline 24h + sun arc ── */
.hdrb-atmos-viz{
  margin-left:auto;
  display:flex;align-items:center;gap:9px;
  opacity:0;transform:translateY(2px);
  transition:opacity .34s var(--ease-pf) .28s,
             transform .34s var(--ease-pf) .28s;
  pointer-events:none;
}
.hdr-beacon:hover .hdrb-atmos-viz{opacity:1;transform:translateY(0);}
/* Sun group — arc + day/night label */
.hdrb-sun-wrap{
  display:flex;align-items:center;gap:6px;
  flex-shrink:0;
}
.hdrb-sun{
  display:block;
  width:104px;height:18px;
  overflow:visible;
}
.hdrb-sun-label{
  font-family:var(--mono);
  font-size:.58rem;
  font-weight:500;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:rgba(13,12,10,.82);
  white-space:nowrap;
  line-height:1;
}
body.dark .hdrb-sun-label{color:rgba(232,228,220,.65);}
/* Moon group — silhouette + abbreviated label */
.hdrb-moon-wrap{
  display:flex;align-items:center;gap:6px;
  flex-shrink:0;
}
.hdrb-moon-label{
  font-family:var(--mono);
  font-size:.58rem;
  font-weight:500;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:rgba(13,12,10,.82);
  white-space:nowrap;
  line-height:1;
}
body.dark .hdrb-moon-label{color:rgba(232,228,220,.65);}
/* Moon phase — silhouette style (bold filled shape, no background disc) */
.hdrb-moon{
  display:block;
  width:18px;height:18px;
  overflow:visible;
  flex-shrink:0;
}
.hdrb-moon .moon-fill{
  fill:rgba(13,12,10,.92);
  transition:d .6s cubic-bezier(.32,.72,0,1);
}
.hdrb-moon .moon-outline{
  fill:none;
  stroke:rgba(13,12,10,.62);
  stroke-width:.65;
  display:block;
}
/* New moon: empty outline circle only (no fill) */
.hdrb-moon.is-newmoon .moon-fill{display:none;}
.hdrb-moon.is-newmoon .moon-outline{display:block;}
/* Tiny separator between spark and sun */
.hdrb-viz-sep{
  width:1px;height:13px;
  background:rgba(13,12,10,.14);
  align-self:center;
  flex-shrink:0;
}
/* Sun arc */
.hdrb-sun .arc-track{
  fill:none;
  stroke:rgba(13,12,10,.32);
  stroke-width:.55;
  stroke-dasharray:1 1.4;
}
.hdrb-sun .arc-traveled{
  fill:none;
  stroke:rgba(13,12,10,.82);
  stroke-width:.95;
  stroke-linecap:round;
  stroke-dasharray:100;
  stroke-dashoffset:100;
  transition:stroke-dashoffset 1.2s cubic-bezier(.32,.72,0,1);
}
.hdrb-sun .arc-disc{
  fill:#f5b942;
  filter:drop-shadow(0 0 1.5px rgba(245,185,66,.7))
         drop-shadow(0 0 0.5px rgba(245,185,66,.9));
  transition:cx .8s cubic-bezier(.32,.72,0,1),
             cy .8s cubic-bezier(.32,.72,0,1),
             opacity .3s var(--ease-pf);
}
.hdrb-sun.is-night .arc-disc{
  fill:#c9d4e3;
  filter:drop-shadow(0 0 1.5px rgba(201,212,227,.6));
}
.hdrb-sun .arc-marker{
  fill:rgba(13,12,10,.28);
}
/* Dark mode */
body.dark .hdrb-viz-sep{background:rgba(232,228,220,.16);}
body.dark .hdrb-sun .arc-track{stroke:rgba(232,228,220,.16);}
body.dark .hdrb-sun .arc-traveled{stroke:rgba(232,228,220,.55);}
body.dark .hdrb-sun .arc-marker{fill:rgba(232,228,220,.32);}
body.dark .hdrb-moon .moon-fill{
  fill:rgba(232,228,220,.85);
}
body.dark .hdrb-moon .moon-outline{stroke:rgba(232,228,220,.65);}

body.dark .hdrb-coord-ico{color:rgba(200,195,190,.42);}

/* ── Metrics ── */
.hdrb-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-template-rows:auto auto;
  padding:0 0 6px;
  border-top:1px solid rgba(13,12,10,.10);
}
body.dark .hdrb-metrics{border-top-color:rgba(255,255,255,.06);}

.hdrb-row{
  display:grid;grid-template-columns:55px 1fr 96px;
  align-items:center;gap:10px;
  padding:8px 5px 8px 9px;
  border-radius:5px;
  position:relative;
  transition:background .18s var(--ease-pf),
             opacity .18s var(--ease-pf),
             transform .18s var(--ease-pf);
  cursor:default;
  opacity:0;transform:translateY(4px);
}
/* Left accent bar — reveals on hover */
.hdrb-row::before{
  content:'';
  position:absolute;left:0;top:22%;bottom:22%;
  width:2px;border-radius:1px;
  background:rgba(120,115,108,.45);
  opacity:0;transform:scaleY(.4);
  transition:opacity .2s var(--ease-pf),
             transform .2s var(--ease-pf);
  transform-origin:center;
}
.hdrb-row:hover::before{opacity:1;transform:scaleY(1);}
body.dark .hdrb-row::before{background:rgba(200,195,190,.40);}
.hdrb-row:hover{
  background:rgba(255,255,255,.44);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.42);
}
body.dark .hdrb-row:hover{
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);
}
/* UV / AIR / HUM — pas de surbrillance blanche au hover */
.hdrb-metrics .hdrb-row:not(:first-child):hover{
  background:transparent;
  box-shadow:none;
}

/* Stagger row entrance */
.hdr-beacon:hover .hdrb-metrics .hdrb-row:nth-child(1){
  animation:hdrb-row-in .32s var(--ease-pf) .18s forwards;
}
.hdr-beacon:hover .hdrb-metrics .hdrb-row:nth-child(2){
  animation:hdrb-row-in .32s var(--ease-pf) .24s forwards;
}
.hdr-beacon:hover .hdrb-metrics .hdrb-row:nth-child(3){
  animation:hdrb-row-in .32s var(--ease-pf) .30s forwards;
}
@keyframes hdrb-row-in{
  from{opacity:0;transform:translateY(5px) translateX(-4px);}
  to{opacity:1;transform:translateY(0) translateX(0);}
}

/* Sur hover : la valeur s'intensifie */
.hdrb-row:hover .hdrb-val{color:rgba(13,12,10,.95);}
body.dark .hdrb-row:hover .hdrb-val{color:rgba(245,242,236,.95);}

.hdrb-key{
  font-family:var(--mono);font-size:.44rem;
  letter-spacing:.16em;text-transform:uppercase;
  color:rgba(13,12,10,.78);
  transition:color .18s var(--ease-pf);
  display:flex;align-items:center;gap:5px;
}
.hdrb-row:hover .hdrb-key{color:rgba(13,12,10,.92);}
body.dark .hdrb-key{color:rgba(232,228,220,.62);}
body.dark .hdrb-row:hover .hdrb-key{color:rgba(232,228,220,.88);}

/* Metric icons */
.hdrb-ico{
  flex-shrink:0;
  color:rgba(13,12,10,1);
  transition:color .18s var(--ease-pf);
}
.hdrb-row:hover .hdrb-ico{color:rgba(13,12,10,.85);}
body.dark .hdrb-ico{color:rgba(232,228,220,.85);}
body.dark .hdrb-row:hover .hdrb-ico{color:rgba(245,242,236,1);}

.hdrb-gauge{
  height:7px;background:rgba(0,0,0,.06);
  border-radius:3.5px;overflow:hidden;position:relative;
}
body.dark .hdrb-gauge{background:rgba(255,255,255,.08);}

.hdrb-fill{
  position:absolute;top:0;left:0;height:100%;width:100%;
  border-radius:3.5px;
  clip-path:inset(0 100% 0 0 round 3.5px);
  transition:clip-path .75s var(--ease-pf), filter .38s cubic-bezier(.22,1,.36,1);
}
body:not(.dark) .hdrb-panel .hdrb-row:hover .hdrb-fill{
  filter:none;
}
/* TEMP : cyan électrique → ambre doré → rouge corail
   Complémentaires du bleu → lisibilité max sur fond cerulean */
#hbf-temp{
  background:linear-gradient(90deg,
    #67E8F9 0%,
    #67E8F9 8%,
    #FCD34D 48%,
    #F43F5E 80%,
    #F43F5E 100%);
}
/* UV : lime → jaune vif → orange brûlé → fuchsia UV */
#hbf-uv{
  background:linear-gradient(90deg,
    #86EFAC 0%,
    #86EFAC 8%,
    #FDE047 35%,
    #FB923C 62%,
    #D946EF 88%,
    #D946EF 100%);
}
/* AIR : emerald pur → ambre → orange → rose alarme */
#hbf-aqi{
  background:linear-gradient(90deg,
    #34D399 0%,
    #34D399 8%,
    #FCD34D 38%,
    #F97316 65%,
    #F43F5E 88%,
    #F43F5E 100%);
}
/* HUM : miel chaud → lilas → sky teal */
#hbf-hum{
  background:linear-gradient(90deg,
    #FDE68A 0%,
    #FDE68A 8%,
    #C084FC 45%,
    #22D3EE 78%,
    #22D3EE 100%);
}
/* Reveal to --pct on hover */
.hdr-beacon:hover .hdrb-row:nth-child(1) .hdrb-fill{
  clip-path:inset(0 calc(100% - var(--pct,0%)) 0 0 round 3px);
  transition-delay:.12s;
}
.hdr-beacon:hover .hdrb-row:nth-child(2) .hdrb-fill{
  clip-path:inset(0 calc(100% - var(--pct,0%)) 0 0 round 3px);
  transition-delay:.22s;
}
.hdr-beacon:hover .hdrb-row:nth-child(3) .hdrb-fill{
  clip-path:inset(0 calc(100% - var(--pct,0%)) 0 0 round 3px);
  transition-delay:.32s;
}
.hdr-beacon:hover .hdrb-row:nth-child(4) .hdrb-fill{
  clip-path:inset(0 calc(100% - var(--pct,0%)) 0 0 round 3px);
  transition-delay:.42s;
}
.hdr-beacon:hover .hdrb-metrics .hdrb-row:nth-child(4){
  animation:hdrb-row-in .32s var(--ease-pf) .36s forwards;
}

/* ── Gauge shimmer — light sweep after fill ── */
.hdrb-gauge::after{
  content:'';
  position:absolute;top:0;left:0;height:100%;width:40%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
  border-radius:3px;
  opacity:0;transform:translateX(-100%);
  pointer-events:none;
}
.hdr-beacon:hover .hdrb-row:nth-child(1) .hdrb-gauge::after{
  animation:hdrb-shimmer .52s .92s cubic-bezier(0.22,1,.36,1) forwards;
}
.hdr-beacon:hover .hdrb-row:nth-child(2) .hdrb-gauge::after{
  animation:hdrb-shimmer .52s 1.02s cubic-bezier(0.22,1,.36,1) forwards;
}
.hdr-beacon:hover .hdrb-row:nth-child(3) .hdrb-gauge::after{
  animation:hdrb-shimmer .52s 1.12s cubic-bezier(0.22,1,.36,1) forwards;
}
.hdr-beacon:hover .hdrb-row:nth-child(4) .hdrb-gauge::after{
  animation:hdrb-shimmer .52s 1.22s cubic-bezier(0.22,1,.36,1) forwards;
}
@keyframes hdrb-shimmer{
  0%{transform:translateX(-100%);opacity:0;}
  8%{opacity:1;}
  92%{opacity:1;}
  100%{transform:translateX(280%);opacity:0;}
}

/* Valeur — toujours noir (override JS semantic colors) ── */
.hdrb-val{
  font-family:var(--mono);font-size:.60rem;
  font-weight:600;letter-spacing:.03em;
  text-transform:uppercase;
  color:rgba(13,12,10,.92) !important;
  text-align:right;white-space:nowrap;
  transition:color .28s var(--ease-pf);
}
body.dark .hdrb-val{color:rgba(232,228,220,.90) !important;}
/* Feels-like subscript inside TEMP val */
.hdrb-val-fl{
  display:block;
  font-size:.40rem;font-weight:400;
  letter-spacing:.06em;
  opacity:.52;margin-top:1px;
}
/* Temperature unit toggle — clic pour convertir °C ↔ °F */
#hbv-temp{cursor:pointer;}
.ht-conv{
  --htc-fg: rgba(13,12,10,.55);
  --htc-fg-inv: rgba(245,242,236,.96);
  --htc-bg-inv: rgba(13,12,10,.90);
  --htc-halo: rgba(13,12,10,.35);
  position:relative;
  display:inline-block;
  margin-left:4px;
  font-size:.60em;font-weight:500;
  color:var(--htc-fg);
  background:transparent;
  border:1px solid currentColor;
  border-radius:2.5px;
  padding:0 2.5px;
  vertical-align:middle;
  line-height:1.5;
  box-shadow:0 0 0 0 transparent;
  transition:color .22s var(--ease-pf),
             background-color .22s var(--ease-pf),
             border-color .22s var(--ease-pf),
             box-shadow .22s var(--ease-pf),
             transform .22s var(--ease-pf);
}
#hbv-temp:hover .ht-conv,
.ht-conv:hover{
  background-color:var(--htc-bg-inv);
  color:var(--htc-fg-inv);
  border-color:var(--htc-bg-inv);
  box-shadow:0 0 0 1.5px rgba(13,12,10,.10),
             0 0 8px 2px var(--htc-halo);
  transform:scale(1.12);
}
body.dark .ht-conv{
  --htc-fg: rgba(232,228,220,.6);
  --htc-fg-inv: rgba(13,12,10,.94);
  --htc-bg-inv: rgba(232,228,220,.94);
  --htc-halo: rgba(192,132,252,.40);
}
@keyframes hdrb-flash{
  0%{opacity:.35;transform:scale(.94);}
  60%{opacity:1;transform:scale(1.04);}
  100%{opacity:1;transform:scale(1);}
}
.hdrb-val--flash{animation:hdrb-flash .28s var(--ease-pf) forwards;}

/* ── prefers-reduced-motion ── */
@media(prefers-reduced-motion:reduce){
  .hdrb-panel,.hdrb-row,.hdrb-fill,.hdrb-gauge::after,.hdrb-scan{
    animation-duration:0.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:0.01ms!important;
  }
}

/* ── Footer — source label + blinking cursor ── */
.hdrb-ft{
  display:flex;align-items:center;justify-content:space-between;
  padding:3px 17px 4px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
body.dark .hdrb-ft{border-bottom-color:rgba(255,255,255,.07);}
.hdrb-ft-label{
  font-family:var(--mono);font-size:.44rem;
  letter-spacing:.18em;text-transform:uppercase;
  color:rgba(13,12,10,.52);
}
body.dark .hdrb-ft-label{color:rgba(232,228,220,.48);}
.hdrb-cursor{
  font-family:var(--mono);font-size:.44rem;
  color:rgba(120,115,108,.42);
  animation:hdrb-blink 1.1s step-start infinite;
}
body.dark .hdrb-cursor{color:rgba(192,132,252,.55);}
@keyframes hdrb-blink{
  0%,100%{opacity:1;}
  50%{opacity:0;}
}

/* ── Glass upgrade — noise grain over surface ── */
.hdrb-panel::after{
  content:'';position:absolute;inset:0;
  border-radius:inherit;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:200px 200px;
  opacity:.032;mix-blend-mode:overlay;
  pointer-events:none;z-index:1;
}

/* ── Dark mode — violet ambient bloom on open ── */
body.dark .hdr-beacon:hover .hdrb-panel{
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,.11),
    inset 1px 0 0 0 rgba(255,255,255,.06),
    0 32px 88px rgba(0,0,0,.58),
    0 12px 30px rgba(0,0,0,.26),
    0 0 0 1px rgba(192,132,252,.06),
    0 44px 80px -8px rgba(91,14,175,.22);
}

/* ── TEMP — hero pleine largeur ── */
.hdrb-metrics .hdrb-row:first-child{
  grid-column:1/-1;
  display:flex;
  align-items:baseline;
  gap:0;
  padding:12px 18px 12px;
  background:transparent;
  border-radius:0;
  margin-bottom:0;
  border-bottom:1px solid rgba(13,12,10,.10);
}
body.dark .hdrb-metrics .hdrb-row:first-child{
  background:transparent;
  border-bottom-color:rgba(255,255,255,.06);
}
/* Key label — caption tier (inverted with value) */
.hdrb-metrics .hdrb-row:first-child .hdrb-key{
  font-size:.70rem;letter-spacing:.22em;
  font-weight:700;opacity:.72;align-self:center;
  flex-shrink:0;
}
/* Hero gauge — gradient bar between TEMP label and big value */
.hdrb-metrics .hdrb-row:first-child .hdrb-gauge{
  flex:1;
  height:4px;
  border-radius:2px;
  margin:0 14px;
  align-self:center;
}
.hdrb-metrics .hdrb-row:first-child .hdrb-fill{
  height:4px;
  border-radius:2px;
}
/* Temperature number — hero (inverted with key) */
.hdrb-metrics .hdrb-row:first-child .hdrb-val{
  margin-left:auto;
  font-size:1.02rem;font-weight:600;
  letter-spacing:.02em;line-height:1.2;
  text-align:right;opacity:1;
}
/* Feels-like */
.hdrb-metrics .hdrb-row:first-child .hdrb-val-fl{
  font-size:.56rem;letter-spacing:.04em;opacity:.58;
  margin-top:2px;
}
/* °F toggle pill */
.hdrb-metrics .hdrb-row:first-child .ht-conv{
  font-size:.48em;vertical-align:super;
  margin-left:3px;
  padding:0 2px;
  border-radius:2px;
}

/* Scale icons proportionally with key size bump */
.hdrb-metrics .hdrb-row:first-child .hdrb-ico{
  transform:scale(1.3);transform-origin:left center;flex-shrink:0;
}
.hdrb-metrics .hdrb-row:not(:first-child) .hdrb-ico{
  transform:scale(1.2);transform-origin:left center;
}
/* Disable left-accent bar on hero row */
.hdrb-metrics .hdrb-row:first-child::before{display:none;}

/* ── UV / AIR / HUM — 3 colonnes compactes ── */
.hdrb-metrics .hdrb-row:not(:first-child){
  display:flex;flex-direction:column;
  align-items:flex-start;
  padding:9px 10px 9px 13px;
  gap:5px;
  /* override grid row layout */
  grid-template-columns:none;
  border-right:1px solid rgba(13,12,10,.10);
  border-radius:0;
}
.hdrb-metrics .hdrb-row:nth-child(4){border-right:none;}
body.dark .hdrb-metrics .hdrb-row:not(:first-child){
  border-right-color:rgba(255,255,255,.05);
}
/* Secondary key — tier 2 (clearly below TEMP key) */
.hdrb-metrics .hdrb-row:not(:first-child) .hdrb-key{
  font-size:.78rem;letter-spacing:.18em;
  font-weight:700;opacity:1;
}
/* Secondary gauge — thin full-width bar */
.hdrb-metrics .hdrb-row:not(:first-child) .hdrb-gauge{
  width:100%;height:4px;border-radius:2px;
  order:3;margin-top:auto;
}
.hdrb-metrics .hdrb-row:not(:first-child) .hdrb-fill{
  height:4px;border-radius:2px;
}
/* Secondary value — tier 3, compact */
.hdrb-metrics .hdrb-row:not(:first-child) .hdrb-val{
  font-size:.50rem;font-weight:400;
  white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;max-width:100%;
  opacity:.70;
}

/* Mobile — masqué */
@media(max-width:768px){.hdr-beacon{display:none;}}

/* ── (legacy hb-live-ring placeholder — remplacé par hdrb-live-dot) ── */
/* inert */
.hb-live-ring::after{
  content:'';position:absolute;inset:-3px;
  border:1px solid rgba(91,14,175,.35);border-radius:50%;
  animation:hb-ring-idle 3.2s ease-out infinite;
}
@keyframes hb-ring-idle{
  0%{transform:scale(1);opacity:.55;}
  65%{transform:scale(1.9);opacity:0;}
  100%{transform:scale(1.9);opacity:0;}
}
body.dark .hb-live-ring{background:rgba(192,132,252,.45);}
body.dark .hb-live-ring::after{border-color:rgba(192,132,252,.35);}

/* Chevron hint */
.hb-chevron{
  font-size:.42rem;opacity:.28;display:inline-block;
  margin-left:3px;
  transition:transform .3s var(--ease-pf),opacity .2s;
}
.hero-beacon:hover .hb-chevron{transform:rotate(180deg);opacity:.72;}

/* PARIS / time */
.hb-city{letter-spacing:.18em;opacity:.82;}
.hb-sep{opacity:.22;margin:0 5px;letter-spacing:0;font-weight:300;}

/* ── Panel déployé au hover ── */
.hb-panel{
  position:absolute;
  top:calc(100% - 1px);
  left:50%;transform:translateX(-50%);
  width:clamp(280px,38vw,420px);
  clip-path:inset(0 0 100% 0 round 0 0 8px 8px);
  opacity:0;pointer-events:none;
  transition:clip-path .42s var(--ease-pf),opacity .18s;
  background:rgba(246,243,238,.95);
  backdrop-filter:blur(22px) saturate(1.6);
  -webkit-backdrop-filter:blur(22px) saturate(1.6);
  border:1px solid rgba(91,14,175,.1);
  border-top:none;border-radius:0 0 8px 8px;
  overflow:hidden;z-index:25;
}
body.dark .hb-panel{
  background:rgba(11,9,8,.94);
  border-color:rgba(192,132,252,.14);
}
.hero-beacon:hover .hb-panel{
  clip-path:inset(0 0 0% 0 round 0 0 8px 8px);
  opacity:1;pointer-events:all;
}

/* Scanline animée */
.hb-panel-scan{
  position:absolute;top:0;width:36%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(91,14,175,.55),transparent);
  left:-40%;pointer-events:none;z-index:2;
}
.hero-beacon:hover .hb-panel-scan{animation:hb-scan-line .52s .08s ease-out forwards;}
@keyframes hb-scan-line{from{left:-40%;}to{left:120%;}}
body.dark .hb-panel-scan{background:linear-gradient(90deg,transparent,rgba(192,132,252,.6),transparent);}

/* Panel header */
.hb-panel-hd{
  display:flex;align-items:center;justify-content:space-between;
  padding:8px 14px 6px;
  border-bottom:1px solid rgba(91,14,175,.06);
}
body.dark .hb-panel-hd{border-bottom-color:rgba(192,132,252,.07);}
.hb-panel-label{
  font-family:var(--mono);font-size:.35rem;
  letter-spacing:.2em;text-transform:uppercase;color:rgba(13,12,10,.38);
}
body.dark .hb-panel-label{color:rgba(232,228,220,.38);}
.hb-panel-live{
  display:inline-flex;align-items:center;gap:5px;
  font-family:var(--mono);font-size:.32rem;
  letter-spacing:.22em;text-transform:uppercase;
  color:rgba(91,14,175,.55);
}
body.dark .hb-panel-live{color:rgba(192,132,252,.6);}

/* Pulse dot */
.hb-pulse-dot{
  width:5px;height:5px;border-radius:50%;
  background:rgba(91,14,175,.7);
  position:relative;display:inline-block;flex-shrink:0;
}
.hb-pulse-dot::after{
  content:'';position:absolute;inset:-3px;border-radius:50%;
  background:rgba(91,14,175,.28);
  animation:hb-pulse 2.2s ease-out infinite;
}
@keyframes hb-pulse{
  0%{transform:scale(1);opacity:.7;}
  75%{transform:scale(2.5);opacity:0;}
  100%{transform:scale(2.5);opacity:0;}
}
body.dark .hb-pulse-dot{background:rgba(192,132,252,.8);}
body.dark .hb-pulse-dot::after{background:rgba(192,132,252,.22);}

/* Metrics */
.hb-panel-metrics{padding:9px 14px 7px;display:flex;flex-direction:column;gap:6px;}
.hb-m-row{
  display:grid;grid-template-columns:28px 1fr 60px;
  align-items:center;gap:8px;height:13px;
}
.hb-m-key{
  font-family:var(--mono);font-size:.32rem;
  letter-spacing:.18em;text-transform:uppercase;color:rgba(13,12,10,.28);
}
body.dark .hb-m-key{color:rgba(232,228,220,.28);}
.hb-m-gauge{
  height:2px;background:rgba(91,14,175,.07);
  border-radius:1px;overflow:hidden;position:relative;
}
body.dark .hb-m-gauge{background:rgba(192,132,252,.07);}
.hb-m-fill{
  position:absolute;top:0;left:0;height:100%;
  width:var(--pct,0%);background:var(--gc,var(--v));
  border-radius:1px;
  transform:scaleX(0);transform-origin:left;
  transition:transform .65s var(--ease-pf);
}
.hero-beacon:hover .hb-m-row:nth-child(1) .hb-m-fill{transition-delay:.14s;}
.hero-beacon:hover .hb-m-row:nth-child(2) .hb-m-fill{transition-delay:.24s;}
.hero-beacon:hover .hb-m-row:nth-child(3) .hb-m-fill{transition-delay:.34s;}
.hero-beacon:hover .hb-m-fill{transform:scaleX(1);}
.hb-m-val{
  font-family:var(--mono);font-size:.36rem;
  letter-spacing:.08em;text-transform:uppercase;
  color:rgba(13,12,10,.6);text-align:right;white-space:nowrap;
}
body.dark .hb-m-val{color:rgba(232,228,220,.6);}

/* Panel footer */
.hb-panel-ft{
  display:flex;justify-content:space-between;align-items:center;
  padding:5px 14px 8px;
  border-top:1px solid rgba(91,14,175,.06);
  font-family:var(--mono);font-size:.32rem;
  letter-spacing:.13em;text-transform:uppercase;color:rgba(13,12,10,.3);
}
body.dark .hb-panel-ft{border-top-color:rgba(192,132,252,.07);color:rgba(232,228,220,.3);}

/* Cursor blink */
.hb-cursor-blink{
  display:inline-block;width:5px;height:8px;
  background:rgba(91,14,175,.45);
  margin:0 14px 7px;border-radius:1px;
  animation:blink .88s step-end infinite;
}
body.dark .hb-cursor-blink{background:rgba(192,132,252,.5);}

/* Mobile */
@media(max-width:768px){.hb-panel,.hb-chevron,.hb-live-ring{display:none;}}

/* BOUTON PLAYFUL CHEMISTRY — bas-gauche du hero, au-dessus du titre */
.hero-alch-zone{
  position:absolute;
  top:clamp(540px,calc(32vh + 300px),720px); left:2rem;
  bottom:auto;
  transform:translateX(-6px);
  z-index:12;
  opacity:0;
  transition:opacity .8s 1.2s,transform .9s 1.2s var(--ease-pf);
}
#site.on .hero-alch-zone{opacity:1;transform:translateX(0);}

/* HERO CODE BLOCK — supprimé, remplacé par #hero-matrix */

/* ── THERMAL CANVAS — hero hover ────────────────
   Moteur canvas infrarouge complet.
   Rendu pixel par pixel via LUT thermique (512 stops).
   Le canvas BW×BH est upscalé CSS pour un effet smooth
   "vieux capteur thermique". multiply sur fond crème = toutes
   les couleurs thermiques visibles. Screen en dark = passthrough.
   ─────────────────────────────────────────────── */
#hero-thermal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease-pf);
  mix-blend-mode: multiply; /* fond crème : multiply = couleurs saturées visibles */
  image-rendering: auto;    /* upscale bilinéaire CSS → arrondi naturel, sans blur ajouté */
  /* Pas de filter blur → arrondi vient de l'upscale + correction AR dans le JS */
}
body.dark #hero-thermal-canvas {
  mix-blend-mode: screen;
  filter: saturate(1.15) brightness(1.05);
}
/* Note : règles therm-hot text inversion supprimées — texte garde sa couleur native */

/* Label température — supprimé (pas élégant) */
#hero-temp {
  display: none !important;
}
#hero-temp.on { opacity: 1; }

/* HERO PROTOCOLES — code animé */
.hero-protocols{
  display:flex;flex-direction:column;gap:5px;
  margin-top:16px;
  padding:10px 12px;
  background:rgba(91,14,175,.05);
  border:1px solid rgba(91,14,175,.14);
}
.hero-proto-line{
  font-family:var(--mono);font-size:.42rem;font-weight:400;
  letter-spacing:.04em;
  color:rgba(13,12,10,.35);
  display:flex;align-items:center;gap:3px;
  cursor:none;
  transition:color .2s;
  white-space:nowrap;
}
.hero-proto-line:hover{color:rgba(13,12,10,.7);}
.hp-prompt{color:rgba(91,14,175,.4);margin-right:4px;font-size:.48rem;}
.hp-fn{color:var(--v);font-weight:500;}
.hp-paren{color:rgba(13,12,10,.3);}
.hp-str{color:rgba(180,100,20,.7);}
.hp-var{color:rgba(8,120,180,.65);}
.hp-comment{color:rgba(13,12,10,.2);font-style:italic;margin-left:4px;}
.hp-return{color:rgba(20,160,55,.55);margin-left:4px;}
.hp-cursor{
  display:inline-block;width:5px;height:.7em;
  background:var(--v);opacity:0;margin-left:2px;
  vertical-align:middle;
}
.hp-cursor.blink{animation:cursor-blink .7s step-end infinite;}
@keyframes cursor-blink{0%,100%{opacity:.7}50%{opacity:0}}

/* ════════════════════════════════
   CASE STUDY MÉDIAS
════════════════════════════════ */
.cmedia{
  border-top:1px solid var(--rule);
  padding-top:32px;
  margin-top:12px;
}
/* Campaign layout — wrapper eats its own top spacing; the editorial renderer handles vertical rhythm */
.cmedia:has(.camp-layout){border-top:none;padding-top:0;margin-top:0;}
/* Neutralize scroll-reveal transform on campaign wrapper (it sits above the fold, no reveal needed) */
.cmedia.rv:has(.camp-layout){transform:none;opacity:1;}
.cmedia-head{display:none;}
.cmedia-ref{
  font-family:var(--mono);font-size:.38rem;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(13,12,10,.45);
}
.cmedia-count{
  font-family:var(--mono);font-size:.44rem;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(91,14,175,.5);
}
/* ── CMED — PLACEHOLDER CELLS (project pages) ── */
.cmed{
  background:rgba(13,12,10,.02);
  border:1px solid rgba(13,12,10,.07);
  position:relative;overflow:hidden;
  cursor:pointer;
  transition:border-color .22s,background .22s;
}
.cmed:hover{
  border-color:rgba(91,14,175,.32);
  background:rgba(91,14,175,.04);
}
.cmed-inner{
  position:absolute;inset:0;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:10px;
  transition:opacity .22s;
}
.cmed:hover .cmed-inner{opacity:.25;}
.cmed-icon{
  font-size:2rem;color:rgba(13,12,10,.14);line-height:1;
}
.cmed-type{
  font-family:var(--mono);font-size:.38rem;
  letter-spacing:.2em;text-transform:uppercase;
  color:rgba(13,12,10,.28);
}
.cmed-hover{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  background:rgba(91,14,175,.07);
  opacity:0;transition:opacity .22s;
}
.cmed:hover .cmed-hover{opacity:1;}
.cmed-hover span{
  font-family:var(--mono);font-size:.46rem;
  letter-spacing:.22em;text-transform:uppercase;
  color:var(--v);font-weight:500;
}

/* ── MEDIA GRID — portrait uniforme ── */
.cmedia-grid-dynamic{
  display:grid;
  gap:4px;
  padding:0 2rem 2rem;
}

/* ── GRID-FEW (≤3 items) : layout centré portrait par count ── */
.cmedia-grid-dynamic.grid-few{
  /* default 2 cols */
  grid-template-columns:repeat(2,minmax(0,340px));
  justify-content:center;
}
/* 1 seul item → centré, taille contrainte pour éviter la perte pixel */
.cmedia-grid-dynamic.grid-few[data-count="1"]{
  grid-template-columns:minmax(0,min(680px,100%));
  justify-content:center;
}
/* 3 items → 3 colonnes égales portrait */
.cmedia-grid-dynamic.grid-few[data-count="3"]{
  grid-template-columns:repeat(3,minmax(0,300px));
  justify-content:center;
}

/* ── Responsive grid-few ── */
@media(max-width:900px){
  .cmedia-grid-dynamic.grid-few{grid-template-columns:repeat(2,1fr);justify-content:unset;}
  .cmedia-grid-dynamic.grid-few[data-count="1"]{grid-template-columns:1fr;justify-content:unset;}
  .cmedia-grid-dynamic.grid-few[data-count="3"]{grid-template-columns:repeat(3,1fr);}
}
@media(max-width:640px){
  .cmedia-grid-dynamic.grid-few{grid-template-columns:repeat(2,1fr);gap:2px;padding:0 .8rem .8rem;}
  .cmedia-grid-dynamic.grid-few[data-count="1"]{grid-template-columns:1fr;}
  .cmedia-grid-dynamic.grid-few[data-count="3"]{grid-template-columns:repeat(3,1fr);}
}

/* ── Pas de grid-medium / grid-many ici : ces projets passent en hscroll ── */

.cmedia-empty{
  padding:40px 20px;text-align:center;
  color:rgba(13,12,10,.35);
  font-family:var(--mono);font-size:.4rem;letter-spacing:.1em;
}
.cmed-full{
  width:100%;overflow:hidden;cursor:pointer;position:relative;
  /* Portrait uniforme 3/4 — cohérent avec le hscroll */
  aspect-ratio:3/4;
  opacity:0;transform:translateY(20px);
  transition:opacity .6s var(--ease-pf),transform .6s var(--ease-pf);
}
.cmed-full.revealed{
  opacity:1;transform:translateY(0);
}
.cmed-full img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
  transition:transform .6s cubic-bezier(.25,.1,.25,1);
}
.cmed-full:hover img{transform:scale(1.02);}
/* Subtle overlay on hover */
.cmed-full::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(transparent 60%,rgba(91,14,175,.08));
  opacity:0;transition:opacity .3s;pointer-events:none;
}
.cmed-full:hover::after{opacity:1;}

/* GIF images — display at natural aspect ratio with animated indicator */
.cmed-gif{
  aspect-ratio:auto !important;
}
.cmed-gif::before{
  content:'GIF';
  position:absolute;top:8px;right:8px;z-index:10;
  font-family:var(--mono);font-size:.42rem;letter-spacing:.15em;
  background:rgba(91,14,175,.7);color:#fff;
  padding:4px 8px;border-radius:3px;
  opacity:0;transition:opacity .3s;
  text-transform:uppercase;font-weight:bold;
}
.cmed-gif:hover::before{opacity:1;}
.cmed-gif::after{
  animation:gif-pulse 2s ease-in-out infinite;
}
@keyframes gif-pulse{
  0%,100%{opacity:0;}
  50%{opacity:1;}
}

.cmed-video{
  width:100%;grid-column:1/-1;
  justify-self:center;
  opacity:0;transform:translateY(20px);
  transition:opacity .6s var(--ease-pf),transform .6s var(--ease-pf);
  max-width:680px;
  margin:0 auto;
}
.cmed-video.revealed{opacity:1;transform:translateY(0);}
.cmed-video video{width:100%;display:block;background:#0d0c0a;aspect-ratio:16/9;object-fit:contain;}
/* Vertical video — portrait aspect ratio */
.cmed-video-vertical{max-width:380px;}
.cmed-video-vertical video{aspect-ratio:9/16;object-fit:cover;}
@media(max-width:900px){.cmed-video-vertical{max-width:320px;}}
@media(max-width:640px){.cmed-video{max-width:100%;}.cmed-video-vertical{max-width:280px;}}

/* ─── CASE STUDY — Mixed Row (video + image side-by-side) ─── */
.cs-mixed-row{
  display:flex;gap:6px;width:100%;
  opacity:0;transform:translateY(12px);
  transition:opacity .5s var(--ease-pf),transform .5s var(--ease-pf);
}
.cs-mixed-row.revealed{opacity:1;transform:translateY(0);}
.cs-mixed-item{
  flex:1 1 0;min-width:0;overflow:hidden;
  border-radius:3px;background:#0d0c0a;
}
.cs-mixed-video video{
  width:100%;height:100%;display:block;
  object-fit:contain;background:#0d0c0a;
}
.cs-mixed-image{cursor:pointer;}
.cs-mixed-image img{
  width:100%;height:100%;display:block;
  object-fit:cover;
}
@media(max-width:640px){
  .cs-mixed-row{flex-direction:column;}
  .cs-mixed-item{flex:none;width:100%;}
  .cs-mixed-video video{aspect-ratio:16/9;}
  .cs-mixed-image img{aspect-ratio:auto;}
}

/* ─── CASE STUDY — Horizontal Scroll Mode (portrait uniform) ─── */
.cs-hscroll-mode{
  display:block !important;
  padding:0 !important;
  overflow:visible !important;
  grid-template-columns:none !important;
}

.cs-hscroll-wrap{
  position:relative;
  overflow:hidden;
  width:100%;
  margin:0;
  padding:0 0 0 2rem;
}

.cs-hscroll-track{
  display:flex;
  gap:8px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding:0 100px 0 0;
  cursor:grab;
  align-items:stretch;
  /* Tall track → items are portrait */
  height:clamp(380px, 62vh, 620px);
}
.cs-hscroll-track::-webkit-scrollbar{display:none;}
.cs-hscroll-track:active{cursor:grabbing;}

/* Portrait items — uniform width, all identiques */
.cs-hscroll-item{
  flex-shrink:0;
  /* ~2:3 portrait at desktop: 260px wide / 620px tall */
  width:clamp(180px, 24vw, 280px);
  height:100%;
  scroll-snap-align:start;
  overflow:hidden;
  background:rgba(13,12,10,.04);
  cursor:pointer;
  transition:opacity .2s, transform .35s cubic-bezier(.25,.1,.25,1);
  border:1px solid transparent;
}
/* Pas de first-child différent — rythme uniforme, catalogue */
.cs-hscroll-item:hover{
  opacity:.9;
  transform:scale(.985);
  border-color:rgba(91,14,175,.15);
}
.cs-hscroll-item img{
  width:100%;height:100%;
  object-fit:cover;object-position:center top;
  display:block;
}
/* GIFs : hauteur auto, pas de crop */
.cs-hscroll-item.cmed-gif{
  height:auto;
  width:clamp(160px, 22vw, 260px);
}

/* ── VIDEOS AU-DESSUS DU SCROLL — flex row side by side ── */
.cs-video-row{
  display:flex;
  gap:6px;
  width:100%;
  padding:0 2rem;
  margin-bottom:6px;
  justify-content:center;
}
.cs-video-row--multi .cs-video-row-item{
  flex:1;min-width:0;overflow:hidden;
}
.cs-video-row-item{
  flex:0 0 auto;
  width:clamp(280px, 72vw, 860px);
  background:#0D0C0A;
  position:relative;
}
.cs-video-row--multi .cs-video-row-item{
  width:auto;
}
.cs-video-row-label{
  position:absolute;top:10px;left:12px;z-index:2;
  font-family:var(--mono);font-size:.38rem;letter-spacing:.18em;
  color:rgba(245,242,236,.55);text-transform:uppercase;
  pointer-events:none;
}
.cs-video-row-item video{
  width:100%;display:block;
  aspect-ratio:16/9;object-fit:contain;
}
.cs-video-row--multi .cs-video-row-item video{
  max-height:clamp(160px,28vh,300px);
  aspect-ratio:16/9;
}
.cs-video-row-item--vertical{
  width:clamp(160px, 25vw, 280px) !important;
}
.cs-video-row-item--vertical video{
  aspect-ratio:9/16;
}
/* Dark mode */
body.dark .cs-video-row-item{background:#121110;}

/* Responsive */
@media(max-width:900px){
  .cs-video-row{padding:0 1.2rem;gap:4px;}
  .cs-video-row-item{width:clamp(240px, 70vw, 520px);}
}
@media(max-width:640px){
  .cs-video-row{flex-direction:column;padding:0 .8rem;}
  .cs-video-row-item{width:100% !important;}
}

/* ── FILMSTRIP MODE — AIFactory horizontal scroll gallery ── */
.wfs-wrap{
  padding:0;
}
/* ── WFS MINI — centered grid for ≤2 assets ── */
.wfs-wrap.wfs-mini .wfs-strip-outer{
  height:auto !important;
  overflow:visible !important;
  padding:clamp(1.4rem,3vw,3rem) clamp(1rem,2vw,2rem);
}
.wfs-wrap.wfs-mini .wfs-strip-outer::after{display:none !important;}
.wfs-wrap.wfs-mini .wfs-strip{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  align-items:center !important;
  gap:clamp(.4rem,1vw,1rem) !important;
  height:auto !important;
  width:100% !important;
  max-width:1200px !important;
  margin:0 auto !important;
  transform:none !important;
  overflow:visible !important;
  cursor:default !important;
  scroll-snap-type:none !important;
}
.wfs-wrap.wfs-mini .wfs-strip::-webkit-scrollbar{display:none}
.wfs-wrap.wfs-mini .wfs-item{
  flex:0 1 auto !important;
  width:auto !important;
  max-width:min(560px,calc(50% - .5rem)) !important;
  min-width:0 !important;
  height:auto !important;
  aspect-ratio:auto !important;
  background:transparent !important;
  overflow:visible !important;
}
.wfs-wrap.wfs-mini .wfs-item:only-child{
  max-width:min(720px,90%) !important;
  margin:0 auto !important;
}
.wfs-wrap.wfs-mini .wfs-strip:has(.wfs-item:nth-child(3):last-child) .wfs-item{
  max-width:calc(33.333% - .7rem) !important;
}
.wfs-wrap.wfs-mini .wfs-strip:has(.wfs-item:nth-child(4):last-child) .wfs-item{
  max-width:calc(25% - .8rem) !important;
}
.wfs-wrap.wfs-mini .wfs-item img,
.wfs-wrap.wfs-mini .wfs-item video{
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  max-height:72vh !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 auto !important;
  pointer-events:auto !important;
  background:transparent !important;
}
.wfs-wrap.wfs-mini .wfs-progress,
.wfs-wrap.wfs-mini .wfs-footer{display:none !important;}
@media (max-width:600px){
  .wfs-wrap.wfs-mini .wfs-strip{flex-direction:column !important;}
  .wfs-wrap.wfs-mini .wfs-item{max-width:100% !important;width:100% !important;}
}
.wfs-label{
  font-family:var(--mono);
  font-size:clamp(.48rem,1vw,.58rem);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(13,12,10,.3);
  padding:0 clamp(1.2rem,4vw,3.5rem);
  margin-bottom:.9rem;
  display:block;
}
body.dark .wfs-label{color:rgba(232,228,220,.28);}
.wfs-strip-outer{
  position:relative;
  overflow:hidden;
}
.wfs-strip{
  display:flex;
  gap:3px;
  overflow-x:auto;
  scroll-behavior:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  cursor:grab;
  height:clamp(340px,58vh,600px);
  padding-bottom:2px;
}
.wfs-strip:active{cursor:grabbing;}
/* Project pages blanket cursor:auto!important override — restore grab on filmstrip */
#site .wfs-strip{cursor:grab!important;}
#site .wfs-strip:active{cursor:grabbing!important;}
.wfs-strip::-webkit-scrollbar{display:none;}
.wfs-item{
  flex-shrink:0;
  height:100%;
  width:auto;
  min-width:clamp(220px,30vh,320px);
  position:relative;
  overflow:hidden;
  background:rgba(13,12,10,.03);
}
.wfs-item:first-child{min-width:clamp(300px,45vh,480px);}
body.dark .wfs-item{background:rgba(232,228,220,.04);}
.wfs-item img,.wfs-item video{
  height:100%;width:auto;
  min-width:100%;
  object-fit:cover;display:block;
  transition:transform .45s cubic-bezier(.25,.1,.25,1),filter .3s;
  filter:grayscale(.06);
}
.wfs-item:hover img,.wfs-item:hover video{transform:scale(1.03);filter:grayscale(0);}
.wfs-item--video::after{
  content:'';
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:44px;height:44px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.35);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px;
  pointer-events:none;
  transition:opacity .2s;
}
.wfs-item--video:hover::after{opacity:0;}
.wfs-num{
  position:absolute;bottom:7px;left:9px;
  font-family:var(--mono);font-size:.42rem;
  letter-spacing:.1em;
  color:rgba(255,255,255,.55);
  pointer-events:none;
}
.wfs-progress{
  height:1.5px;
  background:var(--rule);
  margin:6px clamp(1.2rem,4vw,3.5rem) 0;
  position:relative;
}
.wfs-fill{
  position:absolute;top:0;left:0;
  height:100%;background:var(--v);
  width:0%;transition:width .1s linear;
}
.wfs-footer{
  font-family:var(--mono);font-size:clamp(.42rem,1vw,.52rem);
  letter-spacing:.12em;text-transform:uppercase;
  color:rgba(13,12,10,.28);
  display:flex;justify-content:space-between;
  margin:.5rem clamp(1.2rem,4vw,3.5rem) 0;
}
body.dark .wfs-footer{color:rgba(232,228,220,.28);}
@media(max-width:600px){
  .wfs-strip{height:clamp(240px,56vw,340px);}
  .wfs-item:first-child{min-width:clamp(200px,75vw,300px);}
}
@media(max-width:360px){
  .wfs-label{padding-left:.8rem;padding-right:.8rem;}
  .wfs-progress{margin-left:.8rem;margin-right:.8rem;}
  .wfs-footer{margin-left:.8rem;margin-right:.8rem;}
}

/* ── EDITORIAL GRID MODE — grille immersive pleine largeur ── */
.cs-editorial-mode{
  padding:0 !important;
}
.cs-editorial-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-auto-rows:auto;
  grid-auto-flow:dense;
  gap:2px;
  padding:0;
  width:100%;
  background:var(--ink);
}
.cs-eg-item{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  aspect-ratio:3/4;
  background:rgba(13,12,10,.08);
  opacity:0;
  transform:translateY(8px);
  transition:opacity .6s var(--ease-pf),transform .6s var(--ease-pf);
}
.cs-eg-item.is-portrait{aspect-ratio:3/4;}
.cs-eg-item.is-landscape{
  grid-column:span 2;
  aspect-ratio:16/9;
}
.cs-eg-item.is-square{aspect-ratio:1/1;}
.cs-eg-item.revealed{
  opacity:1;
  transform:translateY(0);
}
/* Hero — pleine largeur, ratio adapté à l'orientation source */
.cs-eg-hero{
  grid-column:1 / -1;
  aspect-ratio:21/9;
  min-height:200px;
}
/* Hero portrait : évite les recadrages bruts, garde de la respiration */
.cs-eg-hero.is-portrait-hero{
  aspect-ratio:16/10;
  min-height:clamp(320px,58vh,640px);
}
.cs-eg-hero.is-portrait-hero img{object-position:center 28%;}
/* Hero square : respire aussi */
.cs-eg-hero.is-square-hero{
  aspect-ratio:16/9;
  min-height:clamp(280px,52vh,560px);
}
.cs-eg-hero.is-square-hero img{object-position:center 35%;}
/* Hero landscape : cinématique pleine */
.cs-eg-hero.is-landscape-hero{aspect-ratio:21/9;}

/* Rythme éditorial — casser la monotonie des grilles uniformes.
   Un item sur 7 (portrait uniforme) et un sur 5 (square uniforme)
   devient une breakout-panoramique 2-col. */
.cs-eg-item.is-portrait:nth-child(7n+4){
  grid-column:span 2;
  aspect-ratio:3/2;
}
.cs-eg-item.is-portrait:nth-child(7n+4) img{object-position:center 32%;}
.cs-eg-item.is-square:nth-child(5n+3){
  grid-column:span 2;
  aspect-ratio:2/1;
}
.cs-eg-item.is-square:nth-child(5n+3) img{object-position:center 40%;}
.cs-eg-item img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:transform .7s cubic-bezier(.25,.1,.25,1);
}
.cs-eg-item:hover img{transform:scale(1.04);}
/* Overlay — encre profonde */
.cs-eg-item::after{
  content:'';position:absolute;inset:0;
  background:rgba(13,12,10,.2);
  opacity:0;transition:opacity .35s;pointer-events:none;
}
.cs-eg-item:hover::after{opacity:1;}
/* Stagger */
.cs-eg-item:nth-child(1){transition-delay:.00s;}
.cs-eg-item:nth-child(2){transition-delay:.05s;}
.cs-eg-item:nth-child(3){transition-delay:.10s;}
.cs-eg-item:nth-child(4){transition-delay:.14s;}
.cs-eg-item:nth-child(5){transition-delay:.18s;}
.cs-eg-item:nth-child(6){transition-delay:.22s;}
.cs-eg-item:nth-child(n+7){transition-delay:.26s;}
/* Responsive */
@media(max-width:900px){
  .cs-editorial-grid{gap:2px;}
}
@media(max-width:640px){
  .cs-editorial-grid{grid-template-columns:repeat(2,1fr);}
  .cs-eg-item.is-landscape{grid-column:span 2;aspect-ratio:4/3;}
  .cs-eg-item.is-portrait:nth-child(7n+4),
  .cs-eg-item.is-square:nth-child(5n+3){grid-column:span 2;aspect-ratio:4/3;}
  .cs-eg-hero,
  .cs-eg-hero.is-portrait-hero,
  .cs-eg-hero.is-square-hero,
  .cs-eg-hero.is-landscape-hero{
    grid-column:1 / -1;aspect-ratio:4/5;min-height:clamp(280px,62vh,520px);
  }
  .cs-eg-hero.is-landscape-hero{aspect-ratio:16/10;}
}
@media(max-width:400px){
  .cs-editorial-grid{grid-template-columns:1fr;}
  .cs-eg-hero,
  .cs-eg-hero.is-portrait-hero,
  .cs-eg-hero.is-square-hero,
  .cs-eg-hero.is-landscape-hero{
    grid-column:span 1;aspect-ratio:4/5;min-height:clamp(260px,65vh,480px);
  }
  .cs-eg-hero.is-landscape-hero{aspect-ratio:16/10;}
  .cs-eg-item.is-landscape,
  .cs-eg-item.is-portrait:nth-child(7n+4),
  .cs-eg-item.is-square:nth-child(5n+3){grid-column:span 1;aspect-ratio:4/3;}
}

/* ── EDITORIAL v2 — chunked, typed par orientation ─────────────────
   Pas de grille monolithique : chaque chunk est un micro-layout
   avec des cellules d'aspect homogène → zéro row-height mismatch,
   zéro bleed de fond. */
.cs-editorial-v2{
  display:flex;
  flex-direction:column;
  gap:3px;
  width:100%;
  background:transparent;
  padding:0;
}
.cs-eg-chunk{
  display:grid;
  gap:3px;
  width:100%;
  background:transparent;
}
/* Breathing between chunk groups — generous gap between same-type blocks */
.cs-eg-chunk + .cs-eg-chunk { margin-top:12px; }
.cs-eg-chunk--hero + .cs-eg-chunk { margin-top:24px; }
.cs-eg-chunk--triptych + .cs-eg-chunk--triptych { margin-top:20px; }
.cs-eg-cell{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  background:rgba(91,14,175,.04);
  opacity:0;
  transform:translateY(14px) scale(.985);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
}
body.dark .cs-eg-cell{background:rgba(192,132,252,.05);}
.cs-eg-cell.revealed{opacity:1;transform:translateY(0) scale(1);}
.cs-eg-cell img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:transform .9s cubic-bezier(.25,.1,.25,1),filter .5s ease;
  filter:saturate(.96);
}
.cs-eg-cell:hover img{transform:scale(1.035);filter:saturate(1.05);}
.cs-eg-cell::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 55%,rgba(13,12,10,.18) 100%);
  opacity:0;transition:opacity .4s;pointer-events:none;
}
.cs-eg-cell:hover::after{opacity:1;}

/* Hero — full bleed, variante par orientation */
.cs-eg-chunk--hero{grid-template-columns:1fr;}
.cs-eg-chunk--hero .cs-eg-cell{
  aspect-ratio:21/9;
  min-height:clamp(300px,52vh,620px);
}
.cs-eg-chunk--hero.cs-eg-chunk--var-portrait .cs-eg-cell{
  aspect-ratio:auto;
  height:clamp(300px,55vh,580px);
}
.cs-eg-chunk--hero.cs-eg-chunk--var-portrait .cs-eg-cell img{object-position:center 28%;}
.cs-eg-chunk--hero.cs-eg-chunk--var-square .cs-eg-cell{
  aspect-ratio:16/9;
  min-height:clamp(300px,54vh,600px);
}
.cs-eg-chunk--hero.cs-eg-chunk--var-square .cs-eg-cell img{object-position:center 38%;}
.cs-eg-chunk--hero.cs-eg-chunk--var-landscape .cs-eg-cell{aspect-ratio:21/9;}

/* Pair — 2 landscapes côte à côte */
.cs-eg-chunk--pair{grid-template-columns:1fr 1fr;}
.cs-eg-chunk--pair .cs-eg-cell{aspect-ratio:3/2;}

/* Triad — 3 squares, layout asymétrique (grande + 2 petites, alternance de côté) */
.cs-eg-chunk--triad{
  grid-template-columns:2fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:3px;
}
.cs-eg-chunk--triad .cs-eg-cell:nth-child(1){
  grid-row:1 / span 2;
  aspect-ratio:auto;
  min-height:clamp(360px,52vh,620px);
}
.cs-eg-chunk--triad .cs-eg-cell:nth-child(2),
.cs-eg-chunk--triad .cs-eg-cell:nth-child(3){aspect-ratio:1/1;}
.cs-eg-chunk--triad:nth-of-type(even){grid-template-columns:1fr 2fr;}
.cs-eg-chunk--triad:nth-of-type(even) .cs-eg-cell:nth-child(1){grid-column:2;}
.cs-eg-chunk--triad:nth-of-type(even) .cs-eg-cell:nth-child(2){grid-column:1;grid-row:1;}
.cs-eg-chunk--triad:nth-of-type(even) .cs-eg-cell:nth-child(3){grid-column:1;grid-row:2;}

/* Triptych — 3 portraits. Height-driven so cells always fill full width. */
.cs-eg-chunk--triptych{
  grid-template-columns:1fr 1fr 1fr;
  height:clamp(260px,38vh,420px);
}
.cs-eg-chunk--triptych .cs-eg-cell{aspect-ratio:auto;}

/* Duo — 2 squares */
.cs-eg-chunk--duo{grid-template-columns:1fr 1fr;}
.cs-eg-chunk--duo .cs-eg-cell{aspect-ratio:1/1;}

/* Portrait duo — centré */
.cs-eg-chunk--portrait-duo{
  grid-template-columns:1fr 1fr;
  max-width:min(100%,880px);
  margin:0 auto;
}
.cs-eg-chunk--portrait-duo .cs-eg-cell{aspect-ratio:3/4;}

/* Solo / portrait-solo — centré */
.cs-eg-chunk--solo{
  grid-template-columns:1fr;
  max-width:min(100%,720px);
  margin:0 auto;
}
.cs-eg-chunk--solo .cs-eg-cell{aspect-ratio:1/1;}
.cs-eg-chunk--portrait-solo{
  grid-template-columns:1fr;
  max-width:min(100%,520px);
  margin:0 auto;
}
.cs-eg-chunk--portrait-solo .cs-eg-cell{aspect-ratio:3/4;}

/* Wide — landscape solo full-bleed */
.cs-eg-chunk--wide{grid-template-columns:1fr;}
.cs-eg-chunk--wide .cs-eg-cell{
  aspect-ratio:21/9;
  min-height:clamp(280px,46vh,520px);
}

/* Responsive */
@media(max-width:900px){
  .cs-editorial-v2{gap:3px;}
  .cs-eg-chunk{gap:3px;}
  .cs-eg-chunk--triad{
    grid-template-columns:1fr 1fr !important;
    grid-template-rows:auto auto;
  }
  .cs-eg-chunk--triad .cs-eg-cell:nth-child(1){
    grid-column:1 / -1 !important;
    grid-row:1 !important;
    aspect-ratio:16/10;
    min-height:auto;
  }
  .cs-eg-chunk--triad .cs-eg-cell:nth-child(2){grid-column:1 !important;grid-row:2 !important;}
  .cs-eg-chunk--triad .cs-eg-cell:nth-child(3){grid-column:2 !important;grid-row:2 !important;}
}
@media(max-width:640px){
  .cs-eg-chunk--pair,
  .cs-eg-chunk--duo,
  .cs-eg-chunk--portrait-duo{grid-template-columns:1fr;}
  .cs-eg-chunk--pair .cs-eg-cell,
  .cs-eg-chunk--duo .cs-eg-cell{aspect-ratio:4/3;}
  .cs-eg-chunk--triptych{grid-template-columns:1fr 1fr;}
  .cs-eg-chunk--triptych .cs-eg-cell:nth-child(3){grid-column:1 / -1;}
  .cs-eg-chunk--hero .cs-eg-cell,
  .cs-eg-chunk--hero.cs-eg-chunk--var-portrait .cs-eg-cell,
  .cs-eg-chunk--hero.cs-eg-chunk--var-square .cs-eg-cell,
  .cs-eg-chunk--hero.cs-eg-chunk--var-landscape .cs-eg-cell{
    aspect-ratio:4/5;
    height:clamp(300px,65vh,520px);
  }
  .cs-eg-chunk--wide .cs-eg-cell{aspect-ratio:16/10;min-height:auto;}
}
@media(max-width:420px){
  .cs-eg-chunk--triptych{grid-template-columns:1fr;height:clamp(200px,50vh,360px);}
  .cs-eg-chunk--triptych .cs-eg-cell,
  .cs-eg-chunk--triptych .cs-eg-cell:nth-child(3){aspect-ratio:auto;grid-column:1;}
  .cs-eg-chunk--triad .cs-eg-cell:nth-child(1){aspect-ratio:4/3;}
}

/* ── CAMPAIGN NARRATIVE — meta / acts / pullquote / credits ── */
/* Inspirés : Bisous-production (terminal meta), Pellmell (negative tracking),
   LaCrapule (clip-path reveals), audits PF LAB (lab universe scan reveals) */

.cs-campaign-meta,
.cs-campaign-credits{
  width:100%;
  padding:clamp(2.2rem,4vw,3.6rem) clamp(1.5rem,3vw,2.4rem);
  background:transparent;
  border-top:1px solid rgba(91,14,175,.12);
  border-bottom:1px solid rgba(91,14,175,.12);
  opacity:0;transform:translateY(18px);
  transition:opacity .8s var(--ease-pf),transform .8s var(--ease-pf);
  margin:6px 0;
}
.cs-campaign-meta.revealed,
.cs-campaign-credits.revealed{opacity:1;transform:translateY(0);}

.cs-cm-tag,
.cs-cc-tag{
  font-family:var(--mono);
  font-size:0.58rem;
  letter-spacing:0.22em;
  color:var(--v);
  opacity:.62;
  margin-bottom:clamp(1rem,2vw,1.6rem);
  text-transform:uppercase;
}
.cs-cm-tag::before,
.cs-cc-tag::before{content:'▸ ';opacity:.5;}

.cs-cm-grid,
.cs-cc-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(.3rem,.8vw,.55rem) clamp(2rem,4vw,4rem);
  max-width:920px;
}
.cs-cm-row,
.cs-cc-row{
  display:flex;
  align-items:baseline;
  gap:.5rem;
  font-family:var(--mono);
  font-size:0.72rem;
  line-height:1.6;
  overflow:hidden;
}
.cs-cm-k,
.cs-cc-role{
  color:var(--v);
  opacity:.78;
  letter-spacing:0.04em;
  text-transform:uppercase;
  font-size:0.62rem;
  white-space:nowrap;
  flex-shrink:0;
}
.cs-cm-leader,
.cs-cc-dots{
  flex:1 1 auto;
  border-bottom:1px dotted rgba(91,14,175,.28);
  min-width:1.5rem;
  transform:translateY(-.25em);
}
.cs-cm-v,
.cs-cc-name{
  color:var(--ink);
  font-family:var(--cond);
  font-weight:500;
  font-size:0.88rem;
  letter-spacing:-0.015em;
  text-align:right;
  white-space:nowrap;
  flex-shrink:0;
}
.cs-cm-v::before{content:'';}

/* ── ACT DIVIDER ── */
.cs-campaign-act{
  width:100%;
  display:grid;
  grid-template-columns:auto auto 1fr auto;
  align-items:center;
  gap:clamp(.8rem,2vw,1.6rem);
  padding:clamp(1.8rem,3.5vw,3rem) clamp(1.5rem,3vw,2.4rem) clamp(.6rem,1.2vw,1rem);
  opacity:0;transform:translateY(14px);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
  background:transparent;
  margin-top:6px;
}
.cs-campaign-act.revealed{opacity:1;transform:translateY(0);}
.cs-ca-num{
  font-family:var(--mono);
  font-size:0.62rem;
  letter-spacing:0.24em;
  color:var(--v);
  opacity:.7;
  padding:.28rem .55rem;
  border:1px solid rgba(91,14,175,.35);
  border-radius:2px;
}
.cs-ca-title{
  font-family:var(--cond);
  font-weight:600;
  font-size:clamp(1.1rem,2.2vw,1.65rem);
  letter-spacing:-0.035em;
  color:var(--ink);
  text-transform:uppercase;
  white-space:nowrap;
}
.cs-ca-line{
  grid-column:auto;
  height:1px;
  background:linear-gradient(to right,rgba(91,14,175,.35),rgba(91,14,175,.05));
  align-self:center;
}
.cs-ca-sub{
  font-family:var(--mono);
  font-size:0.62rem;
  letter-spacing:0.1em;
  color:var(--v);
  opacity:.6;
  white-space:nowrap;
  font-style:italic;
}

/* ── PULLQUOTE INTERLUDE ── */
.cs-campaign-pullquote{
  width:100%;
  padding:clamp(3rem,6vw,5.5rem) clamp(1.5rem,5vw,4rem);
  background:transparent;
  text-align:center;
  opacity:0;transform:translateY(18px);
  transition:opacity 1s var(--ease-pf),transform 1s var(--ease-pf);
  margin:6px 0;
  position:relative;
}
.cs-campaign-pullquote.revealed{opacity:1;transform:translateY(0);}
.cs-campaign-pullquote::before{
  content:'';
  position:absolute;left:50%;top:clamp(1rem,2vw,1.8rem);
  width:1px;height:clamp(2rem,4vw,3.2rem);
  background:linear-gradient(to bottom,transparent,var(--v));
  opacity:.35;
  transform:translateX(-50%);
}
.cs-pq-text{
  font-family:var(--cond);
  font-weight:300;
  font-size:clamp(1.4rem,3.2vw,2.4rem);
  line-height:1.25;
  letter-spacing:-0.04em;
  color:var(--ink);
  margin:0 auto;
  max-width:780px;
  font-style:italic;
}
.cs-pq-attr{
  font-family:var(--mono);
  font-size:0.58rem;
  letter-spacing:0.22em;
  color:var(--v);
  opacity:.6;
  margin-top:clamp(1.2rem,2vw,1.8rem);
  text-transform:uppercase;
}

/* ── DARK MODE ── */
body.dark .cs-campaign-meta,
body.dark .cs-campaign-credits{
  border-top-color:rgba(192,132,252,.18);
  border-bottom-color:rgba(192,132,252,.18);
}
body.dark .cs-cm-tag,
body.dark .cs-cc-tag,
body.dark .cs-cm-k,
body.dark .cs-cc-role,
body.dark .cs-ca-num,
body.dark .cs-ca-sub,
body.dark .cs-pq-attr{color:var(--v3);opacity:.75;}
body.dark .cs-cm-leader,
body.dark .cs-cc-dots{border-bottom-color:rgba(192,132,252,.3);}
body.dark .cs-cm-v,
body.dark .cs-cc-name,
body.dark .cs-ca-title,
body.dark .cs-pq-text{color:var(--cr);}
body.dark .cs-campaign-act .cs-ca-num{border-color:rgba(192,132,252,.38);}
body.dark .cs-ca-line{background:linear-gradient(to right,rgba(192,132,252,.35),rgba(192,132,252,.05));}

/* ── RESPONSIVE ── */
@media(max-width:760px){
  .cs-cm-grid,.cs-cc-grid{grid-template-columns:1fr;gap:.45rem;}
  .cs-campaign-act{grid-template-columns:auto 1fr;gap:.8rem 1rem;row-gap:.3rem;}
  .cs-ca-line{display:none;}
  .cs-ca-title{grid-column:1 / -1;font-size:clamp(1.1rem,4.5vw,1.5rem);}
  .cs-ca-sub{grid-column:1 / -1;font-size:0.58rem;}
  .cs-pq-text{font-size:clamp(1.15rem,4.5vw,1.6rem);}
  .cs-cm-row,.cs-cc-row{font-size:0.68rem;}
  .cs-cm-v,.cs-cc-name{font-size:0.78rem;text-align:right;}
}
@media(max-width:480px){
  .cs-campaign-meta,.cs-campaign-credits{padding:1.8rem 1.2rem;}
  .cs-campaign-pullquote{padding:2.2rem 1rem;}
  .cs-campaign-act{padding:1.4rem 1.2rem .6rem;}
}

/* ══════════════════════════════════════════════════════════════
   CAMPAIGN LAYOUT — renderCampaign() dedicated editorial styles
   Aesthetic: luxury fragrance campaign — generous whitespace,
   cinematic hero, terminal meta, dramatic act dividers.
   ══════════════════════════════════════════════════════════════ */

/* Root container */
.camp-root{
  display:flex;
  flex-direction:column;
  gap:0;
  width:100%;
  position:relative;
  background:var(--cr);
  padding-bottom:clamp(2rem,5vw,4rem);
}
body.dark .camp-root{background:var(--cr);}

/* ── HERO — product breathes, no overlay (Bisous spec) ── */
.camp-hero{
  position:relative;
  width:100%;
  padding:clamp(2rem,5vw,4.5rem) clamp(1.2rem,3vw,2.4rem) clamp(1.6rem,3vw,2.8rem);
  background:linear-gradient(180deg,rgba(245,242,236,.4) 0%,transparent 100%);
  opacity:0;transform:translateY(18px);
  transition:opacity .9s var(--ease-pf),transform .9s var(--ease-pf);
}
.camp-hero.revealed{opacity:1;transform:translateY(0);}

.camp-hero--product .camp-hero-cell{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  max-height:70vh;
  aspect-ratio:auto;
  min-height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.camp-hero--product .camp-hero-cell img{
  width:auto;
  max-width:100%;
  max-height:70vh;
  height:auto;
  object-fit:contain;
  display:block;
  transition:transform 1.2s var(--ease-pf),filter .6s ease;
  filter:saturate(.98);
}
.camp-hero--product:hover .camp-hero-cell img{transform:scale(1.015);filter:saturate(1.02);}

/* Portrait hero: tighter height for vertical products */
.camp-hero--product .camp-hero-cell[data-kind="portrait"] img{max-height:78vh;}
.camp-hero--product .camp-hero-cell[data-kind="landscape"] img{max-height:62vh;}

/* ── BRIEF TEXT — editorial intro paragraphs ── */
.camp-brief{
  width:100%;
  max-width:960px;
  margin:0 auto;
  padding:clamp(1.2rem,2.2vw,1.8rem) clamp(1.2rem,2.6vw,2.4rem) clamp(1.6rem,2.8vw,2.2rem);
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(.8rem,1.8vw,1.6rem) clamp(2rem,4.6vw,3.6rem);
  opacity:0;transform:translateY(14px);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
  position:relative;
}
.camp-brief.revealed{opacity:1;transform:translateY(0);}
/* Hairline rule sitting above the brief — editorial divider */
.camp-brief::before{
  content:'';
  position:absolute;
  top:0;left:clamp(1.2rem,2.6vw,2.4rem);
  width:clamp(48px,6vw,72px);height:1px;
  background:var(--v);opacity:.35;
}
.camp-brief-h{
  grid-column:1 / -1;
  font-family:var(--cond);
  font-size:clamp(1rem,1.8vw,1.45rem);
  font-weight:500;
  letter-spacing:-.01em;
  line-height:1.1;
  color:var(--ink);
  margin:0 0 .3rem;
  max-width:42ch;
  text-wrap:balance;
}
/* Split the title meta into a small uppercase prefix */
.camp-brief-h .camp-brief-prefix{
  display:block;
  font-family:var(--mono);
  font-size:clamp(.65rem,.92vw,.78rem);
  letter-spacing:.24em;
  font-weight:400;
  color:var(--v);
  opacity:.78;
  margin-bottom:.6em;
  text-transform:uppercase;
}
.camp-brief-h .camp-brief-prefix::before{
  content:'/ ';opacity:.55;
}
.camp-brief-p{
  font-family:var(--grotesk);
  font-size:clamp(14.5px,1.14vw,16px);
  line-height:1.68;
  color:var(--ink);
  opacity:.86;
  margin:0;
  position:relative;
  padding-top:1.1rem;
  max-width:48ch;
}
.camp-brief-p::before{
  content:'';
  position:absolute;
  top:0;left:0;
  width:28px;height:1px;
  background:var(--v);
  opacity:.4;
}
.camp-brief-p:only-of-type{grid-column:1 / -1;max-width:60ch;}

/* ── META — terminal-style data block ── */
.camp-meta{
  width:100%;
  padding:clamp(2rem,4vw,3.2rem) clamp(1.4rem,3vw,2.4rem);
  border-top:1px solid rgba(91,14,175,.1);
  border-bottom:1px solid rgba(91,14,175,.1);
  opacity:0;transform:translateY(16px);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
}
.camp-meta.revealed{opacity:1;transform:translateY(0);}

.camp-meta-tag{
  font-family:var(--mono);
  font-size:.6rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--v2);
  opacity:.65;
  margin-bottom:1.2rem;
}
.camp-meta-tag::before{content:'▸ ';opacity:.5;}

.camp-meta-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:.55rem 2.4rem;
}
.camp-meta-row{
  display:flex;
  align-items:baseline;
  gap:.5rem;
  font-family:var(--mono);
  font-size:clamp(.58rem,1vw,.72rem);
  color:var(--ink);
}
.camp-meta-k{
  white-space:nowrap;
  color:var(--v);
  opacity:.55;
  font-size:.62em;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.camp-meta-leader{
  flex:1;
  border-bottom:1px dotted rgba(91,14,175,.18);
  min-width:1rem;
  align-self:baseline;
  margin-bottom:.18em;
}
.camp-meta-v{
  white-space:nowrap;
  font-weight:500;
  color:var(--ink);
  opacity:.85;
}

/* ── VIDEO SECTION ── */
.camp-video-section{
  display:flex;gap:6px;
  width:100%;
  padding:clamp(2rem,3.6vw,2.8rem) clamp(1.2rem,2.6vw,2.4rem) clamp(1rem,1.8vw,1.4rem);
  opacity:0;transform:translateY(14px);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
}
.camp-video-section.revealed{opacity:1;transform:translateY(0);}

.camp-video-wrap{
  flex:1;min-width:0;
  position:relative;
}
.camp-video-wrap--vertical{max-width:min(100%,420px);margin:0 auto;}
.camp-video-label{
  font-family:var(--mono);
  font-size:.5rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--v);
  opacity:.5;
  margin-bottom:.5rem;
}
.camp-video-wrap video{
  width:100%;
  display:block;
  background:#0D0C0A;
}

/* ── ACT DIVIDER ── */
.camp-act{
  display:grid;
  grid-template-columns:auto auto 1fr auto;
  gap:0 clamp(.8rem,1.5vw,1.4rem);
  align-items:center;
  padding:clamp(2.4rem,4.4vw,3.6rem) clamp(1.2rem,2.6vw,2.4rem) clamp(1rem,1.6vw,1.4rem);
  opacity:0;transform:translateY(14px);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
}
.camp-act.revealed{opacity:1;transform:translateY(0);}

.camp-act-num{
  font-family:var(--mono);
  font-size:clamp(.5rem,.85vw,.62rem);
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--v);
  border:1px solid rgba(91,14,175,.25);
  padding:.25em .7em;
  border-radius:1px;
  white-space:nowrap;
}
.camp-act-title{
  font-family:var(--cond);
  font-size:clamp(1.15rem,2.8vw,2rem);
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--ink);
  white-space:nowrap;
}
.camp-act-sub{
  font-family:var(--mono);
  font-size:clamp(.52rem,.8vw,.64rem);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--v2);
  opacity:.72;
  grid-column:1 / -1;
  padding-top:.4rem;
}

/* ── ACT GRIDS — editorial image layouts ── */
.camp-act-grid{
  display:grid;
  gap:6px;
  width:100%;
}

.camp-cell{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  background:rgba(91,14,175,.03);
  opacity:0;transform:translateY(14px) scale(.985);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
}
.camp-cell.revealed{opacity:1;transform:translateY(0) scale(1);}
.camp-cell img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:transform .9s cubic-bezier(.25,.1,.25,1),filter .5s ease;
  filter:saturate(.96);
}
/* ── EDITORIAL CELLS — Schön approach: natural image ratios, no forced crop ── */
.camp-editorial .camp-cell img{height:auto;object-fit:initial;}
.camp-cell:hover img{transform:scale(1.03);filter:saturate(1.05);}
.camp-cell::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 60%,rgba(13,12,10,.14) 100%);
  opacity:0;transition:opacity .4s;pointer-events:none;
}
.camp-cell:hover::after{opacity:1;}

/* Solo — full-bleed single image */
.camp-grid-solo{grid-template-columns:1fr;}
.camp-grid-solo .camp-cell{
  aspect-ratio:16/9;
  min-height:clamp(280px,48vh,560px);
}

/* Diptych — 2 side by side */
.camp-grid-diptych{grid-template-columns:1fr 1fr;}
.camp-grid-diptych .camp-cell{aspect-ratio:3/2;}
.camp-grid-diptych .camp-cell[data-kind="portrait"]{aspect-ratio:3/4;}

/* Triptych — 3 portraits */
.camp-grid-triptych{grid-template-columns:1fr 1fr 1fr;}
.camp-grid-triptych .camp-cell{aspect-ratio:3/4;}

/* Trio — 1 large left + 2 stacked right */
.camp-grid-trio{
  grid-template-columns:3fr 2fr;
  grid-template-rows:1fr 1fr;
}
.camp-grid-trio .camp-cell:first-child{
  grid-row:1 / span 2;
  aspect-ratio:auto;
  min-height:clamp(320px,50vh,580px);
}
.camp-grid-trio .camp-cell:nth-child(2),
.camp-grid-trio .camp-cell:nth-child(3){aspect-ratio:4/3;}

/* Quad — hero top + 3 below */
.camp-grid-quad{
  grid-template-columns:1fr 1fr 1fr;
  grid-template-rows:auto auto;
}
.camp-grid-quad .camp-cell--hero{
  grid-column:1 / -1;
  aspect-ratio:21/9;
  min-height:clamp(260px,42vh,480px);
}
.camp-grid-quad .camp-cell:not(.camp-cell--hero){aspect-ratio:1/1;}

/* Flow — 5+ items, masonry-like auto grid */
.camp-grid-flow{
  grid-template-columns:repeat(var(--camp-cols,3),1fr);
}
.camp-grid-flow .camp-cell{aspect-ratio:1/1;}
.camp-grid-flow .camp-cell--hero{
  grid-column:span 2;grid-row:span 2;
  aspect-ratio:auto;
}
.camp-grid-flow .camp-cell[data-kind="portrait"]{aspect-ratio:3/4;}
.camp-grid-flow .camp-cell[data-kind="landscape"]{aspect-ratio:3/2;}

/* ── SECTIONS — editorial rhythm: deliberate asymmetric breathing ── */
.camp-section{
  width:100%;
  padding:clamp(1.6rem,3.2vw,2.6rem) clamp(1.2rem,2.6vw,2.4rem) clamp(1.2rem,2.2vw,1.8rem);
  position:relative;
  opacity:0;transform:translateY(16px);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
}
.camp-section.revealed{opacity:1;transform:translateY(0);}
/* Variable density — packshots tight, strip breathes, portraits airy, social condensed */
.camp-section--packshots{padding-top:clamp(1.2rem,2.4vw,2rem);}
.camp-section--strip{padding-top:clamp(3rem,6vw,5rem);padding-bottom:clamp(1rem,2vw,1.6rem);}
.camp-section--portraits{padding-top:clamp(3.4rem,7vw,5.4rem);}
.camp-section--social-reveal{padding-top:clamp(1.8rem,3.6vw,2.8rem);padding-bottom:clamp(2rem,4vw,3.2rem);}
.camp-section--fullbleed{padding:0;margin:clamp(1rem,2.4vw,2rem) 0 clamp(.4rem,1vw,.8rem);}

/* ── INDEX MARKER — supprimé (confus, scolaire) ── */
.camp-index{display:none;}
/* Hairline tick anchoring the marker */
.camp-index::before{
  content:'';
  width:clamp(14px,2vw,22px);
  height:1px;
  background:currentColor;
  opacity:.55;
  display:inline-block;
  transform:translateY(-1px);
}
.camp-index-n{font-weight:500;font-variant-numeric:tabular-nums;}
.camp-index-s{opacity:.55;margin:0 .05em;}
.camp-index-c{opacity:.65;font-variant-numeric:tabular-nums;}
.camp-index--bleed{
  top:clamp(1rem,2vw,1.6rem);
  right:clamp(1.4rem,3vw,2.4rem);
  color:var(--cr);
  opacity:.78;
  mix-blend-mode:difference;
  text-shadow:0 0 10px rgba(0,0,0,.35);
}
.camp-index--bleed::before{background:var(--cr);opacity:.75;}

/* ── STANDARD GRID (portraits, stilllife, socials) ── */
.camp-section-grid{
  display:grid;
  gap:4px;
  width:100%;
}
.camp-grid-2{grid-template-columns:repeat(2,1fr);}
.camp-grid-3{grid-template-columns:repeat(3,1fr);}

/* ── BENTO — asymmetric magazine layout (packshots) ── */
.camp-bento{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-auto-rows:1fr;
  gap:3px;
  width:100%;
}
.camp-bento .camp-cell{
  aspect-ratio:1/1;
  overflow:hidden;
  position:relative;
}
.camp-bento .camp-cell[data-role="hero"]{
  grid-column:span 2;
  grid-row:span 2;
  aspect-ratio:auto;
}
/* Hero image — micro saturation boost, smoother transition */
.camp-bento .camp-cell[data-role="hero"] img{
  transition:transform 1.4s var(--ease-pf),filter 1.4s var(--ease-pf);
  filter:saturate(1.04) contrast(1.02);
}
.camp-bento .camp-cell[data-role="hero"]:hover img{
  transform:scale(1.025);
  filter:saturate(1.1) contrast(1.04);
}
/* Secondary cells — grayscale→color on hover (editorial wall feel) */
.camp-bento .camp-cell:not([data-role="hero"]) img{
  transition:transform 1.1s var(--ease-pf),filter .8s ease;
  filter:saturate(.94);
}
.camp-bento .camp-cell:not([data-role="hero"]):hover img{
  transform:scale(1.035);
  filter:saturate(1.06);
}
/* Hairline corner tick — specimen numbering micro-detail */
.camp-bento .camp-cell::after{
  content:'';
  position:absolute;
  top:8px;left:8px;
  width:6px;height:6px;
  border-top:1px solid rgba(255,255,255,.55);
  border-left:1px solid rgba(255,255,255,.55);
  pointer-events:none;
  opacity:0;
  transition:opacity .5s ease;
  z-index:3;
  mix-blend-mode:difference;
}
.camp-bento .camp-cell:hover::after{opacity:.7;}
/* Compact variant: small sets (<4), no hero span */
.camp-bento--compact{grid-template-columns:repeat(2,1fr);}
.camp-bento--compact .camp-cell{aspect-ratio:3/4;}

/* ── FILMSTRIP — full-bleed horizontal scroll (ingredients) ── */
.camp-section--strip{
  padding-left:0;
  padding-right:0;
}
.camp-section--strip .camp-index{
  right:clamp(1.6rem,3.2vw,2.4rem);
}
.camp-filmstrip{
  display:flex;
  gap:4px;
  width:100vw;
  position:relative;
  left:50%;
  margin-left:-50vw;
  padding:clamp(.6rem,1.2vw,1rem) clamp(3vw,8vw,6rem) clamp(1.2rem,2vw,1.6rem);
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  cursor:grab;
  /* Contact-sheet edge gradients — signal off-screen content */
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 3%,#000 97%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 3%,#000 97%,transparent 100%);
}
.camp-filmstrip::-webkit-scrollbar{display:none;}
.camp-filmstrip:active,.camp-filmstrip.dragging{cursor:grabbing;}
.camp-filmstrip.dragging .camp-filmstrip-cell{pointer-events:none;}
.camp-filmstrip-cell{
  flex:0 0 clamp(240px,30vw,400px);
  aspect-ratio:3/4;
  scroll-snap-align:start;
  overflow:hidden;
  position:relative;
  transition:filter .6s ease;
  filter:saturate(.95);
}
.camp-filmstrip-cell:hover{filter:saturate(1.05);}
/* Specimen corner tick on each cell — contact-sheet feel */
.camp-filmstrip-cell::before{
  content:'';
  position:absolute;
  top:10px;left:10px;
  width:8px;height:1px;
  background:rgba(255,255,255,.45);
  mix-blend-mode:difference;
  z-index:2;
  pointer-events:none;
}
.camp-filmstrip-cell::after{
  content:'';
  position:absolute;
  top:10px;left:10px;
  width:1px;height:8px;
  background:rgba(255,255,255,.45);
  mix-blend-mode:difference;
  z-index:2;
  pointer-events:none;
}
/* Scroll progress — hairline bar below the strip */
.camp-section--strip .camp-strip-progress{
  position:relative;
  left:50%;
  margin:clamp(.2rem,.4vw,.4rem) auto 0;
  transform:translateX(-50%);
  width:min(60%,560px);
  height:1px;
  background:rgba(91,14,175,.14);
  overflow:hidden;
}
.camp-section--strip .camp-strip-progress-bar{
  position:absolute;
  top:0;left:0;bottom:0;
  width:var(--progress,0%);
  background:var(--v);
  opacity:.75;
  transition:width .18s var(--ease-pf);
}
.camp-section--strip .camp-strip-hint{
  display:block;
  text-align:center;
  margin-top:clamp(.5rem,1vw,.8rem);
  font-family:var(--mono);
  font-size:clamp(.48rem,.68vw,.54rem);
  letter-spacing:.28em;
  color:var(--v);
  opacity:.45;
  text-transform:uppercase;
  pointer-events:none;
}
.camp-filmstrip-cell[data-kind="landscape"]{
  flex-basis:clamp(340px,44vw,560px);
  aspect-ratio:4/3;
}
.camp-filmstrip-cell[data-kind="square"]{
  aspect-ratio:1/1;
}

/* ── EDITORIAL GRID — Schön Magazine: natural proportions, no forced crop ── */
.camp-editorial{
  display:grid;
  gap:clamp(6px,.9vw,14px);
  width:100%;
  max-width:min(100%,1640px);
  margin:0 auto;
  padding:0 clamp(1.2rem,3vw,2.4rem);
  align-items:center;
}
.camp-editorial + .camp-editorial{
  margin-top:clamp(6px,.9vw,14px);
}
/* Solo — constrained width to avoid pixel loss on low-res images */
.camp-editorial--solo{grid-template-columns:1fr;}
.camp-editorial--solo .camp-cell{max-width:min(860px,100%);margin:0 auto;}

/* Diptych, Triptych, Quad — uniform 1:1 format for harmonious rows */
.camp-editorial--diptych{grid-template-columns:1fr 1fr;}
.camp-editorial--triptych{grid-template-columns:repeat(3,1fr);}
.camp-editorial--quad{grid-template-columns:repeat(2,1fr);}
/* Native ratio — JS injects inline aspect-ratio from probed dims; kind-fallbacks below */
.camp-editorial--triptych .camp-cell,
.camp-editorial--diptych .camp-cell,
.camp-editorial--quad .camp-cell{aspect-ratio:1/1;}/* overridden by JS inline style */
.camp-editorial .camp-cell[data-kind="portrait"]{aspect-ratio:3/4;}
.camp-editorial .camp-cell[data-kind="landscape"]{aspect-ratio:4/3;}
.camp-editorial--triptych .camp-cell img,
.camp-editorial--diptych .camp-cell img,
.camp-editorial--quad .camp-cell img{width:100%;height:100%;object-fit:cover;}

/* Editorial section padding — remove horizontal pad (grid handles it) */
.camp-section--packshots,
.camp-section--stilllife,
.camp-section--portraits,
.camp-section--social-reveal{padding-left:0;padding-right:0;}

/* Variant — PACKSHOTS: force 1:1 square */
.camp-section--packshots .camp-section-grid .camp-cell{aspect-ratio:1/1;}
.camp-section--packshots .camp-section-grid .camp-cell img{object-fit:cover;}

/* Variant — INGRÉDIENTS: square for raw ingredient shots */
.camp-section--ingredients .camp-section-grid .camp-cell{aspect-ratio:1/1;}
.camp-section--ingredients .camp-section-grid .camp-cell[data-kind="portrait"]{aspect-ratio:3/4;}

/* Variant — STILL-LIFE: landscape 3:2 editorial atmosphere */
.camp-section--stilllife .camp-section-grid .camp-cell{aspect-ratio:3/2;}
.camp-section--stilllife .camp-section-grid .camp-cell[data-kind="square"]{aspect-ratio:1/1;}
.camp-section--stilllife .camp-section-grid .camp-cell[data-kind="portrait"]{aspect-ratio:3/4;}

/* Variant — PORTRAITS: 3:4 vertical */
.camp-section--portraits .camp-section-grid .camp-cell{aspect-ratio:3/4;}

/* Variant — SOCIAL REVEAL: 9:16 vertical */
.camp-section--social-reveal{
  background:linear-gradient(180deg,transparent 0%,rgba(91,14,175,.02) 100%);
}
.camp-grid--vertical .camp-cell{aspect-ratio:9/16;}

/* Variant — FULL-BLEED: 100vw break-out ambience separator */
.camp-section--fullbleed{
  padding:0;
  margin:clamp(2rem,4vw,3.5rem) 0;
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}
.camp-fullbleed-cell{
  width:100%;
  aspect-ratio:21/9;
  max-height:72vh;
  overflow:hidden;
  cursor:pointer;
  position:relative;
  background:rgba(91,14,175,.03);
}
.camp-fullbleed-cell img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:transform 1.4s var(--ease-pf),filter .6s ease;
  filter:saturate(.94);
}
.camp-fullbleed-cell:hover img{transform:scale(1.025);filter:saturate(1.04);}

/* ── PULLQUOTE removed — was scholastic, magazine-style feels more chic ── */

/* ── CREDITS ── */
.camp-credits{
  width:100%;
  padding:clamp(2rem,4vw,3.2rem) clamp(1.4rem,3vw,2.4rem);
  border-top:1px solid rgba(91,14,175,.1);
  margin-top:clamp(1.5rem,3vw,2.5rem);
  opacity:0;transform:translateY(14px);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
}
.camp-credits.revealed{opacity:1;transform:translateY(0);}

.camp-credits-tag{
  font-family:var(--mono);
  font-size:.6rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--v2);
  opacity:.65;
  margin-bottom:1rem;
}
.camp-credits-tag::before{content:'▸ ';opacity:.5;}

.camp-credits-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:.45rem 2rem;
}
.camp-credits-row{
  display:flex;
  align-items:baseline;
  gap:.5rem;
  font-family:var(--mono);
  font-size:clamp(.55rem,.95vw,.68rem);
}
.camp-credits-role{
  white-space:nowrap;
  color:var(--v);
  opacity:.55;
  font-size:.65em;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.camp-credits-dots{
  flex:1;
  border-bottom:1px dotted rgba(91,14,175,.18);
  min-width:.8rem;
  align-self:baseline;
  margin-bottom:.18em;
}
.camp-credits-name{
  white-space:nowrap;
  font-weight:500;
  color:var(--ink);
  opacity:.85;
}

/* ── ACT RHYTHM — breathing room between editorial blocks and act openers ── */
/* Amplify space before an act opener when it follows a content section */
.camp-section + .camp-act{
  padding-top:clamp(3.2rem,6vw,5.2rem);
  border-top:1px solid rgba(91,14,175,.06);
  margin-top:clamp(.4rem,1vw,.8rem);
}

/* ── SOCIAL REVEAL — Instagram content, distinct specimen presentation ── */
.camp-section--social-reveal{
  border-top:1px solid rgba(91,14,175,.08);
  padding-top:clamp(2.4rem,4.8vw,3.8rem);
}
/* Label above the social grid — discrete editorial notation */
.camp-section--social-reveal::before{
  content:'INSTAGRAM · BRAND CONTENT';
  display:block;
  font-family:var(--mono);
  font-size:clamp(.48rem,.68vw,.58rem);
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--v);
  opacity:.48;
  margin-bottom:clamp(1rem,2vw,1.6rem);
  padding:0 clamp(1.2rem,2.6vw,2.4rem);
}
/* Crosshair corner — specimen reference visual language */
.camp-section--social-reveal .camp-cell::before{
  content:'';
  position:absolute;
  top:10px;left:10px;
  width:14px;height:14px;
  border-top:1px solid rgba(255,255,255,.4);
  border-left:1px solid rgba(255,255,255,.4);
  pointer-events:none;
  z-index:3;
  mix-blend-mode:difference;
}

/* ── BRIEF DARK MODE — hairlines more visible on near-black ground ── */
body.dark .camp-brief::before{background:var(--v3);opacity:.38;}
body.dark .camp-brief-p::before{background:var(--v3);opacity:.3;}

/* ── DARK MODE — Campaign ── */
body.dark .camp-meta{
  border-color:rgba(192,132,252,.12);
}
body.dark .camp-meta-tag,
body.dark .camp-credits-tag{color:var(--v3);opacity:.6;}
body.dark .camp-meta-k,
body.dark .camp-credits-role{color:var(--v3);opacity:.5;}
body.dark .camp-meta-leader,
body.dark .camp-credits-dots{border-bottom-color:rgba(192,132,252,.22);}
body.dark .camp-meta-v,
body.dark .camp-credits-name{color:var(--cr);opacity:.9;}
body.dark .camp-meta-row,
body.dark .camp-credits-row{color:var(--cr);}
body.dark .camp-act-title{color:var(--cr);}
body.dark .camp-act-num{border-color:rgba(192,132,252,.3);color:var(--v3);}
body.dark .camp-section + .camp-act{border-color:rgba(192,132,252,.1);}
body.dark .camp-section--social-reveal{border-color:rgba(192,132,252,.12);}
body.dark .camp-section--social-reveal::before{color:var(--v3);opacity:.45;}
body.dark .camp-act-sub{color:var(--v3);}
body.dark .camp-cell{background:rgba(192,132,252,.04);}
body.dark .camp-credits{border-color:rgba(192,132,252,.12);}
body.dark .camp-hero{background:linear-gradient(180deg,rgba(15,13,11,.6) 0%,transparent 100%);}
body.dark .camp-brief-h{color:var(--cr);}
body.dark .camp-brief-p{color:var(--cr);opacity:.72;}
body.dark .camp-index{color:var(--v3);opacity:.5;}
body.dark .camp-index--bleed{color:var(--cr);opacity:.75;}
body.dark .camp-section--social-reveal{background:linear-gradient(180deg,transparent 0%,rgba(192,132,252,.03) 100%);}
body.dark .camp-fullbleed-cell{background:rgba(192,132,252,.04);}

/* ── RESPONSIVE — Campaign ── */
@media(max-width:900px){
  .camp-act{
    grid-template-columns:auto 1fr;
    gap:.6rem 1rem;row-gap:.25rem;
  }
  .camp-act-title{grid-column:auto;font-size:clamp(1.1rem,4vw,1.8rem);}
  .camp-act-sub{grid-column:1 / -1;}
  .camp-meta-grid,
  .camp-credits-grid{grid-template-columns:1fr;gap:.4rem;}
  .camp-grid-trio{grid-template-columns:1fr 1fr;}
  .camp-grid-trio .camp-cell:first-child{
    grid-column:1 / -1;grid-row:auto;
    aspect-ratio:16/10;min-height:auto;
  }
  .camp-grid-flow{grid-template-columns:repeat(2,1fr);}
  .camp-grid-flow .camp-cell--hero{grid-column:1 / -1;grid-row:auto;aspect-ratio:16/10;}
}
@media(max-width:900px){
  .camp-grid-3{grid-template-columns:repeat(2,1fr);}
  .camp-grid-2{grid-template-columns:1fr;}
  .camp-fullbleed-cell{aspect-ratio:4/3;}
  /* Bento — drop hero span, become balanced 2-col */
  .camp-bento{grid-template-columns:repeat(2,1fr);}
  .camp-bento .camp-cell[data-role="hero"]{grid-column:span 2;grid-row:auto;aspect-ratio:16/10;}
  .camp-bento .camp-cell:not([data-role="hero"]){aspect-ratio:1/1;}
  /* Filmstrip — tighter edge padding on tablet */
  .camp-filmstrip{padding:clamp(.6rem,1.2vw,1rem) clamp(2vw,5vw,3rem);}
  .camp-filmstrip-cell{flex-basis:clamp(220px,38vw,340px);}
  /* Brief — stack editorial columns */
  .camp-brief{grid-template-columns:1fr;gap:clamp(.8rem,2vw,1.4rem);}
}
@media(max-width:900px){
  /* Editorial grid — simplify to 2-up on tablet */
  .camp-editorial{padding:0 clamp(1rem,2.4vw,1.8rem);}
  .camp-editorial--triptych{grid-template-columns:repeat(2,1fr);}
  .camp-editorial--triptych .camp-cell:nth-child(3):last-child{grid-column:1 / -1;}
}
@media(max-width:640px){
  .camp-hero--product .camp-hero-cell img{max-height:60vh;}
  .camp-hero--product .camp-hero-cell[data-kind="portrait"] img{max-height:72vh;}
  .camp-grid-diptych{grid-template-columns:1fr;}
  .camp-grid-diptych .camp-cell{aspect-ratio:4/3;}
  .camp-grid-triptych{grid-template-columns:1fr 1fr;}
  .camp-grid-triptych .camp-cell:nth-child(3){grid-column:1 / -1;aspect-ratio:4/3;}
  .camp-grid-quad .camp-cell--hero{aspect-ratio:4/5;min-height:clamp(280px,60vh,480px);}
  .camp-grid-quad{grid-template-columns:1fr 1fr;}
  .camp-video-section{flex-direction:column;}
  .camp-grid-3{grid-template-columns:repeat(2,1fr);}
  .camp-fullbleed-cell{aspect-ratio:3/2;}
  .camp-brief{padding:1rem 1.2rem 1.8rem;}
  .camp-brief-p{font-size:14px;line-height:1.65;}
  /* Editorial grid — stack on mobile, natural ratios preserved */
  .camp-editorial{grid-template-columns:1fr !important;padding:0 clamp(1rem,4vw,1.4rem);gap:6px;}
  .camp-editorial--solo .camp-cell{max-width:100%;margin:0 auto;}
  /* Bento — keep hero full width, others 2-up */
  .camp-bento{grid-template-columns:repeat(2,1fr);gap:3px;}
  .camp-bento .camp-cell[data-role="hero"]{grid-column:span 2;aspect-ratio:4/3;}
  .camp-bento--compact{grid-template-columns:1fr;}
  .camp-bento--compact .camp-cell{aspect-ratio:4/5;}
  /* Filmstrip — VERTICAL stack on mobile (user requested) */
  .camp-filmstrip{
    flex-direction:column;
    width:100%;
    left:auto;
    margin-left:0;
    padding:.6rem clamp(1rem,4vw,1.4rem);
    gap:8px;
    overflow-x:hidden;
    overflow-y:visible;
    scroll-snap-type:none;
    cursor:default;
    -webkit-mask-image:none;
    mask-image:none;
  }
  .camp-filmstrip-cell{
    flex:0 0 auto;
    width:100%;
    aspect-ratio:3/4;
  }
  .camp-filmstrip-cell[data-kind="landscape"]{width:100%;aspect-ratio:4/3;}
  .camp-filmstrip-cell[data-kind="square"]{width:100%;aspect-ratio:1/1;}
  /* Hide horizontal scroll affordances on mobile — now vertical */
  .camp-section--strip .camp-strip-progress,
  .camp-section--strip .camp-strip-hint{display:none;}
  /* Corner index — move inline so it doesn't overlap thumbs */
  .camp-index{top:.6rem;right:1rem;font-size:.54rem;}
  /* Case hero mobile rules — moved to after base definition for correct cascade */
}
@media(max-width:420px){
  .camp-grid-triptych{grid-template-columns:1fr;}
  .camp-grid-triptych .camp-cell{aspect-ratio:3/4;}
  .camp-grid-quad{grid-template-columns:1fr;}
  .camp-grid-quad .camp-cell:not(.camp-cell--hero){aspect-ratio:3/4;}
  .camp-grid-flow{grid-template-columns:1fr;}
  .camp-grid-3{grid-template-columns:1fr;}
  .camp-section--packshots .camp-grid-3{grid-template-columns:repeat(2,1fr);}
  /* Bento — collapse to single column on very small */
  .camp-bento{grid-template-columns:1fr;gap:3px;}
  .camp-bento .camp-cell,
  .camp-bento .camp-cell[data-role="hero"]{grid-column:auto;aspect-ratio:4/5;}
  .camp-filmstrip-cell{flex-basis:84vw;}
}

/* ══════════════════════════════════════════════════════════════ */

/* ── INSTAGRAM GRID ROW — 3 cols côte à côte, format naturel ── */
.cs-insta-row{
  display:flex;
  gap:4px;
  width:100%;
  padding:0 2rem;
  margin-bottom:6px;
}
.cs-insta-cell{
  flex:1;min-width:0;
  height:clamp(280px,48vh,520px);
  cursor:pointer;
  overflow:hidden;
  position:relative;
  border:1px solid transparent;
  transition:border-color .2s, opacity .2s;
}
.cs-insta-cell:hover{
  opacity:.9;
  border-color:rgba(91,14,175,.18);
}
.cs-insta-cell img{
  width:100%;height:100%;
  object-fit:contain;
  display:block;
  background:#f9f8f6;
}
body.dark .cs-insta-cell img{background:#141210;}

/* Responsive insta row */
@media(max-width:900px){
  .cs-insta-row{padding:0 1.2rem;}
}
@media(max-width:640px){
  .cs-insta-row{padding:0 .8rem;gap:2px;}
}

/* Arrows — flottants, apparaissent au hover du wrapper */
.cs-hs-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(13,12,10,.8);color:var(--cr);
  border:none;width:38px;height:38px;border-radius:50%;
  font-family:var(--mono);font-size:.75rem;line-height:38px;text-align:center;
  cursor:pointer;opacity:0;
  transition:opacity .22s, background .18s, transform .18s;
  z-index:3;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.cs-hscroll-wrap:hover .cs-hs-nav{opacity:.65;}
.cs-hs-nav:hover{opacity:1 !important;background:var(--v);transform:translateY(-50%) scale(1.08);}
.cs-hs-nav--prev{left:8px;}
.cs-hs-nav--next{right:108px;}

/* Progress bar */
.cs-hs-progress{
  height:1px;
  background:rgba(13,12,10,.07);
  margin:.7rem 2rem 1.8rem;
  width:calc(100% - 4rem);
}
.cs-hs-progress-fill{
  height:100%;background:var(--v);
  width:0%;transition:width .1s linear;
}

/* Fade edge droit */
.cs-hscroll-wrap::after{
  content:'';position:absolute;
  top:0;right:0;bottom:0;width:100px;
  background:linear-gradient(90deg, transparent, var(--cr));
  pointer-events:none;z-index:2;
}

/* Dark mode */
body.dark .cs-hscroll-item{background:rgba(232,228,220,.03);}
body.dark .cs-hscroll-item:hover{border-color:rgba(192,132,252,.18);}
body.dark .cs-hs-nav{background:rgba(232,228,220,.8);color:var(--ink);}
body.dark .cs-hs-nav:hover{background:var(--v);color:#fff;}
body.dark .cs-hs-progress{background:rgba(232,228,220,.07);}
body.dark .cs-hscroll-wrap::after{
  background:linear-gradient(90deg, transparent, var(--ink));
}

/* Responsive — portrait scroll */
@media(max-width:1400px){
  .cs-hscroll-item{width:clamp(180px, 22vw, 260px);}
}
@media(max-width:900px){
  .cs-hscroll-wrap{padding:0 0 0 1.2rem;}
  .cs-hscroll-track{height:clamp(320px, 55vh, 500px);gap:6px;padding:0 70px 0 0;}
  .cs-hscroll-item{width:clamp(160px, 26vw, 240px);}
  .cs-hs-nav--next{right:78px;}
}
@media(max-width:640px){
  .cs-hscroll-wrap{padding:0 0 0 .8rem;}
  .cs-hscroll-track{height:clamp(280px, 50vh, 420px);gap:5px;padding:0 50px 0 0;}
  .cs-hscroll-item{width:clamp(140px, 38vw, 200px);}
  .cs-hscroll-item.cmed-gif{width:clamp(130px, 36vw, 190px);}
  .cs-hs-nav{display:none;}
  .cs-hscroll-wrap::after{width:50px;}
  .cs-hs-progress{margin:.5rem .8rem 1.2rem;width:calc(100% - 1.6rem);}
}
@media(max-width:380px){
  .cs-hscroll-track{height:clamp(240px, 48vh, 360px);gap:4px;}
  .cs-hscroll-item{width:clamp(120px, 42vw, 180px);}
}

/* ─── LIGHTBOX ─── */
#lightbox{
  position:fixed;inset:0;z-index:9999;
  display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .3s var(--ease-pf);
}
#lightbox.on{opacity:1;}
.lb-bg{
  position:absolute;inset:0;
  background:rgba(13,12,10,.92);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  cursor:pointer;
}
.lb-img-wrap{
  position:relative;z-index:1;
  max-width:90vw;max-height:88vh;
  display:flex;align-items:center;justify-content:center;
}
.lb-img{
  max-width:90vw;max-height:88vh;object-fit:contain;
  transition:opacity .15s var(--ease-pf);user-select:none;
}
.lb-close{
  position:absolute;top:20px;right:24px;z-index:2;
  font-size:2rem;color:#fff;background:none;border:none;
  cursor:pointer;opacity:.7;transition:opacity .2s;line-height:1;
}
.lb-close:hover{opacity:1;}
.lb-prev,.lb-next{
  position:absolute;top:50%;z-index:2;transform:translateY(-50%);
  font-size:2.4rem;color:#fff;background:none;border:none;
  cursor:pointer;opacity:.5;transition:opacity .2s;
  line-height:1;padding:20px 16px;
}
.lb-prev{left:10px;}.lb-next{right:10px;}
.lb-prev:hover,.lb-next:hover{opacity:1;}
.lb-counter{
  position:absolute;bottom:20px;left:50%;transform:translateX(-50%);z-index:2;
  font-family:var(--mono);font-size:.38rem;letter-spacing:.18em;
  color:rgba(255,255,255,.5);
}
body.dark .lb-bg{background:rgba(13,12,10,.96);}
@media(max-width:600px){
  .lb-prev,.lb-next{font-size:1.6rem;padding:14px 10px;}
  .lb-close{font-size:1.6rem;top:12px;right:14px;}
}

/* WORK PREVIEW TOOLTIP */
/* WORK PREVIEW — format dossier/document */
/* ── WORK PREVIEW — cursor-following portrait card ── */
#work-preview{
  position:fixed;
  top:0;left:0;
  pointer-events:none;
  z-index:500;
  width:168px;
  opacity:0;
  will-change:transform;
  /* Only opacity/scale transition — lerp handles xy movement */
  transition:opacity .22s var(--ease-pf),
             scale .28s var(--ease-pf);
  scale:0.88;
}
#work-preview.show{opacity:1;scale:1;}
.wp-img-wrap{
  width:100%;
  aspect-ratio:3/4;
  border-radius:4px;
  overflow:hidden;
  position:relative;
  background:rgba(13,12,10,.04);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 22px 56px rgba(13,12,10,.28),0 2px 8px rgba(13,12,10,.12);
}
.wp-img{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  transform:scale(1.04);
  transition:opacity .28s var(--ease-pf);
}
.wp-img--a{opacity:1;}
.wp-img--b{opacity:0;}
.wp-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(13,12,10,.85) 0%,rgba(13,12,10,.0) 52%);
  display:flex;flex-direction:column;
  justify-content:flex-end;
  padding:10px 9px;gap:2px;
}
.wp-cat{
  font-family:var(--mono);font-size:.26rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--v3);opacity:.85;
}
.wp-title{
  font-family:var(--grotesk);font-size:.5rem;font-weight:700;
  text-transform:uppercase;color:#F5F2EC;letter-spacing:-.02em;
  line-height:1.1;
}
.wp-meta{
  display:flex;align-items:center;justify-content:space-between;
  padding:5px 1px 0;
}
.wp-scope{
  font-family:var(--mono);font-size:.26rem;letter-spacing:.1em;
  text-transform:uppercase;color:rgba(13,12,10,.38);
}
body.dark .wp-scope{color:rgba(232,228,220,.32);}
.wp-count{
  font-family:var(--mono);font-size:.26rem;letter-spacing:.08em;
  color:rgba(91,14,175,.5);text-transform:uppercase;
}
body.dark .wp-count{color:rgba(192,132,252,.5);}
/* HERO COPY — ancrée bas-gauche, layout colonne simple */
.hero-copy{
  position:absolute;bottom:0;left:0;z-index:5;
  /* max-width défensif : matche la largeur dynamique du cta-block (18vw clampé 220/380) */
  width:clamp(320px,60vw,1100px);
  max-width:calc(100% - clamp(220px,22vw,380px));
  display:flex;flex-direction:column;align-items:flex-start;
  padding:0 2rem clamp(1.8rem,3.5vh,2.8rem);
  gap:0;
  opacity:0;transform:translateY(12px);
  transition:opacity .9s .5s,transform 1s .5s var(--ease-pf);
}
#site.on .hero-copy{opacity:1;transform:none;}

/* CTA BLOCK — bas droit, même gutter 2rem */
.hero-cta-block{
  position:absolute;bottom:0;right:0;z-index:5;
  display:flex;flex-direction:column;
  align-items:center; /* tag centré avec le bouton */
  padding:0 2rem clamp(3.6rem,7vh,5.4rem);
  gap:0; /* spacing géré par margin-bottom du tag */
  min-width:clamp(180px,18vw,260px); /* largeur min pour un beau bloc groupé */
  opacity:0;transform:translateY(12px);
  transition:opacity .9s .65s,transform 1s .65s var(--ease-pf);
}
#site.on .hero-cta-block{opacity:1;transform:none;}
.hero-cta-block .hero-tag{
  text-align:center;      /* centré avec le bouton */
  width:100%;
  line-height:1.9;        /* respiration entre les 2 lignes */
  letter-spacing:.14em;
  font-size:clamp(.44rem,.9vw,.52rem);
  margin-bottom:.6rem;    /* gap explicite avant le CTA */
}
.hero-cta-block .hero-cta{
  text-align:center;
  align-self:stretch;
  justify-content:center;
  margin-top:0; /* géré par le gap du flex parent + margin-bottom du tag */
}

/* hero-left supprimé — direct children maintenant */
.hero-left{display:contents;}
.hero-ey{
  font-family:var(--mono);font-size:clamp(.50rem,.9vw,.58rem);
  letter-spacing:.18em;text-transform:uppercase;
  color:var(--v);margin-bottom:clamp(.9rem,1.8vh,1.4rem);
  display:flex;align-items:center;gap:8px;
}
.hero-ey::before{content:'—';color:rgba(13,12,10,.42);}
.hero-h1{
  font-family:var(--grotesk);
  font-size:clamp(2.8rem,6.5vw,7.5rem);
  font-weight:700;line-height:.84;letter-spacing:-.04em;text-transform:uppercase;
  margin-bottom:clamp(.55rem,1.1vh,.86rem);
}
.hero-h1 .w1{font-weight:700;color:var(--ink);}
.hero-h1 .w2{font-weight:700;color:var(--ink);}
.hero-h1 .w3{font-weight:700;color:var(--v);}
.hero-h1 .w4{font-weight:300;color:rgba(13,12,10,.72);font-size:1em;letter-spacing:-.04em;vertical-align:0;}

/* ── HERO GHOST NUMBER — masse atmosphérique droite ───────────────
   Chiffre fantôme ancré bas-droit, style pagination magazine luxe.
   Derrière le DNA (z-index:1), devant le fond (z-index:2).
──────────────────────────────────────────────────────────────── */
.hero-bg-num{
  position:absolute;
  right:clamp(3rem,7vw,8rem);
  bottom:clamp(9rem,18vh,14rem);   /* remonté pour libérer le cta-block */
  z-index:2;
  font-family:var(--cond);
  font-size:clamp(8rem,22vw,20rem);
  font-weight:700;
  line-height:1;
  letter-spacing:-.04em;
  color:rgba(91,14,175,.055);
  pointer-events:none;
  user-select:none;
  opacity:0;
  transition:opacity 1.2s 1s cubic-bezier(.16,1,.3,1);
}
#site.on .hero-bg-num{opacity:1;}
/* Masqué sur mobile */
@media(max-width:900px){.hero-bg-num{display:none;}}
body.dark .hero-bg-num{color:rgba(192,132,252,.045);}

/* hero-sep retiré — vestigial, absent du HTML */

/* ── Hero Weather Big ── */
/* ── Weather bar ── */
.hero-weather-big{
  font-size:clamp(.46rem,1.2vw,.6rem)!important;
  letter-spacing:.1em!important;
  display:inline-flex;align-items:center;gap:3px;
}
.w-icon{font-size:clamp(16px,1.8vw,22px);line-height:1;vertical-align:middle;flex-shrink:0;margin-right:1px;}
.w-sep{opacity:.38;margin:0 1px;}
.w-metric{letter-spacing:.1em;transition:color .25s;}
/* UV text — couleur au hover */
.w-metric--uv:hover{color:var(--uvc,inherit);cursor:default;}
/* Temp text — couleur au hover */
.w-metric--temp:hover{color:var(--tc,inherit);cursor:default;}
/* Toutes les pastilles météo — taille unifiée */
.w-dot{width:6px;height:6px;}

/* Dot indicator */
.w-dot{
  display:inline-block;
  width:5px;height:5px;border-radius:50%;
  background:var(--dc,rgba(13,12,10,.18));
  vertical-align:middle;
  flex-shrink:0;
  position:relative;
  margin-right:3px;
  transition:transform .2s;
}
/* Pulse ring — idle permanent (très subtil) + hover renforcé */
.w-dot--live::after{
  content:'';
  position:absolute;
  inset:-4px;border-radius:50%;
  background:var(--dc);
  opacity:0;
  animation:dot-pulse-idle 4.5s ease-out infinite;
}
/* Hover : pulse plus rapide et plus intense */
.w-dot--live:hover::after{
  animation:dot-pulse 1.8s ease-out infinite;
}
@keyframes dot-pulse-idle{
  0%{transform:scale(1);opacity:.28;}
  55%{transform:scale(2.6);opacity:0;}
  100%{transform:scale(2.6);opacity:0;}
}
@keyframes dot-pulse{
  0%{transform:scale(1);opacity:.6;}
  100%{transform:scale(3.4);opacity:0;}
}
/* Hover: scale up le dot */
.hb-bar span:hover .w-dot,
.w-dot:hover{transform:scale(1.6);}
/* ── Hero-beacon — taille de base partagée ── */
.hb-bar > span,
.hb-right,
.hb-city,
.hb-sep,
#hero-time,
.hero-weather-big{
  font-size:clamp(.44rem,1.1vw,.56rem) !important;
  letter-spacing:.12em;
}

/* ── Hero Ambient Data Module (legacy, hidden) ── */
.hero-ambient{
  display:none;flex-direction:column;gap:0;
  border:1px solid rgba(13,12,10,.08);
  padding:0;width:100%;max-width:220px;
  opacity:0;animation:fadeInUp .8s var(--ease-pf) 1.2s forwards;
}
@keyframes fadeInUp{
  from{opacity:0;transform:translateY(12px);}
  to{opacity:1;transform:translateY(0);}
}
.ha-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:7px 12px;
}
.ha-label{
  font-family:var(--mono);font-size:.4rem;letter-spacing:.14em;
  text-transform:uppercase;font-weight:300;
  color:rgba(13,12,10,.3);
}
.ha-val{
  font-family:var(--mono);font-size:.42rem;letter-spacing:.1em;
  text-transform:uppercase;font-weight:400;
  color:rgba(13,12,10,.6);
}
.ha-status{color:var(--v);font-weight:500;font-size:.4rem;}
.ha-process{color:rgba(13,12,10,.35);font-weight:300;letter-spacing:.18em;font-size:.36rem;}
.ha-divider{height:1px;background:rgba(13,12,10,.06);}
body.dark .hero-ambient{border-color:rgba(232,228,220,.08);}
body.dark .ha-label{color:rgba(232,228,220,.25);}
body.dark .ha-val{color:rgba(232,228,220,.5);}
body.dark .ha-status{color:var(--v2);}
body.dark .ha-process{color:rgba(232,228,220,.25);}
body.dark .ha-divider{background:rgba(232,228,220,.05);}

.hero-tag{
  font-family:var(--mono);font-size:clamp(.42rem,.9vw,.5rem);font-weight:400;
  letter-spacing:.1em;text-transform:uppercase;
  color:rgba(13,12,10,.5);text-align:left;line-height:1.6;
  margin-top:clamp(.4rem,.8vh,.7rem);
}
.hero-tag b{color:var(--ink);font-weight:600;}

/* ── FOOTER — style cristal, miroir header ── */
.pf-footer{
  flex-shrink:0;
  display:grid;grid-template-columns:1fr 2.2fr 1fr 1fr 1fr;
  gap:4px;
  padding:0 12px max(12px, calc(12px + env(safe-area-inset-bottom)));
  width:100%;
  box-sizing:border-box;
  /* Animation pour pages statiques (sans système .view) */
  animation:footer-in .65s var(--ease-pf) .35s both;
}
/* Pages SPA — contrôlé par .view */
.view .pf-footer{animation:none;opacity:0;transform:translateY(4px);}
.view.on .pf-footer{opacity:1;transform:none;transition:opacity .7s .7s,transform .7s .7s;}
.view:not(.on) .pf-footer{opacity:0;pointer-events:none;transition:none;}
@keyframes footer-in{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}

.pf-fc{
  min-height:56px;
  padding:0 1.3rem;
  border-radius:4px;
  background:rgba(245,242,236,.28);
  backdrop-filter:blur(16px) saturate(1.2);
  -webkit-backdrop-filter:blur(16px) saturate(1.2);
  border:1px solid rgba(13,12,10,.09);
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:1rem;
  overflow:hidden;min-width:0;
  transition:border-color .25s,background .25s;
}
/* FIELDS cell — col layout for ticker */
.pf-fc:nth-child(2){
  flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;
  padding:10px 1.3rem;
}
.pf-fl{
  font-family:var(--mono);font-size:.44rem;font-weight:400;
  letter-spacing:.16em;text-transform:uppercase;
  color:rgba(13,12,10,.38);
  white-space:nowrap;line-height:1;
  flex-shrink:0;
  display:block;
}
/* Premier .pf-fl du footer = symbole © seul (sans data-fr/data-en).
   Taille augmentée pour lisibilité — il sert d'ancre visuelle gauche. */
.pf-footer .pf-fc:first-child .pf-fl{
  font-size:.95rem;letter-spacing:0;
  color:rgba(13,12,10,.55);
}
body.dark .pf-footer .pf-fc:first-child .pf-fl{
  color:rgba(232,228,220,.6);
}
.pf-fv{
  font-family:var(--mono);font-size:.66rem;font-weight:500;
  letter-spacing:.04em;text-transform:uppercase;
  color:rgba(13,12,10,.88);
  white-space:nowrap;line-height:1.2;
  display:block;
}
/* ticker */
.pf-ticker{
  display:block;overflow:hidden;width:100%;
  line-height:1.2;
}
.pf-ticker-inner{
  display:flex;align-items:center;
  width:max-content; /* critical — makes translateX(-50%) = exactly 1 content cycle */
  font-family:var(--mono);font-size:.62rem;font-weight:500;
  letter-spacing:.05em;text-transform:uppercase;
  white-space:nowrap;
  will-change:transform;
  animation:ticker 18s linear infinite;
}
.pf-ticker-inner span{ color:var(--ink); }
.pf-ticker-inner span.sep{ color:rgba(13,12,10,.28); font-weight:400; letter-spacing:.04em; }
.pf-ticker-inner span.sep.sep--double{ color:rgba(13,12,10,.32); font-size:.66rem; font-weight:500; letter-spacing:.1em; opacity:1; padding:0 .3em; }
@keyframes ticker{0%{transform:translateX(0);}100%{transform:translateX(var(--ticker-shift,-50%));}}
/* social */
.pf-social{
  display:flex;gap:14px;align-items:center;
}
.pf-social a{
  display:flex;align-items:center;
  color:rgba(13,12,10,.38);
  transition:color .15s;cursor:none;
}
.pf-social a:hover{color:var(--v);}
.pf-copy{
  font-family:var(--mono);font-size:.42rem;letter-spacing:.1em;
  text-transform:uppercase;color:rgba(13,12,10,.32);
  white-space:nowrap;margin-top:2px;
}
body.dark .pf-copy{color:rgba(232,228,220,.25);}
/* ALCHEMY CTA — cellule distinctive par tint de fond */
.pf-fc-al{
  cursor:none;
  display:flex;align-items:center;
  background:rgba(91,14,175,.06);
  transition:background .18s;
}
.pf-fc-al:hover{background:rgba(91,14,175,.10);}
.al-btn{display:flex;align-items:center;gap:10px;}
.al-ico{
  font-size:1.2rem;
  animation:alico 3.5s ease-in-out infinite;
}
@keyframes alico{0%,100%{opacity:.6;transform:scale(1)}50%{opacity:1;transform:scale(1.1)}}
.al-lbl{display:flex;flex-direction:column;gap:1px;}
.al-lbl span:first-child{
  font-family:var(--mono);font-size:.4rem;font-weight:400;
  letter-spacing:.2em;text-transform:uppercase;
  color:rgba(13,12,10,.35);
}
.al-lbl span:last-child{
  font-family:var(--mono);font-size:.58rem;font-weight:500;
  letter-spacing:.04em;text-transform:uppercase;
  color:var(--v);transition:letter-spacing .3s var(--ease-pf);
}
.pf-fc-al:hover .al-lbl span:last-child{letter-spacing:.08em;}

/* ════════════════════════════════
   HERO — BOUTON PLAYFUL CHEMISTRY
════════════════════════════════ */
.hero-alch-btn{
  display:inline-flex;align-items:center;gap:15px;
  border:1.5px solid var(--ink);
  padding:clamp(10px,1.4vw,14px) clamp(16px,2.8vw,22px) clamp(10px,1.4vw,14px) clamp(14px,2.2vw,18px);
  background:transparent;
  backdrop-filter:none;
  border-radius:3px;
  cursor:none;position:relative;overflow:hidden;
  transition:border-color .3s,background .3s,box-shadow .3s;
}
@keyframes btn-breathe{
  0%,100%{
    border-color:rgba(91,14,175,.18);
    box-shadow:0 0 0 0 rgba(91,14,175,0),0 2px 8px rgba(91,14,175,0);
    transform:translateY(0);
  }
  50%{
    border-color:rgba(91,14,175,.44);
    box-shadow:0 0 18px 3px rgba(91,14,175,.07),0 4px 16px rgba(91,14,175,.05);
    transform:translateY(-1px);
  }
}
/* fill hover — encre noire */
.hero-alch-btn::before{
  content:'';position:absolute;inset:0;
  background:var(--ink);transform:scaleX(0);transform-origin:left;
  transition:transform .3s var(--ease-pf);z-index:0;
}
/* scan sweep supprimé — outlined n'en a pas besoin */
.hero-alch-btn::after{display:none;}
.hero-alch-btn:hover{border-color:var(--ink);background:transparent;box-shadow:none;}
.hero-alch-btn:hover::before{transform:scaleX(1);}
.hero-alch-btn:hover .hero-alch-sub,
.hero-alch-btn:hover .hero-alch-main{color:#F5F2EC !important;}
.hero-alch-btn:hover .hero-alch-main{letter-spacing:.10em;}
.hero-alch-btn:hover .hero-alch-ico{color:var(--v) !important;}
.hero-alch-btn:hover .hero-alch-arrow{color:var(--v3) !important;}
.hero-alch-ico{
  width:24px;height:24px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  position:relative;z-index:1;color:var(--ink);
  opacity:1;
  transition:color .22s,transform .28s var(--ease-pf);
}
.hero-alch-btn:hover .hero-alch-ico{transform:rotate(12deg) scale(1.08);}
/* SVG tube — contour trait, incliné -35°, liquide partiel, goutte currentColor */
.hero-alch-tube{display:block;overflow:visible;}
.hero-alch-txt{display:flex;flex-direction:column;gap:1px;position:relative;z-index:1;}
.hero-alch-sub{
  font-family:var(--mono);font-size:.38rem;font-weight:400;
  letter-spacing:.22em;text-transform:uppercase;
  color:rgba(91,14,175,.5);transition:color .22s;
}
.hero-alch-main{
  font-family:var(--grotesk);font-size:1.02rem;font-weight:600;
  letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink);transition:color .22s,letter-spacing .35s var(--ease-pf);
}
.hero-alch-arrow{
  font-family:var(--mono);font-size:.82rem;color:rgba(13,12,10,.55);
  position:relative;z-index:1;
  transition:transform .28s var(--ease-pf),color .22s;
}
.hero-alch-btn:hover .hero-alch-arrow{transform:translateX(5px);}

/* ════════════════════════════════
   ALCHEMY — RAPPORT SCIENTIFIQUE
   Ref: Scale Studio — thick border frame,
   slightly rounded corners, warm neutral,
   registration mark crosshairs
════════════════════════════════ */
#alch{
  position:fixed;inset:0;z-index:2000;
  background:rgba(13,12,10,.5);
  display:none;align-items:center;justify-content:center;
  opacity:0;transition:opacity .32s;
}
#alch.open{display:flex;}
#alch.vis{opacity:1;}

.alch-win{
  background:transparent;
  border:none;
  border-radius:0;
  width:min(900px,96vw);max-height:88vh;
  display:flex;flex-direction:column;
  overflow:visible;
  position:relative;
  filter:drop-shadow(0 28px 64px rgba(13,12,10,.26)) drop-shadow(0 4px 12px rgba(13,12,10,.11));
}
.alch-win::before,.alch-win::after{content:none;}

.at{
  align-self:flex-start;
  width:400px;flex-shrink:0;height:40px;
  display:grid;grid-template-columns:auto 1fr;
  background:var(--ink);
  border:2px solid rgba(80,78,72,.38);
  border-bottom:none;
  border-radius:8px 8px 0 0;
  position:relative;z-index:2;
  margin-bottom:-2px;
}
.at-cell{
  display:flex;align-items:center;padding:0 1.4rem;
  border-right:1px solid rgba(255,255,255,.08);
}
.at-cell:last-child{border-right:none;}
.at-ref{font-family:var(--mono);font-size:.46rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(245,242,236,.55);}
.at-count{font-family:var(--mono);font-size:.44rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(245,242,236,.95);}
.at-x{font-family:var(--mono);font-size:.46rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(245,242,236,.38);transition:color .15s;}
.at-x:hover{color:rgba(245,242,236,.9);}

.ab{
  flex:1;display:grid;grid-template-columns:200px 1fr 220px;min-height:0;overflow:hidden;
  background:#ECF0F8;
  border:2px solid rgba(40,60,130,.1);
  border-top:none;
  border-radius:0 10px 10px 10px;
}

.al{
  border-right:1px solid rgba(40,60,130,.09);
  padding:1.4rem 1.2rem;
  display:flex;flex-direction:column;gap:1rem;
  position:relative;overflow:hidden;
  background:#F3F6FC;
}
#dna-al{display:none;}
.mol-bg{position:absolute;pointer-events:none;fill:none;stroke:var(--ink);stroke-width:1;stroke-linecap:round;stroke-linejoin:round;z-index:0;opacity:.07;}
body.dark .mol-bg{stroke:rgba(232,228,220,1);opacity:.06;}
.al-ref{font-family:var(--mono);font-size:.4rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(30,50,110,.35);opacity:1;position:relative;z-index:1;}
.al-title{font-family:var(--grotesk);font-size:clamp(1.3rem,2vw,2rem);font-weight:700;line-height:.9;color:#080D20;position:relative;z-index:1;}
.al-title span{color:#5B0EAF;}
.al-inst{font-family:var(--mono);font-size:.52rem;line-height:1.95;color:rgba(30,50,110,.6);position:relative;z-index:1;}
.al-inst strong{color:#5B0EAF;font-weight:600;}
.al-log{margin-top:auto;position:relative;z-index:1;}
.al-log-t{font-family:var(--mono);font-size:.4rem;letter-spacing:.18em;text-transform:uppercase;color:rgba(30,50,110,.25);display:block;margin-bottom:4px;padding-bottom:4px;border-bottom:1px solid rgba(40,60,130,.1);}
.al-log-list{display:flex;flex-direction:column;gap:2px;max-height:80px;overflow:hidden;}
.al-log-item{font-family:var(--mono);font-size:.46rem;letter-spacing:.08em;text-transform:uppercase;color:#5B0EAF;animation:fdi .35s ease;}
@keyframes fdi{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:none}}

.ac{
  display:flex;flex-direction:column;align-items:center;
  position:relative;overflow:hidden;
  background-color:#F5F8FF;
  background-image:
    /* Vignette top — légère profondeur */
    linear-gradient(180deg,rgba(220,228,248,.5) 0%,transparent 30%),
    /* Glow violet bas — zone réaction */
    radial-gradient(ellipse 85% 45% at 50% 110%,rgba(91,14,175,.07) 0%,transparent 100%),
    /* Dot matrix — LCD précision */
    radial-gradient(circle,rgba(60,80,160,.06) 1px,transparent 1px);
  background-size:auto,auto,4px 4px;
}
/* registration marks — cold steel */
.ac::before{
  content:'+';font-family:var(--mono);font-size:.52rem;font-weight:400;
  color:rgba(60,80,160,.22);letter-spacing:0;line-height:1;
  position:absolute;top:10px;left:12px;
  pointer-events:none;z-index:1;
}
.ac::after{
  content:'+';font-family:var(--mono);font-size:.52rem;font-weight:400;
  color:rgba(60,80,160,.22);letter-spacing:0;line-height:1;
  position:absolute;top:10px;right:12px;
  pointer-events:none;z-index:1;
}
/* ── Bouton fermer alch-win — top-right absolu ── */
/* ── Languette fermer — tab noir en miroir de .at, côté droit ── */
.alch-close{
  position:absolute;top:0;right:0;
  height:40px;
  display:flex;align-items:center;gap:6px;
  padding:0 16px;
  background:var(--ink);
  border:2px solid rgba(80,78,72,.38);
  border-bottom:none;
  border-radius:8px 8px 0 0;
  font-family:var(--mono);letter-spacing:.12em;text-transform:uppercase;
  cursor:pointer;z-index:3;
  transition:opacity .18s;
  opacity:1;
}
.alch-close:hover{opacity:.75;}
.alch-close-x{
  font-size:.88rem;font-weight:300;line-height:1;
  color:rgba(245,242,236,.88);
}
.alch-close-esc{
  font-size:.37rem;
  color:rgba(245,242,236,.55);
  letter-spacing:.14em;
}
/* Dark mode — même inversion que .at : fond crème, texte encre */
body.dark .alch-close{background:#F5F2EC;border-color:rgba(13,12,10,.18);}
body.dark .alch-close-x{color:rgba(13,12,10,.88);}
body.dark .alch-close-esc{color:rgba(13,12,10,.55);}

/* ── Protocol strip — instruction réactive lisible ── */
.ac-proto{
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  min-height:36px;
  padding:.55rem 1.2rem .52rem;
  border-bottom:1px solid rgba(40,60,130,.09);
  background:rgba(255,255,255,.55);
}
/* Trois messages — un seul visible selon état */
.proto-msg{
  font-family:var(--mono);
  font-size:clamp(.58rem,.65vw,.72rem);
  letter-spacing:.1em;text-transform:uppercase;
  font-weight:500;line-height:1.2;
  transition:opacity .24s,color .24s;
}
/* État 0 — idle : visible, pulse discret */
@keyframes proto-breathe{0%,100%{opacity:.55;}50%{opacity:.82;}}
.proto-idle{
  display:block;
  color:rgba(20,35,90,.62);
  animation:proto-breathe 2.6s ease-in-out infinite;
}
.proto-one,.proto-two{display:none;}
/* État 1 — s1 sélectionné, pas s2 */
.ac:has(.s1):not(:has(.s2)) .proto-idle{display:none;}
.ac:has(.s1):not(:has(.s2)) .proto-one{
  display:block;
  color:rgba(91,14,175,.78);
  animation:none;
}
/* État 2 — les deux sélectionnés */
.ac:has(.s1):has(.s2) .proto-idle,.ac:has(.s1):has(.s2) .proto-one{display:none;}
@keyframes proto-ready{0%,100%{opacity:.85;}50%{opacity:1;}}
.ac:has(.s1):has(.s2) .proto-two{
  display:block;
  color:rgba(91,14,175,.95);
  animation:proto-ready 1.2s ease-in-out infinite;
  font-weight:600;
}
/* dark mode */
body.dark .ac-proto{background:rgba(0,0,0,.22);border-bottom-color:rgba(140,155,200,.1);}
body.dark .proto-idle{color:rgba(180,200,240,.6);}
body.dark .ac:has(.s1):not(:has(.s2)) .proto-one{color:rgba(192,132,252,.85);}
body.dark .ac:has(.s1):has(.s2) .proto-two{color:rgba(192,132,252,1);}

/* ── Tubes invitation — float staggeré à l'idle ── */
@keyframes tube-invite{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-5px);}
}
/* Stagger via custom property — actif seulement quand aucun tube sélectionné */
.tc{--td:0s;}
.tc:nth-child(1){--td:0s;}
.tc:nth-child(2){--td:.55s;}
.tc:nth-child(3){--td:1.1s;}
.tc:nth-child(4){--td:1.65s;}
.tc:nth-child(5){--td:2.2s;}
.tc:nth-child(6){--td:2.75s;}
.tr:not(:has(.s1,.s2)) .tc{animation:tube-invite 2.8s ease-in-out var(--td) infinite;}
/* Dès qu'une sélection commence — tout stoppe net */
.tr:has(.s1,.s2) .tc{animation:none !important;}

.ac-fire{
  flex:1;
  display:flex;align-items:center;justify-content:center;
  position:relative;min-height:0;overflow:hidden;
  max-height:clamp(180px,30vh,260px);
  /* Crosshair structurel — centre optique */
  background-image:
    linear-gradient(90deg,transparent calc(50% - .5px),rgba(40,60,160,.045) calc(50% - .5px),rgba(40,60,160,.045) calc(50% + .5px),transparent calc(50% + .5px)),
    linear-gradient(180deg,transparent calc(50% - .5px),rgba(40,60,160,.045) calc(50% - .5px),rgba(40,60,160,.045) calc(50% + .5px),transparent calc(50% + .5px));
}
/* Vessel ring — descend vers la flamme (flamme à ~85% du canvas, offset mesuré) */
.ac-fire::before{
  content:'';
  position:absolute;left:50%;top:calc(50% + 35px);
  transform:translate(-50%,-50%);
  width:clamp(96px,11vw,136px);height:clamp(96px,11vw,136px);
  border-radius:50%;
  border:1px solid rgba(40,60,160,.18);
  background:radial-gradient(circle at 50% 75%,rgba(91,14,175,.05) 0%,transparent 70%);
  pointer-events:none;z-index:0;
  transition:border-color .5s,box-shadow .5s;
}
.ac-fire.lit::before{
  border-color:rgba(91,14,175,.45);
  box-shadow:0 0 28px rgba(91,14,175,.1),inset 0 0 20px rgba(91,14,175,.08);
}
/* Scan line — monitoring sweep */
.ac-fire::after{
  content:'';
  position:absolute;left:8%;right:8%;height:1px;
  background:linear-gradient(90deg,transparent 0%,rgba(40,60,160,.15) 22%,rgba(91,14,175,.22) 50%,rgba(40,60,160,.15) 78%,transparent 100%);
  pointer-events:none;z-index:2;
  animation:ac-scan 5.5s ease-in-out infinite;
}
@keyframes ac-scan{
  0%  {top:12%;opacity:0;}
  9%  {opacity:.8;}
  50% {top:88%;opacity:.5;}
  91% {opacity:.8;}
  100%{top:12%;opacity:0;}
}
#fc{display:block;pointer-events:none;position:relative;z-index:1;}
.ac-res{padding:.5rem 1.2rem .6rem;text-align:center;min-height:50px;border-top:1px solid rgba(40,60,130,.1);}
.r-n{font-family:var(--grotesk);font-size:clamp(.8rem,1.2vw,1.1rem);font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#3D008A;opacity:0;transform:translateY(4px);transition:opacity .4s .3s,transform .4s .3s var(--ease-pf);}
.r-n.show{opacity:1;transform:none;}
.r-d{font-family:var(--mono);font-size:.42rem;line-height:1.7;color:rgba(30,50,110,.52);margin-top:2px;opacity:0;transform:translateY(4px);transition:opacity .4s .45s,transform .4s .45s var(--ease-pf);}
.r-d.show{opacity:1;transform:none;}
.ac-lab{flex-shrink:0;padding:.8rem 1rem 1rem;display:flex;flex-direction:column;align-items:center;gap:.7rem;border-top:1px solid rgba(40,60,130,.1);background:rgba(255,255,255,.5);}
.ac-cta{display:flex;align-items:center;gap:10px;}
.ac-mix{
  font-family:var(--mono);font-size:.7rem;font-weight:500;
  text-transform:uppercase;letter-spacing:.1em;
  color:rgba(30,50,110,.25);border:1px solid rgba(40,60,130,.18);
  padding:9px 22px;background:transparent;
  transition:all .24s var(--ease-pf);
}
.ac-mix:not([disabled]){color:#3D008A;border-color:rgba(61,0,138,.35);background:rgba(91,14,175,.05);}
.ac-mix:not([disabled]):hover{background:#5B0EAF;color:#FFFFFF;border-color:#5B0EAF;box-shadow:0 4px 20px rgba(91,14,175,.25);}
.ac-mix[disabled]{cursor:not-allowed;opacity:.28;pointer-events:auto;}
.ac-reset{font-family:var(--mono);font-size:.52rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#FFFFFF;display:none;background:#5B0EAF;border:1px solid #5B0EAF;padding:6px 16px;transition:all .18s;}
.ac-reset:hover{background:#7B2FD4;border-color:#7B2FD4;}
.ac-restart{font-family:var(--mono);font-size:.42rem;font-weight:400;letter-spacing:.1em;text-transform:uppercase;color:rgba(30,50,110,.32);background:transparent;border:1px solid rgba(40,60,130,.18);padding:5px 12px;transition:all .18s;cursor:pointer;}
.ac-restart:hover{color:#5B0EAF;border-color:rgba(91,14,175,.4);}
body.dark .ac-restart{color:rgba(140,155,200,.3);border-color:rgba(140,155,200,.12);}
body.dark .ac-restart:hover{color:#C084FC;border-color:rgba(192,132,252,.3);}

.tr{display:flex;align-items:flex-end;justify-content:center;gap:clamp(7px,1.1vw,15px);width:100%;}
.tc{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:none;transition:transform .24s var(--ease-pf);}
.tc:hover{transform:translateY(-7px);}
.tc.s1,.tc.s2{transform:translateY(-11px) !important;}
.tc-dot{width:7px;height:7px;border:1px solid rgba(30,50,110,.22);background:transparent;transition:all .2s;border-radius:50%;}
/* Selection feedback — dot allumé + glow tube + label violet + tcap teinté */
.tc.s1 .tc-dot,.tc.s2 .tc-dot{background:rgba(192,132,252,.85);border-color:rgba(192,132,252,.6);box-shadow:0 0 8px rgba(192,132,252,.75);}
.tc.s1 .tg,.tc.s2 .tg{box-shadow:0 0 0 1.5px rgba(192,132,252,.5),0 0 14px rgba(192,132,252,.18);}
.tc.s1 .tc-nm,.tc.s2 .tc-nm{color:rgba(192,132,252,.9);}
.tc.s1 .tcap,.tc.s2 .tcap{border-color:rgba(192,132,252,.65);}
.tw{position:relative;width:clamp(28px,2.6vw,38px);height:clamp(90px,12vh,135px);display:flex;flex-direction:column;}
.tcap{flex-shrink:0;height:6px;border:1.5px solid rgba(30,50,110,.2);border-bottom:none;border-radius:2px 2px 0 0;margin:0 2px;transition:border-color .22s;}
.tg{flex:1;border:1.5px solid rgba(30,50,110,.18);border-top:none;border-radius:0 0 999px 999px;overflow:hidden;position:relative;transition:border-color .22s,box-shadow .26s;background:rgba(240,244,255,.78);}
.tg::after{content:'';position:absolute;top:3%;left:10%;width:13%;height:32%;background:rgba(255,255,255,.85);border-radius:50%;filter:blur(1.5px);pointer-events:none;z-index:3;}
.tliq{position:absolute;bottom:0;left:0;right:0;height:80%;border-radius:0 0 999px 999px;transition:height .65s var(--ease-pf);opacity:.9;}
.bub{position:absolute;border-radius:50%;background:rgba(200,220,255,.25);animation:bub 2.6s ease-in-out infinite;}
@keyframes bub{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-7px) scale(.68)}}
.tc-nm{font-family:var(--mono);font-size:.48rem;font-weight:400;letter-spacing:.08em;text-transform:uppercase;color:rgba(30,50,110,.45);transition:color .2s;}
.tc:hover .tc-nm{color:rgba(30,50,110,.8);}

.ar{
  border-left:1px solid rgba(40,60,130,.1);
  padding:1.2rem 0;
  display:flex;flex-direction:column;gap:0;
  overflow-y:auto;
  background:#F3F6FC;
}
.ar-head{
  font-family:var(--mono);font-size:.48rem;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(30,50,110,.42);
  border-bottom:1px solid rgba(40,60,130,.1);
  padding:0 1.1rem .65rem;
  margin-bottom:0;
}
.ar-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;counter-reset:specimen;}

/* Ledger lines — catalogue physique, pas des boxes UI */
.ar-slot{
  border:none;
  border-bottom:1px solid rgba(40,60,130,.08);
  padding:9px 10px 8px;
  display:flex;flex-direction:column;gap:2px;
  transition:background .35s,border-left-width .2s;
  min-height:50px;position:relative;counter-increment:specimen;
  background:transparent;
}
.ar-slot:nth-child(odd){border-right:1px solid rgba(40,60,130,.06);}

/* Undiscovered — nom lisible pour la curiosité, description scellée */
.ar-slot:not(.found) .ar-slot-n{color:rgba(30,50,110,.28);}
.ar-slot:not(.found) .ar-slot-d{filter:blur(2.5px);opacity:.15;user-select:none;transition:filter .5s,opacity .5s;}

/* Found — carte révélée, accent violet marqué */
.ar-slot.found{
  background:rgba(91,14,175,.07);
  border-left:3px solid rgba(91,14,175,.65);
  padding-left:8px;
}
.ar-slot.found .ar-slot-n{color:#3A0080;}
.ar-slot.found .ar-slot-d{filter:none;transition:filter .4s .1s,opacity .4s .1s;}

/* Numéro catalogue — estampille en haut à droite */
.ar-slot::before{
  content:counter(specimen,decimal-leading-zero);
  font-family:var(--mono);font-size:clamp(7px,.44rem,8px);
  color:rgba(30,50,110,.18);letter-spacing:.04em;
  position:absolute;top:6px;right:7px;
  line-height:1;pointer-events:none;
}
.ar-slot.found::before{color:rgba(91,14,175,.45);}
.ar-slot.celebrate{border-color:rgba(192,132,252,.6);box-shadow:0 0 14px rgba(192,132,252,.25),inset 0 0 8px rgba(192,132,252,.05);animation:slot-pop .7s var(--ease-pf) forwards;}
@keyframes slot-pop{0%{transform:scale(1);}50%{transform:scale(1.04);}100%{transform:scale(1);}}
/* Fenêtre — border pulsant pendant la célébration finale */
@keyframes win-bloom{
  0%  {box-shadow:0 0 0 1px rgba(192,132,252,.08),0 8px 40px rgba(91,14,175,.08);}
  35% {box-shadow:0 0 0 1.5px rgba(192,132,252,.45),0 18px 80px rgba(91,14,175,.28);}
  100%{box-shadow:0 0 0 1px rgba(192,132,252,.18),0 10px 48px rgba(91,14,175,.12);}
}
.alch-win.celebrating{animation:win-bloom 2.8s cubic-bezier(.22,1,.36,1) forwards;}
/* Compteur af — bump scale sur nouvelle découverte */
@keyframes af-pulse{0%{transform:scale(1) translateY(0)}35%{transform:scale(1.16) translateY(-1px)}70%{transform:scale(.97)}100%{transform:scale(1) translateY(0)}}
#af.af-pulse{animation:af-pulse .38s cubic-bezier(.22,1,.36,1) both;}
/* Reduced motion — désactive toutes les animations du jeu */
@media(prefers-reduced-motion:reduce){
  .alch-win.celebrating{animation:none !important;}
  .ar-slot.celebrate{animation:none !important;box-shadow:0 0 12px rgba(192,132,252,.3) !important;}
  .tc.hint-partner .tg{animation:none !important;}
  .tc{transition:none !important;}
  .r-n,.r-d{transition:opacity .01ms !important;}
  .tliq{transition:none !important;}
  #af.af-pulse{animation:none !important;}
}
/* MIX shake — feedback bouton désactivé */
@keyframes btn-shake{0%,100%{transform:translateX(0);}25%{transform:translateX(-4px);}75%{transform:translateX(4px);}}
.ac-mix.shake{animation:btn-shake .3s ease;}
/* Tubes épuisés */
.tg.depleted{opacity:.4;filter:saturate(.3);transition:opacity .5s,filter .5s;}
.tc:has(.tg.depleted) .tc-nm{opacity:.35;}
/* Hint : tube partenaire pulse quand 1 essence sélectionnée */
.tc.hint-partner .tg{animation:hint-pulse 1.6s ease-in-out infinite;border-color:rgba(192,132,252,.35) !important;}
.tc.hint-partner .tc-nm{color:rgba(192,132,252,.7);}
@keyframes hint-pulse{0%,100%{box-shadow:0 0 0 rgba(192,132,252,0);}50%{box-shadow:0 0 14px rgba(192,132,252,.3);}}
/* Hint : indices dans les slots archive */
.ar-hint{display:block;font-family:var(--mono);font-size:.3rem;color:rgba(139,63,232,.4);letter-spacing:.04em;margin-top:2px;animation:hint-fade .5s ease;}
@keyframes hint-fade{from{opacity:0;transform:translateY(3px);}to{opacity:1;transform:translateY(0);}}
.ar-slot-n{font-family:var(--grotesk);font-size:clamp(9.5px,.62rem,11.5px);font-weight:700;text-transform:uppercase;color:#0A0E22;letter-spacing:.02em;line-height:1.2;}
.ar-slot-d{font-family:var(--mono);font-size:clamp(7.5px,.42rem,9px);line-height:1.55;color:rgba(30,50,110,.52);margin-top:1px;}

/* ════════════════════════════════
   WORK
════════════════════════════════ */
#vw{flex-direction:column;padding-top:80px;}
/* wrapper flex column for work view content */
#vw > .whead{flex-shrink:0;}
#vw > .wlist{flex:1;overflow-y:auto;display:flex;flex-direction:column;padding:38px 1.8rem 28px;gap:22px;}
#vw > .wlist-footer{
  flex-shrink:0;
  border-top:none;
  display:flex;flex-wrap:wrap;
  align-items:baseline;justify-content:flex-start;
  padding:6px 1.8rem 14px;gap:0 1.4rem;
  background:transparent;
  opacity:.72;
}
#vw > .wlist-footer .wlf-cell + .wlf-cell{position:relative;padding-left:1.4rem;}
#vw > .wlist-footer .wlf-cell + .wlf-cell::before{
  content:"";position:absolute;left:0;top:50%;
  width:2px;height:2px;border-radius:50%;
  background:rgba(13,12,10,.22);transform:translateY(-50%);
}
body.dark #vw > .wlist-footer{opacity:.62;}
body.dark #vw > .wlist-footer .wlf-cell + .wlf-cell::before{background:rgba(232,228,220,.2);}
/* HEAD — ligne éditoriale unique, pas de grille, pas de white lines */
.whead{
  flex-shrink:0;
  display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;
  padding:18px 1.8rem 14px;
  border-bottom:1px solid rgba(13,12,10,.10);
  flex-wrap:wrap;
  background:rgba(245,242,236,.88);
  backdrop-filter:blur(24px) saturate(1.35);
  -webkit-backdrop-filter:blur(24px) saturate(1.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.62),0 1px 0 rgba(13,12,10,.05);
  position:relative;z-index:10;
}
body.dark .whead{
  background:rgba(13,12,10,.85);
  backdrop-filter:blur(24px) saturate(1.3);
  -webkit-backdrop-filter:blur(24px) saturate(1.3);
  box-shadow:0 1px 0 rgba(0,0,0,.22);
  border-bottom-color:rgba(232,228,220,.08);
}
.whead-cell{
  padding:0;border:none;
  display:flex;align-items:center;gap:10px;
  min-height:0;
}
.whead-cell::before,.whead-cell::after{display:none;}
.whead-ref{
  font-family:var(--mono);font-size:.54rem;font-weight:500;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(13,12,10,.42);
  display:inline-flex;align-items:center;gap:8px;
}
.whead-ref::before{
  content:"";width:5px;height:5px;border-radius:50%;
  background:var(--v);opacity:.6;
}
body.dark .whead-ref{color:rgba(232,228,220,.38);}
body.dark .whead-ref::before{background:var(--v3);opacity:.7;}
.whead-t{
  font-family:var(--cond);
  font-size:clamp(1.7rem,3.4vw,3.5rem);
  font-weight:200;
  text-transform:uppercase;
  letter-spacing:-.03em;
  line-height:.9;
  color:var(--ink);
}
/* FILTRES — underline éditorial, accent top */
.wfilts{
  display:flex;gap:1.8rem;align-items:center;flex-wrap:wrap;
  padding:10px 1.8rem 0;
  border-bottom:none;
  position:relative;
}
.wfilts::before{
  content:"";position:absolute;top:0;left:1.8rem;right:1.8rem;height:1px;
  background:linear-gradient(90deg,rgba(91,14,175,.35) 0%,rgba(91,14,175,.12) 55%,transparent 100%);
}
body.dark .wfilts::before{
  background:linear-gradient(90deg,rgba(192,132,252,.38) 0%,rgba(192,132,252,.12) 55%,transparent 100%);
}
.wf{
  position:relative;
  font-family:var(--mono);font-size:.52rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;
  padding:8px 0 10px;border:none;margin:0;background:transparent;
  border-radius:0;
  color:rgba(13,12,10,.55);
  transition:color .24s var(--ease-pf);
  cursor:none;
}
.wf::after{
  content:"";position:absolute;left:0;right:0;bottom:0;
  height:1.5px;background:var(--ink);
  transform:scaleX(0);transform-origin:left center;
  transition:transform .34s var(--ease-pf);
}
.wf:hover{color:var(--ink);}
.wf:hover::after{transform:scaleX(.55);background:rgba(13,12,10,.35);}
.wf.on{color:var(--ink);}
.wf.on::after{transform:scaleX(1);background:var(--ink);}
body.dark .wf{color:rgba(232,228,220,.5);}
body.dark .wf::after{background:var(--cr);}
body.dark .wf:hover,body.dark .wf.on{color:var(--cr);}
body.dark .wf:hover::after{background:rgba(232,228,220,.32);}
body.dark .wf.on::after{background:var(--cr);}
/* Gallery nav links — inline arrow, même langage */
.wf.wf-link{color:var(--v2);}
.wf.wf-link::after{background:var(--v);}
.wf.wf-link:hover{color:var(--v);}
.wf.wf-link:hover::after{transform:scaleX(1);background:var(--v);}
body.dark .wf.wf-link{color:var(--v3);}
body.dark .wf.wf-link::after{background:var(--v3);}
body.dark .wf.wf-link:hover{color:var(--v3);}

/* SLIDING FILTER INDICATOR — single animated pill that travels between active tabs */
.wf-indicator{
  position:absolute;
  bottom:0;
  height:1.5px;
  background:var(--v);
  pointer-events:none;
  transition:left .34s var(--ease-pf),
             width .34s var(--ease-pf),
             background .24s var(--ease-pf);
  will-change:left,width;
}
body.dark .wf-indicator{background:var(--v3);}
/* Hide individual .wf::after underlines when indicator is active */
.wfilts.has-indicator .wf::after{display:none;}

/* ── WORK PAGE ENTRANCE — stagger category folders ── */
@keyframes wcat-in{
  from{opacity:0;transform:translateY(14px);}
  to  {opacity:1;transform:translateY(0);}
}
.wcat-group{
  opacity:0;
  animation:wcat-in .52s var(--ease-pf) both;
}
/* Stagger delays — each group 80ms apart */
.wcat-group:nth-child(1){animation-delay:.08s;}
.wcat-group:nth-child(2){animation-delay:.16s;}
.wcat-group:nth-child(3){animation-delay:.24s;}
.wcat-group:nth-child(4){animation-delay:.32s;}
.wcat-group:nth-child(5){animation-delay:.40s;}
.wcat-group:nth-child(n+6){animation-delay:.48s;}
@media(prefers-reduced-motion:reduce){
  .wcat-group{animation:none;opacity:1;}
}

/* ── PR TITLE micro-slide on hover ── */
.pr-t{
  transition:transform .3s var(--ease-pf),
             letter-spacing .3s var(--ease-pf);
}
.pr:hover .pr-t{transform:translateX(5px);}
.wf-gallery-link{
  position:relative;
  font-family:var(--mono);font-size:.52rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;
  padding:8px 0 10px;color:var(--v2);text-decoration:none;
  display:inline-flex;align-items:center;gap:6px;
  border:none;background:transparent;
  transition:color .24s var(--ease-pf),gap .28s var(--ease-pf);
}
.wf-gallery-link::before{display:none;}
.wf-gallery-link::after{
  content:"";position:absolute;left:0;right:0;bottom:0;
  height:1.5px;background:var(--v);
  transform:scaleX(0);transform-origin:left center;
  transition:transform .34s var(--ease-pf);
}
.wf-gallery-link:hover{color:var(--v);gap:12px;}
.wf-gallery-link:hover::after{transform:scaleX(1);}
.wf-gallery-link span{position:relative;z-index:1;}
body.dark .wf-gallery-link{color:var(--v3);}
body.dark .wf-gallery-link::after{background:var(--v3);}
body.dark .wf-gallery-link:hover{color:var(--v3);}
/* FOOTER — whisper meta-line, presque invisible, séparateurs par point */
.wlf-cell{
  padding:0;border:none;
  display:inline-flex;align-items:baseline;gap:.42rem;
  cursor:none;transition:opacity .22s var(--ease-pf);
}
.wlf-cell:hover .wlf-label{color:rgba(13,12,10,.55);}
.wlf-cell:hover .wlf-val{color:rgba(13,12,10,.82);}
.wlf-label{
  font-family:var(--mono);font-size:.38rem;letter-spacing:.26em;text-transform:uppercase;
  color:rgba(13,12,10,.32);font-weight:400;
  transition:color .22s var(--ease-pf);
}
.wlf-val{
  font-family:var(--mono);font-size:.4rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(13,12,10,.55);
  transition:color .22s var(--ease-pf);
}
body.dark .wlf-label{color:rgba(232,228,220,.22);}
body.dark .wlf-val{color:rgba(232,228,220,.45);}
body.dark .wlf-cell:hover .wlf-label{color:rgba(232,228,220,.4);}
body.dark .wlf-cell:hover .wlf-val{color:rgba(232,228,220,.72);}
/* Responsive */
@media(max-width:900px){
  #vw > .wlist{padding:28px 1.2rem 22px;gap:18px;}
  .whead{padding:14px 1.2rem 12px;gap:1.2rem;}
  .wfilts{padding:10px 1.2rem 0;gap:1.2rem;}
  #vw > .wlist-footer{padding:4px 1.2rem 12px;gap:0 1rem;}
  #vw > .wlist-footer .wlf-cell + .wlf-cell{padding-left:1rem;}
}
@media(max-width:480px){
  #vw > .wlist{padding:24px 1rem 20px;gap:16px;}
  .whead{padding:12px 1rem 10px;gap:.8rem;}
  .wfilts{padding:8px 1rem 0;gap:.95rem;}
  .wf,.wf-gallery-link{font-size:.5rem;letter-spacing:.14em;}
  #vw > .wlist-footer{
    padding:4px 1rem 12px;
    gap:.25rem 0;
    flex-direction:column;align-items:flex-start;
  }
  #vw > .wlist-footer .wlf-cell + .wlf-cell{padding-left:0;}
  #vw > .wlist-footer .wlf-cell + .wlf-cell::before{display:none;}
  .wlf-cell{gap:.38rem;}
  .wlf-label,.wlf-val{font-size:.36rem;}
}

/* ── PALETTE PAR CATÉGORIE ──────────────────────────
   Campaigns   #5B0EAF   AIFactory #1E40AF
   Archives    #15803D   Magazines #BE185D
   SocialMedia #B45309
──────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════
   FLAT LIST + STICKY SECTION HEADERS
   Audit G-04 : folder metaphor abandonné au profit
   d'une flat list éditoriale avec headers sticky
═══════════════════════════════════════════════════ */

/* Legacy folder classes — désactivés (conservés pour compat) */
.wcat-group,.wcat-front,.wcat-sl,.wcat-sl--2,.wcat-sl--3,
.wcat-group::before,.wcat-group::after{
  all:unset;
}
.wcat-group{display:contents;}
.wcat-front{display:contents;}
.wcat-sl,.wcat-sl--2,.wcat-sl--3{display:none!important;}

/* ── SECTION ── conteneur d'une catégorie (sans bordure, just un groupement) */
.wsec{
  display:block;
  position:relative;
  margin-top:18px;
  scroll-margin-top:80px;
}
.wsec:first-child{margin-top:6px;}

/* ── STICKY SECTION HEADER ── */
.wsec-head{
  position:sticky;
  top:0;
  z-index:10;
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:baseline;
  gap:1.2rem;
  padding:10px 12px 8px;
  background:rgba(245,242,236,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--cat-color,rgba(13,12,10,.12));
  margin-bottom:4px;
}
body.dark .wsec-head{
  background:rgba(15,13,11,.88);
  border-bottom-color:var(--cat-color-dark,rgba(232,228,220,.14));
}
.wsec-idx{
  font-family:var(--mono); font-size:.42rem; font-weight:500;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--cat-color,rgba(13,12,10,.35));
  opacity:.9;
}
.wsec-name{
  font-family:var(--cond); font-size:clamp(1.15rem,2vw,1.7rem);
  font-weight:400; letter-spacing:.02em; text-transform:uppercase;
  color:var(--ink); line-height:1;
}
body.dark .wsec-name{color:var(--cr);}
.wsec-count{
  font-family:var(--mono); font-size:.4rem; font-weight:400;
  letter-spacing:.2em; text-transform:uppercase;
  color:rgba(13,12,10,.42);
}
body.dark .wsec-count{color:rgba(232,228,220,.42);}
.wsec-link{
  font-family:var(--mono); font-size:.4rem; font-weight:500;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--v2); text-decoration:none;
  padding:4px 0;
  border-bottom:1px solid transparent;
  transition:color .2s, border-color .2s, gap .2s;
  display:inline-flex; gap:6px;
}
.wsec-link:hover{color:var(--v); border-bottom-color:var(--v); gap:10px;}
body.dark .wsec-link{color:var(--v3);}
body.dark .wsec-link:hover{color:var(--v3); border-bottom-color:var(--v3);}

/* ── BODY ── flat list des projets d'une section */
.wsec-body{
  display:block;
  padding:6px 0 12px;
}

@media(max-width:900px){
  .wsec-head{padding:8px 10px 6px; gap:.8rem;}
  .wsec-name{font-size:clamp(1rem,3.5vw,1.3rem);}
  .wsec-idx,.wsec-count,.wsec-link{font-size:.38rem;}
}

/* ── COULEUR PAR CATÉGORIE (accent sur header sticky) ── */
.wsec[data-cat="Campaigns"]    { --cat-color:rgba(124,58,237,.55);   --cat-color-dark:rgba(167,105,250,.55); }
.wsec[data-cat="SocialMedia"]  { --cat-color:rgba(249,115,22,.60);   --cat-color-dark:rgba(251,146,60,.60); }
.wsec[data-cat="Magazines"]    { --cat-color:rgba(236,72,153,.55);   --cat-color-dark:rgba(244,114,182,.55); }
.wsec[data-cat="AIFactory"]    { --cat-color:rgba(59,130,246,.55);   --cat-color-dark:rgba(125,168,248,.55); }
.wsec[data-cat="Archives"]     { --cat-color:rgba(16,185,129,.55);   --cat-color-dark:rgba(52,211,153,.55); }
.wsec[data-cat="Campaigns"]    .wsec-idx, .wsec[data-cat="Campaigns"]    .wsec-link{color:#6D28D9;}
.wsec[data-cat="SocialMedia"]  .wsec-idx, .wsec[data-cat="SocialMedia"]  .wsec-link{color:#EA580C;}
.wsec[data-cat="Magazines"]    .wsec-idx, .wsec[data-cat="Magazines"]    .wsec-link{color:#DB2777;}
.wsec[data-cat="AIFactory"]    .wsec-idx, .wsec[data-cat="AIFactory"]    .wsec-link{color:#2563EB;}
.wsec[data-cat="Archives"]     .wsec-idx, .wsec[data-cat="Archives"]     .wsec-link{color:#059669;}
body.dark .wsec[data-cat="Campaigns"]    .wsec-idx, body.dark .wsec[data-cat="Campaigns"]    .wsec-link{color:#A78BFA;}
body.dark .wsec[data-cat="SocialMedia"]  .wsec-idx, body.dark .wsec[data-cat="SocialMedia"]  .wsec-link{color:#FB923C;}
body.dark .wsec[data-cat="Magazines"]    .wsec-idx, body.dark .wsec[data-cat="Magazines"]    .wsec-link{color:#F472B6;}
body.dark .wsec[data-cat="AIFactory"]    .wsec-idx, body.dark .wsec[data-cat="AIFactory"]    .wsec-link{color:#7DA8F8;}
body.dark .wsec[data-cat="Archives"]     .wsec-idx, body.dark .wsec[data-cat="Archives"]     .wsec-link{color:#34D399;}

/* ── COULEURS PAR CATÉGORIE ── */

/* Campaigns — violet brand */
.wcat-group[data-cat="Campaigns"]{
  --cat-color:rgba(91,14,175,.92);
  --folder-bg:rgba(91,14,175,.07);
  --folder-tab-bg:rgba(91,14,175,.16);
  --folder-tab-bg-hover:rgba(91,14,175,.24);
  --folder-edge:rgba(91,14,175,.22);
  --folder-edge-open:rgba(91,14,175,.40);
  --folder-bg-dark:rgba(91,14,175,.18);
  --folder-tab-bg-dark:rgba(91,14,175,.30);
  --folder-edge-dark:rgba(192,132,252,.16);
  --folder-edge-dark-open:rgba(192,132,252,.30);
  --sl2-bg:rgba(109,40,217,.90);
  --sl3-bg:rgba(167,105,250,.74);
  --cat-solid-bg:#7C3AED;
  --cat-glow:rgba(124,58,237,.06);
}
/* AI Lab — bleu profond */
.wcat-group[data-cat="AIFactory"]{
  --cat-color:rgba(37,99,235,.92);
  --folder-bg:rgba(37,99,235,.07);
  --folder-tab-bg:rgba(37,99,235,.16);
  --folder-tab-bg-hover:rgba(37,99,235,.24);
  --folder-edge:rgba(37,99,235,.22);
  --folder-edge-open:rgba(37,99,235,.40);
  --folder-bg-dark:rgba(37,99,235,.18);
  --folder-tab-bg-dark:rgba(37,99,235,.30);
  --folder-edge-dark:rgba(147,197,253,.16);
  --folder-edge-dark-open:rgba(147,197,253,.30);
  --sl2-bg:rgba(59,130,246,.90);
  --sl3-bg:rgba(125,168,248,.74);
  --cat-solid-bg:#3B82F6;
  --cat-glow:rgba(59,130,246,.06);
}
/* Archives — teal éditorial */
.wcat-group[data-cat="Archives"]{
  --cat-color:rgba(5,122,85,.92);
  --folder-bg:rgba(5,122,85,.07);
  --folder-tab-bg:rgba(5,122,85,.16);
  --folder-tab-bg-hover:rgba(5,122,85,.24);
  --folder-edge:rgba(5,122,85,.22);
  --folder-edge-open:rgba(5,122,85,.40);
  --folder-bg-dark:rgba(5,122,85,.18);
  --folder-tab-bg-dark:rgba(5,122,85,.30);
  --folder-edge-dark:rgba(110,231,183,.16);
  --folder-edge-dark-open:rgba(110,231,183,.30);
  --sl2-bg:rgba(16,185,129,.88);
  --sl3-bg:rgba(78,205,156,.72);
  --cat-solid-bg:#10B981;
  --cat-glow:rgba(16,185,129,.06);
}
/* Magazines — rose profond */
.wcat-group[data-cat="Magazines"]{
  --cat-color:rgba(190,24,93,.92);
  --folder-bg:rgba(190,24,93,.07);
  --folder-tab-bg:rgba(190,24,93,.16);
  --folder-tab-bg-hover:rgba(190,24,93,.24);
  --folder-edge:rgba(190,24,93,.22);
  --folder-edge-open:rgba(190,24,93,.40);
  --folder-bg-dark:rgba(190,24,93,.18);
  --folder-tab-bg-dark:rgba(190,24,93,.30);
  --folder-edge-dark:rgba(251,113,133,.16);
  --folder-edge-dark-open:rgba(251,113,133,.30);
  --sl2-bg:rgba(236,72,153,.90);
  --sl3-bg:rgba(244,114,182,.74);
  --cat-solid-bg:#DB2777;
  --cat-glow:rgba(219,39,119,.06);
}
/* Social Media — ambre chaud */
.wcat-group[data-cat="SocialMedia"]{
  --cat-color:rgba(180,83,9,.95);
  --folder-bg:rgba(180,83,9,.07);
  --folder-tab-bg:rgba(180,83,9,.18);
  --folder-tab-bg-hover:rgba(180,83,9,.26);
  --folder-edge:rgba(180,83,9,.22);
  --folder-edge-open:rgba(180,83,9,.40);
  --folder-bg-dark:rgba(180,83,9,.18);
  --folder-tab-bg-dark:rgba(180,83,9,.30);
  --folder-edge-dark:rgba(253,186,116,.16);
  --folder-edge-dark-open:rgba(253,186,116,.30);
  --sl2-bg:rgba(234,142,8,.90);
  --sl3-bg:rgba(251,191,36,.76);
  --cat-solid-bg:#F97316;
  --cat-glow:rgba(249,115,22,.07);
}

/* Dark mode — luminosités ajustées, saturation maintenue */
body.dark .wcat-group[data-cat="Campaigns"]{
  --cat-color:rgba(196,148,255,.95);
  --sl2-bg:rgba(124,58,237,.62); --sl3-bg:rgba(167,105,250,.44);
  --cat-solid-bg:#8B5CF6;
  --cat-glow:rgba(139,92,246,.10);
}
body.dark .wcat-group[data-cat="AIFactory"]{
  --cat-color:rgba(147,197,253,.95);
  --sl2-bg:rgba(59,130,246,.58); --sl3-bg:rgba(125,168,248,.40);
  --cat-solid-bg:#3B82F6;
  --cat-glow:rgba(59,130,246,.10);
}
body.dark .wcat-group[data-cat="Archives"]{
  --cat-color:rgba(110,231,183,.95);
  --sl2-bg:rgba(16,185,129,.56); --sl3-bg:rgba(78,205,156,.38);
  --cat-solid-bg:#10B981;
  --cat-glow:rgba(16,185,129,.10);
}
body.dark .wcat-group[data-cat="Magazines"]{
  --cat-color:rgba(251,113,133,.95);
  --sl2-bg:rgba(236,72,153,.56); --sl3-bg:rgba(244,114,182,.38);
  --cat-solid-bg:#EC4899;
  --cat-glow:rgba(236,72,153,.10);
}
body.dark .wcat-group[data-cat="SocialMedia"]{
  --cat-color:rgba(253,186,116,.98);
  --sl2-bg:rgba(234,142,8,.56); --sl3-bg:rgba(251,191,36,.40);
  --cat-solid-bg:#FB923C;
  --cat-glow:rgba(251,146,60,.10);
}

/* ── WCAT — ligne-titre horizontale à l'intérieur du dossier ── */
.wcat{
  display:grid;grid-template-columns:70px 1fr auto 42px;
  align-items:center;
  background:transparent;border:none;
  position:relative;z-index:2;
  cursor:none;
  padding:16px 18px 16px 36px;
  border-bottom:1px solid transparent;
  transition:border-color .24s var(--ease-pf);
}
.wcat::before,.wcat::after{display:none;}
.wcat.open{border-bottom-color:var(--folder-edge,rgba(91,14,175,.12));}
.wcat > *{position:relative;z-index:1;}

/* Numéro de dossier */
.wcat-idx{
  display:flex;align-items:center;
  padding:0;background:transparent;border-radius:0;
  font-family:var(--mono);font-size:.5rem;font-weight:500;
  letter-spacing:.14em;
  color:rgba(13,12,10,.62);
  transition:color .24s var(--ease-pf);
}
body.dark .wcat-idx{color:rgba(232,228,220,.58);}

/* Nom catégorie */
.wcat-name{
  display:flex;align-items:center;
  padding:0;background:transparent;border-radius:0;
  font-family:var(--cond);font-size:clamp(1.05rem,1.45vw,1.28rem);
  font-weight:400;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink);
  transition:letter-spacing .3s var(--ease-pf),color .22s;
}
.wcat:hover .wcat-name{letter-spacing:.13em;}
.wcat.open .wcat-name{letter-spacing:.12em;color:var(--cat-color,var(--v));}

/* Compteur discret */
.wcat-count{
  display:flex;align-items:center;
  padding:0 14px 0 0;background:transparent;border-radius:0;
  font-family:var(--mono);font-size:.44rem;font-weight:400;
  letter-spacing:.18em;text-transform:uppercase;
  color:rgba(13,12,10,.58);
  transition:color .24s var(--ease-pf);
}
.wcat-count::before{
  content:'';width:6px;height:6px;border-radius:50%;
  background:var(--cat-color,rgba(91,14,175,.78));
  margin-right:10px;opacity:1;
  box-shadow:0 0 0 2px rgba(0,0,0,.04);
  transition:transform .3s var(--ease-pf),opacity .24s,box-shadow .24s;
}
body.dark .wcat-count{color:rgba(232,228,220,.6);}
body.dark .wcat-count::before{box-shadow:0 0 0 1px rgba(0,0,0,.3);}

/* Toggle — signe + qui pivote en × */
.wcat-toggle{
  display:flex;align-items:center;justify-content:center;
  width:28px;height:28px;padding:0;margin-left:auto;
  font-family:var(--mono);font-size:1.1rem;font-weight:300;
  color:var(--cat-color,var(--v));opacity:.78;
  border:1px solid var(--folder-edge,rgba(91,14,175,.16));border-radius:50%;
  background:transparent;
  transition:opacity .24s var(--ease-pf),transform .4s var(--ease-pf),border-color .24s,background .24s;
}
.wcat:hover .wcat-toggle{opacity:1;border-color:var(--cat-color,var(--v));background:var(--folder-bg,rgba(91,14,175,.06));}
.wcat.open .wcat-toggle{transform:rotate(45deg);opacity:1;border-color:var(--cat-color,var(--v));}

/* Hover — respiration typographique, jamais de bg plastique */
.wcat:hover .wcat-name{letter-spacing:.1em;}
.wcat:hover .wcat-count::before{transform:scale(1.3);box-shadow:0 0 0 3px var(--cat-sh,rgba(91,14,175,.24));}
.wcat:hover .wcat-idx{color:rgba(13,12,10,.82);}
.wcat:hover .wcat-count{color:rgba(13,12,10,.82);}
body.dark .wcat:hover .wcat-idx,body.dark .wcat:hover .wcat-count{color:rgba(232,228,220,.82);}

/* Open — titre plus prononcé */
.wcat.open .wcat-name{letter-spacing:.12em;font-weight:400;}
.wcat.open .wcat-count::before{transform:scale(1.5);opacity:1;}

/* Focus clavier — accessibilité */
a.wcat:focus-visible{outline:none;}
a.wcat:focus-visible .wcat-toggle{
  opacity:1;
  outline:1.5px solid var(--v);
  outline-offset:3px;
  box-shadow:0 0 0 2px var(--cat-sh,rgba(91,14,175,.3));
}

/* Espacement entre dossiers — tabs visibles au-dessus */
.wcat-group + .wcat-group{margin-top:28px;}

/* Mobile — forme dossier conservée, tab flush left */
@media(max-width:900px){
  .wcat-group{margin-top:52px;border-radius:0 8px 8px 8px;}
  .wcat-group:first-child{margin-top:36px;}
  .wcat-group + .wcat-group{margin-top:28px;}
  .wcat-group::before{
    top:-24px;left:0;
    width:52%;height:24px;
    border-radius:5px 8px 0 0;
    font-size:.32rem;padding-left:12px;letter-spacing:.13em;
  }
  .wcat-sl--2{top:-38px;width:44%;height:16px;}
  .wcat-sl--3{top:-50px;width:36%;height:16px;}
  .wcat{grid-template-columns:54px 1fr auto 36px;padding:14px 14px 14px 18px;}
  .wcat-name{font-size:clamp(.95rem,3.4vw,1.1rem);}
}
@media(max-width:480px){
  .wcat-group{margin-top:46px;border-radius:0 6px 6px 6px;}
  .wcat-group:first-child{margin-top:30px;}
  .wcat-group + .wcat-group{margin-top:26px;}
  .wcat-group::before{
    top:-22px;left:0;
    width:54%;height:22px;
    border-radius:4px 7px 0 0;
    font-size:.30rem;padding-left:10px;letter-spacing:.12em;
  }
  .wcat-sl--2{top:-36px;width:46%;height:16px;}
  .wcat-sl--3{top:-48px;width:37%;height:16px;}
  .wcat{grid-template-columns:46px 1fr auto 32px;padding:12px 10px 12px 14px;gap:4px;}
  .wcat-idx{font-size:.46rem;}
  .wcat-count{padding-right:8px;font-size:.4rem;}
  .wcat-toggle{width:24px;height:24px;font-size:.95rem;}
}

/* ── WCAT-BODY — contenu du dossier + glassmorphism subtil ── */
.wcat-body{
  overflow:hidden;max-height:0;
  border:none;
  /* Glow de catégorie en haut qui fade vers le neutre → crystal morphism léger */
  background:
    linear-gradient(180deg,
      var(--cat-glow, rgba(124,58,237,.05)) 0%,
      transparent 220px),
    linear-gradient(180deg,
      rgba(255,255,255,.35) 0%,
      rgba(255,255,255,0) 140px);
  transition:max-height .42s var(--ease-pf);
}
body.dark .wcat-body{
  background:
    linear-gradient(180deg,
      var(--cat-glow, rgba(139,92,246,.10)) 0%,
      transparent 220px),
    linear-gradient(180deg,
      rgba(255,255,255,.03) 0%,
      rgba(255,255,255,0) 140px);
}
.wcat-body.open{max-height:4000px;}

/* ── WCAT FAN — thumbnails en éventail au hover ────────────── */
/* .wcat-fan removed — replaced by #work-preview lerp follower */

/* SUBCATEGORY HEADER — séparateur éditorial raffiné */
.wsub{
  padding:8px 1.4rem 8px calc(64px + 1.8rem);
  font-family:var(--mono);font-size:.55rem;font-weight:400;
  letter-spacing:.28em;text-transform:uppercase;
  color:rgba(13,12,10,.3);
  border-bottom:1px solid var(--rule);
  background:transparent;
  display:flex;align-items:center;gap:12px;
  position:relative;
}
/* fine ligne colorée à gauche — hérite du --pr-line de la catégorie */
.wsub::before{
  content:'';
  display:inline-block;width:18px;height:1px;
  background:var(--wsub-accent,rgba(91,14,175,.35));
  flex-shrink:0;
}
.wsub[data-cat="Campaigns"]{--wsub-accent:rgba(91,14,175,.4);}
.wsub[data-cat="AIFactory"]{--wsub-accent:rgba(30,64,175,.4);}
.wsub[data-cat="Archives"]{--wsub-accent:rgba(21,128,61,.4);}
.wsub[data-cat="Magazines"]{--wsub-accent:rgba(190,24,93,.4);}
.wsub[data-cat="SocialMedia"]{--wsub-accent:rgba(180,83,9,.4);}

/* ── PROJET ROW — sweep négatif par catégorie ─────────────────── */
.pr{
  display:grid;
  grid-template-columns:72px 1fr 172px 108px 52px 28px;
  align-items:stretch;
  border-bottom:1px solid var(--rule);
  min-height:92px;cursor:none;
  position:relative;overflow:hidden;
  transition:box-shadow .3s var(--ease-pf),
             opacity .4s var(--ease-pf),
             transform .4s var(--ease-pf);
  opacity:0;transform:translateX(-8px);
}

/* Sweep background — position:absolute évite d'être un grid-item */
.pr::before{
  content:'';
  position:absolute;inset:0;
  background:var(--pr-tint,rgba(91,14,175,.06));
  transform:scaleX(0);transform-origin:left center;
  transition:transform .45s var(--ease-pf);
  z-index:0;
}
.pr:hover::before{transform:scaleX(1);}

/* Grid children au-dessus du sweep */
.pr > *{position:relative;z-index:1;}

/* Bottom rule via box-shadow — éditorial, zéro stripe gauche */
.pr{box-shadow:inset 0 -1px 0 transparent;}
.pr:hover{box-shadow:inset 0 -1px 0 rgba(13,12,10,.14);}
body.dark .pr:hover{box-shadow:inset 0 -1px 0 rgba(255,255,255,.12);}

/* ── PALETTE PAR CATÉGORIE ── */
.pr[data-cat="Campaigns"]{
  --pr-tint:rgba(124,58,237,.08);
  --pr-line:#7C3AED;
}
.pr[data-cat="AIFactory"]{
  --pr-tint:rgba(59,130,246,.08);
  --pr-line:#3B82F6;
}
.pr[data-cat="Archives"]{
  --pr-tint:rgba(16,185,129,.08);
  --pr-line:#10B981;
}
.pr[data-cat="Magazines"]{
  --pr-tint:rgba(219,39,119,.08);
  --pr-line:#DB2777;
}
.pr[data-cat="SocialMedia"]{
  --pr-tint:rgba(249,115,22,.08);
  --pr-line:#F97316;
}

/* Texte adaptatif au hover */
.pr[data-cat="Campaigns"]:hover .pr-k{color:#7C3AED;opacity:1;}
.pr[data-cat="AIFactory"]:hover .pr-k{color:#3B82F6;opacity:1;}
.pr[data-cat="Archives"]:hover .pr-k{color:#10B981;opacity:1;}
.pr[data-cat="Magazines"]:hover .pr-k{color:#DB2777;opacity:1;}
.pr[data-cat="SocialMedia"]:hover .pr-k{color:#F97316;opacity:1;}

/* Numéro s'illumine en couleur au hover */
.pr-idx{transition:color .25s var(--ease-pf),opacity .25s var(--ease-pf);}
.pr[data-cat="Campaigns"]:hover .pr-idx{color:#7C3AED;opacity:.85;}
.pr[data-cat="AIFactory"]:hover .pr-idx{color:#3B82F6;opacity:.85;}
.pr[data-cat="Archives"]:hover .pr-idx{color:#10B981;opacity:.85;}
.pr[data-cat="Magazines"]:hover .pr-idx{color:#DB2777;opacity:.85;}
.pr[data-cat="SocialMedia"]:hover .pr-idx{color:#F97316;opacity:.85;}

.wcat-body.open .pr,
.wsec-body .pr{opacity:1;transform:translateX(0);}
.pr:hover .pr-a{opacity:1;transform:translateX(3px);}
.pr-idx{
  display:flex;align-items:center;justify-content:center;
  font-family:var(--mono);font-size:.38rem;font-weight:400;
  letter-spacing:.08em;color:rgba(13,12,10,.22);
  border-right:1px solid var(--rule);
  position:relative;
  overflow:hidden;
}
/* Cover image overlay — set via JS --cover custom property */
.pr-idx::after{
  content:'';
  position:absolute;inset:0;
  background:var(--cover) center/cover no-repeat;
  opacity:0.18;
  transform:scale(1.08);
  transition:opacity .45s var(--ease-pf),
             filter .45s var(--ease-pf),
             transform .55s var(--ease-pf);
  filter:grayscale(1) brightness(.75) contrast(1.1);
}
.pr:hover .pr-idx::after{
  opacity:.88;
  transform:scale(1);
  filter:grayscale(0) brightness(1.05) contrast(1.02) saturate(1.1);
}
.pr-t{
  padding:0 1.8rem;
  font-family:var(--cond);font-size:clamp(.95rem,1.35vw,1.18rem);font-weight:400;
  text-transform:uppercase;letter-spacing:.05em;
  display:flex;align-items:center;
  transition:letter-spacing .35s var(--ease-pf),color .2s;
}
.pr:hover .pr-t{letter-spacing:.07em;}
.pr-c{
  padding:0 1.4rem;
  font-family:var(--mono);font-size:.44rem;font-weight:400;
  letter-spacing:.05em;text-transform:uppercase;
  color:rgba(13,12,10,.38);
  display:flex;align-items:center;
  overflow:hidden;
}
.pr-c > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pr-c > span::before{content:":";opacity:.35;font-family:var(--mono);margin-right:.18em;}
.pr-k{
  padding:0 1.2rem;
  font-family:var(--mono);font-size:.38rem;font-weight:400;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--v);opacity:.6;
  display:flex;align-items:center;
  overflow:hidden;
}
.pr-k > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pr-k > span::before{content:":";opacity:.3;font-family:var(--mono);margin-right:.18em;}
/* Year column */
.pr-yr{
  display:none;
}
body.dark .pr-yr{color:rgba(232,228,220,.18);}
.pr:hover .pr-yr{color:rgba(13,12,10,.5);}
body.dark .pr:hover .pr-yr{color:rgba(232,228,220,.45);}
.pr-a{
  font-family:var(--mono);font-size:.6rem;
  color:var(--v);opacity:0;
  transition:opacity .14s,transform .22s var(--ease-pf);
  display:flex;align-items:center;justify-content:center;
}

/* ════════════════════════════════
   CASE
════════════════════════════════ */
#vc{flex-direction:column;}
.case-h{
  --h-rule:rgba(40,40,40,.13);
  --h-rule-minor:rgba(40,40,40,.055);
  flex-shrink:0;
  position:relative;overflow:hidden;
  border-bottom:1.5px solid var(--ink);
  background:var(--cr);
  background-image:
    radial-gradient(ellipse at 22% 18%,var(--kraft-grain,rgba(40,40,40,.03)) 0,transparent 55%),
    radial-gradient(ellipse at 78% 82%,var(--kraft-grain,rgba(40,40,40,.02)) 0,transparent 50%),
    linear-gradient(var(--h-rule) 1px,transparent 1px),
    linear-gradient(90deg,var(--h-rule) 1px,transparent 1px),
    linear-gradient(var(--h-rule-minor) 1px,transparent 1px),
    linear-gradient(90deg,var(--h-rule-minor) 1px,transparent 1px);
  background-size:auto,auto,48px 48px,48px 48px,12px 12px,12px 12px;
  display:grid;
  grid-template-columns:minmax(48px,5vw) minmax(0,1fr) minmax(0,auto);
  grid-template-rows:auto auto;
  column-gap:clamp(14px,1.8vw,22px);
  row-gap:clamp(6px,.7vw,10px);
  padding:clamp(32px,4vh,52px) clamp(1.2rem,2.6vw,2.4rem) clamp(1.2rem,2vw,1.8rem);
  min-height:0;
  max-height:none;
  transition:opacity .35s var(--ease-pf),
             border-color .35s var(--ease-pf);
  will-change:opacity;
  transform:translateZ(0);
}
/* Specimen-number watermark — restrained */
.case-h::after{
  content:"";
  display:none;
}
body.dark .case-h{--h-rule:rgba(180,180,180,.1);--h-rule-minor:rgba(180,180,180,.04);}
body.dark .case-h::after{-webkit-text-stroke-color:rgba(192,132,252,.18);text-stroke:1px rgba(192,132,252,.18);}
/* Corner marks — handled by .lab-reg spans (4-corner system in HTML).
   Legacy ::before removed to avoid duplicate cross at top-right. */
.case-h.collapsed{
  max-height:0;
  padding-top:0;padding-bottom:0;
  opacity:0;
  border-bottom-color:transparent;
}
.cbody{flex:1;overflow-y:auto;overflow-x:hidden;padding:0;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
@media (prefers-reduced-motion:reduce){.cbody{scroll-behavior:auto;}}
/* Case scroll progress bar */
.case-progress{
  position:sticky;top:0;left:0;right:0;z-index:10;
  height:2px;background:transparent;
}
.case-progress-bar{
  height:100%;width:0%;
  background:linear-gradient(90deg,var(--v),var(--v2));
  transition:width .1s linear;
}
#dna-c{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1;opacity:.35;}
.cbk{
  grid-column:1 / -1;grid-row:1;align-self:start;justify-self:start;
  position:relative;z-index:5;margin-bottom:clamp(4px,.6vw,8px);
  font-family:var(--mono);font-size:clamp(.5rem,.7vw,.6rem);
  letter-spacing:.22em;text-transform:uppercase;
  background:var(--v);
  color:#F5F2EC;
  padding:6px 14px;
  border:1px solid var(--v);
  box-shadow:0 2px 8px rgba(91,14,175,.25);
  transition:background .2s,box-shadow .2s,border-color .2s;
  cursor:none;
}
.cbk:hover{
  background:var(--v2);
  border-color:var(--v2);
  box-shadow:0 4px 16px rgba(91,14,175,.35);
}
.cs-ey{
  grid-column:1 / -1;grid-row:3;
  font-family:var(--mono);font-size:clamp(.54rem,.76vw,.64rem);
  letter-spacing:.28em;text-transform:uppercase;
  color:var(--v);position:relative;z-index:3;
  opacity:.82;margin:0;
  display:flex;align-items:center;gap:clamp(10px,1.4vw,18px);
}
.cs-ey::before{
  content:"";flex:0 0 clamp(24px,4vw,56px);height:1px;background:var(--v);opacity:.55;
}
.cs-ey::after{
  content:"⟡";margin-left:auto;color:var(--v);opacity:.5;font-size:.9em;letter-spacing:0;
}
.cs-h1{
  grid-column:1 / span 2;grid-row:2;align-self:end;
  display:flex;flex-direction:column;gap:.5rem;
  position:relative;z-index:3;margin:0;
  max-width:none;
}
.cs-h1 br{display:none;}
.cs-h1 b{font-weight:600;color:var(--v);display:inline;margin-left:.4em;font-style:normal;font-family:var(--cond);}
body.dark .cs-h1 b{color:var(--v3);}
/* Two-part title — brand (small label) + title (large display) */
.cs-h1-brand{
  font-family:var(--grotesk);
  font-size:.72rem;letter-spacing:.14em;
  color:var(--v);opacity:.78;
  text-transform:uppercase;font-weight:300;
  display:block;
}
.cs-h1-brand:empty{display:none;}
body.dark .cs-h1-brand{color:var(--v3);opacity:.68;}
.cs-h1-title{
  display:block;
  font-family:var(--grotesk);
  font-size:clamp(1.9rem,3.5vw,4rem);
  font-weight:500;line-height:.95;letter-spacing:-.025em;
  color:var(--ink);text-transform:uppercase;
}
.cs-h1-title:empty{display:none;}
body.dark .cs-h1-title{color:rgba(245,242,236,.92);}
@media(max-width:1100px){.cs-h1-title{font-size:clamp(1.7rem,4vw,3rem);}}
@media(max-width:768px){.cs-h1-title{font-size:clamp(1.4rem,5.8vw,2.4rem);}}
/* Lab register corner marks in case-h */
.case-h .lab-reg{
  position:absolute;width:14px;height:14px;
  pointer-events:none;opacity:.55;z-index:2;
}
.case-h .lab-reg::before,.case-h .lab-reg::after{
  content:'';position:absolute;
  background:rgba(91,14,175,.45);
}
.case-h .lab-reg::before{left:50%;top:0;bottom:0;width:1px;transform:translateX(-50%);}
.case-h .lab-reg::after{top:50%;left:0;right:0;height:1px;transform:translateY(-50%);}
.case-h .lab-reg--tl{top:12px;left:12px;}
.case-h .lab-reg--tr{top:12px;right:12px;}
.case-h .lab-reg--bl{bottom:12px;left:12px;}
.case-h .lab-reg--br{bottom:12px;right:12px;}
body.dark .case-h .lab-reg::before,
body.dark .case-h .lab-reg::after{background:rgba(192,132,252,.45);}
.cs-meta{
  grid-column:3;grid-row:2;align-self:end;
  display:flex;flex-direction:row;flex-wrap:wrap;
  gap:clamp(14px,1.8vw,24px);
  border-left:1px solid var(--rule);
  padding:clamp(2px,.3vw,5px) 0 clamp(2px,.3vw,5px) clamp(14px,1.6vw,22px);
  position:relative;z-index:3;
  justify-self:end;
  max-width:none;
}
.cs-meta > div {
  padding:0;
  position:relative;
  display:flex;flex-direction:column;gap:1px;
  line-height:1.1;
}
.cs-meta > div:has(.cs-mv:empty){display:none;}
.cs-ml{
  font-family:var(--mono);font-size:clamp(.5rem,.7vw,.58rem);font-weight:400;
  letter-spacing:.22em;text-transform:uppercase;
  color:rgba(13,12,10,.45);display:block;margin-bottom:2px;
  position:relative;
}
.cs-meta > div::before{display:none;}
.cs-mv{
  font-family:var(--mono);font-size:clamp(.6rem,.82vw,.7rem);font-weight:400;
  letter-spacing:.04em;text-transform:uppercase;color:var(--ink);
  display:block;line-height:1.2;
}
.cs-mv::before{
  content:"*";color:var(--v);margin-right:.3em;
  font-family:var(--mono);
}
body.dark .cs-meta{border-top-color:rgba(232,228,220,.08);}
body.dark .cs-meta > div::before{color:rgba(232,228,220,.25);}
body.dark .cs-ml{color:rgba(232,228,220,.32);}
body.dark .cs-mv{color:#E8E4DC;}
body.dark .cs-mv::before{color:var(--v3);}

/* ── Case hero — intermediate breakpoint: meta stacks below title ── */
@media(max-width:1100px) and (min-width:769px){
  .case-h{
    grid-template-columns:minmax(48px,5vw) minmax(0,1fr);
    grid-template-rows:auto auto auto auto;
    row-gap:clamp(8px,1vw,12px);
  }
  .cs-ey{grid-column:1 / -1;grid-row:4;}
  .cs-h1{grid-column:1 / -1;grid-row:2;align-self:end;}
  .cs-meta{
    grid-column:1 / -1;grid-row:3;
    justify-self:stretch;
    border-left:none;
    border-top:1px solid var(--rule);
    padding:clamp(8px,1.2vw,12px) 0 0;
    display:flex;flex-direction:row;flex-wrap:wrap;
    gap:clamp(12px,2vw,20px);
  }
  body.dark .cs-meta{border-top-color:rgba(232,228,220,.1);}
}
.cbrief{display:grid;grid-template-columns:72px 1fr;gap:32px;margin-bottom:32px;padding:36px 2.5rem 0;}
.cbl{
  font-family:var(--mono);font-size:.38rem;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(13,12,10,.32);padding-top:8px;
  border-top:1px solid rgba(91,14,175,.15);
}
.cbl--colon{
  letter-spacing:.04em;text-transform:none;font-size:.44rem;
  color:rgba(13,12,10,.28);border-top-color:rgba(91,14,175,.18);
}
body.dark .cbl{color:rgba(232,228,220,.35);border-top-color:rgba(192,132,252,.2);}
.cbt h3{font-family:var(--cond);font-size:clamp(1.35rem,2.2vw,2.3rem);font-weight:300;line-height:1.02;text-transform:uppercase;margin-bottom:14px;letter-spacing:-.01em;}
.cbt h3 b{font-weight:600;color:var(--ink);}
.cbt p{font-family:var(--mono);font-size:.52rem;line-height:1.95;color:rgba(13,12,10,.52);margin-bottom:10px;max-width:560px;}
body.dark .cbt p{color:rgba(232,228,220,.5);}
.sgrid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid rgba(13,12,10,.1);margin:28px 2.5rem;border-radius:2px;overflow:hidden;}
.sc{
  padding:22px 20px;border-right:1px solid rgba(13,12,10,.1);
  opacity:0;transform:translateY(12px);
  transition:opacity .5s var(--ease-pf),transform .5s var(--ease-pf);
  position:relative;
}
.sc::before{
  content:'';position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,var(--v),var(--v2));
  opacity:0;transition:opacity .35s var(--ease-pf);
}
.sc.sc-in{opacity:1;transform:none;}
.sc.sc-in:hover::before{opacity:1;}
.sc:last-child{border-right:none;}
.scn{font-family:var(--mono);font-size:.44rem;letter-spacing:.22em;text-transform:uppercase;color:var(--v);opacity:1;display:block;margin-bottom:10px;}
.sc h4{font-family:var(--mono);font-size:.48rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:6px;font-weight:500;}
.sc p{font-family:var(--mono);font-size:.47rem;line-height:1.85;color:rgba(13,12,10,.44);}
body.dark .sgrid{border-color:rgba(232,228,220,.08);}
body.dark .sc{border-right-color:rgba(232,228,220,.08);}
body.dark .sc p{color:rgba(232,228,220,.4);}
.sc p a{color:var(--v2);text-decoration:none;transition:color .2s;}
.sc p a:hover{color:var(--v);text-decoration:underline;}
body.dark .sc p a{color:var(--v3);}
body.dark .sc p a:hover{color:var(--v2);}
/* NEXT PROJECT — cover thumb strip */
.cnxt{
  display:grid;
  grid-template-columns:auto 1fr 140px auto;
  align-items:center;
  gap:0 clamp(1.2rem,2.5vw,2.5rem);
  border-top:1px solid rgba(13,12,10,.1);
  padding:0 2.5rem;
  margin-top:8px;
  min-height:96px;
  cursor:pointer;
  transition:background .22s;
  overflow:hidden;
}
.cnxt:hover{background:rgba(91,14,175,.03);}
.cnxt-l{
  font-family:var(--mono);font-size:.38rem;letter-spacing:.2em;
  text-transform:uppercase;color:rgba(13,12,10,.28);
  white-space:nowrap;
}
.cnxt-meta{
  display:flex;flex-direction:column;gap:5px;
  min-width:0;
  padding:20px 0;
}
.cnxt-b{
  font-family:var(--cond);font-size:clamp(.9rem,1.6vw,1.5rem);
  font-weight:200;text-transform:uppercase;
  transition:letter-spacing .3s var(--ease-pf),color .15s;
  text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cnxt:hover .cnxt-b{letter-spacing:.03em;color:var(--v);}
.cnxt-yr{
  font-family:var(--mono);font-size:.42rem;letter-spacing:.12em;
  text-transform:uppercase;color:rgba(13,12,10,.28);
}
.cnxt-thumb-wrap{
  overflow:hidden;
  height:64px;
  flex-shrink:0;
}
.cnxt-cover{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  filter:grayscale(.85) contrast(.95);
  opacity:.55;
  transition:filter .5s var(--ease-pf),opacity .5s,transform .5s var(--ease-pf);
}
.cnxt:hover .cnxt-cover{
  filter:grayscale(0) contrast(1);
  opacity:1;
  transform:scale(1.04);
}
.cnxt-arr{
  font-family:var(--mono);font-size:.7rem;
  color:rgba(13,12,10,.25);
  transition:transform .3s var(--ease-pf),color .2s;
  flex-shrink:0;
}
.cnxt:hover .cnxt-arr{transform:translateX(5px);color:var(--v);}
body.dark .cnxt{border-top-color:rgba(232,228,220,.08);}
body.dark .cnxt:hover{background:rgba(155,95,232,.05);}
body.dark .cnxt-l{color:rgba(232,228,220,.25);}
body.dark .cnxt-yr{color:rgba(232,228,220,.22);}
body.dark .cnxt-arr{color:rgba(232,228,220,.2);}
body.dark .cnxt-cover{filter:grayscale(.85) contrast(.9);opacity:.45;}
body.dark .cnxt:hover .cnxt-cover{filter:grayscale(0) contrast(1);opacity:.9;}

/* CHIPS CLIENTS */
.chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;}
.chip{
  font-family:var(--mono);font-size:.42rem;letter-spacing:.08em;text-transform:uppercase;
  padding:5px 12px;border:1px solid rgba(13,12,10,.12);
  color:rgba(13,12,10,.45);
  transition:border-color .22s,color .22s,background .22s,transform .18s;
  cursor:none;
}
.chip:hover{transform:translateY(-2px);}
.chip[data-c="vyrao"]:hover{border-color:#7c3aed;color:#F5F2EC;background:#7c3aed;}
.chip[data-c="loewe"]:hover{border-color:#b45309;color:#F5F2EC;background:#b45309;}
.chip[data-c="prada"]:hover{border-color:#0f172a;color:#F5F2EC;background:#0f172a;}
.chip[data-c="courreges"]:hover{border-color:#0891b2;color:#F5F2EC;background:#0891b2;}
.chip[data-c="coperni"]:hover{border-color:#059669;color:#F5F2EC;background:#059669;}
.chip[data-c="lancome"]:hover{border-color:#be123c;color:#F5F2EC;background:#be123c;}
.chip[data-c="helena"]:hover{border-color:#6d28d9;color:#F5F2EC;background:#6d28d9;}
.chip[data-c="mugler"]:hover{border-color:#7c2d12;color:#F5F2EC;background:#7c2d12;}
.chip[data-c="krug"]:hover{border-color:#92400e;color:#F5F2EC;background:#92400e;}
.chip[data-c="ruinart"]:hover{border-color:#a16207;color:#F5F2EC;background:#a16207;}
.chip[data-c="zenith"]:hover{border-color:#1d4ed8;color:#F5F2EC;background:#1d4ed8;}
.chip[data-c="breitling"]:hover{border-color:#15803d;color:#F5F2EC;background:#15803d;}
.chip[data-c="byredo"]:hover{border-color:#1e293b;color:#F5F2EC;background:#1e293b;}
.chip[data-c="isamaya"]:hover{border-color:#9f1239;color:#F5F2EC;background:#9f1239;}
.chip[data-c="numero"]:hover{border-color:#4338ca;color:#F5F2EC;background:#4338ca;}
.chip[data-c="schon"]:hover{border-color:#0e7490;color:#F5F2EC;background:#0e7490;}
.chip[data-c="chanel"]:hover{border-color:#0a0a0a;color:#F5F2EC;background:#0a0a0a;}

/* ════════════════════════════════
   ABOUT — texte gauche / DNA droite
════════════════════════════════ */
#va{flex-direction:column;height:100%;padding-top:80px;min-height:0;}
#va .va-body{display:flex;flex-direction:row;flex:1;min-height:0;overflow:hidden;}
/* About page needs scroll on the left panel */
#va .abr{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}

/* GAUCHE : contenu */
.abr{
  flex:1;overflow-y:scroll;
  display:flex;flex-direction:column;
  padding:0;overscroll-behavior:contain;touch-action:pan-y;
}
.ab-top-bar{
  flex-shrink:0;
  display:flex;justify-content:space-between;align-items:center;
  padding:.9rem 2rem;
  border-bottom:1px solid var(--rule2);
}
.ab-top-ref,.ab-top-loc{
  font-family:var(--mono);font-size:.48rem;
  letter-spacing:.16em;text-transform:uppercase;
  color:rgba(13,12,10,.58);
}
.ab-hero{
  padding:2rem 2rem 1.6rem;
  border-bottom:1px solid var(--rule);
}
.abt{
  font-family:var(--grotesk);
  font-size:clamp(2.4rem,5vw,5.5rem);
  font-weight:700;line-height:.84;letter-spacing:-.035em;
  text-transform:uppercase;color:var(--ink);
}
.abt .w-thin{font-weight:300;color:rgba(13,12,10,.38);}
.abt .w-v{color:var(--ink);}
.abs{
  font-family:var(--mono);font-size:.52rem;font-weight:400;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(13,12,10,.62);
  margin-top:10px;
}
.ab-s{padding:1.4rem 2rem;border-bottom:1px solid var(--rule);}
.ab-tag{
  font-family:var(--mono);font-size:.48rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(13,12,10,.62);display:block;
  margin-bottom:10px;
}
.ab-lead{
  font-family:var(--grotesk);font-size:clamp(.95rem,1.5vw,1.45rem);
  font-weight:600;line-height:1.15;text-transform:uppercase;
  letter-spacing:-.01em;margin-bottom:10px;
}
.ab-lead b{font-weight:700;color:var(--v);}
.ab-body{font-family:var(--mono);font-size:.58rem;line-height:2;color:rgba(13,12,10,.68);max-width:520px;}
.pgrid{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin-bottom:0;position:relative;}
.pc{--pc-bg:#5B0EAF;--pc-fg:#F5F2EC;padding:22px 18px 22px 24px;position:relative;overflow:hidden;background:var(--cr);border-left:3px solid rgba(128,128,128,.5);transition:background .45s cubic-bezier(.25,.1,.25,1),border-color .3s ease,transform .5s cubic-bezier(.25,.1,.25,1),box-shadow .5s cubic-bezier(.25,.1,.25,1);}
.pc::after{content:'';position:absolute;inset:0;background:var(--ink);transform:scaleX(0);transform-origin:left center;transition:transform .5s cubic-bezier(.22,1,.36,1);z-index:0;}
.pc:hover::after{transform:scaleX(1);}
.pc:hover{transform:translateY(-4px);box-shadow:0 14px 36px rgba(0,0,0,.18);border-left-color:var(--ink);}
.pcn{font-family:var(--mono);font-size:.58rem;letter-spacing:.24em;text-transform:uppercase;color:var(--ink);opacity:.7;display:block;margin-bottom:8px;position:relative;z-index:1;transition:color .4s ease,opacity .4s ease,transform .55s cubic-bezier(.34,1.56,.64,1);}
.pc:hover .pcn{color:rgba(255,255,255,.45);opacity:1;transform:translateX(4px) scale(1.12);}
.pc h3{font-family:var(--mono);font-size:.58rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px;position:relative;z-index:1;transition:color .4s ease,letter-spacing .5s cubic-bezier(.34,1.56,.64,1);}
.pc:hover h3{color:#fff;letter-spacing:.14em;}
.pc p{font-family:var(--mono);font-size:.44rem;line-height:1.85;color:rgba(13,12,10,.55);position:relative;z-index:1;transition:color .4s ease .05s,transform .45s ease;}
.pc:hover p{color:rgba(255,255,255,.72);transform:translateX(3px);}
.pgrid .pc:nth-child(1){animation:pc-rise .7s cubic-bezier(.22,1,.36,1) .06s both;}
.pgrid .pc:nth-child(2){animation:pc-rise .7s cubic-bezier(.22,1,.36,1) .18s both;}
.pgrid .pc:nth-child(3){animation:pc-rise .7s cubic-bezier(.22,1,.36,1) .30s both;}
.pgrid .pc:nth-child(4){animation:pc-rise .7s cubic-bezier(.22,1,.36,1) .42s both;}
@keyframes pc-rise{0%{opacity:0;transform:translateY(20px) scale(.94);border-left-width:0;}60%{border-left-width:3px;}100%{opacity:1;transform:none;}}
.chips{display:flex;flex-wrap:wrap;gap:4px;}
.chip{
  font-family:var(--mono);font-size:.46rem;letter-spacing:.08em;text-transform:uppercase;
  padding:5px 12px;border:1px solid rgba(13,12,10,.1);
  color:rgba(13,12,10,.42);
  transition:border-color .22s,color .22s,background .22s,transform .18s;
  cursor:none;
}
.chip:hover{transform:translateY(-2px);}
.chip[data-c]{cursor:pointer;}
/* couleurs par client */
.chip[data-c="vyrao"]:hover{border-color:#7c3aed;color:#F5F2EC;background:#7c3aed;}
.chip[data-c="loewe"]:hover{border-color:#b45309;color:#F5F2EC;background:#b45309;}
.chip[data-c="prada"]:hover{border-color:#0f172a;color:#F5F2EC;background:#0f172a;}
.chip[data-c="courreges"]:hover{border-color:#0891b2;color:#F5F2EC;background:#0891b2;}
.chip[data-c="coperni"]:hover{border-color:#059669;color:#F5F2EC;background:#059669;}
.chip[data-c="research"]:hover{border-color:#dc2626;color:#F5F2EC;background:#dc2626;}

/* DROITE : DNA canvas */
.abl{
  width:38%;flex-shrink:0;
  border-left:1.5px solid var(--ink);
  position:relative;overflow:hidden;
  background:var(--cr);
  background-image:
    linear-gradient(var(--rule) 1px,transparent 1px),
    linear-gradient(90deg,var(--rule) 1px,transparent 1px);
  background-size:40px 40px;
  display:flex;flex-direction:column;justify-content:flex-end;
}
#dna-a{
  position:absolute;top:0;left:0;
  width:100%;height:100%;
  pointer-events:none;z-index:1;
}
.abl-bases{
  position:absolute;bottom:1rem;left:50%;transform:translateX(-50%);
  display:inline-flex;align-items:center;gap:5px;
  background:rgba(245,242,236,.88);backdrop-filter:blur(8px);
  border:1px solid rgba(13,12,10,.1);
  padding:5px 12px;
  font-family:var(--mono);
  white-space:nowrap;
  z-index:3;
}
.abl-bases-label{
  font-size:.42rem;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(13,12,10,.28);margin-right:4px;
  min-width:2em;
}
.abl-base{
  width:22px;height:22px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(91,14,175,.2);
  font-size:.44rem;font-weight:700;letter-spacing:0;
  color:var(--v);
  transition:background .35s,color .35s,border-color .35s;
}
.abl-base.rna{
  border-color:rgba(139,63,232,.45);
  color:rgba(139,63,232,.9);
  background:rgba(91,14,175,.06);
}
.abl-base.mutate{
  background:var(--v);color:#F5F2EC;
  border-color:var(--v);
}
.abl-badge{
  position:relative;z-index:2;
  padding:.8rem 1.4rem;
  border-top:1px solid var(--rule2);
  background:rgba(245,242,236,.85);
  backdrop-filter:blur(6px);
  display:flex;flex-direction:column;gap:2px;
}
.abl-b-ref{
  font-family:var(--mono);font-size:.38rem;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(13,12,10,.28);
}
.abl-b-val{
  font-family:var(--mono);font-size:.52rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;
  color:var(--v);
}

/* ════════════════════════════════
   CONTACT — full-height, no header
════════════════════════════════ */
#vct{flex-direction:column;overflow:hidden;padding-top:80px;}
.vct-body{display:flex;flex-direction:row;flex:1;min-height:0;overflow:hidden;}

/* corps 2 colonnes — full width */
.ct-body{
  flex:1;display:grid;grid-template-columns:1fr 1fr;
  min-height:0;overflow:hidden;
}

/* gauche — titre + infos + DNA */
.ctl{
  border-right:1.5px solid var(--ink);
  position:relative;overflow-y:auto;overflow-x:hidden;
  display:flex;flex-direction:column;justify-content:space-between;
  padding:2.2rem 2.5rem 2rem;
  min-height:0;overscroll-behavior:contain;touch-action:pan-y;
}
.ct-eyelet{
  font-family:var(--mono);font-size:.44rem;
  letter-spacing:.2em;text-transform:uppercase;
  color:rgba(13,12,10,.62);margin-bottom:14px;
  position:relative;z-index:2;
}
#dna-ct{
  position:absolute;top:0;right:0;
  width:max(0px, calc(100% - 520px - 2.8rem));
  height:100%;
  pointer-events:none;z-index:1;
}
.ct-main{position:relative;z-index:2;margin-bottom:auto;}
.ct-t{
  font-family:var(--grotesk);
  font-size:clamp(2.5rem,6.5vw,7.5rem);
  font-weight:700;line-height:.82;letter-spacing:-.04em;
  text-transform:uppercase;color:var(--ink);
  margin-bottom:1.6rem;
}
.ct-t .w-v{color:var(--v);}
.ct-t .w-thin{font-weight:300;color:rgba(13,12,10,.35);}

/* element clinique séquenceur */
.ct-tables{
  margin-top:1.4rem;
  display:flex;flex-direction:column;gap:.8rem;
  max-width:520px;
}
.ct-lab-element{
  border:1px solid rgba(13,12,10,.1);
  font-family:var(--mono);
}
.ct-lab-row{
  display:grid;grid-template-columns:36px 1fr 1fr 48px 72px;
  padding:4px 10px;
  border-bottom:1px solid rgba(13,12,10,.06);
  font-size:.4rem;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(13,12,10,.68);
  align-items:center;
}
.ct-lab-row:last-child{border-bottom:none;}
.ct-lab-head{
  background:rgba(13,12,10,.03);
  border-bottom:1px solid rgba(13,12,10,.1);
  color:rgba(13,12,10,.48);font-size:.36rem;letter-spacing:.18em;
}
.ct-lab-ok{color:rgba(20,160,55,.7);}
.ct-lab-proc{
  color:var(--v);
  animation:blink-proc .9s step-end infinite;
}
@keyframes blink-proc{0%,100%{opacity:1}50%{opacity:.2}}
.ct-lab-wait{color:rgba(13,12,10,.42);}

/* infos contact */
.ct-info-grid{
  display:flex;flex-direction:column;
  gap:0;
  border:1px solid rgba(13,12,10,.15);
  position:relative;z-index:2;
  background:rgba(245,242,236,.6);
  backdrop-filter:blur(4px);
  max-width:520px;
}
.ct-info-cell{
  padding:12px 16px;
  border-bottom:1px solid rgba(13,12,10,.1);
  display:flex;align-items:center;gap:14px;
  position:relative;overflow:hidden;
}
.ct-info-cell::after{content:'';position:absolute;inset:0;background:var(--ink);transform:scaleX(0);transform-origin:left center;transition:transform .45s cubic-bezier(.22,1,.36,1);z-index:0;}
.ct-info-cell:hover::after{transform:scaleX(1);}
.ct-info-cell:last-child{border-bottom:none;}
.ct-info-cell:hover{background:transparent;}
.ct-info-icon{
  width:28px;height:28px;
  border:1px solid rgba(13,12,10,.12);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  background:rgba(13,12,10,.03);
  transition:border-color .3s,background .3s;
  position:relative;z-index:1;
}
.ct-info-cell:hover .ct-info-icon{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.08);}
.ct-info-icon svg{opacity:.55;transition:opacity .3s,color .3s;}
.ct-info-cell:hover .ct-info-icon svg{opacity:1;color:#fff;}
.ct-info-col{display:flex;flex-direction:column;gap:1px;flex:1;position:relative;z-index:1;}
.ct-il{
  font-family:var(--mono);font-size:.44rem;font-weight:500;
  letter-spacing:.22em;text-transform:uppercase;
  color:rgba(13,12,10,.68);display:block;
  transition:color .3s;
}
.ct-info-cell:hover .ct-il{color:rgba(255,255,255,.5);}
.ct-iv{
  font-family:var(--mono);font-size:.52rem;font-weight:400;
  letter-spacing:.04em;text-transform:uppercase;
  color:rgba(13,12,10,.8);line-height:1.5;
  transition:color .3s;
}
.ct-info-cell:hover .ct-iv{color:#fff;}
.ct-iv a{color:rgba(13,12,10,.8);transition:color .3s;}
.ct-info-cell:hover .ct-iv a{color:#fff;}
.ct-iv a:hover{color:var(--v);}
.ct-info-full{border-right:none !important;}
.ct-info-link{
  display:inline-flex;align-items:center;gap:0;
  font-family:var(--mono);font-size:.52rem;font-weight:400;
  letter-spacing:.04em;text-transform:uppercase;
  color:rgba(13,12,10,.8);
  transition:color .3s;
}
.ct-info-cell:hover .ct-info-link{color:#fff;}
.ct-info-link:hover{color:var(--v);}

/* droite — formulaire */
.ctr{
  padding:2rem 2.8rem;
  overflow-y:auto;overflow-x:hidden;
  position:relative;
  display:flex;flex-direction:column;
  justify-content:flex-start;
  overscroll-behavior:contain;touch-action:pan-y;
  gap:0;
  border-right:none;
  min-height:0;
}
.cff.cfff{grid-column:1/-1;}
/* formulaire max-width pour respirer */
.ctr .cfr,.ctr .ct-submit,.ctr .ct-form-header{max-width:520px;}

.cfr{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-bottom:0;}
.cfr.full{grid-template-columns:1fr;}
.cff{
  display:flex;flex-direction:column;
  padding:10px 14px 10px 0;
  border-bottom:1px solid rgba(13,12,10,.1);
}
.cfr:not(.full) .cff:first-child{
  border-right:1px solid rgba(13,12,10,.08);
  padding-right:14px;
}
.cfr:not(.full) .cff:last-child{
  padding-left:14px;
}
.cff label{
  font-family:var(--mono);font-size:.5rem;font-weight:500;
  letter-spacing:.2em;text-transform:uppercase;
  color:rgba(13,12,10,.65);margin-bottom:5px;
}
.cff input,.cff select,.cff textarea{
  background:none;border:none;padding:4px 0;
  font-family:var(--mono);font-size:.58rem;font-weight:300;
  color:var(--ink);outline:none;transition:color .2s;
  width:100%;
}
.cff input:focus,.cff textarea:focus,.cff select:focus{color:var(--v);}
.cff input::placeholder,.cff textarea::placeholder{color:rgba(13,12,10,.30);}
.cff textarea{resize:none;height:60px;}
select{appearance:none;}

.ct-form-header{
  margin-bottom:1.8rem;
  padding-bottom:1.2rem;
  border-bottom:1.5px solid var(--ink);
}
.ct-form-ref{
  font-family:var(--mono);font-size:.4rem;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(13,12,10,.42);display:block;margin-bottom:6px;
}
.ct-form-title{
  font-family:var(--grotesk);font-size:clamp(1.6rem,3vw,3rem);
  font-weight:700;line-height:.86;letter-spacing:-.03em;text-transform:uppercase;
  color:var(--ink);
}
.ct-submit{
  margin-top:1.6rem;
  display:flex;justify-content:space-between;align-items:flex-end;
}
.ct-submit-note{
  font-family:var(--mono);font-size:.44rem;
  letter-spacing:.12em;text-transform:uppercase;
  color:rgba(13,12,10,.60);
}
.cfbtn{
  font-family:var(--mono);font-size:clamp(.72rem,1.1vw,.88rem);
  font-weight:700;text-transform:uppercase;letter-spacing:.18em;
  display:inline-flex;align-items:center;gap:.8em;
  padding:.9em 2.2em;
  border:none;
  border-right:1.5px solid var(--ink);
  border-bottom:1.5px solid var(--ink);
  border-radius:0 0 4px 0;
  color:var(--ink);
  background:transparent;
  position:relative;overflow:hidden;
}
.cfbtn::before,.cfbtn::after{content:none;}
.cfbtn:hover{
  animation:none;
  background:var(--ink);color:#fff;
  border-right-color:var(--ink);border-bottom-color:var(--ink);
  letter-spacing:.24em;
}
.cfbtn span,.cfbtn small{position:relative;z-index:1;}
.cfbtn small{
  font-family:var(--mono);font-size:.46rem;
  letter-spacing:.22em;font-weight:400;
  color:rgba(13,12,10,.4);
  display:none;
}
@keyframes cfbtn-breathe{
  0%,100%{border-right-color:var(--ink);border-bottom-color:var(--ink);}
  50%{border-right-color:var(--v);border-bottom-color:var(--v);}
}
@keyframes cfbtn-neg{
  0%,100%{background:transparent;color:var(--ink);border-right-color:var(--ink);border-bottom-color:var(--ink);}
  38%,42%{background:var(--v);color:#fff;border-right-color:var(--v);border-bottom-color:var(--v);}
}
body.dark .cfbtn{border-right-color:rgba(232,228,220,.7);border-bottom-color:rgba(232,228,220,.7);color:#E8E4DC;}
body.dark .cfbtn:hover{background:#F5F2EC;color:#0D0C0A;border-right-color:#F5F2EC;border-bottom-color:#F5F2EC;animation:none;}
@keyframes cfbtn-breathe-dk{
  0%,100%{border-right-color:rgba(232,228,220,.7);border-bottom-color:rgba(232,228,220,.7);}
  50%{border-right-color:var(--v2);border-bottom-color:var(--v2);}
}
@keyframes cfbtn-neg-dk{
  0%,100%{background:transparent;color:#E8E4DC;border-right-color:rgba(232,228,220,.7);border-bottom-color:rgba(232,228,220,.7);}
  38%,42%{background:var(--v2);color:#0F0D0B;border-right-color:var(--v2);border-bottom-color:var(--v2);}
}
@media(prefers-reduced-motion:reduce){
  .cfbtn{animation:none;}
  .cfbtn::after{animation:none;display:none;}
}

/* REVEAL */
.rv{opacity:0;transform:translateY(10px);transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);transition-delay:calc(var(--i,0) * 60ms);}
.rv.in{opacity:1;transform:none;}
@media(prefers-reduced-motion:reduce){.rv{transition-delay:0ms !important;}}

/* RESPONSIVE */

/* ── CONTACT — colonne unique dès 1024px (iPad Pro portrait inclus) ── */
@media(max-width:1024px){
  #vct{flex-direction:column;overflow-y:auto;overflow-x:hidden;height:auto;min-height:100vh;}
  .vct-body{flex-direction:column;overflow:visible;flex:none;}
  .ct-body{display:flex;flex-direction:column;overflow:visible !important;flex-shrink:0;min-height:auto;}
  .ctl{border-right:none;border-bottom:1.5px solid var(--ink);padding:clamp(1.5rem,4vw,3rem) clamp(1.5rem,5vw,4rem);min-height:auto;flex-shrink:0;overflow:visible !important;}
  .ctr{padding:clamp(1.5rem,4vw,3rem) clamp(1.5rem,5vw,4rem) clamp(2rem,5vw,3.5rem);flex-shrink:0;overflow:visible !important;min-height:auto;}
  .ct-t{font-size:clamp(2.2rem,7vw,4rem) !important;}
  .ct-info-grid{max-width:none !important;}
  .ct-tables{max-width:none !important;}
  .ctr .cfr,.ctr .ct-submit{max-width:none !important;}
  .cfr{grid-template-columns:1fr 1fr;}
  .ct-eyelet{font-size:clamp(9px,1.4vw,12px);}
  .ct-form-ref{font-size:clamp(9px,1.4vw,12px);}
  .ct-form-title{font-size:clamp(1.4rem,3.5vw,2.2rem) !important;}
  .cff label{font-size:clamp(9px,1.4vw,12px);}
  .cff input,.cff select,.cff textarea{font-size:clamp(13px,1.6vw,15px);}
  .ct-lab-row{font-size:clamp(9px,1.2vw,11px);}
  .ct-lab-head{font-size:clamp(8px,1vw,10px);}
  .ct-submit-note{font-size:clamp(9px,1.1vw,11px);}
  #dna-ct{display:none;}
  #vct{padding-bottom:env(safe-area-inset-bottom,0px);}
}
/* ── CONTACT — single-col form fields on narrow tablets/phones ── */
@media(max-width:640px){
  .cfr{grid-template-columns:1fr;}
  .ctl{padding:1.5rem 1.2rem;}
  .ctr{padding:1.5rem 1.2rem;}
}

/* pas de grid-template-columns — .hdr est flex */
@media(max-width:768px){
  .alch-win{width:100vw;max-height:100dvh;height:100dvh;border:none;border-radius:0;}
  .hdr-nav-cell{visibility:hidden;pointer-events:none;}
  .hdr-status{display:none;}
  .hdr-cell-controls{display:none;}
  .hdr-beacon{display:none;} /* hover uniquement → inutilisable sur touch */
  .burger{display:flex;}
  .hdr-cell-burger{display:flex;align-items:center;} /* visible sur mobile */
  .hctl-btn{display:none;}
  /* hero-copy : H1 + sub ancrés bas-gauche, φ-ratio spacing
     9rem bottom-padding = espace pour le cta-block absolu en-dessous */
  .hero-copy{padding:0 1.4rem 8rem;width:100%;max-width:100%;gap:.6rem;bottom:0;top:auto;transform:none;}.hero-hint{display:none;}
  /* cta-block : tag + CTA bas-gauche sous le copy */
  .hero-cta-block{position:absolute;bottom:clamp(1.4rem,2.6vh,2rem);left:1.4rem;right:auto;padding:0;align-items:flex-start;}
  .hero-cta-block .hero-tag{text-align:left;width:auto;margin-bottom:.5rem;}
  .hero-cta-block .hero-cta{text-align:left;}
  .hero-tag{text-align:left;font-size:clamp(.56rem,1.4vw,.68rem);line-height:1.7;}
  .hero-cta{margin-top:.2rem;}
  .hero-sub{margin-top:.3rem;}
  .hero-pitch{font-size:clamp(.38rem,1.5vw,.48rem);max-width:28ch;margin-top:.4rem;}
  .hero-cta-secondary-row{gap:.5rem;margin-top:.5rem;}
  .hero-ghost-link{font-size:clamp(.34rem,1.3vw,.42rem);}
  .hero-ghost-sep{font-size:.34rem;}
  .hero-h1{font-size:clamp(1.8rem,5vw,2.8rem);}
  .hero-ey{font-size:clamp(.42rem,2vw,.52rem);}
  /* Footer mobile — 2 colonnes cristal */
  .pf-footer{grid-template-columns:1fr 1fr;padding:0 8px max(8px, calc(8px + env(safe-area-inset-bottom)));gap:4px;}
  .pf-fc{padding:9px 1rem;min-height:52px;gap:4px;}
  .pf-fc:nth-child(1){grid-column:1/-1;}
  .pf-fc:nth-child(2){grid-column:1/-1;}
  .pf-fc:nth-child(5){grid-column:1/-1;align-items:center;}
  .pf-fc-al{grid-column:1/-1;}
  .at{grid-template-columns:1fr auto;width:100%;min-width:0;}.at-cell:first-child{display:none;}
  .ab{grid-template-columns:1fr;grid-template-rows:auto auto auto;overflow-y:auto;}
  .al{border-right:none;border-bottom:1px solid rgba(13,12,10,.08);padding:1.2rem 1rem;}
  .al-title{font-size:1.4rem;}
  .al-inst{font-size:.44rem;line-height:1.9;}
  .al-log-list{max-height:60px;}
  .ac{padding:.6rem .8rem 1rem;overflow:hidden;}
  .ac-fire{width:clamp(80px,22vw,120px);height:clamp(90px,18vw,130px);margin:0 auto;flex-shrink:0;}
  #fc{width:clamp(80px,22vw,120px) !important;height:clamp(90px,18vw,130px) !important;}
  .tr{gap:clamp(4px,1.5vw,10px);flex-wrap:nowrap;justify-content:center;padding:0 .5rem;}
  .tw{width:clamp(28px,7vw,42px);height:clamp(88px,20vw,120px);}
  .tg{width:clamp(28px,7vw,42px);height:clamp(66px,15vw,90px);}
  .tc-nm{font-size:clamp(.28rem,.8vw,.38rem);}
  .ac-res{padding:.5rem 1rem .6rem;min-height:44px;}
  .r-n{font-size:clamp(.7rem,3.5vw,.9rem);}
  .r-d{font-size:clamp(.36rem,1.5vw,.44rem);}
  .ac-lab{padding:.6rem .8rem .8rem;gap:.5rem;overflow-x:hidden;}
  .ac-mix{font-size:.46rem;padding:8px 14px;touch-action:manipulation;}
  .ar{border-left:none;border-top:1px solid rgba(13,12,10,.08);padding:1rem;}
  .ar-grid{grid-template-columns:1fr 1fr;gap:4px;}
  .ar-slot{padding:5px 6px;min-height:38px;}
  .ar-slot-n{font-size:.4rem;}
  .ar-slot-d{font-size:.3rem;}
  .whead{grid-template-columns:1fr auto;}.whead-cell:first-child{display:none;}
  .wfilts{flex-wrap:wrap;gap:4px;}
  .wf{font-size:.38rem;padding:5px 10px;}
  .wf-gallery-link{font-size:.3rem;padding:4px 8px;}
  .pr{grid-template-columns:40px 1fr 24px;}.pr-c,.pr-k,.pr-yr{display:none;}
  .cbody{padding:0;}.cbrief{grid-template-columns:1fr;padding:14px 1.2rem 0;}
  .sgrid{grid-template-columns:1fr;margin:20px 1.2rem;}.sc{border-right:none;border-bottom:1px solid rgba(13,12,10,.08);}
  /* Case hero — compact editorial header on mobile */
  .case-h{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto auto;
    padding:clamp(76px,18vw,92px) clamp(1.1rem,4vw,1.6rem) clamp(10px,2vw,14px);
    min-height:0;
    row-gap:clamp(6px,1.2vw,10px);
  }
  .case-h::after{display:none;}
  .cs-ey{grid-column:1;grid-row:3;font-size:clamp(.52rem,2.4vw,.62rem);letter-spacing:.22em;}
  .cs-ey::after{display:none;}
  .cs-h1{grid-column:1;grid-row:2;font-size:clamp(1.4rem,6.5vw,2.2rem);line-height:1;max-width:100%;}
  .cs-meta{
    grid-column:1;grid-row:4;justify-self:stretch;max-width:none;
    border-left:none;border-top:1px solid rgba(91,14,175,.18);
    padding:clamp(6px,1.4vw,10px) 0 0;
    display:flex;flex-direction:row;flex-wrap:wrap;gap:clamp(10px,2.4vw,16px);
  }
  .cnxt{padding:0 1.2rem;min-height:72px;grid-template-columns:1fr 80px auto;gap:0 1rem;}
  .cnxt-l{display:none;}
  .cnxt-thumb-wrap{height:50px;}
  .cnxt-meta{padding:14px 0;}
  .cmedia-head{padding:1rem 1.2rem;}
  /* balanced grid handled by .cmedia-grid-dynamic media queries */
  /* ABOUT mobile — full page scroll */
  #va{overflow-y:scroll !important;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;}
  #va .va-body{flex-direction:column;overflow:visible !important;min-height:auto;}
  .abr{order:2;padding:0;flex:none;min-height:auto;overflow-y:visible !important;}
  .abl{order:1;width:100%;height:30vh;min-height:180px;max-height:240px;flex-shrink:0;border-left:none;border-bottom:1.5px solid var(--ink);}
  /* Ensure pf-footer is visible at bottom */
  #va .pf-footer{flex-shrink:0;}
  #va{padding-bottom:44px;}
  .pgrid{grid-template-columns:1fr;}
  .ab-hero{padding:1.4rem 1.2rem;}.ab-s{padding:1.2rem 1.2rem;}.ab-top-bar{padding:.7rem 1.2rem;}
  .ab-body{font-size:.56rem;max-width:100%;line-height:2;color:rgba(13,12,10,.78);}
  .ab-lead{font-size:clamp(.9rem,3.2vw,1.3rem);line-height:1.5;}
  .abt{font-size:clamp(2.2rem,10vw,4rem);}
  .ab-tag{font-size:.42rem;letter-spacing:.2em;}
  .chips{gap:8px;flex-wrap:wrap;}
  .chip{font-size:.44rem;padding:8px 14px;}
  /* ── ABOUT — lisibilité corps de texte ── */
  .ab-body{font-size:clamp(12px,3.2vw,14px) !important;line-height:1.9;max-width:100%;}
  .ab-top-bar span,.ab-s h3{font-size:clamp(8px,2.2vw,10px) !important;}
  .chip{font-size:clamp(8px,2.2vw,10px) !important;padding:8px 14px;}

  /* ── CONTACT — inputs ≥16px → évite le zoom iOS ── */
  .cff input,.cff select,.cff textarea{font-size:16px !important;}
  .ct-form-title{font-size:clamp(1.2rem,5vw,1.8rem) !important;}
  .ct-il,.ct-iv,.ct-info-link{font-size:clamp(10px,2.6vw,12px) !important;}
  .ct-submit{font-size:clamp(10px,2.5vw,12px) !important;padding:13px 22px !important;min-height:46px;touch-action:manipulation;}
  .ct-submit-note{font-size:clamp(8px,2vw,9px) !important;}
}
/* ── TABLET — About stacked layout on iPad Pro portrait (901–1024px) ── */
@media(min-width:901px) and (max-width:1024px){
  #va{height:auto !important;min-height:100vh;overflow-y:auto !important;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;}
  #va .va-body{flex-direction:column;overflow:visible !important;min-height:auto;flex:1;}
  .abr{order:2;padding:0 2rem;flex:1;min-height:auto;overflow-y:visible !important;}
  .abl{order:1;width:100%;height:32vh;min-height:200px;max-height:280px;flex-shrink:0;border-left:none;border-bottom:1.5px solid var(--ink);}
  .ab-hero{padding:2rem 0;}
  .ab-s{padding:1.8rem 0;}
  .ab-body{font-size:clamp(13px,1.5vw,15px) !important;line-height:1.85;max-width:72ch;}
  .ab-lead{font-size:clamp(1.1rem,2.2vw,1.4rem);}
  .pc p{font-size:clamp(11px,1.3vw,13px) !important;line-height:1.7;}
  .chips{margin-top:1.5rem;}
}
/* ── TABLET — pgrid 2 colonnes (641–1024px) ── */
@media(min-width:641px) and (max-width:1024px){
  .pgrid{grid-template-columns:1fr 1fr;}
}
@media(max-width:640px){
  .ct-submit{flex-direction:column;align-items:stretch;gap:.8rem;}
  .cfbtn{width:100%;justify-content:center;}
}
@media(max-width:480px){
  .tw{width:36px;height:115px;}.tr{gap:9px;}
  .pf-footer{grid-template-columns:1fr 1fr;padding:0 6px max(6px, calc(6px + env(safe-area-inset-bottom)));}
  .ab-body{font-size:.54rem;line-height:1.9;}
  .pc p{font-size:.48rem;}
  .pc h3{font-size:.52rem;}
  .pf-fc:nth-child(1){grid-column:1/-1;}
  .pf-fc:nth-child(2){grid-column:1/-1;}
  .pf-fc:nth-child(5){grid-column:1/-1;align-items:center;}
  .pf-fl{font-size:.44rem;}.pf-fv{font-size:.60rem;}
  .ct-tables{display:none;}
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
/* ════════════════════════════════
   FOOTER BANDEAU
════════════════════════════════ */
#ft{
  position:fixed;bottom:0;left:0;right:0;z-index:200;
  flex-shrink:0;
  border-top:1px solid rgba(13,12,10,.12);
  background:var(--ink);
  height:44px;
}
.ft-inner{display:flex;align-items:center;justify-content:space-between;padding:0 2rem;gap:1.5rem;width:100%;overflow:hidden;}
.ft-baseline{font-family:var(--cond);font-size:.72rem;font-weight:200;letter-spacing:.22em;text-transform:uppercase;color:rgba(245,242,236,.35);flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ft-copy{font-family:var(--mono);font-size:.38rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(245,242,236,.28);white-space:nowrap;flex-shrink:0;}
.ft-icons{display:flex;align-items:center;gap:0;flex-shrink:0;}
.ft-ico{display:flex;align-items:center;justify-content:center;width:36px;height:44px;color:rgba(245,242,236,.28);transition:color .16s;}
.ft-ico:hover{color:var(--v3);}
.ft-ico svg{stroke:currentColor;}

/* ════════════════════════════════════════════
   HOMEPAGE V2 — SECTIONS
════════════════════════════════════════════ */

/* ── Hero additions ── */
.hero-sub{
  font-family:var(--mono);font-size:clamp(.46rem,.85vw,.54rem);
  letter-spacing:.22em;text-transform:uppercase;
  color:var(--v);opacity:.75;margin-top:0;
  text-align:left; /* alignement explicite côté gauche */
}
.hero-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  margin-top:1.6rem;
  font-family:var(--mono);font-size:clamp(.58rem,.98vw,.68rem);letter-spacing:.22em;
  text-transform:uppercase;color:var(--cr);
  background:var(--ink);
  border:1px solid var(--ink);
  padding:clamp(13px,1.8vw,16px) clamp(22px,4vw,32px);
  border-radius:3px;
  box-shadow:none;
  transition:background .28s cubic-bezier(.22,1,.36,1),color .28s,letter-spacing .28s,border-color .28s;cursor:none;
}
.hero-cta::after{
  content:'↓';display:inline-block;
  transition:transform .32s cubic-bezier(.22,1,.36,1);
}
.hero-cta:hover{
  background:transparent;color:var(--ink);
  border-color:rgba(13,12,10,.4);
  transform:none;
  box-shadow:none;
  letter-spacing:.24em;
}
.hero-cta:hover::after{transform:translateY(3px);}
body.dark .hero-sub{color:var(--v2);opacity:.8;}
body.dark .hero-cta{color:var(--ink);background:transparent;border-color:rgba(232,228,220,.55);box-shadow:none;}
body.dark .hero-cta:hover{background:rgba(232,228,220,.08);color:var(--ink);border-color:rgba(232,228,220,.9);box-shadow:none;}

/* ── Hero pitch line ── */
.hero-pitch{
  font-family:var(--mono);font-size:clamp(.4rem,.85vw,.5rem);
  letter-spacing:.06em;line-height:1.7;
  color:rgba(13,12,10,.45);
  margin-top:.5rem;max-width:34ch;
}
body.dark .hero-pitch{color:rgba(232,228,220,.35);}

/* ── Hero CTA — AI Lab (no scroll arrow) ── */
.hero-cta--ailab::after{content:'';display:none;}
.hero-cta--ailab{letter-spacing:.26em;}

/* ── Hero CTA — Scroll to selected works ── */
.hero-cta--scroll{letter-spacing:.20em;}
.hero-cta--scroll::after{
  content:'↓';display:inline-block;
  font-size:.9em;margin-left:2px;
  transition:transform .32s cubic-bezier(.22,1,.36,1);
}
.hero-cta--scroll:hover::after{transform:translateY(4px);}
.hero-cta--scroll:hover{letter-spacing:.24em;}
/* reset browser button defaults */
.hero-cta--scroll{font-family:var(--mono);}

/* ── Secondary row: ALL PROJECTS · CONTACT ── */
.hero-cta-secondary-row{
  display:flex;align-items:center;gap:.7rem;
  margin-top:.7rem;
}
.hero-ghost-link{
  font-family:var(--mono);font-size:clamp(.42rem,.82vw,.5rem);
  letter-spacing:.18em;text-transform:uppercase;
  color:rgba(13,12,10,.45);text-decoration:none;
  border-bottom:1px solid rgba(13,12,10,.18);
  padding-bottom:1px;
  transition:color .2s,border-color .2s;
  cursor:none;
}
.hero-ghost-link:hover{color:var(--ink);border-color:rgba(13,12,10,.55);}
.hero-ghost-sep{
  font-family:var(--mono);font-size:.38rem;
  color:rgba(13,12,10,.2);
}
body.dark .hero-ghost-link{color:rgba(232,228,220,.35);border-color:rgba(232,228,220,.12);}
body.dark .hero-ghost-link:hover{color:rgba(245,242,236,.9);border-color:rgba(245,242,236,.5);}
body.dark .hero-ghost-sep{color:rgba(232,228,220,.15);}

/* ── Section generic ── */
.hp-section{
  padding:clamp(3rem,6vw,5rem) clamp(1.4rem,4vw,3.5rem);
  border-top:1px solid var(--rule);
}
.hp-section-head{
  display:flex;align-items:center;gap:clamp(.6rem,1.2vw,1rem);
  margin-bottom:clamp(2rem,4vw,3.2rem);
}
.hp-section-ref{
  font-family:var(--mono);font-size:.36rem;letter-spacing:.15em;
  color:var(--v);opacity:.75;
  flex-shrink:0;
}
.hp-section-title{
  font-family:var(--cond);font-size:clamp(.7rem,1.4vw,1rem);
  font-weight:400;letter-spacing:.32em;text-transform:uppercase;
  color:var(--ink);opacity:.6;
}
.hp-section-line{
  flex:1;height:1px;background:var(--rule);
}
body.dark .hp-section{border-top-color:rgba(232,228,220,.08);}
body.dark .hp-section-title{color:var(--ink);}
body.dark .hp-section-ref{color:var(--v2);}

/* ══════════════════════════════════════
   SELECTED WORK — Grid vertical
══════════════════════════════════════ */

#selected-work{
  padding-top:clamp(2rem,3.5vw,3rem);
}
#selected-work .hp-section-head{
  padding:0 clamp(1.4rem,4vw,3.5rem) clamp(.5rem,1vw,.75rem);
  margin-bottom:clamp(.8rem,1.5vw,1.2rem);
  border-bottom:1px solid rgba(13,12,10,.06);
}
body.dark #selected-work .hp-section-head{border-bottom-color:rgba(232,228,220,.05);}
/* Titre section — léger et espacé */
#selected-work .hp-section-title{
  font-size:clamp(.85rem,1.7vw,1.15rem);
  font-weight:300;
  letter-spacing:.32em;
  opacity:.72;
  color:var(--ink);
}
body.dark #selected-work .hp-section-title{opacity:.6;}

/* count badge — crochets lab */
.hw-count{
  font-family:var(--mono);font-size:.34rem;
  letter-spacing:.08em;color:rgba(91,14,175,.4);
  flex-shrink:0;margin-left:auto;
}
.hw-count::before{content:'[';margin-right:.04em;}
.hw-count::after{content:']';margin-left:.04em;}
body.dark .hw-count{color:rgba(192,132,252,.4);}

/* Carousel wrapper */
.hw-wrap{
  position:relative;
  overflow:hidden;
  margin-left:calc(-1 * clamp(1.4rem,4vw,3.5rem));
  margin-right:calc(-1 * clamp(1.4rem,4vw,3.5rem));
}

/* Carousel — transform scroll, pas de scroll natif */
.hp-work-grid{
  display:flex;
  flex-direction:row;
  gap:clamp(4px,0.5vw,8px);
  padding-left:clamp(1.4rem,4vw,3.5rem);
  will-change:transform;
}

/* Cards — portrait format, fixed width for horizontal scroll */
.hp-work-card{
  flex:0 0 clamp(240px,30vw,360px);
  scroll-snap-align:start;
  height:clamp(320px,42vw,480px);
  position:relative;overflow:hidden;
  background:rgba(91,14,175,.04);
  border:1px solid rgba(91,14,175,.09);
  cursor:none;
  will-change:transform;
  transition:
    transform .42s var(--ease-pf),
    box-shadow .45s;
}
.hp-work-card:hover{}

/* Image */
.hp-work-card-img,
.hp-work-card img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .8s cubic-bezier(.22,1,.36,1), filter .7s cubic-bezier(.4,0,.2,1);
}
.hp-work-card:hover .hp-work-card-img,
.hp-work-card:hover img{transform:scale(1.04);}

#hp-work-grid:has(.hp-work-card:hover) .hp-work-card:not(:hover) .hp-work-card-img,
#hp-work-grid:has(.hp-work-card:hover) .hp-work-card:not(:hover) img{
  filter:grayscale(.48) brightness(.78) saturate(.45);
  transition:transform .8s cubic-bezier(.22,1,.36,1), filter .7s cubic-bezier(.4,0,.2,1);
}

/* Persistent bottom label — always visible */
.hp-work-card-foot{
  position:absolute;bottom:0;left:0;right:0;
  padding:clamp(.55rem,1.2vw,.85rem) clamp(.8rem,1.5vw,1.1rem);
  background:linear-gradient(to top,rgba(13,12,10,.82) 0%,rgba(13,12,10,.6) 60%,transparent 100%);
  display:flex;align-items:flex-end;gap:.6rem;
  transition:opacity .35s;
}
.hp-work-card:hover .hp-work-card-foot{opacity:0;}

.hp-work-card-num{
  font-family:var(--mono);font-size:.32rem;letter-spacing:.16em;
  color:var(--v3);flex-shrink:0;line-height:1.6;
}
.hp-work-card-name{
  font-family:var(--cond);font-size:clamp(.5rem,1vw,.65rem);
  font-weight:300;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(245,242,236,.82);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
  line-height:1.4;
}

/* Hover overlay — slides up */
.hp-work-overlay{
  position:absolute;inset:0;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:clamp(1rem,2vw,1.5rem);
  background:linear-gradient(to top,rgba(13,12,10,.78) 0%,rgba(91,14,175,.15) 55%,transparent 100%);
  opacity:0;
  transform:translateY(6px);
  transition:opacity .38s,transform .38s var(--ease-pf);
}
.hp-work-card:hover .hp-work-overlay{opacity:1;transform:translateY(0);}

.hp-work-overlay-num{
  font-family:var(--mono);font-size:.32rem;letter-spacing:.15em;
  color:var(--v3);margin-bottom:.5rem;
}
.hp-work-overlay-title{
  font-family:var(--grotesk);font-size:clamp(.62rem,1.2vw,.85rem);
  font-weight:600;letter-spacing:-.01em;color:#F5F2EC;
  line-height:1.2;
}
.hp-work-overlay-scope{
  font-family:var(--mono);font-size:.34rem;letter-spacing:.1em;
  color:rgba(245,242,236,.55);margin-top:.4rem;
  text-transform:uppercase;
}

/* Nav arrows */
.hw-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:clamp(36px,3.5vw,48px);height:clamp(36px,3.5vw,48px);
  border:1px solid rgba(91,14,175,.25);
  border-radius:50%;
  padding:0;aspect-ratio:1/1;
  background:rgba(13,12,10,.55);
  color:rgba(245,242,236,.7);
  font-size:.7rem;letter-spacing:.05em;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:opacity .22s,background .22s,border-color .22s;
  opacity:0;z-index:10;
}
.hw-nav--prev{left:clamp(.6rem,1.5vw,1.2rem);}
.hw-nav--next{right:clamp(.6rem,1.5vw,1.2rem);}
.hw-nav:hover{background:rgba(91,14,175,.18);border-color:rgba(91,14,175,.5);color:#F5F2EC;box-shadow:0 0 0 3px rgba(91,14,175,.15),0 4px 16px rgba(91,14,175,.18);}
/* Flèches — apparaissent au hover du wrapper */
.hw-wrap:hover .hw-nav{opacity:.65;}
.hw-nav:hover{opacity:1;}
body.dark .hw-nav{background:rgba(5,3,12,.6);border-color:rgba(155,95,232,.3);}
body.dark .hw-wrap:hover .hw-nav{opacity:.55;}
body.dark .hw-nav:hover{opacity:.9;}

/* Progress bar */
.hw-progress{
  height:1px;
  background:rgba(13,12,10,.1);
  margin-top:clamp(.6rem,1.2vw,.9rem);
  position:relative;
}
.hw-progress-fill{
  height:100%;
  background:rgba(13,12,10,.55);
  width:0%;
  transition:width .18s var(--ease-pf);
}

/* Dark mode */
body.dark .hp-work-card{background:rgba(155,95,232,.06);}
body.dark .hp-work-card-name{color:rgba(232,228,220,.8);}

/* ── Card FX — 3D tilt + border reveal ── */

/* Box-shadow aura sur hover */
#hp-work-grid .hp-work-card:hover{}

/* ── Overlay — cov-meta style, gradient riche ── */
#hp-work-grid .hp-work-overlay{
  inset:auto;
  left:0;right:0;bottom:0;top:auto;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:clamp(3rem,6vw,5rem) 1.1rem 1.1rem;
  background:linear-gradient(
    0deg,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.72) 35%,
    rgba(0,0,0,.28) 65%,
    transparent 100%
  );
  opacity:0;
  transform:none;
  clip-path:none;
  transition:opacity .65s cubic-bezier(.4,0,.2,1);
}
#hp-work-grid .hp-work-card:hover .hp-work-overlay{ opacity:1; }

/* Title — grotesk bold, matches fh-title */
#hp-work-grid .hp-work-overlay-title{
  font-family:var(--grotesk);
  font-size:clamp(.9rem,1.8vw,1.2rem);
  font-weight:600;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#fff;
  display:block;
  line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  opacity:0;
  filter:blur(6px);
  transform:translateY(4px);
  transition:opacity .4s cubic-bezier(.22,1,.36,1),filter .44s cubic-bezier(.22,1,.36,1),transform .4s cubic-bezier(.22,1,.36,1);
}
#hp-work-grid .hp-work-card:hover .hp-work-overlay-title{
  opacity:1;filter:blur(0);transform:translateY(0);
}

/* Sub pill — matches fh-sub */
#hp-work-grid .hp-work-overlay-sub{
  display:inline-block;
  font-family:var(--mono);
  font-size:clamp(.38rem,.65vw,.48rem);
  letter-spacing:.13em;
  text-transform:uppercase;
  color:rgba(255,255,255,.78);
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  padding:2px 7px;
  margin-top:.38rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:100%;
  opacity:0;
  transition:opacity .35s cubic-bezier(.22,1,.36,1);
  transition-delay:.1s;
}
#hp-work-grid .hp-work-card:hover .hp-work-overlay-sub{ opacity:1; }

/* Rule — matches fh-rule */
#hp-work-grid .hp-work-overlay-rule{
  height:1px;
  margin:.52rem 0 .42rem;
  background:rgba(255,255,255,.2);
  opacity:0;
  transition:opacity .3s ease;
  transition-delay:.18s;
}
#hp-work-grid .hp-work-card:hover .hp-work-overlay-rule{ opacity:1; }

/* Data rows — matches fh-data-row */
#hp-work-grid .hp-work-overlay-data{
  display:flex;
  flex-direction:column;
  gap:.18rem;
}
#hp-work-grid .hp-work-data-row{
  display:flex;
  align-items:baseline;
  gap:.3rem;
  font-family:var(--mono);
  font-size:clamp(.38rem,.62vw,.44rem);
  letter-spacing:.1em;
  text-transform:uppercase;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  opacity:0;
  transform:translateY(5px);
  transition:opacity .3s ease,transform .3s ease;
}
#hp-work-grid .hp-work-data-row:nth-child(1){ transition-delay:.22s; }
#hp-work-grid .hp-work-data-row:nth-child(2){ transition-delay:.29s; }
#hp-work-grid .hp-work-card:hover .hp-work-data-row{ opacity:1;transform:translateY(0); }
#hp-work-grid .hp-dk{ color:rgba(255,255,255,.52); }
#hp-work-grid .hp-ds{ color:rgba(255,255,255,.32); }
#hp-work-grid .hp-dv{ color:rgba(255,255,255,.9);font-weight:500; }

/* ── ALL PROJECTS bar — éditorial, label négatif violet ── */
.hp-work-more{
  display:flex;align-items:center;justify-content:center;gap:clamp(1.2rem,3vw,3rem);
  padding:clamp(1.4rem,3.5vh,2rem) clamp(1.4rem,4vw,3.5rem);
  text-decoration:none;
  border-top:1px solid rgba(13,12,10,.13);
  position:relative;overflow:hidden;isolation:isolate;
  cursor:none;
}
/* lignes latérales extensibles */
.hp-wm-line{
  display:block;height:1px;background:var(--ink);
  flex:1;max-width:clamp(2rem,8vw,7rem);
  opacity:.14;
  transform:scaleX(0);
  transition:transform .45s var(--ease-pf),opacity .3s;
}
.hp-wm-line--left{transform-origin:right;transition-delay:.05s;}
.hp-wm-line--right{transform-origin:left;transition-delay:.08s;}
.hp-work-more:hover .hp-wm-line{transform:scaleX(1);opacity:.3;}
/* Label — négatif violet : fond violet, texte crème */
.hp-wm-label{
  display:flex;align-items:center;gap:.9rem;
  color:var(--cr);
  background:var(--ink);
  border:1px solid var(--ink);
  padding:clamp(.6rem,1.2vw,.72rem) clamp(1.4rem,3vw,2rem) clamp(.6rem,1.2vw,.72rem) clamp(1.6rem,3.5vw,2.2rem);
  border-radius:3px;
  position:relative;overflow:hidden;isolation:isolate;
  transition:color .38s var(--ease-pf), border-color .38s;
}
/* Remplissage crème au hover (sweep from bottom) */
.hp-wm-label::before{
  content:'';position:absolute;inset:0;
  background:var(--cr);
  transform:scaleY(0);transform-origin:bottom center;
  transition:transform .42s cubic-bezier(.22,1,.36,1);
  z-index:0;
}
.hp-work-more:hover .hp-wm-label::before{transform:scaleY(1);}
.hp-work-more:hover .hp-wm-label{color:var(--ink);border-color:var(--ink);}
.hp-wm-txt,.hp-wm-arrow{position:relative;z-index:1;}
.hp-wm-txt{
  font-family:var(--cond);font-weight:400;
  font-size:clamp(1rem,2vw,1.3rem);
  letter-spacing:.28em;text-transform:uppercase;
  line-height:1;
}
.hp-wm-arrow{
  font-family:var(--mono);font-size:clamp(.56rem,1vw,.65rem);
  opacity:.7;
  transition:opacity .28s, transform .4s cubic-bezier(.22,1,.36,1);
}
.hp-work-more:hover .hp-wm-arrow{opacity:1;transform:translateX(6px);}
body.dark .hp-work-more{border-top-color:rgba(232,228,220,.1);}
body.dark .hp-wm-line{background:var(--cr);}
body.dark .hp-wm-label{background:transparent;color:rgba(232,228,220,.85);border-color:rgba(232,228,220,.55);}
body.dark .hp-wm-label::before{background:rgba(232,228,220,.09);}

/* ══════════════════════════════════════════════════
   SELECTED WORK — IntersectionObserver reveal
   Clip-path + translateY + expo-out cubic
   Classe .sw-reveal ajoutée par JS au franchissement
══════════════════════════════════════════════════ */

/* État initial — invisible avant la classe reveal */
#selected-work .hp-section-head{
  opacity:0;
  transform:translateX(-20px);
  transition:
    opacity .75s cubic-bezier(.16,1,.3,1),
    transform .75s cubic-bezier(.16,1,.3,1);
}
#selected-work .hp-section-head.sw-reveal{
  opacity:1;transform:none;
}

.hp-work-card{
  opacity:0;
  transform:translateY(20px);
  transition:
    opacity .7s cubic-bezier(.16,1,.3,1),
    transform .65s cubic-bezier(.16,1,.3,1),
    box-shadow .35s var(--ease-pf);
}
.hp-work-card.sw-reveal{
  opacity:1;
  transform:none;
  /* Override : supprime transform de la transition une fois révélé
     → le tilt 3D initHPCardFX répond instantanément (RAF, pas CSS) */
  transition:
    opacity .35s var(--ease-pf),
    border-color .35s,
    box-shadow .35s var(--ease-pf);
}

.hp-work-more{
  opacity:0;
  transform:translateY(16px);
  transition:
    opacity .65s cubic-bezier(.16,1,.3,1),
    transform .65s cubic-bezier(.16,1,.3,1);
}
.hp-work-more.sw-reveal{opacity:1;transform:none;}
body.dark .hp-work-more:hover .hp-wm-label{color:rgba(232,228,220,.95);border-color:rgba(232,228,220,.85);}

/* ── Hover-breathing — cartes voisines se reculent légèrement ── */
#hp-work-grid:has(.hp-work-card:hover) .hp-work-card:not(:hover){
  transform:scale(0.974);
  transition:transform .5s var(--ease-pf);
}

/* ── Nav arrows — feedback :active + visibles sur touch ── */
.hw-nav:active{
  transform:translateY(-50%) scale(.88);
  background:rgba(91,14,175,.28);
  transition:transform .1s,background .1s;
}
@media (hover:none) and (pointer:coarse){
  .hw-nav{opacity:.52;}
}

/* ── Trust — Client Row ── */
.hp-clients-row{
  display:flex;flex-wrap:wrap;gap:0;
  justify-content:center;align-items:center;
  padding:clamp(1rem,2vw,2rem) 0;
}
.hp-cl{
  font-family:var(--cond);font-size:clamp(.7rem,1.6vw,1.1rem);
  font-weight:300;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(13,12,10,.3);
  padding:clamp(.6rem,1.2vw,1rem) clamp(1rem,2vw,2rem);
  transition:color .3s;
  cursor:default;
}
.hp-cl:hover{color:var(--v);}
body.dark .hp-cl{color:rgba(232,228,220,.2);}
body.dark .hp-cl:hover{color:var(--v2);}

/* ── Methodology Grid ── */
.hp-method-grid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:1px;margin-bottom:clamp(1.6rem,3vw,2.5rem);
  background:var(--rule);
}
.hp-meth-card{
  background:var(--cr);
  padding:clamp(1.2rem,2.5vw,2rem);
  opacity:0;transform:translateY(16px);
  transition:opacity .6s var(--ease-pf),transform .6s var(--ease-pf);
}
.hp-meth-card.revealed{opacity:1;transform:none;}
.hp-meth-num{
  font-family:var(--mono);font-size:.34rem;letter-spacing:.15em;
  color:var(--v);opacity:.5;display:block;margin-bottom:.8rem;
}
.hp-meth-card h3{
  font-family:var(--mono);font-size:clamp(.42rem,.9vw,.52rem);
  font-weight:500;letter-spacing:.1em;text-transform:uppercase;
  margin-bottom:.6rem;
}
.hp-meth-card p{
  font-family:var(--mono);font-size:clamp(.38rem,.8vw,.44rem);
  line-height:1.8;color:rgba(13,12,10,.5);
}
body.dark .hp-meth-card{background:var(--ink);}
body.dark .hp-method-grid{background:rgba(232,228,220,.06);}
body.dark .hp-meth-card p{color:rgba(232,228,220,.45);}
@media(max-width:768px){
  .hp-method-grid{grid-template-columns:1fr 1fr;}
  .hp-cl{font-size:clamp(.5rem,2.5vw,.75rem);padding:.5rem .8rem;}
}
@media(max-width:480px){
  .hp-method-grid{grid-template-columns:1fr;}
}

/* (removed: clients marquee, services, about teaser, hp-footer — user prefers short page) */

/* ── HERO MATRIX responsive — tablet (iPad Pro / 1024px) ── */
@media(min-width:641px) and (max-width:1024px){
  #dna-h{opacity:0.10 !important;}
  #hero-matrix{
    width:clamp(240px,42%,400px) !important;
    height:clamp(220px,34vh,380px) !important;
    max-height:380px !important;
    overflow:hidden !important;
  }
  #hm-col-b{display:none !important;}
  .hm-col{
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 12%,#000 85%,transparent 100%);
    mask-image:linear-gradient(to bottom,transparent 0%,#000 12%,#000 85%,transparent 100%);
  }
  .hm-line{
    font-size:clamp(.44rem,.8vw,.54rem);
    line-height:1.55;
  }
}

/* ── HERO MATRIX responsive — small tablet / large phone ── */
@media(max-width:768px){
  /* Canvas ADN — quasi invisible sur tablette/phone */
  #dna-h{opacity:0.08 !important;}
  #hm-col-b{display:none !important;}
  #hero-matrix{
    top:84px;
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
    bottom:auto;
    height:clamp(200px,28vh,300px) !important;
    max-height:300px !important;
    grid-template-columns:1fr;
    padding:0 clamp(1rem,4vw,1.6rem);
  }
  #hero-matrix::after{display:none;}
  .hm-col{
    min-width:0;           /* override auto — empêche le grid item de gonfler au contenu nowrap */
    width:100%;
    padding-right:0;
    justify-content:flex-end;
    overflow:hidden;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 14%,#000 88%,transparent 100%);
    mask-image:linear-gradient(to bottom,transparent 0%,#000 14%,#000 88%,transparent 100%);
  }
  .hm-line{
    min-width:0;           /* même précaution sur les lignes flex */
    max-width:100%;
    font-size:clamp(.70rem,3.2vw,.84rem); /* was .60-.74rem — lisible sans être encombrant */
    line-height:1.55;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — iPhone XR & small screens
   Added: 2026-04-08 — Fixes loader, hero, footer safe area
   Updated: 2026-04-08 — Added 768px breakpoint for loader
═══════════════════════════════════════════════════════════ */

/* ── LOADER — mobile ── */
@media(max-width:768px){
  .ldr-logo svg{
    width:clamp(40px,12vw,72px);
  }
}

/* ── LOADER — smaller phones ── */
@media(max-width:480px){
  .ldr-logo svg{
    width:clamp(56px,18vw,90px);
  }
  .ldr-title{
    font-size:clamp(.75rem,4vw,1rem);
  }
  .ldr-copy{display:none;}
  .ldr-bar-label,.ldr-bar{display:none;}
  /* Colonnes latérales : inutilisables à cette largeur (texte monospace long déborde)
     On simplifie à logo centré + barre de progression uniquement */
  #ldr{ grid-template-columns:1fr; }
  .ldr-col-l,.ldr-col-r{ display:none; }
  .ldr-logo{ grid-column:1; }
  .ldr-bottom{ grid-column:1; }
}

/* ── HERO MOBILE — flex column layout (≤640px) ──
   Remplace l'approche absolute fragile par un flux propre.
   Ordre DOM : #hero-matrix → .hero-alch-zone (abs) → .hero-copy → .hero-cta-block
   ─────────────────────────────────────────────────────────── */
@media(max-width:640px){
  /* DNA canvas — visible en transparence sur mobile */
  #dna-h{display:block !important;opacity:0.18 !important;}

  /* Hero — flex column compact. Pas de full-screen : contenu détermine la hauteur.
     La dead zone de 300px+ disparaît. Page commence immédiatement sous le hero. */
  .hero{
    display:flex !important;
    flex-direction:column !important;
    min-height:100dvh !important;
    height:auto !important;
    padding-top:84px !important;
    padding-bottom:clamp(2rem,4vh,3rem) !important;
    overflow:hidden !important;
    justify-content:flex-start !important;
    gap:0 !important;
  }

  /* Matrix — bande déco compacte en flux mobile */
  #hero-matrix{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    flex-shrink:0 !important;
    grid-template-columns:1fr !important;
    height:auto !important;
    max-height:clamp(260px,38vh,340px) !important;
    overflow:hidden !important;
    padding:0 1.2rem !important;
  }
  /* Toutes les lignes visibles — le mask-image gère le fade en haut */
  #hm-col-a .hm-line:nth-child(-n+8){
    display:block !important;
  }
  /* Font-size provisoire — final override (9px absolu) prend le dessus en cascade. */
  #hero-matrix .hm-line{
    font-size:9px !important;
    line-height:1.5 !important;
    letter-spacing:.03em !important;
  }
  #hero-matrix #hm-col-a{
    height:auto !important;
    overflow:hidden !important;
    padding-right:0 !important;
    padding-left:0 !important;
    justify-content:flex-start !important;
    /* fade très court en haut — lignes lisibles dès le départ */
    -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.5) 0%,#000 20%,#000 100%) !important;
    mask-image:linear-gradient(to bottom,rgba(0,0,0,.5) 0%,#000 20%,#000 100%) !important;
  }

  /* Protocols — masqué */
  .hero-protocols{display:none;}

  /* ── Échelle nombre d'or mobile ──
     base=0.8rem × φ : 0.8 / 1.3 / 2.1 / 3.4 / 5.5rem
     Chaque gap entre groupes sémantiques suit un palier φ.
     Matrix → Alch : φ⁰ (0.8rem) — même zone déco
     Alch → Copy   : φ³ (3.4rem) — plus grand gap, sépare identité/contenu
     Ey → H1       : φ⁰ (0.8rem) — même groupe
     H1 → Sub      : φ¹ (1.3rem) — respiration post-titre
     Copy → CTA    : φ² (2.1rem) — sépare info/action
     Tag → Button   : φ⁰ (0.8rem)                              */

  /* Alch zone — PLAYFUL CHEMISTRY */
  .hero-alch-zone{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:none !important;
    flex-shrink:0;
    padding-left:1.2rem;
    margin-top:calc(0.8rem + 40px) !important;
    margin-bottom:clamp(1.6rem,4vh,2.6rem) !important;
  }
  #site.on .hero-alch-zone{opacity:1;transform:none;}
  .hero-alch-btn{padding:clamp(10px,2.8vw,14px) clamp(16px,4vw,22px);gap:clamp(10px,3vw,15px);}
  .hero-alch-main{font-size:clamp(.78rem,2.8vw,.95rem);letter-spacing:.05em;}
  .hero-alch-sub{font-size:clamp(.42rem,1.6vw,.52rem);}
  .hero-alch-ico{width:clamp(18px,5.5vw,24px);height:clamp(18px,5.5vw,24px);}

  /* Hero copy — eyebrow + titre + sub, espacements φ internes */
  .hero-copy{
    position:relative !important;
    bottom:auto !important;
    left:auto !important;
    top:auto !important;
    width:100% !important;
    max-width:100% !important;
    padding:0 1.2rem 0 !important;
    margin-top:0 !important;
    flex-grow:1 !important;
    flex-shrink:0 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-end !important;
    gap:0 !important;
  }

  /* Espacements internes hero-copy — φ harmonisé
     ey → h1 : φ⁰ (0.6rem) — même groupe, continuité
     h1 → sub : φ¹ (1rem) — respiration post-titre */
  .hero-ey{
    margin-bottom:0.6rem !important;
  }
  .hero-h1{
    margin-bottom:0 !important;
  }
  /* hero-sub margin handled in consolidated rule below */

  /* CTA block — séparé du copy par φ² */
  .hero-cta-block{
    position:relative !important;
    bottom:auto !important;
    left:auto !important;
    right:auto !important;
    margin-top:2.1rem !important;
    padding:0 1.2rem 0 !important;
    align-items:center !important;
    width:100% !important;
  }
  .hero-cta-block .hero-tag{
    margin-bottom:0.8rem !important;
    text-align:center !important;
  }
  .hero-tag{
    font-size:clamp(.56rem,2.2vw,.72rem) !important;
    line-height:1.8 !important;
    letter-spacing:.12em !important;
  }
  .hero-ey{
    font-size:clamp(.56rem,2.4vw,.72rem) !important;
    letter-spacing:.14em !important;
  }
  .hero-cta{
    font-size:clamp(.62rem,2.6vw,.78rem) !important;
    padding:clamp(11px,3vw,14px) clamp(20px,6vw,28px) !important;
    letter-spacing:.18em !important;
  }
  .hero-h1{
    font-size:clamp(2.2rem,10.2vw,3.2rem) !important;
    line-height:.94 !important;
  }
  /* LABORATORIUM — fill width to match "THE PURPLE FLAME" line above.
     12 chars vs 16 chars → needs wider tracking + slightly heavier weight
     to feel balanced and fill the same visual line-width.               */
  .hero-h1 .w4{
    font-weight:400 !important;
    letter-spacing:.12em !important;
    color:rgba(13,12,10,.58) !important;
  }
  body.dark .hero-h1 .w4{
    color:rgba(232,228,220,.45) !important;
  }
  /* Remove white-space:nowrap on small phones — let "THE PURPLE FLAME" reflow */
  @media(max-width:380px){
    .hero-h1 span[style*="white-space"]{
      white-space:normal !important;
    }
  }

  /* Sub — tighter coupling to title (consolidated rule) */
  .hero-sub{
    margin-top:.6rem !important;
    font-size:clamp(.58rem,2.4vw,.74rem) !important;
    letter-spacing:.22em !important;
  }

  /* CTA block — reduce dead space above */
  .hero-cta-block{
    margin-top:clamp(1.4rem,4vh,2.1rem) !important;
  }

  /* Beacon — compact */
  .hero-beacon{top:76px;}
  .hb-bar{padding:8px 1.2rem;border-bottom:none;}
  .hb-bar span,.hb-city,.hb-sep,#hero-time,.hero-weather-big{font-size:.4rem !important;}
  .hb-tag{display:none;}
  .hb-city,.hb-sep{display:none;}
  .hero-hint{display:none !important;}
}

/* ── HERO H1 — transition douce 641–768px ─────────────────────
   Sans cette règle : saut brutal de 51px (mobile 3.2rem) à 32px (≤768px 5vw)
   en un pixel. 7vw à 641px = 45px — progression continue dans les deux sens. */
@media(min-width:641px) and (max-width:768px){
  .hero-h1{ font-size:clamp(2.2rem,7vw,3.2rem) !important; }
}

/* ── HERO — tablette (641px–1024px) ──────────────────────────
   Pas de flex column ici : layout desktop (position:absolute).
   Problème : alch zone flottait au centre du hero sans ancrage.
   Fix : ancrer au bas-gauche, au-dessus du bloc titre.
   ─────────────────────────────────────────────────────────── */
@media(min-width:641px) and (max-width:1024px){
  /* Alch zone — ancrée au-dessus du bloc titre (bas-gauche).
     Réduit de 320→270px pour serrer le gap visuel entre bouton et titre */
  .hero-alch-zone{
    top:auto;
    bottom:clamp(260px,27vh,340px);
    left:2rem;
    transform:translateX(-6px); /* état initial avant .on */
  }
  #site.on .hero-alch-zone{
    opacity:1;
    transform:translateX(0);
  }
  /* Alch button — plus petit qu'en desktop, proportionnel au titre tablet
     min-height:44px assure la zone tactile minimale iOS/Material */
  .hero-alch-btn{ padding:10px 13px; min-height:44px; gap:8px; }
  .hero-alch-main{ font-size:11px; }
  .hero-alch-sub{ font-size:.34rem; }
  /* Matrix — lisibilité améliorée sur tablette */
  #hm-col-b{display:none !important;} /* une seule colonne suffit en portrait tablette */
  #hero-matrix{
    width:clamp(420px,72%,620px);
    max-width:calc(100% - 4rem);
    overflow:hidden;
    grid-template-columns:1fr;
    top:72px;
    height:clamp(380px,52vh,560px);
  }
  .hm-col{
    min-width:0;     /* empêche le grid item d'exploser au contenu nowrap */
    width:100%;
    overflow:hidden;
    padding-right:0;
    /* height:auto → contenu se lit top→bottom. Override du masque mobile (qui effaçait le bas) */
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.45) 5%,#000 14%,#000 88%,rgba(0,0,0,.3) 96%,transparent 100%);
    mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.45) 5%,#000 14%,#000 88%,rgba(0,0,0,.3) 96%,transparent 100%);
  }
  .hm-line{
    min-width:0;
    max-width:100%;
    /* tablette : élément décoratif de fond — micro-typo discrète */
    font-size:8px !important;
    line-height:1.55;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  /* ── Tablette — tailles lisibles, rythme nombre d'or ──
     base=1rem, φ=1.618 → 1 / 1.6 / 2.6 / 4.2 */
  .hero-ey{
    font-size:12px !important;
    letter-spacing:.15em !important;
    margin-bottom:0.6rem !important;
  }
  .hero-sub{
    font-size:12px !important;
    letter-spacing:.18em !important;
    margin-top:0.4rem !important;
  }
  .hero-tag{
    font-size:10px !important;
    letter-spacing:.13em !important;
    line-height:1.8 !important;
  }
  .hero-cta-block .hero-cta{
    font-size:12px !important;
    letter-spacing:.24em !important;
    padding:12px 28px !important;
  }
  .hero-cta-block .hero-tag{
    margin-bottom:0.6rem !important;
  }

  /* Espacement vertical hero — respiration φ-ratio */
  .hero-copy{
    padding-bottom:clamp(7rem,12vh,9rem) !important;
    gap:0.6rem !important;
  }
  .hero-h1{
    margin-bottom:0.4rem !important;
  }
  .hero-cta-block{
    /* +9px at 900px height: ensures block stays within viewport despite hero's +32px overflow */
    bottom:clamp(2.2rem,4vh,3.2rem) !important;
  }
  .hero-alch-zone{
    /* -40px from hero bottom: closes the 61px dead zone between alch button and title */
    bottom:clamp(220px,24vh,300px) !important;
    left:1.4rem !important;
  }
}

/* ── iPad portrait tall (Air/Pro 11" / Pro 12.9") — flex-column, bottom-justified ──
   Même mécanique que tall-mobile : margin-top:auto sur alch pousse le cluster
   alch+copy+cta vers le bas. Position:absolute remplacé par flex-flow. ── */
@media(min-width:641px) and (max-width:1024px) and (min-height:1100px){
  .hero{
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    height:100vh !important;
    padding-top:0 !important;
  }
  #hero-matrix{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    margin-top:72px !important;
    height:clamp(400px,44vh,580px) !important;
    width:clamp(380px,64%,600px) !important;
    flex-shrink:0 !important;
  }
  /* margin-top:auto absorbe tout l'espace libre — pousse alch+copy+cta vers le bas */
  .hero-alch-zone{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    left:auto !important;
    transform:translateX(-6px);
    margin-top:auto !important;
    padding-left:1.4rem !important;
    margin-bottom:clamp(1.2rem,2vh,2rem) !important;
  }
  #site.on .hero-alch-zone{
    opacity:1 !important;
    transform:translateX(0) !important;
  }
  .hero-copy{
    position:relative !important;
    bottom:auto !important;
    left:auto !important;
    top:auto !important;
    width:100% !important;
    max-width:100% !important;
    padding:0 1.4rem 0 !important;
    flex-grow:0 !important;
    justify-content:flex-start !important;
    gap:0.4rem !important;
  }
  .hero-h1{
    font-size:clamp(3rem,7vw,4.8rem) !important;
    line-height:.88 !important;
    margin-bottom:0.3rem !important;
  }
  .hero-ey{
    font-size:14px !important;
    margin-bottom:0.5rem !important;
  }
  .hero-sub{
    font-size:13px !important;
    margin-top:0.5rem !important;
  }
  .hero-cta-block{
    position:relative !important;
    bottom:auto !important;
    right:auto !important;
    left:auto !important;
    width:100% !important;
    align-items:flex-start !important;
    padding:0 1.4rem clamp(2.5rem,5vh,4rem) !important;
    margin-top:clamp(1.8rem,3vh,2.8rem) !important;
  }
  .hero-cta-block .hero-tag{
    text-align:left !important;
  }
  .hero-cta-block .hero-cta{
    text-align:left !important;
  }
}

/* ── FOOTER BAR — iOS safe area (home indicator) ── */
@media(max-width:640px){
  #ft{
    height:auto;
    min-height:44px;
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  .ft-inner{
    padding:0 1rem;
    min-height:44px;
  }
  .ft-baseline{
    font-size:.58rem;
    letter-spacing:.14em;
  }
}

/* ── PREVENT HORIZONTAL SCROLL ── */
@media(max-width:768px){
  html,body{overflow-x:hidden;}
  #site{overflow-x:hidden;}
}

/* ── GALLERY AI LAB — mobile grid ── */
@media(max-width:480px){
  .gai-grid{
    grid-template-columns:repeat(2,1fr) !important;
    gap:2px !important;
  }
  .gai-card-meta{display:none;}
  .gai-filters{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    flex-wrap:nowrap;
    padding-bottom:4px;
  }
}

/* ── GALLERY ARCHIVES — drawers on mobile ── */
@media(max-width:480px){
  .ga-slides-grid{
    grid-template-columns:repeat(3,1fr) !important;
    gap:2px !important;
  }
}

/* ── CONTACT FORM — mobile layout ── */
@media(max-width:480px){
  .cfr{grid-template-columns:1fr !important;}
  .ct-form-title{font-size:clamp(1.8rem,7vw,2.4rem);}
}

/* ── GLOBAL TOUCH — remove cursor:none on touch ── */
@media(hover:none),(pointer:coarse){
  button,a,.cfbtn,.wf,.pr{cursor:pointer !important;}
  .mob-ctl-btn,.mob a{cursor:pointer !important;}
  #cur,#cur-h,#cur-v,#cur-ring{display:none !important;}
}

/* ── MOBILE — typography + header global ── */
@media(max-width:768px){
  /* Header buttons visible + lisibles */
  .hdr-ctl{gap:0;}
  .burger{display:flex;}
  /* Logo larger on mobile */
  .logo-svg{width:clamp(28px,8vw,38px);height:auto;}
  /* Hero canvas — off on small screens */
  #hero-cells{display:none;}
  /* Mob menu items — taille confortable */
  .mob a{font-size:clamp(1.7rem,6.5vw,2.2rem);height:clamp(72px,14vw,96px);}
  .mob-ctl-btn{font-size:clamp(.7rem,3vw,.85rem);padding:1rem 1.4rem;min-height:44px;}
  .mob-ft{font-size:clamp(.5rem,2vw,.62rem);}
}

/* ── MOBILE — Gallery v5 classes readability ── */
@media(max-width:768px){
  /* Gallery AI Lab overrides — v5 class names */
  .lab-hero-tag{font-size:clamp(.55rem,2vw,.7rem) !important;}
  .lab-hero-bar{font-size:clamp(.5rem,2vw,.62rem) !important;}
  .vt-btn{font-size:clamp(.5rem,2vw,.6rem) !important;padding:10px 14px !important;}
  .lab-filter,.arch-filter{font-size:clamp(.52rem,2vw,.62rem) !important;}
  .lab-filters,.arch-filters{flex-wrap:nowrap !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch;gap:1.2rem !important;padding-right:1.5rem !important;scrollbar-width:none;}
  .lab-filters::-webkit-scrollbar,.arch-filters::-webkit-scrollbar{display:none;}
  .spec-card-title{font-size:clamp(.44rem,2vw,.56rem) !important;}
  .spec-card-count{font-size:clamp(.38rem,1.8vw,.48rem) !important;}
  .spec-card-meta{padding:6px 2px 0 !important;}
  /* Gallery Archives overrides — v5 class names */
  .arch-hero-tag{font-size:clamp(.55rem,2vw,.7rem) !important;}
  .arch-hero-bar{font-size:clamp(.5rem,2vw,.62rem) !important;}
  .flow-num{font-size:clamp(2rem,5vw,3rem) !important;}
  .flow-title{font-size:clamp(.9rem,3vw,1.3rem) !important;}
  .flow-scope{font-size:clamp(.44rem,2vw,.55rem) !important;}
  .flow-count{font-size:clamp(.4rem,1.8vw,.5rem) !important;}
  .flow-cell-idx{font-size:clamp(.36rem,1.6vw,.44rem) !important;}
  .arch-back,.lab-back{font-size:clamp(.52rem,2vw,.62rem) !important;}
  .arch-copy,.lab-copy{font-size:clamp(.42rem,1.8vw,.52rem) !important;}
  /* Case panel mobile — readable */
  .cp-title{font-size:clamp(1.4rem,5vw,2.2rem) !important;}
  .cp-idx{font-size:clamp(.48rem,1.6vw,.58rem) !important;}
  .cp-tag{font-size:clamp(.42rem,1.5vw,.52rem) !important;padding:5px 10px !important;}
  .cp-body-label{font-size:clamp(.42rem,1.5vw,.52rem) !important;}
  .cp-cta{font-size:clamp(.48rem,1.6vw,.58rem) !important;padding:12px 18px !important;}
  #spec-cursor{font-size:clamp(.42rem,1.5vw,.52rem) !important;}
}

@media(max-width:480px){
  /* Gallery list: minmax(0,1fr) overrides min-content floor that breaks equal cols */
  #lab-list,#arch-list{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px 5px !important;padding:.6rem .4rem 1.5rem !important;}
  .lab-hero-title,.arch-hero-title{font-size:clamp(2.4rem,11.5vw,4rem) !important;}
  /* Flow view — stacked + readable */
  .flow-title{font-size:clamp(.9rem,4vw,1.2rem) !important;}
  .flow-strip{gap:2px !important;}
  .flow-open-btn{font-size:clamp(.4rem,1.5vw,.5rem) !important;}
}

/* ── Make homepage scrollable ── */
#vh{overflow-y:auto;}

/* ── Responsive V2 sections ── */
@media(max-width:768px){
  .hp-section{padding:clamp(2rem,5vw,3.5rem) clamp(1rem,3vw,1.4rem);}
  .hero-cta{padding:14px 22px;font-size:.52rem;}
  .hero-sub{font-size:clamp(.54rem,2vw,.68rem) !important;letter-spacing:.22em !important;}
  .hp-work-card{flex:0 0 clamp(160px,52vw,220px);height:clamp(210px,68vw,290px);}
  .hp-work-overlay-title{font-size:clamp(.72rem,2.5vw,.88rem);}
  .hp-work-overlay-sub{font-size:.36rem;}
  .hp-wm-txt{font-size:.62rem;letter-spacing:.22em;}
  .hp-wm-line{display:none;}
}
@media(max-width:480px){
  .hp-work-card{flex:0 0 clamp(148px,72vw,200px);height:clamp(196px,95vw,265px);}
  #hp-work-grid .hp-work-overlay{padding:clamp(2rem,6vw,3rem) .85rem .85rem;}
  .hp-work-overlay-title{font-size:clamp(.72rem,3vw,.88rem);}
  .hp-work-overlay-sub{font-size:.34rem;}
  .hp-work-overlay-count{font-size:.38rem;}
}

/* ═══════════════════════════════════════════
   ULTRA SMALL — 420px and below (iPhone SE, etc.)
   Ensure burger visibility + readable typography
═══════════════════════════════════════════ */
@media(max-width:420px){
  .hdr-cell{padding:0 0.6rem 9px;}
  .logo-svg{height:22px;}
  /* Burger MUST be visible — prominent on small screens */
  .burger{display:flex !important;min-width:48px;min-height:48px;padding:0 1rem;}
  .burger span{height:1.5px !important;width:22px !important;background:var(--ink) !important;}
  .burger span:nth-child(2){width:14px !important;}
  .burger.open span:nth-child(2){width:14px !important;}
  body.dark .burger span{background:var(--v2) !important;}
  /* Hide nav + controls to make room for burger */
  .hdr-nav-cell{display:none !important;}
  .hctl-btn{display:none !important;}
  /* Mobile menu */
  .mob a{font-size:clamp(1.6rem,5.5vw,2rem);height:clamp(68px,12vw,84px);padding:0 1.4rem;}
  .mob-ctl-btn{min-height:48px;font-size:.72rem;}
  /* Hero — prevent overflow */
  /* 10.2vw : texte H1 remplit la largeur du bouton CTA sur iPhone XR/14 Pro */
  .hero-h1{font-size:clamp(2.2rem,10.2vw,3.2rem) !important;line-height:.94 !important;}
  .hero-ey{font-size:clamp(.52rem,2.2vw,.64rem) !important;letter-spacing:.14em !important;}
  .hero-sub{font-size:clamp(.52rem,2.2vw,.64rem) !important;letter-spacing:.20em !important;}
  .hero-cta{padding:13px 32px;font-size:.56rem !important;letter-spacing:.22em !important;}
  .hb-bar span,.hb-city,.hb-sep,#hero-time,.hero-weather-big{font-size:.4rem !important;}
  /* Work grid */
  .pr{grid-template-columns:32px 1fr 20px !important;}
  .pr-n{font-size:.46rem;}
  .pr-t{font-size:.56rem;}
  /* About */
  .abt{font-size:clamp(1.8rem,8vw,3rem) !important;}
  .ab-body{font-size:.52rem !important;line-height:1.8 !important;}
  .ab-tag{font-size:.46rem !important;}
  .chip{font-size:.48rem !important;padding:6px 10px !important;}
  .ab-lead{font-size:clamp(.8rem,3vw,1.1rem) !important;}
  /* Contact */
  .ct-form-title{font-size:clamp(1.4rem,6vw,2rem) !important;}
  /* Footer */
  .pf-fl{font-size:.42rem !important;}.pf-fv{font-size:.58rem !important;}
  .ft-baseline{font-size:.52rem !important;}
  /* Global minimum font size enforcement */
  .wf{font-size:.44rem !important;padding:5px 8px !important;}
  .wf-gallery-link{font-size:.38rem !important;}
}

/* ═══════════════════════════════════════════
   NANO — 360px (Galaxy S8 min width)
   Le plus petit format possible
═══════════════════════════════════════════ */
@media(max-width:360px){
  /* Header */
  .hdr-cell{padding:0 0.4rem 9px !important;}
  .logo-svg{height:20px !important;}
  /* Hero typo compressée au max */
  .hero-h1{font-size:clamp(2.0rem,9.2vw,2.8rem) !important;line-height:.86 !important;}
  .hero-ey{font-size:clamp(.48rem,2.2vw,.58rem) !important;letter-spacing:.12em !important;margin-bottom:8px !important;}
  .hero-sub{font-size:clamp(.52rem,2.4vw,.64rem) !important;letter-spacing:.18em !important;}
  .hero-tag{font-size:clamp(.4rem,2.2vw,.48rem) !important;}
  .hero-cta{padding:12px 26px !important;font-size:.54rem !important;letter-spacing:.20em !important;gap:6px !important;margin-top:.3rem !important;}
  .hero-copy{padding:0 .9rem 1rem !important;gap:.7rem !important;} /* flex layout : pas de padding-bottom géant */
  .hero-pitch{font-size:.38rem !important;max-width:26ch;}
  .hero-cta-secondary-row{gap:.4rem !important;margin-top:.4rem !important;}
  .hero-ghost-link{font-size:.34rem !important;}
  /* Mob menu */
  .mob a{font-size:clamp(1.5rem,5vw,1.8rem) !important;height:clamp(62px,10vw,72px) !important;padding:0 1.2rem !important;}
  /* Work grid */
  .pr{grid-template-columns:28px 1fr 18px !important;}
  /* Footer */
  .ft-baseline{font-size:.48rem !important;}
}

/* ═══════════════════════════════════════════
   MICRO — 320px (iPhone 5s, iPod Touch 6e gen)
   Smallest viewport officiellement supporté
═══════════════════════════════════════════ */
@media(max-width:320px){
  /* Hero H1 — évite le 3e ligne sur 284px de texte */
  .hero-h1{font-size:clamp(1.8rem,9vw,2.2rem) !important;line-height:.88 !important;}
  /* Alch zone — position:relative depuis ≤640px, pas d'override left ici */
  /* Hero copy — padding-bottom réduit d'un cran pour respiration */
  .hero-copy{padding:0 .75rem 1rem !important;} /* flex layout */
  .hero-cta{padding:10px 20px !important;letter-spacing:.18em !important;}
  /* Footer — 1 colonne pour éviter les colonnes trop serrées (120px inner) */
  .pf-footer{grid-template-columns:1fr !important;}
  .pf-fc:nth-child(2){grid-column:auto !important;}
  .pf-fc:nth-child(5){grid-column:auto !important;}
  .pf-fc-al{grid-column:auto !important;}
  /* Selected works — card width sur micro écrans */
  .hp-work-card{flex:0 0 clamp(148px,80vw,200px) !important;height:clamp(196px,106vw,265px) !important;}
}

/* ── PLAYFUL CHEMISTRY — mobile readability & touch ── */
@media(max-width:768px){
  /* Safe area iOS — bouton MIX pas caché par home indicator */
  .alch-win{padding-bottom:env(safe-area-inset-bottom,0px);filter:none !important;}
  /* drop-shadow inutile à 100vw — supprimé pour éviter le compositing GPU */
  /* Touch : pas de délai 300ms sur les tubes et boutons */
  .tc,.ac-mix,#reset-btn,.ac-lab-action{touch-action:manipulation;user-select:none;-webkit-user-select:none;cursor:pointer;}
  /* Bulles : 18 animations CSS en continu = perf drain — gel sur mobile */
  .bub{animation-play-state:paused;}
  /* Tube names — lisibles */
  .tc-nm{font-size:clamp(8px,2.2vw,10px) !important;letter-spacing:.04em;margin-top:4px;}
  /* Instructions panel */
  .al-inst{font-size:clamp(10px,2.6vw,12px) !important;line-height:1.8 !important;}
  .al-title{font-size:clamp(1.1rem,5vw,1.5rem) !important;}
  .al-log-list{max-height:80px;}
  /* Flamme canvas — garde proportions */
  .ac-fire{min-height:80px;}
  /* Résultat */
  .r-n{font-size:clamp(12px,4.5vw,18px) !important;}
  .r-d{font-size:clamp(9px,2.5vw,11px) !important;}
  /* MIX button */
  .ac-mix{font-size:clamp(9px,2.4vw,11px) !important;padding:10px 20px !important;min-height:40px;border-radius:2px;}
  /* Recipe slots */
  .ar-slot-n{font-size:clamp(8px,2vw,10px) !important;}
  .ar-slot-d{font-size:clamp(7px,1.8vw,8.5px) !important;}
  /* Found counter */
  #af{font-size:clamp(8px,2.2vw,10px) !important;}
  /* Scrollable body */
  .ab{overflow-y:auto;-webkit-overflow-scrolling:touch;}
}
@media(max-width:380px){
  .tc-nm{font-size:9px !important;}
  .al-inst{font-size:10px !important;}
  .tw{width:30px !important;}.tr{gap:6px !important;}
  .tg{width:30px !important;}
}

/* ══════════════════════════════════════════════════
   PLAYFUL CHEMISTRY — DEEP MOBILE LAYOUT FIX
   Objectif : jeu visible sans scroll, instructions compressées
   ══════════════════════════════════════════════════ */
@media(max-width:768px){
  /* ── Structure générale : flex-column, reordering ── */
  .ab{
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
    height:calc(100dvh - 43px) !important;
  }
  /* Ordre : jeu d'abord, instructions ensuite, recettes en bas */
  .ac{order:1 !important;flex:0 0 auto !important;min-height:0 !important;max-height:clamp(280px,42vh,400px) !important;}
  .al{order:2 !important;flex:0 0 auto !important;overflow:hidden !important;}
  .ar{order:3 !important;flex:1 1 auto !important;overflow-y:auto !important;}

  /* ── Panel instructions — masqué sur mobile (jeu auto-évident) ── */
  .al{display:none !important;}

  /* ── Zone jeu centrale — prend tout l'espace disponible ── */
  .ac{
    display:flex !important;
    flex-direction:column !important;
    padding:.4rem .5rem .3rem !important;
    overflow:hidden !important;
    gap:0 !important;
  }
  /* Flamme — proportions serrées */
  .ac-fire{
    flex:0 0 auto !important;
    height:clamp(70px,11dvh,95px) !important;
    min-height:clamp(70px,11dvh,95px) !important;
    max-height:clamp(70px,11dvh,95px) !important;
    padding:.3rem 0 0 !important;
    width:100% !important;
    align-items:center !important;
  }
  #fc{
    width:clamp(80px,20vw,110px) !important;
    height:clamp(60px,11dvh,90px) !important;
  }
  /* Tubes — row principale */
  .tr{
    padding:.25rem .3rem 0 !important;
    gap:clamp(3px,1.6vw,9px) !important;
    flex-wrap:nowrap !important;
    justify-content:center !important;
    flex-shrink:0 !important;
  }
  .tw{
    width:clamp(26px,6.5vw,38px) !important;
    height:clamp(78px,16dvh,106px) !important;
  }
  .tg{
    width:clamp(26px,6.5vw,38px) !important;
    height:clamp(58px,12dvh,80px) !important;
  }
  .tc-nm{
    font-size:clamp(7px,1.8vw,9px) !important;
    margin-top:2px !important;
    letter-spacing:.02em !important;
  }
  /* Résultat de mélange — collapsé au départ, expand quand résultat présent */
  .ac-res{
    padding:0 .7rem !important;
    min-height:0 !important;
    max-height:0 !important;
    flex-shrink:0 !important;
    overflow:hidden !important;
    transition:max-height .25s ease,padding .25s ease !important;
  }
  .ac-res.has-result{
    padding:.3rem .7rem .35rem !important;
    min-height:36px !important;
    max-height:80px !important;
  }
  .r-n{font-size:clamp(11px,3.8vw,15px) !important;}
  .r-d{font-size:clamp(8px,2vw,10px) !important;}
  /* Barre MIX + reset */
  .ac-lab{
    padding:.35rem .6rem .45rem !important;
    gap:.3rem !important;
    flex-shrink:0 !important;
    background:rgba(245,242,236,.55) !important;
  }
  .ac-cta{flex-wrap:wrap !important;justify-content:center !important;gap:6px !important;}
  .ac-mix{
    font-size:clamp(10px,2.8vw,12px) !important;
    padding:0 20px !important;
    min-height:44px !important;
  }
  .ac-reset,.ac-restart{min-height:40px !important;padding:0 14px !important;}

  /* ── Recettes trouvées — strip compact en bas ── */
  .ar{
    border-left:none !important;
    border-top:1px solid rgba(13,12,10,.08) !important;
    padding:.45rem .8rem .55rem !important;
    overflow-y:visible !important;
    flex-shrink:0 !important;
    gap:.4rem !important;
  }
  body.dark .ar{border-top-color:rgba(232,228,220,.1) !important;}
  .ar-head{
    font-size:clamp(7px,1.7vw,8.5px) !important;
    letter-spacing:.14em;
    display:block;
    margin-bottom:3px !important;
  }
  /* 6 slots sur 1 ligne */
  .ar-grid{
    grid-template-columns:repeat(6,1fr) !important;
    gap:3px !important;
  }
  .ar-slot{
    min-height:26px !important;
    padding:3px 4px !important;
  }
  .ar-slot-n{font-size:clamp(6px,1.5vw,8px) !important;}
  .ar-slot-d{font-size:clamp(5.5px,1.3vw,7px) !important;}
  #af{font-size:11px !important;letter-spacing:.04em !important;}
  .at-x{min-height:40px !important;padding:0 14px !important;display:inline-flex !important;align-items:center !important;}
}

/* ── Medium-small phones (≤480px) : archive 3 colonnes lisibles ── */
@media(max-width:480px){
  .ar-grid{grid-template-columns:repeat(3,1fr) !important;}
  .ar-slot-n{font-size:clamp(7px,1.9vw,9px) !important;}
  .ar-slot-d{font-size:clamp(6px,1.6vw,7.5px) !important;}
}

/* ── Very small phones ── */
@media(max-width:380px){
  .ac-fire{max-height:70px !important;}
  .tw{width:24px !important;height:72px !important;}
  .tg{width:24px !important;height:54px !important;}
  .tr{gap:3px !important;}
  /* Sur très petits écrans : 3 cols × 2 rangées (plus lisible) */
  .ar-grid{grid-template-columns:repeat(3,1fr) !important;gap:3px !important;}
  .ar-slot{min-height:24px !important;}
  .ar-slot-n{font-size:6px !important;}
}

/* ── Ultra-small (≤300px — Galaxy Fold fermé, accessibilité zoom) ── */
@media(max-width:300px){
  #alch .alch-win{width:100vw !important;}
  .ac{padding:.2rem .3rem .2rem !important;justify-content:center !important;}
  .ac-fire{max-height:60px !important;min-height:40px !important;}
  #fc{width:56px !important;height:50px !important;}
  .tw{width:20px !important;height:60px !important;}
  .tg{width:20px !important;height:44px !important;}
  .tr{gap:2px !important;padding:.15rem .2rem 0 !important;}
  .tc-nm{font-size:6px !important;letter-spacing:0 !important;}
  .tc-dot{width:4px !important;height:4px !important;}
  .ac-lab{padding:.25rem .4rem .35rem !important;}
  .ac-mix{font-size:8px !important;padding:6px 10px !important;min-height:30px !important;}
  .ac-reset{font-size:8px !important;padding:5px 10px !important;}
  .ac-restart{font-size:7px !important;padding:4px 8px !important;}
  .al{padding:.4rem .6rem .3rem !important;}
  .al-title{font-size:.72rem !important;}
  .al-inst{font-size:8px !important;}
  .ar{padding:.3rem .5rem .4rem !important;}
  .ar-grid{grid-template-columns:repeat(3,1fr) !important;gap:2px !important;}
  .ar-slot{min-height:20px !important;padding:2px 3px !important;}
  .ar-slot-n{font-size:5.5px !important;}
  .ar-slot-d{display:none !important;}
  .ar-head{font-size:6px !important;}
  #af{font-size:6px !important;}
  .r-n{font-size:10px !important;}
  .r-d{font-size:7px !important;}
  .ac-res{padding:.2rem .4rem .25rem !important;min-height:28px !important;}
}

/* ══════════════════════════════════════════════════════════════
   PHASE 1 — LAYOUT ROUTER HOOKS (audit correction 01)
   Per-category theming tokens. Phase 2/3 extend these.
   ══════════════════════════════════════════════════════════════ */

/* Shared custom properties — each layout overrides below */
#vc{
  --case-accent:var(--v);
  --case-gallery-gap:clamp(16px,2vw,28px);
  --case-gallery-pad:clamp(20px,3vw,40px);
  --case-bg:transparent;
  --case-meta-tone:ink;
}

/* CAMPAIGNS — editorial cinematic, violet accent, wide breath */
#vc.case-campaign{
  --case-accent:var(--v);
  --case-gallery-gap:clamp(20px,2.4vw,36px);
}

/* SOCIAL — compact masonry-friendly, tight gaps */
#vc.case-social{
  --case-accent:var(--v2);
  --case-gallery-gap:clamp(10px,1.2vw,18px);
  --case-gallery-pad:clamp(14px,2vw,24px);
}

/* MAGAZINES — spread-by-spread pager, generous whitespace */
#vc.case-magazine{
  --case-accent:var(--ink);
  --case-gallery-gap:clamp(28px,3.2vw,56px);
  --case-gallery-pad:clamp(24px,3.6vw,48px);
}

/* AI LAB — laboratory specimen aesthetic, darker ground */
#vc[class*="case-lab-"]{
  --case-accent:var(--v3);
}
#vc.case-lab-product{ --case-accent:var(--v); }
#vc.case-lab-mode{ --case-accent:var(--v2); }
#vc.case-lab-explore{ --case-accent:var(--v3); }
#vc.case-lab-anim{ --case-accent:var(--v); }

/* ARCHIVES — kraft paper, physical print feel */
#vc.case-archive{
  --case-accent:rgba(13,12,10,.6);
  --case-gallery-gap:clamp(18px,2.2vw,32px);
}

/* ══════════════════════════════════════════════════════════════
   PHASE 1 — CORRECTION 02 : hero above fold (Campaigns + Magazines)
   ══════════════════════════════════════════════════════════════ */
#vc.case-campaign .cs-eg-chunk--hero,
#vc.case-magazine .cs-eg-chunk--hero{
  position:relative;
  height:clamp(60vh,68vh,78vh)!important;
  aspect-ratio:auto!important;
  overflow:hidden;
  margin-bottom:clamp(40px,5vw,80px);
  display:block;
}
#vc.case-campaign .cs-eg-chunk--hero .cs-eg-cell,
#vc.case-magazine .cs-eg-chunk--hero .cs-eg-cell{
  height:100%!important;
  width:100%;
  aspect-ratio:auto!important;
}
#vc.case-campaign .cs-eg-chunk--hero .cs-eg-cell img,
#vc.case-magazine .cs-eg-chunk--hero .cs-eg-cell img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* Title overlay — mix-blend-mode difference for contrast-aware legibility */
.cs-hero-title-overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:clamp(24px,4vw,64px) clamp(20px,3vw,48px);
  display:flex;
  flex-direction:column;
  gap:clamp(8px,1vw,14px);
  pointer-events:none;
  mix-blend-mode:difference;
  color:#fff;
  z-index:2;
}
.cs-hto-ey{
  font:500 .62rem/1 var(--mono);
  letter-spacing:.28em;
  text-transform:uppercase;
  opacity:.85;
}
.cs-hto-h1{
  font:300 clamp(2.4rem,6.4vw,5.6rem)/0.92 var(--cond);
  letter-spacing:-.02em;
  text-transform:uppercase;
  display:block;
}
.cs-hto-h1 b{
  font-weight:400;
  display:block;
  opacity:.95;
}

/* Editorial layouts: hero title & eyebrow live directly in .case-h (no overlay image) */

/* Cap .camp-hero (renderCampaign path) so it fits above the fold */
#vc.case-campaign .camp-hero-cell{
  aspect-ratio:auto!important;
  min-height:0!important;
  height:clamp(420px,62vh,640px);
  max-height:calc(100vh - 180px);
}
#vc.case-campaign .camp-hero-cell img{
  width:100%; height:100%;
  object-fit:cover; object-position:center;
}

@media (max-width:768px){
  #vc.case-campaign .cs-eg-chunk--hero,
  #vc.case-magazine .cs-eg-chunk--hero{
    height:clamp(52vh,58vh,68vh)!important;
  }
  .cs-hto-h1{ font-size:clamp(1.9rem,9vw,3.2rem); }
}

/* ════════════════════════════════════════════════════════════════════
   CAMPAIGN EDITORIAL — ACTS, PULLQUOTE, FEATURE SPREAD, INGREDIENT NOTES
   Session 18 — chapter structure over flat catalogue
   ════════════════════════════════════════════════════════════════════ */

/* ── ACT OPENER — chapter divider ── */
.camp-act{
  position:relative;
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  column-gap:clamp(12px,1.6vw,20px);
  padding:clamp(2rem,4vw,3.2rem) clamp(1.2rem,2.6vw,2.4rem) clamp(1rem,1.8vw,1.6rem);
  margin-top:0;
  border-top:1px solid rgba(91,14,175,.1);
  opacity:0;transform:translateY(12px);
  transition:opacity .6s var(--ease-pf),transform .6s var(--ease-pf);
}
.camp-act.revealed{opacity:1;transform:none;}
body.dark .camp-act{border-top-color:rgba(192,132,252,.12);}
/* Numéro discret — micro-tag éditorial */
.camp-act-rail{
  display:flex;align-items:center;gap:0;
}
.camp-act-num{
  font-family:var(--mono);
  font-weight:400;
  font-size:clamp(.56rem,.7vw,.68rem);
  line-height:1;
  letter-spacing:.18em;
  color:var(--v);
  opacity:.65;
  text-transform:uppercase;
  white-space:nowrap;
}
body.dark .camp-act-num{color:var(--v3);}
/* Supprimé : barre verticale décorative */
.camp-act-rule{display:none;}
/* Corps de l'acte — layout horizontal titre + sous-titre */
.camp-act-body{
  display:flex;
  align-items:baseline;
  gap:clamp(10px,1.4vw,18px);
  flex-wrap:wrap;
}
.camp-act-title{
  font-family:var(--cond);
  font-weight:400;
  font-size:clamp(.9rem,1.5vw,1.2rem);
  line-height:1;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink);
  margin:0;
}
body.dark .camp-act-title{color:var(--cr);}
.camp-act-sub{
  font-family:var(--grotesk);
  font-weight:400;
  font-size:clamp(.75rem,.9vw,.85rem);
  line-height:1.3;
  letter-spacing:.01em;
  color:rgba(13,12,10,.45);
  font-style:normal;
  max-width:none;
  margin:0;
}
body.dark .camp-act-sub{color:rgba(245,242,236,.42);}

/* ── PULLQUOTE — editorial breath ── */
.camp-pullquote{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  text-align:center;
  padding:clamp(3.4rem,7vw,6rem) clamp(1.6rem,6vw,6rem);
  margin:clamp(1rem,2vw,2rem) 0;
  opacity:0;transform:translateY(16px);
  transition:opacity .7s var(--ease-pf),transform .7s var(--ease-pf);
}
.camp-pullquote.revealed{opacity:1;transform:none;}
.camp-pullquote::before,
.camp-pullquote::after{
  content:"";
  position:absolute;left:50%;transform:translateX(-50%);
  width:clamp(80px,12vw,160px);height:1px;
  background:linear-gradient(90deg,transparent,var(--v) 50%,transparent);
  opacity:.45;
}
.camp-pullquote::before{top:clamp(1.2rem,2.4vw,2rem);}
.camp-pullquote::after{bottom:clamp(1.2rem,2.4vw,2rem);}
.camp-pullquote-mark{
  font-family:var(--cond);
  font-weight:300;
  font-size:clamp(4rem,8vw,7rem);
  line-height:.6;
  color:var(--v);
  opacity:.22;
  margin-bottom:-.2em;
  user-select:none;
}
body.dark .camp-pullquote-mark{color:var(--v3);opacity:.3;}
.camp-pullquote-text{
  font-family:var(--cond);
  font-weight:300;
  font-style:italic;
  font-size:clamp(1.4rem,3vw,2.4rem);
  line-height:1.14;
  letter-spacing:-.006em;
  max-width:28ch;
  color:var(--ink);
  margin:0;
  text-wrap:balance;
}
body.dark .camp-pullquote-text{color:var(--cr);}
.camp-pullquote-attr{
  display:block;
  margin-top:clamp(18px,2.4vw,30px);
  font-family:var(--mono);
  font-style:normal;
  font-size:clamp(.56rem,.74vw,.68rem);
  letter-spacing:.32em;
  text-transform:uppercase;
  color:var(--v);
  opacity:.7;
}
body.dark .camp-pullquote-attr{color:var(--v3);}

/* ── FEATURE SPREAD — asymmetric hero + support (Act I égérie) ── */
.camp-section--feature{
  padding:clamp(.6rem,1.2vw,1rem) clamp(1.2rem,2.6vw,2rem) clamp(2rem,3.6vw,3rem);
}
.camp-feature-solo{max-width:min(860px,92vw);margin:0 auto;}
.camp-feature-solo .camp-cell{aspect-ratio:4/5;}
.camp-feature-spread{
  display:grid;
  grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);
  gap:clamp(10px,1.4vw,18px);
  align-items:stretch;
}
.camp-feature-spread[data-count="2"]{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);}
.camp-feature-hero{
  aspect-ratio:4/5;
  position:relative;
}
.camp-feature-hero::after{
  content:attr(data-kind);display:none;
}
.camp-feature-support{
  display:grid;
  grid-template-rows:repeat(auto-fit,minmax(0,1fr));
  gap:clamp(10px,1.4vw,18px);
}
.camp-feature-support .camp-cell{aspect-ratio:4/5;}
.camp-feature-spread[data-count="2"] .camp-feature-support{grid-template-rows:1fr;}
.camp-feature-spread[data-count="3"] .camp-feature-support{grid-template-rows:1fr 1fr;}
.camp-feature-spread[data-count="4"] .camp-feature-support{grid-template-rows:1fr 1fr 1fr;}

@media (max-width:900px){
  .camp-feature-spread,
  .camp-feature-spread[data-count="2"]{
    grid-template-columns:1fr;
  }
  .camp-feature-support{
    grid-template-columns:repeat(3,1fr);
    grid-template-rows:1fr !important;
  }
  .camp-feature-support > *{aspect-ratio:3/4;}
}

/* ── INGREDIENT TRIO — named notes (Act III) ── */
.camp-section--notes{
  padding:clamp(1.6rem,3vw,2.6rem) clamp(1.2rem,2.6vw,2rem) clamp(2rem,3.6vw,3rem);
}
.camp-notes-trio{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(16px,2.4vw,34px);
}
.camp-note{
  display:flex;flex-direction:column;
  gap:clamp(10px,1.2vw,16px);
  margin:0;
}
.camp-note-img{aspect-ratio:3/4;}
.camp-note-label{
  font-family:var(--mono);
  font-size:clamp(.58rem,.82vw,.74rem);
  letter-spacing:.42em;
  text-transform:uppercase;
  color:var(--v);
  text-align:center;
  opacity:.85;
  padding-top:clamp(4px,.6vw,8px);
  border-top:1px solid var(--rule);
}
body.dark .camp-note-label{color:var(--v3);}
@media (max-width:640px){
  .camp-notes-trio{grid-template-columns:repeat(3,1fr);gap:8px;}
  .camp-note-label{font-size:.56rem;letter-spacing:.28em;}
}

/* ── DUO / TRIPTYCH act variants already covered by camp-editorial; add fine-tuning ── */
.camp-section--duo .camp-editorial--diptych{
  grid-template-columns:1fr 1fr;
  max-width:min(1100px, 94%);
  margin-inline:auto;
  gap:clamp(12px, 1.4vw, 22px);
  align-items:center;
}
.camp-section--duo .camp-editorial--diptych .camp-cell{
  aspect-ratio:3/4;
  max-height:clamp(420px, 64vh, 640px);
  margin:0;
}
.camp-section--duo .camp-editorial--diptych .camp-cell img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
@media (max-width:720px){
  .camp-section--duo .camp-editorial--diptych{
    grid-template-columns:1fr;
    max-width:min(520px, 100%);
    gap:clamp(10px, 2vw, 16px);
  }
  .camp-section--duo .camp-editorial--diptych .camp-cell{
    max-height:none;
  }
}
.camp-section--triptych .camp-editorial--triptych{
  grid-template-columns:repeat(3,1fr);
}

/* ── SOCIAL TAIL — 9:16 row inside an act ── */
.camp-section--social-tail{
  padding:clamp(1.2rem,2.4vw,2rem) clamp(1.2rem,2.6vw,2rem);
}
.camp-social-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(0,1fr));
  gap:clamp(10px,1.4vw,18px);
}
.camp-social-cell{aspect-ratio:9/16;}
@media (max-width:640px){
  .camp-social-row{grid-template-columns:repeat(3,1fr);gap:6px;}
}

/* ══════════════════════════════════════════════════════════════
   HERO MATRIX — MOBILE FINAL OVERRIDE
   Placed LAST for maximum cascade priority.
   Fixes: font-size absolute (no rem/vw ambiguity), single column,
   hide near-transparent lines, no height overrun.
   ══════════════════════════════════════════════════════════════ */
@media(max-width:640px){
  /* 1 — Hide second column definitively */
  #hm-col-b{ display:none !important; }

  /* 2 — All lines visible, mask handles fade */
  #hm-col-a .hm-line:nth-child(-n+8){ display:block !important; }

  /* 3 — Matrix container: decorative band, generous height */
  #hero-matrix{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    flex-shrink:0 !important;
    flex-grow:0 !important;
    grid-template-columns:1fr !important;
    height:auto !important;
    max-height:clamp(260px,44vh,380px) !important;
    overflow:hidden !important;
    padding:0 1.2rem !important;
    width:100% !important;
    max-width:100% !important;
  }

  /* 4 — Single column: top-aligned, bottom fade */
  #hero-matrix #hm-col-a{
    height:100% !important;
    overflow:hidden !important;
    padding-right:0 !important;
    padding-left:0 !important;
    justify-content:flex-start !important;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 88%,transparent 100%) !important;
    mask-image:linear-gradient(to bottom,#000 0%,#000 88%,transparent 100%) !important;
  }

  /* 5 — Font: fluid micro-typo, readable on retina */
  #hero-matrix .hm-line{
    font-size:clamp(0.56rem,2.4vw,0.72rem) !important;
    line-height:1.6 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    letter-spacing:.03em !important;
    min-width:0 !important;
    max-width:100% !important;
  }

  /* ── hero-alch — final override (fluide, -40% du +30%) ── */
  .hero-alch-btn{
    padding:clamp(9px,2.4vw,12px) clamp(14px,3.6vw,19px) !important;
    gap:clamp(9px,2.6vw,13px) !important;
    min-height:auto !important;
    align-items:center !important;
  }
  .hero-alch-ico{
    width:clamp(17px,4.8vw,20px) !important;
    height:clamp(17px,4.8vw,20px) !important;
    flex-shrink:0 !important;
  }
  .hero-alch-main{
    font-size:clamp(.7rem,2.4vw,.85rem) !important;
    letter-spacing:.05em !important;
  }
  .hero-alch-sub{
    font-size:clamp(.35rem,1.4vw,.43rem) !important;
    letter-spacing:.14em !important;
  }
  .hero-alch-arrow{
    font-size:clamp(.59rem,2.1vw,.69rem) !important;
  }
  .hero-ey::before{
    display:none !important;
  }
}

/* ── iPhone SE / short mobile — bouton centré entre matrice et texte ── */
@media(max-width:640px) and (max-height:700px){
  .hero-alch-zone{
    margin-top:0.8rem !important;
    margin-bottom:0.8rem !important;
  }
}

/* ── Narrow-but-tall viewports (narrow desktop/tablet window) ──
   100dvh creates excess space when viewport is tall but content is short.
   Distribute space evenly instead of dumping into hero-copy. */
@media(max-width:640px) and (min-height:800px){
  .hero{
    justify-content:flex-start !important;
    padding-top:clamp(60px,8vh,100px) !important;
    padding-bottom:clamp(2.4rem,5vh,4rem) !important;
  }
  #hero-matrix{
    flex-grow:0 !important;
    max-height:clamp(220px,32vh,340px) !important;
  }
  /* margin-top:auto pousse le bloc alch+copy+cta vers le bas */
  .hero-alch-zone{
    margin-top:auto !important;
    margin-bottom:clamp(1.2rem,3vh,2rem) !important;
  }
  .hero-copy{
    flex-grow:0 !important;
    justify-content:flex-start !important;
    margin-top:0 !important;
  }
  .hero-cta-block{
    margin-top:clamp(1.2rem,3vh,1.8rem) !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   HERO ALCH ZONE — DESKTOP SHORT VIEWPORT
   At 641px–1024px viewport HEIGHT (not width), the absolute top
   of .hero-alch-zone can crowd .hero-copy. Clamp it tighter.
   ══════════════════════════════════════════════════════════════ */
@media(min-width:641px) and (max-height:860px){
  .hero-alch-zone{
    top:clamp(360px,calc(28vh + 140px),480px) !important;
    bottom:auto !important; /* prevents stretching when tablet base block also sets bottom */
  }
}
@media(min-width:641px) and (max-height:700px){
  .hero-alch-zone{
    top:clamp(280px,calc(24vh + 100px),360px) !important;
    bottom:auto !important;
  }
}
/* Tablet mid-height (641–1024px w, ≤860px h): anchor copy top so content clears CTA */
@media(min-width:641px) and (max-width:1024px) and (max-height:860px){
  .hero-copy{
    top:clamp(425px,58vh,540px) !important;
    bottom:0 !important;
  }
}

/* Matrix desktop — min-height pour combler le gap avec le bouton descendu */
@media(min-width:1025px){
  #hero-matrix{
    min-height:clamp(380px,52vh,480px);
  }
}

/* PLAYFUL CHEMISTRY — desktop +120px (doit overrider les !important viewport-height) */
@media(min-width:1025px) and (max-height:860px){
  .hero-alch-zone{
    top:clamp(416px,calc(52vh + 36px),516px) !important; /* tracks matrix.bottom+20px, avoids copy overlap */
    bottom:auto !important;
  }
}
@media(min-width:1025px) and (max-height:700px){
  .hero-alch-zone{
    top:clamp(400px,calc(24vh + 220px),480px) !important;
  }
}
@media(min-width:1025px) and (min-height:861px){
  .hero-alch-zone{
    top:clamp(480px,58vh,760px) !important; /* tracks viewport, leaves headroom for copy below */
    bottom:auto !important;
  }
}
/* 1920×1080 — repositionnement harmonieux entre matrice et titre */
@media(min-width:1600px) and (min-height:900px) and (max-height:1150px){
  .hero-alch-zone{
    top:clamp(600px,calc(32vh + 300px),720px) !important;
  }
}

/* Tablette tall (641–1024px, >860px height) — layout équilibré */
@media(min-width:641px) and (max-width:1024px) and (min-height:861px){
  /* Matrice — grandit pour remplir la hauteur disponible */
  #hero-matrix{
    height:clamp(380px,46vh,560px) !important;
    max-height:560px !important;
  }
  /* Bouton — 61vh du haut (was 57vh → 4vh lower closes the 61px dead zone at 700×900) */
  .hero-alch-zone{
    top:clamp(480px,61vh,700px) !important;
    bottom:auto !important;
  }
  /* Hero-copy — ancré par le haut pour éliminer la zone morte entre bouton et titre
     (base: position:absolute;bottom:0 → laisse ~275px vide à Surface Pro 7/iPad Pro) */
  .hero-copy{
    top:clamp(620px,66vh,1000px) !important;
    bottom:auto !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   iPad portrait tall (Air/Pro 11" / Pro 12.9") — FLEX-COLUMN FINAL
   Doit être EN FIN DE FICHIER pour gagner la cascade sur le bloc
   (min-height:861px) ci-dessus qui utilise aussi des !important.
   Même mécanique que tall-mobile : margin-top:auto sur .hero-alch-zone
   pousse le cluster alch+copy+cta vers le bas.
   ══════════════════════════════════════════════════════════════ */
@media(min-width:641px) and (max-width:1024px) and (min-height:1100px){
  .hero{
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    height:100vh !important;
    min-height:0 !important;
  }
  #hero-matrix{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    margin-top:72px !important;
    height:auto !important;
    flex-grow:1 !important;
    max-height:none !important;
    width:clamp(520px,82%,780px) !important;
    grid-template-columns:1fr 1fr !important;
    flex-shrink:0 !important;
  }
  #hm-col-b{ display:block !important; }
  #hero-matrix .hm-line{ font-size:10px !important; line-height:1.5 !important; }
  .hero-alch-zone{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    left:auto !important;
    margin-top:clamp(1.4rem,2.5vh,2.2rem) !important;
    margin-bottom:clamp(1.4rem,2.5vh,2.2rem) !important;
    padding-left:1.4rem !important;
  }
  #site.on .hero-alch-zone{
    opacity:1 !important;
    transform:translateX(0) !important;
  }
  .hero-copy{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    left:auto !important;
    width:100% !important;
    max-width:100% !important;
    padding:0 1.4rem 0 !important;
    flex-grow:0 !important;
    justify-content:flex-start !important;
    gap:0.4rem !important;
  }
  .hero-h1{
    font-size:clamp(3rem,7vw,4.8rem) !important;
    line-height:.88 !important;
    margin-bottom:0.3rem !important;
  }
  .hero-ey{ font-size:14px !important; margin-bottom:0.5rem !important; }
  .hero-sub{ font-size:13px !important; margin-top:0.5rem !important; }
  .hero-cta-block{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    right:auto !important;
    left:auto !important;
    width:100% !important;
    align-items:flex-start !important;
    padding:0 1.4rem clamp(1.4rem,2.5vh,2.2rem) !important;
    margin-top:clamp(1.8rem,3vh,2.8rem) !important;
  }
  .hero-cta-block .hero-tag{ text-align:left !important; }
  .hero-cta-block .hero-cta{ text-align:left !important; }
}

/* ══════════════════════════════════════════════════════════════
   Tablet paysage court (Nest Hub, 1024×600, Surface Go landscape…)
   max-height:700px — tout doit tenir dans 100vh sans overflow.
   Même mécanique flex-column ; matrice et titre compactés.
   ══════════════════════════════════════════════════════════════ */
@media(min-width:641px) and (max-width:1024px) and (max-height:700px){
  .hero{
    display:flex !important;
    flex-direction:column !important;
    justify-content:flex-start !important;
    height:100vh !important;
    min-height:0 !important;
  }
  #hero-matrix{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    margin-top:52px !important;
    height:clamp(220px,40vh,320px) !important;
    max-height:none !important;
    width:clamp(400px,72%,680px) !important;
    grid-template-columns:1fr 1fr !important;
    flex-shrink:0 !important;
  }
  #hm-col-b{ display:block !important; }
  #hero-matrix .hm-line{ font-size:9px !important; line-height:1.5 !important; }
  .hero-alch-zone{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    left:auto !important;
    margin-top:auto !important;
    padding-left:1.4rem !important;
    margin-bottom:0.5rem !important;
  }
  #site.on .hero-alch-zone{
    opacity:1 !important;
    transform:translateX(0) !important;
  }
  .hero-copy{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    left:auto !important;
    width:100% !important;
    max-width:100% !important;
    padding:0 1.4rem 0 !important;
    flex-grow:0 !important;
    justify-content:flex-start !important;
    gap:0.15rem !important;
  }
  .hero-h1{
    font-size:clamp(1.8rem,5vw,3rem) !important;
    line-height:.88 !important;
    margin-bottom:0.15rem !important;
  }
  .hero-ey{ font-size:11px !important; margin-bottom:0.25rem !important; }
  .hero-sub{ font-size:10px !important; margin-top:0.25rem !important; }
  .hero-cta-block{
    position:relative !important;
    top:auto !important;
    bottom:auto !important;
    right:auto !important;
    left:auto !important;
    width:100% !important;
    align-items:flex-start !important;
    padding:0 1.4rem clamp(0.8rem,1.5vh,1.4rem) !important;
    margin-top:clamp(0.6rem,1.2vh,1rem) !important;
  }
  .hero-cta-block .hero-tag{ text-align:left !important; }
  .hero-cta-block .hero-cta{ text-align:left !important; }
}

/* Nav button titles: abbreviated sub on mobile (full text stays on desktop) */
.pj-sub-abbr{ display:none; }
@media (max-width: 768px){
  .pj-sub-full{ display:none; }
  .pj-sub-abbr{ display:inline; }
}
