/* Mode nuit Mirages Studio (15 nov.) */
.th-sw{--w:54px;position:relative;width:54px;height:28px;border:0;padding:0;border-radius:999px;cursor:pointer;flex:none;margin-left:6px;vertical-align:middle;
 background:linear-gradient(180deg,#e9ecf2,#f7f8fb);box-shadow:inset 0 1px 2px rgba(10,20,50,.18),inset 0 0 0 .5px rgba(10,20,50,.12),0 1px 0 rgba(255,255,255,.9);transition:background .8s,box-shadow .8s}
.th-sw .knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;
 background:radial-gradient(120% 120% at 30% 22%,#fff 0%,#f7f7f5 45%,#e6e6e2 100%);
 box-shadow:0 0 0 .5px rgba(10,20,50,.14),0 1px 1px rgba(10,20,50,.12),0 3px 6px -1px rgba(10,20,50,.22),inset 0 -1px 1px rgba(10,20,50,.06);transition:background .8s,box-shadow .8s}
.th-sw .knob::after{content:"";position:absolute;inset:-6px;border-radius:50%;background:radial-gradient(circle,rgba(255,196,110,.35),rgba(255,196,110,0) 65%);transition:background .8s;pointer-events:none}
.th-sw .ic{position:relative;width:14px;height:14px;color:#c8902f;transition:transform .75s cubic-bezier(.4,0,.2,1),color .75s}
.th-sw .sc{fill:currentColor;transform-origin:12px 12px;transform:scale(.72);transition:transform .75s cubic-bezier(.4,0,.2,1)}
.th-sw .mc{transform:translate(13px,-13px);transition:transform .75s cubic-bezier(.4,0,.2,1)}
.th-sw .rays line{stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.th-sw .rays{transform-origin:12px 12px;transition:transform .75s cubic-bezier(.4,0,.2,1),opacity .45s .15s}
.th-sw:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
html[data-theme=nuit] .th-sw{background:linear-gradient(180deg,#0a0f22,#141a33);box-shadow:inset 0 1px 3px rgba(0,0,0,.7),inset 0 0 0 .5px rgba(160,175,230,.14)}
html[data-theme=nuit] .th-sw .knob{transform:translateX(26px);background:radial-gradient(120% 120% at 30% 22%,#3a425e 0%,#232a44 50%,#151a30 100%);box-shadow:0 0 0 .5px rgba(170,185,240,.22),0 1px 1px rgba(0,0,0,.5),0 3px 7px -1px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.08)}
html[data-theme=nuit] .th-sw .knob::after{background:radial-gradient(circle,rgba(110,140,255,.32),rgba(110,140,255,0) 65%)}
html[data-theme=nuit] .th-sw .ic{color:#e8ecf8;transform:rotate(-25deg)}
html[data-theme=nuit] .th-sw .sc{transform:scale(1.18)}
html[data-theme=nuit] .th-sw .mc{transform:translate(6px,-4px)}
html[data-theme=nuit] .th-sw .rays{transform:rotate(90deg) scale(.4);opacity:0;transition:transform .75s cubic-bezier(.4,0,.2,1),opacity .3s}
.mnav .th-sw{position:absolute;right:20px;top:calc(var(--nav,64px) + 2px)}

/* transition éclipse */
@property --rr{syntax:'<length>';inherits:true;initial-value:0px}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-group(mode-sw){animation:none}::view-transition-old(mode-sw){display:none}::view-transition-new(mode-sw){animation:none}
html.th-anim::view-transition-new(root){-webkit-mask-image:radial-gradient(circle at var(--x) var(--y),#000 calc(var(--rr) - 220px),rgba(0,0,0,.55) calc(var(--rr) - 90px),transparent var(--rr));mask-image:radial-gradient(circle at var(--x) var(--y),#000 calc(var(--rr) - 220px),rgba(0,0,0,.55) calc(var(--rr) - 90px),transparent var(--rr));animation:th-reveal 1.15s cubic-bezier(.7,0,.25,1) both}
html.th-anim::view-transition-old(root){animation:th-veil 1.15s cubic-bezier(.7,0,.25,1) both}
html.th-anim[data-to=clair]::view-transition-old(root){animation-name:th-veilday}
@keyframes th-reveal{from{--rr:0px;filter:blur(6px)}60%{filter:blur(0)}to{--rr:calc(var(--r) + 260px);filter:blur(0)}}
@keyframes th-veil{to{filter:brightness(.8) blur(2px)}}
@keyframes th-veilday{to{filter:brightness(1.25) blur(2px)}}

/* palette nuit */
html[data-theme=nuit]{color-scheme:dark;--ink:#f3f5fb;--mut:#959db3;--soft:#7b8399;--line:#1a2140;--navy:#4c6bff;--navy2:#6b84ff;--wash:#0d1430;--nuit-bg:#050816;--nuit-card:#0c1229}
html[data-theme=nuit] body{background:var(--nuit-bg)}
html[data-theme=nuit],html[data-theme=nuit] body{background:var(--nuit-bg)!important}
html[data-theme=nuit] .nav,html[data-theme=nuit] .nav.sc,html[data-theme=nuit].menu-open .nav{background:rgba(5,8,22,.86)!important;-webkit-backdrop-filter:saturate(160%) blur(18px);backdrop-filter:saturate(160%) blur(18px);box-shadow:0 1px 0 var(--line)!important}
html[data-theme=nuit] .nav-links a,html[data-theme=nuit] .lng a,html[data-theme=nuit] .nv-li{color:#e9ecf5!important}
html[data-theme=nuit] .nav-links a::after{background:#e9ecf5!important}
html[data-theme=nuit] .burger span{background:#e9ecf5!important}
html[data-theme=nuit] .mnav{background:var(--nuit-bg)!important;color:var(--ink)!important}
html[data-theme=nuit] .mnav nav a{color:var(--ink)!important}
html[data-theme=nuit] #sites,html[data-theme=nuit] #pourquoi,html[data-theme=nuit] #contact.lu,html[data-theme=nuit] .hero.vh{background:var(--nuit-bg)!important}
html[data-theme=nuit] #livres .tb-stage:not(.open),html[data-theme=nuit] #livres .tb-load{background:var(--nuit-bg)!important}
html[data-theme=nuit] .ft{background:var(--nuit-bg)!important;color:#e9ecf5!important;border-top:1px solid var(--line)!important}
html[data-theme=nuit] .ft a,html[data-theme=nuit] .ft span{color:#c5cbe0!important}
html[data-theme=nuit] .ft img{filter:brightness(0) invert(1)}
html[data-theme=nuit] .dk-tabs,html[data-theme=nuit] #presentations .dk-tabs{background:var(--wash)!important;border-color:var(--line)!important}
html[data-theme=nuit] #presentations .dk-ind,html[data-theme=nuit] .dk-tab.on{background:#1b2347!important;box-shadow:0 0 0 1px rgba(160,175,230,.16),0 6px 16px -8px rgba(0,0,0,.8)!important}
html[data-theme=nuit] .dk-tab{color:var(--mut)!important}html[data-theme=nuit] .dk-tab.on{color:#fff!important}
html[data-theme=nuit] #presentations .th-ring{box-shadow:0 0 0 2px var(--nuit-bg),0 0 0 4px #6b84ff,0 10px 22px -10px rgba(0,0,0,.8)!important}
html[data-theme=nuit] .th.on span{color:#9fb0ff!important}
html[data-theme=nuit] h2 em,html[data-theme=nuit] .ac2-h em{color:#5b78ff!important}
html[data-theme=nuit] #pourquoi *,html[data-theme=nuit] #contact.lu h2,html[data-theme=nuit] #contact.lu .lu-s{color:var(--ink)}
html[data-theme=nuit] #pourquoi [class*=em],html[data-theme=nuit] #contact.lu h2 em{color:#5b78ff!important}
html[data-theme=nuit] section.tools{background:#0d1430!important}
html[data-theme=nuit] dialog.cdlg .lu-d{background:radial-gradient(120% 60% at 50% 0%,rgba(61,107,255,.18),transparent 60%),#0c1229!important;color:var(--ink)}
html[data-theme=nuit] dialog.cdlg .cdx{background:#141b38!important;border-color:var(--line)!important;color:#e9ecf5!important}
html[data-theme=nuit] dialog.cdlg input,html[data-theme=nuit] dialog.cdlg textarea{background:#0a0f24!important;color:var(--ink)!important;border-color:#232b4d!important}
html[data-theme=nuit] dialog.cdlg .c2send{background:linear-gradient(to bottom,rgba(12,18,41,0),#0c1229 14px)!important}
/* verre des tuiles */
html[data-theme=nuit] #sites .st-glass{background:linear-gradient(135deg,rgba(160,180,255,.16),rgba(120,140,220,.06) 60%,rgba(160,180,255,.14))!important;box-shadow:inset 0 0 0 1px rgba(160,180,255,.2),inset 0 18px 26px -18px rgba(160,180,255,.25),0 26px 50px -24px rgba(0,0,0,.8)!important}
html[data-theme=nuit] #sites .st-glass::before{background:linear-gradient(140deg,rgba(200,212,255,.55),rgba(160,180,255,.15) 40%,rgba(160,180,255,.08) 70%,rgba(200,212,255,.35))!important}
/* académie : le tirage photo reste une vraie photo blanche ; la légende s'adapte */
html[data-theme=nuit] #formation .ac2-pol{box-shadow:0 1px 1px rgba(0,0,0,.4),0 14px 22px -10px rgba(0,0,0,.6),0 36px 60px -28px rgba(0,0,0,.8)!important}
/* étoiles discrètes la nuit, en haut des sections */
html[data-theme=nuit] #fil{position:relative}
html[data-theme=nuit] #fil::before{content:"";position:absolute;left:0;right:0;top:0;height:360px;pointer-events:none;opacity:.65;animation:nuit-tw 6s ease-in-out infinite;background-image:radial-gradient(1px 1px at 12% 22%,#fff,transparent),radial-gradient(1px 1px at 78% 14%,#fff,transparent),radial-gradient(1.5px 1.5px at 64% 38%,#cfd8ff,transparent),radial-gradient(1px 1px at 88% 52%,#fff,transparent),radial-gradient(1px 1px at 34% 8%,#fff,transparent),radial-gradient(1px 1px at 52% 72%,#cfd8ff,transparent),radial-gradient(1.2px 1.2px at 94% 30%,#fff,transparent),radial-gradient(1px 1px at 22% 58%,#fff,transparent),radial-gradient(1px 1px at 6% 80%,#fff,transparent)}
@keyframes nuit-tw{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){html[data-theme=nuit] #fil::before{animation:none}}
html[data-theme=nuit] section.tools{color:#dfe4f3!important}
html[data-theme=nuit] #contact.lu h2 b,html[data-theme=nuit] #contact.lu h2 em{color:#6b84ff!important;-webkit-text-fill-color:#6b84ff}
html[data-theme=nuit] #contact .lu-line{background:var(--line)!important}
html[data-theme=nuit] section.tools .lm{background-color:#dfe4f3!important}
html[data-theme=nuit] section.tools b{color:#dfe4f3!important}
/* survol du bouton jour/nuit */
@media (hover:hover){
.th-sw .knob{transition:background .8s,box-shadow .45s,scale .45s cubic-bezier(.3,1.4,.5,1)}
.th-sw:hover .knob{scale:1.08;box-shadow:0 0 0 .5px rgba(10,20,50,.16),0 2px 2px rgba(10,20,50,.14),0 6px 12px -2px rgba(10,20,50,.28)}
.th-sw:hover .knob::after{inset:-9px;background:radial-gradient(circle,rgba(255,196,110,.55),rgba(255,196,110,0) 65%)}
.th-sw:hover .rays{transform:rotate(45deg)}
html[data-theme=nuit] .th-sw:hover .knob::after{background:radial-gradient(circle,rgba(120,150,255,.55),rgba(120,150,255,0) 65%)}
html[data-theme=nuit] .th-sw:hover .ic{transform:rotate(-12deg)}
.th-sw:active .knob{scale:.94}
/* survol des réseaux sociaux */
.nv-li,.mn-soc a,.ft a[href*="linkedin"],.ft a[href*="x.com"]{transition:transform .35s cubic-bezier(.3,1.4,.5,1),color .3s,filter .35s}
.nv-li:hover,.mn-soc a:hover,.ft a[href*="linkedin"]:hover,.ft a[href*="x.com"]:hover{transform:translateY(-2px) scale(1.08);color:var(--navy2)}
html[data-theme=nuit] .nv-li:hover,html[data-theme=nuit] .mn-soc a:hover,html[data-theme=nuit] .ft a[href*="linkedin"]:hover,html[data-theme=nuit] .ft a[href*="x.com"]:hover{color:#fff!important;filter:drop-shadow(0 0 6px rgba(120,150,255,.75)) drop-shadow(0 0 14px rgba(90,120,255,.45))}
}
/* ombres réalistes la nuit : noires, plus serrées, sans teinte marine */
html[data-theme=nuit] #sites .st-glass{box-shadow:inset 0 0 0 1px rgba(160,180,255,.18),inset 0 18px 26px -18px rgba(160,180,255,.22),0 2px 3px rgba(0,0,0,.45),0 18px 30px -16px rgba(0,0,0,.75)!important}
html[data-theme=nuit] .dk-stage{box-shadow:0 2px 4px rgba(0,0,0,.4),0 26px 50px -30px rgba(0,0,0,.85),0 0 0 1px rgba(160,180,255,.08)!important}
html[data-theme=nuit] #presentations .th img{box-shadow:0 1px 2px rgba(0,0,0,.5)!important}
html[data-theme=nuit] #presentations .th:hover img{box-shadow:0 8px 16px -8px rgba(0,0,0,.8)!important}
html[data-theme=nuit] #formation .ac2-go,html[data-theme=nuit] .cbtn{box-shadow:0 8px 20px -10px rgba(0,0,0,.8),0 0 0 1px rgba(160,180,255,.12)!important}
html[data-theme=nuit] .vc,html[data-theme=nuit] .vc-media,html[data-theme=nuit] .car-wrap .c5-arr{box-shadow:0 2px 4px rgba(0,0,0,.35),0 18px 34px -20px rgba(0,0,0,.8)!important}
html[data-theme=nuit] #hautdepage{box-shadow:0 6px 16px -6px rgba(0,0,0,.8),0 0 0 1px rgba(160,180,255,.14)!important}
html[data-theme=nuit] .app-o img,html[data-theme=nuit] [class^=app-] img{filter:brightness(.82) saturate(.9)}
html[data-theme=nuit] #contact .lu-line{display:none!important}
html[data-theme=nuit] .mnav .bru7-mute,html[data-theme=nuit] .mnav .mn-soc a{filter:none!important;color:#e9ecf5!important;text-shadow:none!important}
/* Lueurs de lune discrètes, mode nuit seulement, au survol */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
html[data-theme=nuit] .sh h2,html[data-theme=nuit] #fil h2{transition:text-shadow .6s ease}
html[data-theme=nuit] .sh:hover h2,html[data-theme=nuit] #fil h2:hover{text-shadow:0 0 18px rgba(140,165,255,.28),0 0 42px rgba(110,140,255,.14)}
html[data-theme=nuit] #sites .st-glass,html[data-theme=nuit] .dk-stage,html[data-theme=nuit] .vc-media,html[data-theme=nuit] #formation .ac2-pol{transition:box-shadow .6s ease,transform .5s ease}
html[data-theme=nuit] #sites .st-card:hover .st-glass{box-shadow:inset 0 0 0 1px rgba(170,190,255,.32),inset 0 18px 26px -18px rgba(160,180,255,.3),0 0 0 1px rgba(120,150,255,.12),0 0 40px -6px rgba(110,140,255,.28),0 18px 30px -16px rgba(0,0,0,.75)!important}
html[data-theme=nuit] .dk-stage:hover,html[data-theme=nuit] .vc-media:hover{box-shadow:0 0 0 1px rgba(150,170,255,.18),0 0 46px -10px rgba(110,140,255,.32),0 26px 50px -30px rgba(0,0,0,.85)!important}
html[data-theme=nuit] .cbtn,html[data-theme=nuit] #formation .ac2-go,html[data-theme=nuit] .dk-tab,html[data-theme=nuit] [data-prev],html[data-theme=nuit] [data-next]{transition:box-shadow .45s ease,transform .3s ease,color .3s}
html[data-theme=nuit] .cbtn:hover,html[data-theme=nuit] #formation .ac2-go:hover{box-shadow:0 0 0 1px rgba(170,190,255,.25),0 0 22px rgba(110,140,255,.45),0 8px 20px -10px rgba(0,0,0,.8)!important}
html[data-theme=nuit] [data-prev]:hover,html[data-theme=nuit] [data-next]:hover{box-shadow:0 0 16px rgba(110,140,255,.4)!important}
html[data-theme=nuit] .nav-links a{transition:color .3s,text-shadow .4s}
html[data-theme=nuit] .nav-links a:hover{text-shadow:0 0 12px rgba(140,165,255,.55)}
}
/* Une seule famille de bleus la nuit : fond #050816, surface #0a1230, accent #5b78ff */
html[data-theme=nuit]{--navy:#5b78ff;--navy2:#5b78ff;--wash:#0a1230;--line:#16203f}
html[data-theme=nuit] #pourquoi .dot{background:#fff!important}
html[data-theme=nuit] section.tools{background:#0a1230!important}
html[data-theme=nuit] footer.ft,html[data-theme=nuit] .ft{background:#050816!important;border-top:1px solid #16203f!important}
html[data-theme=nuit] .cbtn,html[data-theme=nuit] #formation .ac2-go,html[data-theme=nuit] dialog.cdlg button[type=submit],html[data-theme=nuit] #hautdepage{background:#2f4fd8!important;color:#fff!important}
html[data-theme=nuit] .cbtn:hover,html[data-theme=nuit] #formation .ac2-go:hover{background:#3a5ae6!important}
html[data-theme=nuit] #contact.lu::before{display:none}
html[data-theme=nuit] h2 em,html[data-theme=nuit] h2 b,html[data-theme=nuit] .ac2-h em,html[data-theme=nuit] #contact.lu h2 b,html[data-theme=nuit] .ac2-eb,html[data-theme=nuit] .th.on span{color:#5b78ff!important;-webkit-text-fill-color:#5b78ff}
html[data-theme=nuit] .dk-tab.on,html[data-theme=nuit] #presentations .dk-ind{background:#16203f!important}
html[data-theme=nuit] dialog.cdlg .lu-d{background:#0a1230!important}
html[data-theme=nuit] #contact .lu-line{display:none!important}
html[data-theme=nuit] footer.fl{background:#050816!important;border-top:1px solid #16203f!important}
/* survol du pied de page */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
footer.fl a{transition:color .3s,text-shadow .4s,transform .35s cubic-bezier(.3,1.4,.5,1),filter .4s}
footer.fl a:hover{transform:translateY(-1px)}
html[data-theme=nuit] footer.fl a:hover{color:#fff!important;text-shadow:0 0 12px rgba(140,165,255,.6)}
html[data-theme=nuit] footer.fl a[class*=li]:hover,html[data-theme=nuit] footer.fl a[href*="x.com"]:hover,html[data-theme=nuit] footer.fl a[href*="linkedin"]:hover{filter:drop-shadow(0 0 6px rgba(120,150,255,.75)) drop-shadow(0 0 14px rgba(90,120,255,.45))}
/* logo Mirages au survol, jour et nuit */
.nav .brand img,footer.fl .brand img,footer.fl img[alt*="Mirages"]{transition:transform .6s cubic-bezier(.3,1.35,.45,1),filter .6s;transform-origin:16px 50%}
.nav .brand:hover img{transform:scale(1.045) translateY(-1px);filter:drop-shadow(0 6px 10px rgba(20,42,110,.22))}
html[data-theme=nuit] .nav .brand:hover img{filter:drop-shadow(0 0 10px rgba(140,165,255,.45))}
}
.nav .brand{color:#142a6e;display:inline-flex}
.brand-svg{display:block;width:219px;height:32px;overflow:visible}
@media (max-width:760px){.brand-svg{width:auto;height:28px}}
html[data-theme=nuit] .nav .brand{color:#fff}
.brand-m{transform-box:fill-box;transform-origin:50% 50%;transition:transform .8s cubic-bezier(.3,1.35,.45,1)}
.brand-svg{transition:filter .6s}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
.nav .brand:hover .brand-m{transform:rotate(-14deg) scale(1.08)}
.nav .brand:hover .brand-svg{filter:drop-shadow(0 4px 8px rgba(20,42,110,.18))}
html[data-theme=nuit] .nav .brand:hover .brand-svg{filter:drop-shadow(0 0 10px rgba(140,165,255,.45))}
}
.nav .brand-svg{height:32px;transition:height .35s var(--e,ease),filter .6s}
.nav.sc .brand-svg{height:28px;width:auto}
@media (max-width:760px){.nav .brand-svg{height:28px}.nav.sc .brand-svg{height:25px}}
/* Nuit épurée : blanc adouci partout, sans mots en couleur */
html[data-theme=nuit]{--ink:#eef0f6;--navy:#eef0f6;--navy2:#eef0f6}
html[data-theme=nuit] h2 em,html[data-theme=nuit] h2 b,html[data-theme=nuit] h1 em,html[data-theme=nuit] .ac2-h em,html[data-theme=nuit] #contact.lu h2 b,html[data-theme=nuit] .mn-pt,html[data-theme=nuit] .th.on span{color:#eef0f6!important;-webkit-text-fill-color:#eef0f6}
html[data-theme=nuit] .ac2-eb,html[data-theme=nuit] .ac2-sh{color:#b9bfcf!important;-webkit-text-fill-color:#b9bfcf;background:none!important}
html[data-theme=nuit] .ac2-dt:before,html[data-theme=nuit] .ac2-dt:after{background:#eef0f6!important}
html[data-theme=nuit] .cbtn,html[data-theme=nuit] #formation .ac2-go,html[data-theme=nuit] dialog.cdlg button[type=submit],html[data-theme=nuit] #hautdepage{background:#eef0f6!important;color:#050816!important}
html[data-theme=nuit] .cbtn svg,html[data-theme=nuit] #formation .ac2-go svg,html[data-theme=nuit] #hautdepage svg{color:#050816!important;stroke:currentColor}
html[data-theme=nuit] .cbtn:hover,html[data-theme=nuit] #formation .ac2-go:hover{background:#fff!important}
html[data-theme=nuit] #presentations .th-ring{box-shadow:0 0 0 2px #050816,0 0 0 4px #eef0f6,0 10px 22px -10px rgba(0,0,0,.8)!important}
html[data-theme=nuit] #pourquoi .ph,html[data-theme=nuit] #pourquoi .hd,html[data-theme=nuit] #pourquoi .l1,html[data-theme=nuit] #pourquoi .l2{color:#eef0f6!important}
html[data-theme=nuit] .nav-links a[aria-current],html[data-theme=nuit] .nav-links a.on{color:#fff!important}
/* Menu mobile : icônes son et réseaux sans halo blanc ; lune au-dessus du décor */
html body .mnav .mn-soc a,html body .mnav .bru7-mute{filter:none!important}
html[data-theme=nuit] body .mnav .mn-soc a,html[data-theme=nuit] body .mnav .bru7-mute{color:#eef0f6!important;filter:drop-shadow(0 1px 3px rgba(0,0,0,.55))!important}
/* 15 nov. : bandes toujours en mouvement, même couleur en nuit ; bouton nuit assorti ; logo du pied animé ; icônes réseaux en lueur simple */
html body .stats.mq .tl-row:hover .tl-track{animation-play-state:running!important}
html[data-theme=nuit] section.stats,html[data-theme=nuit] .stats{background:#0a1230!important}
html[data-theme=nuit] .th-sw{background:#0a1230!important;box-shadow:inset 0 1px 3px rgba(0,0,0,.55),inset 0 0 0 .5px rgba(160,175,230,.16)!important}
footer.fl .fl-svg{width:auto;height:24px;color:#fff}
@media (max-width:768px){footer.fl .fl-svg{height:22px}}
footer.fl .fl-brand:hover .brand-m{transform:rotate(-14deg) scale(1.08)}
footer.fl .fl-brand:hover{transform:none}
html[data-theme=nuit] footer.fl .fl-brand:hover .brand-svg{filter:drop-shadow(0 0 10px rgba(140,165,255,.45))}
html body .fl a.fl-li:hover,html body .fl a.fl-li:focus-visible,html body .nv-li:hover,html body .nv-li:focus-visible{background:transparent!important}
html[data-theme=nuit] .nv-li:hover,html[data-theme=nuit] .mn-soc a:hover,html[data-theme=nuit] footer.fl a.fl-li:hover,html[data-theme=nuit] footer.fl a[href*="x.com"]:hover,html[data-theme=nuit] footer.fl a[href*="linkedin"]:hover{color:#fff!important;transform:translateY(-1px)!important;filter:drop-shadow(0 0 6px rgba(140,165,255,.6))!important}
/* 15 nov. : fermeture douce des fenêtres Contactez-nous / Être averti */
html body dialog.cdlg.is-closing{animation:dlgOut2 .36s cubic-bezier(.4,0,.2,1) both!important}
html body dialog.cdlg.is-closing::backdrop{animation:dlgBgOut .36s ease both!important}
@keyframes dlgOut2{0%{opacity:1;transform:none;filter:blur(0)}100%{opacity:0;transform:translateY(10px) scale(.96);filter:blur(4px)}}
dialog.cdlg .cdx{transition:transform .35s cubic-bezier(.3,1.3,.5,1),opacity .3s,background-color .25s}
dialog.cdlg .cdx:hover{transform:rotate(90deg)}
dialog.cdlg.is-closing .cdx{transform:rotate(180deg) scale(.7);opacity:0}
@media (prefers-reduced-motion:reduce){html body dialog.cdlg.is-closing,html body dialog.cdlg.is-closing::backdrop{animation-duration:.01s!important}}
/* Fenêtres en mode nuit : tout en blanc adouci, champs assortis */
html[data-theme=nuit] dialog.cdlg h3 b,html[data-theme=nuit] dialog.cdlg h3 em{color:#eef0f6!important;-webkit-text-fill-color:#eef0f6}
html[data-theme=nuit] dialog.cdlg a[href^="mailto"],html[data-theme=nuit] dialog.cdlg .lu-dm,html[data-theme=nuit] dialog.cdlg [class*=mail]{color:#eef0f6!important}
html[data-theme=nuit] dialog.cdlg input:not([type=hidden]):not([type=checkbox]){background:#0a1230!important;color:#eef0f6!important;border:1px solid rgba(238,240,246,.14)!important}
html[data-theme=nuit] dialog.cdlg input::placeholder{color:rgba(238,240,246,.45)!important}
/* Académie sur cellulaire : photo centrée entre le bouton et la section suivante */
@media (max-width:759px){html body #formation .ac2-ph{margin-top:30px!important}html body #formation{padding-bottom:8px!important}}
/* 15 nov. : changement de mode sans flash ni carrés, propagation plus lente */
html.th-swap *,html.th-swap *::before,html.th-swap *::after{transition:none!important}
html.th-anim::view-transition-new(root){animation:th-reveal2 1.9s cubic-bezier(.65,0,.3,1) both!important}
html.th-anim::view-transition-old(root),html.th-anim[data-to=clair]::view-transition-old(root){animation:none!important;filter:none!important}
@keyframes th-reveal2{from{--rr:0px}to{--rr:calc(var(--r) + 260px)}}
/* Bouton nuit : pastille dans le même bleu que la bande des outils */
html[data-theme=nuit] .th-sw .knob{background:radial-gradient(120% 120% at 30% 22%,#1e2c5e 0%,#121c45 50%,#0a1230 100%)!important;box-shadow:0 0 0 .5px rgba(170,185,240,.2),0 1px 2px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.07)!important}
html[data-theme=nuit] .th-sw .knob::after{background:radial-gradient(circle,rgba(90,120,230,.18),rgba(90,120,230,0) 65%)!important}
/* Soleil du bouton : bleu Mirages au lieu de jaune */
.th-sw .ic{color:#142a6e}
.th-sw .knob::after{background:radial-gradient(circle,rgba(20,42,110,.12),rgba(20,42,110,0) 65%)}
.th-sw:hover .knob::after{background:radial-gradient(circle,rgba(20,42,110,.2),rgba(20,42,110,0) 65%)}
/* 15 nov. : lueurs graduelles partout en nuit ; pied de page sans soulignement, même lueur que « Propulsé par » */
html[data-theme=nuit] body :is(.nav-links a,.lng a,.nv-li,.mn-soc a,footer.fl a,.brand-svg,.nav .brand img,.cbtn,#formation .ac2-go,.dk-tab,[data-prev],[data-next],#hautdepage){transition:color .5s ease,background-color .5s ease,text-shadow .6s ease,filter .6s ease,box-shadow .6s ease,transform .45s cubic-bezier(.3,1.3,.5,1)!important}
html[data-theme=nuit] body :is(#sites .st-glass,.dk-stage,.vc-media,#presentations .th img){transition:box-shadow .6s ease,transform .45s ease,filter .6s ease!important}
html[data-theme=nuit] body .sh h2,html[data-theme=nuit] body #fil h2{transition:text-shadow .6s ease!important}
html body footer.fl a,html body footer.fl a:hover,html body footer.fl a:focus-visible{text-decoration:none!important}
html[data-theme=nuit] body footer.fl a:hover,html[data-theme=nuit] body footer.fl a:focus-visible{color:#fff!important;text-shadow:0 0 12px rgba(140,165,255,.6)!important;transform:none!important}
html[data-theme=nuit] body footer.fl a.fl-li:hover,html[data-theme=nuit] body footer.fl a.fl-li:focus-visible,html[data-theme=nuit] body .nv-li:hover{background:transparent!important;filter:drop-shadow(0 0 6px rgba(140,165,255,.6))!important;transform:none!important}
html[data-theme=nuit] body footer.fl a:hover svg.fl-mail-ico{filter:drop-shadow(0 0 6px rgba(140,165,255,.6))}
html[data-theme=nuit] body footer.fl .fl-mail-ico{transition:filter .6s ease}
/* Grob : rebord lumineux sur le haut de la bande Nova en nuit */
html[data-theme=nuit] #personnages .ph-band{position:relative;box-shadow:inset 0 1px 0 rgba(238,240,246,.22),inset 0 -1px 0 rgba(238,240,246,.08),0 -1px 18px -6px rgba(140,165,255,.28)}
html[data-theme=nuit] #personnages .ph-band::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;pointer-events:none;background:linear-gradient(90deg,rgba(238,240,246,0),rgba(238,240,246,.35) 30%,rgba(238,240,246,.55) 85%,rgba(238,240,246,.25));z-index:1}
/* 15 nov. : lueurs homogènes en nuit — une seule couleur, une seule force, une seule durée.
   Texte : text-shadow 0 0 12px .55 · Icônes/logos : drop-shadow 0 0 8px .55 · Boutons/tuiles : liseré + halo 28px .32 · 0,6 s ease */
html[data-theme=nuit] body{--glow-c:rgba(140,165,255,.55);--glow-b:rgba(140,165,255,.32);--glow-t:.6s ease}
html[data-theme=nuit] body :is(.nav-links a,.lng a,footer.fl a,.sh h2,#fil h2){transition:color var(--glow-t),text-shadow var(--glow-t),filter var(--glow-t)!important}
html[data-theme=nuit] body :is(.nav-links a:hover,.lng a:hover,footer.fl a:hover,footer.fl a:focus-visible,.sh:hover h2,#fil h2:hover){text-shadow:0 0 12px var(--glow-c)!important}
html[data-theme=nuit] body :is(.nv-li,.mn-soc a,footer.fl a.fl-li,footer.fl a[href*="x.com"],footer.fl a[href*="linkedin"],.nav .brand .brand-svg,footer.fl .fl-brand .brand-svg,.nav .brand img,footer.fl .fl-mail-ico,footer.fl .fl-pw img){transition:color var(--glow-t),filter var(--glow-t),transform .45s ease!important}
html[data-theme=nuit] body :is(.nv-li:hover,.mn-soc a:hover,footer.fl a.fl-li:hover,footer.fl a[href*="x.com"]:hover,footer.fl a[href*="linkedin"]:hover,.nav .brand:hover .brand-svg,footer.fl .fl-brand:hover .brand-svg,.nav .brand:hover img,footer.fl a:hover .fl-mail-ico,footer.fl .fl-pw:hover img){filter:drop-shadow(0 0 8px var(--glow-c))!important}
html[data-theme=nuit] body footer.fl .fl-pw:hover{filter:none!important}
html[data-theme=nuit] body :is(.cbtn,#formation .ac2-go,[data-prev],[data-next],#hautdepage,dialog.cdlg button[type=submit],#sites .st-glass,.dk-stage,.vc-media,#presentations .th img){transition:box-shadow var(--glow-t),transform .45s ease,background-color var(--glow-t),filter var(--glow-t)!important}
html[data-theme=nuit] body :is(.cbtn:hover,#formation .ac2-go:hover,[data-prev]:hover,[data-next]:hover,#hautdepage:hover,dialog.cdlg button[type=submit]:hover,#sites .st-card:hover .st-glass,.dk-stage:hover,.vc-media:hover,#presentations .th:hover img){box-shadow:0 0 0 1px rgba(170,190,255,.2),0 0 28px var(--glow-b)!important}
html[data-theme=nuit] body footer.fl a.fl-pw:hover,html[data-theme=nuit] body footer.fl a.fl-pw:focus-visible{filter:none!important}
/* Audio PC : « Cliquez sur une bille » un peu plus bas sous le titre */
/* Indication à mi-chemin entre le sous-titre et les billes */
@media (min-width:760px){html body #audio .ab-hint{top:38%!important;transform:none!important}}
@media (max-width:759px){html body #audio .ab-hint{top:24%!important}}
/* 15 nov. : aucun mot en gras dans les titres (même poids que le reste du titre) */
html body :is(h1,h2,h3,h4) :is(b,strong,em){font-weight:inherit!important}
/* Académie PC : bloc de texte un peu plus haut (centre optique de la photo) */
@media (min-width:760px){html body #formation .ac2-tx{position:relative;top:-36px}}
/* 15 nov. : bandes du haut et des outils en poids moyen (500), texte autour plus léger */
html body .stats .st{font-weight:400!important}
html body .stats .st b{font-weight:500!important}
html body .tools .lg b{font-weight:500!important}
/* Grob (mode nuit) : rebord lumineux sur le haut de l'affiche Nova, là où il est assis ; liseré de la bande retiré */
html[data-theme=nuit] #personnages .ph-band{box-shadow:none!important}
html[data-theme=nuit] #personnages .ph-band::before{display:none!important}
html[data-theme=nuit] #personnages .mh{box-shadow:inset 0 2px 0 rgba(238,240,246,.55),0 -6px 16px -8px rgba(140,165,255,.45)!important}
/* Présentations : l'image de vignette dans <picture> ne doit pas créer de ligne vide au-dessus */
#presentations .th picture,#presentations .dk-stage picture{display:contents}
/* « mondes… » : le vrai point du texte reste invisible (les trois points sont dessinés) — sinon le 1er point paraît plus gros */
html.mn-arm body #fil .intro h2 .mn-pt{color:transparent!important;-webkit-text-fill-color:transparent!important}
/* Bouton mode : sa propre transition jour/nuit reste active pendant l'échange (fond, pastille, soleil/lune en fondu) */
html.th-swap .th-sw,html.th-swap .th-sw *,html.th-swap .th-sw *::before,html.th-swap .th-sw *::after{transition-duration:.9s!important;transition-timing-function:cubic-bezier(.65,0,.3,1)!important}
html.th-swap .th-sw,html.th-swap .th-sw .knob,html.th-swap .th-sw .knob::after,html.th-swap .th-sw .ic,html.th-swap .th-sw .sc,html.th-swap .th-sw .rays,html.th-swap .th-sw .mc{transition-property:background,background-color,box-shadow,color,transform,opacity,fill,r,cx,cy!important}
/* Pastille : pas de halo au repos (il dessinait un 2e contour décalé) ; halo seulement au survol */
html body .th-sw .knob::after{opacity:0!important;transition:opacity .45s ease!important}
html body .th-sw:hover .knob::after{opacity:1!important}
/* Éditions : le rendu 3D déborde sous le bloc ; rien ne le coupe (bloc non rogné, section au-dessus de la suivante) — les livres qui reviennent restent entiers */
html body #livres .tb-stage{overflow:visible!important}
html body #livres .tb-stage canvas{bottom:auto!important;z-index:2}
html body #livres .tb-info,html body #livres .tb-hint,html body #livres .tb-load{z-index:3}
html body #livres{position:relative;z-index:3}
/* Fenêtres de contact : message de validation discret et soigné, champs fautifs soulignés en douceur */
html body dialog.cdlg .cf-msg{order:2;flex:none!important;width:auto;max-width:100%;margin:14px 0 0!important;text-align:center;font-size:13px!important;line-height:1.45;letter-spacing:.005em;font-weight:450;display:flex;align-items:center;justify-content:center;gap:8px;animation:cfmsg .45s cubic-bezier(.2,.8,.2,1) both}
html body dialog.cdlg .cf-msg:empty{display:none!important}
html body dialog.cdlg .cf-msg.err{color:#b4364a}
html body dialog.cdlg .cf-msg.ok{color:#1d7a46}
html body dialog.cdlg .cf-msg.err::before,html body dialog.cdlg .cf-msg.ok::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 18%,transparent)}
html[data-theme=nuit] body dialog.cdlg .cf-msg.err{color:#f2a7b4}
html[data-theme=nuit] body dialog.cdlg .cf-msg.ok{color:#9fe0b8}
html body dialog.cdlg .c2send{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important}
html body dialog.cdlg .c2send>button{order:1}
html body dialog.cdlg :is(input,textarea).bad{border-color:rgba(180,54,74,.55)!important;box-shadow:0 0 0 3px rgba(180,54,74,.12)!important;transition:border-color .3s,box-shadow .3s}
html[data-theme=nuit] body dialog.cdlg :is(input,textarea).bad{border-color:rgba(242,167,180,.55)!important;box-shadow:0 0 0 3px rgba(242,167,180,.12)!important}
@keyframes cfmsg{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){html body dialog.cdlg .cf-msg{animation:none}}
/* Lueurs perçues égales : les icônes fines (LinkedIn, X, logos, enveloppe) reçoivent une lueur un peu plus dense,
   l'avatar Anonymouse (gros cercle clair) une lueur plus légère — même intensité à l'œil partout */
html[data-theme=nuit] body :is(.nv-li:hover,.mn-soc a:hover,footer.fl a.fl-li:hover,footer.fl a[href*="x.com"]:hover,footer.fl a[href*="linkedin"]:hover,.nav .brand:hover .brand-svg,footer.fl .fl-brand:hover .brand-svg,footer.fl a:hover .fl-mail-ico){filter:drop-shadow(0 0 3px rgba(140,165,255,.7)) drop-shadow(0 0 10px rgba(140,165,255,.45))!important}
html[data-theme=nuit] body footer.fl .fl-pw:hover img{filter:drop-shadow(0 0 6px rgba(140,165,255,.35))!important}
html[data-theme=nuit] body :is(.nav-links a:hover,.lng a:hover,footer.fl a:hover,footer.fl a:focus-visible,.sh:hover h2,#fil h2:hover){text-shadow:0 0 8px rgba(140,165,255,.75),0 0 20px rgba(140,165,255,.4)!important}
/* Grob (nuit) : il est assis sur le haut de la bande noire, comme en mode clair. En nuit, la bande se confondait avec le fond :
   on lui donne une teinte distincte et une arête éclairée pour qu'elle se lise comme un banc ; le rebord sur l'affiche est retiré. */
html[data-theme=nuit] #personnages .mh{box-shadow:none!important}
html[data-theme=nuit] #personnages .ph-band{background:#0d1532!important;box-shadow:inset 0 1px 0 rgba(238,240,246,.28),inset 0 2px 10px -4px rgba(150,170,255,.22)!important}
html[data-theme=nuit] [data-app=grobu_sit]::after{content:"";position:absolute;left:18%;right:14%;bottom:-6px;height:16px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.55),transparent);pointer-events:none}
/* Bouton mode — fondu jour/nuit sans couche superposée (qui créait des contours) :
   couleurs pleines qui s'animent nativement + un même reflet blanc dans les deux modes */
html body .th-sw{background:#eceff4!important;background-image:none!important;transition:background-color .9s cubic-bezier(.65,0,.3,1),box-shadow .9s cubic-bezier(.65,0,.3,1)!important}
html[data-theme=nuit] body .th-sw{background:#0a1230!important}
html body .th-sw .knob{background-color:#f4f4f2!important;background-image:radial-gradient(120% 120% at 30% 22%,rgba(255,255,255,.16) 0%,rgba(255,255,255,.04) 45%,rgba(255,255,255,0) 100%)!important;transition:background-color .9s cubic-bezier(.65,0,.3,1),box-shadow .9s cubic-bezier(.65,0,.3,1),scale .45s cubic-bezier(.3,1.4,.5,1)!important}
html[data-theme=nuit] body .th-sw .knob{background-color:#152255!important}
html body .th-sw::before,html body .th-sw .knob::before{content:none!important}
html.th-swap body .th-sw .ic{transition:color .5s ease,transform .75s cubic-bezier(.4,0,.2,1)!important}
html.th-swap body .th-sw .ic *,html.th-swap body .th-sw .ic .rays line{transition-property:transform,opacity!important}
html body .th-sw .ic .sc,html body .th-sw .ic .rays line{transition-property:transform,opacity!important}
/* Mode nuit : plus de liseré clair autour du bouton ni autour de la pastille (fond et pastille se détachent par la teinte seule) */
html[data-theme=nuit] body .th-sw{box-shadow:inset 0 1px 3px rgba(0,0,0,.55)!important}
html[data-theme=nuit] body .th-sw .knob{box-shadow:0 1px 2px rgba(0,0,0,.5),0 3px 7px -1px rgba(0,0,0,.6)!important}
/* « Pourquoi Mirages Studio? » : bande plus raffinée — poids 500 comme les titres, ~¼ plus petite, points plus discrets */
html body #pourquoi .ph{font-size:96px!important;font-weight:500!important}
html body #pourquoi .sp{font-size:96px!important;margin:0 .34em!important}
html body #pourquoi .dot{width:.09em!important;height:.09em!important}
@media (max-width:759px){html body #pourquoi .ph,html body #pourquoi .sp{font-size:clamp(40px,11.3vw,54px)!important}}
/* Éditions (15 nov.) : plus de panneau coloré à l'ouverture — le livre s'ouvre sur le fond de la page ;
   transitions plus lentes et synchronisées (bloc, texte, livres) */
html body #livres .tb-stage,html body #livres .tb-stage.open,html[data-theme=nuit] body #livres .tb-stage,html[data-theme=nuit] body #livres .tb-stage.open{background:transparent!important;box-shadow:none!important}
html body #livres .tb-stage::after{display:none!important}
html body #livres .tb-stage{transition:height .8s cubic-bezier(.65,0,.35,1)!important}
html body #livres .tb-info{color:#0b0b0c;transition:opacity .3s ease,transform .4s cubic-bezier(.4,0,.2,1)!important}
html body #livres .tb-stage.open .tb-info{transition:opacity .7s ease .4s,transform .9s cubic-bezier(.16,1,.3,1) .4s!important}
html body #livres .tb-info h3{color:#0b0b0c!important}
html body #livres .tb-info p{color:#4a4f5e!important}
html body #livres .tb-kind{color:#8a6a2a!important}
html body #livres .tb-rule{background:#8a6a2a!important;opacity:.5}
html body #livres .tb-back{color:#142a6e!important;background:transparent!important;border:1px solid rgba(20,42,110,.28)!important;transition:background-color .3s,border-color .3s!important}
html body #livres .tb-back:hover{background:rgba(20,42,110,.06)!important;border-color:rgba(20,42,110,.5)!important}
html body #livres .tb-stage.open .tb-hint{color:rgba(20,42,110,.5)!important}
html[data-theme=nuit] body #livres .tb-info h3{color:#eef0f6!important}
html[data-theme=nuit] body #livres .tb-info p{color:rgba(238,240,246,.75)!important}
html[data-theme=nuit] body #livres .tb-kind{color:#cdb57a!important}
html[data-theme=nuit] body #livres .tb-rule{background:#cdb57a!important}
html[data-theme=nuit] body #livres .tb-back{color:#eef0f6!important;border-color:rgba(238,240,246,.3)!important}
html[data-theme=nuit] body #livres .tb-back:hover{background:rgba(238,240,246,.08)!important;border-color:rgba(238,240,246,.55)!important}
html[data-theme=nuit] body #livres .tb-stage.open .tb-hint{color:rgba(238,240,246,.5)!important}
/* « Pourquoi Mirages Studio? » : un peu plus d'air entre l'étiquette et la bande qui défile */
html body main > section#pourquoi h2.hd.hd{margin-bottom:12px!important}
@media (max-width:759px){html body main > section#pourquoi h2.hd.hd{margin-bottom:16px!important}}
/* Académie : photo de type Polaroid plus réaliste — papier éclairé, épaisseur, ombres en couches, photo encastrée et glacée */
html body #formation .ac2-pol{background-color:#f7f5ef!important;background-image:linear-gradient(135deg,rgba(255,255,255,.75) 0%,rgba(255,255,255,0) 38%,rgba(0,0,0,0) 62%,rgba(60,50,30,.06) 100%),url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .42 0 0 0 0 .36 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(0,0,0,.05),0 1px 0 #e4e0d5,0 2px 0 #d8d3c6,0 2px 3px rgba(30,25,15,.18),0 10px 18px -6px rgba(30,25,15,.18),0 28px 48px -18px rgba(20,25,45,.32)!important;border-radius:2px}
html body #formation .ac2-im{box-shadow:inset 0 0 0 1px rgba(0,0,0,.14),inset 0 2px 4px rgba(0,0,0,.22)!important}
html body #formation .ac2-im::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(118deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,.06) 28%,rgba(255,255,255,0) 42%),linear-gradient(0deg,rgba(0,0,0,.08),rgba(0,0,0,0) 30%);mix-blend-mode:screen}
html[data-theme=nuit] body #formation .ac2-pol{box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -1px 0 rgba(0,0,0,.06),0 1px 0 #d9d4c6,0 2px 0 #c9c3b3,0 2px 4px rgba(0,0,0,.5),0 14px 24px -8px rgba(0,0,0,.55),0 34px 60px -20px rgba(0,0,0,.7)!important}
/* Fenêtres (Contactez-nous, Être averti) : bouton Envoyer à la même taille que les boutons du site (ex. « Être averti ») */
html body :is(dialog.cdlg,#_s) button[type=submit]{height:48px!important;min-height:0!important;padding:0 26px!important;font-size:15px!important}
@media (max-width:759px){html body :is(dialog.cdlg,#_s) button[type=submit]{height:44px!important;padding:0 22px!important}}
/* Mode nuit : les champs des fenêtres restent bleu nuit quand on écrit dedans (plus de fond blanc) */
html[data-theme=nuit] body :is(dialog.cdlg,#_s) :is(input,textarea),html[data-theme=nuit] body :is(dialog.cdlg,#_s) :is(input,textarea):focus{background:#0a1230!important;color:#eef0f6!important;-webkit-text-fill-color:#eef0f6}
html[data-theme=nuit] body :is(dialog.cdlg,#_s) :is(input,textarea):focus{border-color:rgba(238,240,246,.42)!important;box-shadow:0 0 0 3px rgba(140,165,255,.14)!important}
html[data-theme=nuit] body :is(dialog.cdlg,#_s) :is(input,textarea)::placeholder{color:rgba(238,240,246,.45)!important;-webkit-text-fill-color:rgba(238,240,246,.45)}
/* Fenêtres : plus de bande dégradée derrière le bouton Envoyer, plus de pastille devant le message, ombre du bouton discrète */
html body :is(dialog.cdlg,#_s) .c2send{background:none!important;background-image:none!important;box-shadow:none!important}
html body :is(dialog.cdlg,#_s) .cf-msg::before{content:none!important}
html[data-theme=nuit] body :is(dialog.cdlg,#_s) button[type=submit]{box-shadow:0 8px 18px -10px rgba(0,0,0,.6)!important}
/* Étoiles : scintillement visible et désynchronisé — deux nappes d'étoiles qui pulsent à des rythmes différents */
html[data-theme=nuit] #fil::before{animation:nuit-tw2 3.4s ease-in-out infinite!important;opacity:1}
html[data-theme=nuit] #fil::after{content:"";position:absolute;left:0;right:0;top:0;height:380px;pointer-events:none;z-index:0;
 background-image:radial-gradient(2px 2px at 22% 12%,#fff,transparent),radial-gradient(1px 1px at 41% 28%,#dfe6ff,transparent),radial-gradient(2.2px 2.2px at 70% 22%,#fff,transparent),radial-gradient(1px 1px at 8% 44%,#cfd8ff,transparent),radial-gradient(1.2px 1.2px at 58% 9%,#fff,transparent),radial-gradient(1px 1px at 83% 40%,#fff,transparent),radial-gradient(1.8px 1.8px at 30% 58%,#dfe6ff,transparent),radial-gradient(1px 1px at 96% 18%,#fff,transparent),radial-gradient(1.2px 1.2px at 48% 46%,#fff,transparent),radial-gradient(1px 1px at 15% 30%,#fff,transparent);
 animation:nuit-tw3 4.7s ease-in-out -1.9s infinite}
@keyframes nuit-tw2{0%,100%{opacity:.95}45%{opacity:.18}60%{opacity:.5}}
@keyframes nuit-tw3{0%,100%{opacity:.2}35%{opacity:1}55%{opacity:.35}80%{opacity:.85}}
@media (prefers-reduced-motion:reduce){html[data-theme=nuit] #fil::before,html[data-theme=nuit] #fil::after{animation:none!important}}
/* Académie : papier photo glacé — reflet brillant en diagonale sur toute la photo, qui glisse doucement selon la position de la souris */
html body #formation .ac2-pol{--gx:30%;--gy:20%}
html body #formation .ac2-pol::before{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;
 background:
  radial-gradient(90% 60% at var(--gx) var(--gy),rgba(255,255,255,.42) 0%,rgba(255,255,255,.12) 35%,rgba(255,255,255,0) 62%);
 mix-blend-mode:normal;transition:background-position .6s ease}
html body #formation .ac2-pol::after{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;
 background:linear-gradient(118deg,rgba(255,255,255,0) 33%,rgba(255,255,255,.14) 38%,rgba(255,255,255,.55) 42.5%,rgba(255,255,255,.18) 45%,rgba(255,255,255,0) 50%,rgba(255,255,255,0) 55%,rgba(255,255,255,.12) 57%,rgba(255,255,255,0) 60%);
 background-size:220% 100%;background-position:var(--sx,60%) 0;mix-blend-mode:normal;transition:background-position 1.2s cubic-bezier(.2,.8,.2,1)}
html body #formation .ac2-im img{filter:contrast(1.04) saturate(1.06)}
@media (prefers-reduced-motion:reduce){html body #formation .ac2-pol::after{transition:none}}
/* Académie : vrai tirage Polaroid photographié (papier glacé réel), la photo des professeurs y est intégrée avec le reflet du papier.
   Le cadre en code, le grain, l'ombre de papier et le reflet simulé sont retirés. */
html body #formation .ac2-pol{background:none!important;background-image:none!important;padding:0!important;box-shadow:none!important;border-radius:0!important;filter:drop-shadow(0 2px 2px rgba(30,25,15,.18)) drop-shadow(0 16px 22px rgba(20,25,45,.22))}
html body #formation .ac2-pol::before,html body #formation .ac2-pol::after{content:none!important}
html body #formation .ac2-im{display:none!important}
html body #formation .ac2-real{display:block;width:100%;height:auto;position:relative;z-index:1}
html body #formation .ac2-tp{z-index:3}
html body #formation .ac2-cap{z-index:2;left:6.5%!important;right:6.5%!important;bottom:7.5%!important}
html[data-theme=nuit] body #formation .ac2-pol{filter:drop-shadow(0 2px 3px rgba(0,0,0,.5)) drop-shadow(0 18px 26px rgba(0,0,0,.55))}
html[data-theme=nuit] body #formation .ac2-pol{box-shadow:none!important;background:none!important}
/* Éditions, cellulaire : pas d'indication « Glissez pour tourner le livre » sur le livre ouvert (elle chevauchait le livre) */
@media (max-width:759px){html body #livres .tb-stage.open .tb-hint{display:none!important}}
/* Éditions, cellulaire : on peut défiler la page avec le doigt sur les livres (et sous eux) quand aucun livre n'est ouvert */
html body #livres .tb-stage:not(.open) canvas{touch-action:pan-y!important}
/* Cellulaire : sous-titres de section plus discrets (17 px), grand titre d'ouverture un peu plus compact (34 px) */
@media (max-width:759px){
 html body section .sh .lead,html body #fil .intro .lead,html body #personnages .lead{font-size:17px!important;font-weight:400!important;line-height:1.45!important}
 html body main section#fil .intro h2.h2,html body main section#fil .wrap.intro h2{font-size:34px!important}
}
/* Ordinateur : typographie plus élégante (titres de section 56–64 px, sous-titres 20–21 px, ouverture 72–88 px, contact ~96 px) */
@media (min-width:760px){
 html body main section:not(#fil):not(#contact) .sh h2,html body main section:not(#fil):not(#contact) .ph-h2,html body main #personnages .ph-h2{font-size:clamp(48px,4.2vw,64px)!important}
 html body main section#fil .intro h2.h2,html body main section#fil .wrap.intro h2{font-size:clamp(56px,5vw,88px)!important}
 html body main section .sh .lead,html body main section#fil .intro .lead,html body #personnages .lead{font-size:clamp(19px,1.45vw,21px)!important;line-height:1.45!important;font-weight:400!important}
 html body main section#contact h2,html body #contact.lu h2{font-size:clamp(64px,6.6vw,96px)!important}
}
/* 16 nov. : section Nova sans bande noire ; sur ordinateur, affiche et vidéo côte à côte ; Grob assis sur le haut de l'affiche */
html body #personnages .ph-band,html[data-theme=nuit] body #personnages .ph-band{background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;color:inherit}
html body #personnages .ph-band::before{display:none!important}
html body #personnages .ph-band-in{max-width:none!important}
html body #personnages .mh,html body #personnages .mh img,html body #personnages .mv{border-radius:14px!important}
html body #personnages .mh,html body #personnages .mv{box-shadow:0 18px 40px -22px rgba(20,25,45,.45)!important}
@media (min-width:760px){
 html body #personnages .ph-band-in{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,1.6vw,24px);align-items:start}
 html body #personnages .mv{margin-top:0!important}
 html body #personnages .ph-band-in>:not(.mh):not(.mv):not(style){grid-column:1/-1}
}
/* Mode nuit : un fin rebord clair sur le haut des deux images (Grob est assis dessus), ombre profonde */
html[data-theme=nuit] body #personnages .mh,html[data-theme=nuit] body #personnages .mv{box-shadow:inset 0 1px 0 rgba(238,240,246,.35),0 0 0 1px rgba(238,240,246,.10),0 20px 44px -20px rgba(0,0,0,.8)!important}
/* 16 nov. : bande sous Nova rapprochée des deux images (PC) */
@media (min-width:760px){html body #personnages .ph-band-in>.bd{margin-top:0!important}}
/* 16 nov. : pas de glisser-déposer ni d'appui long « Enregistrer » sur les médias */
html body video,html body img,html body canvas{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none}
/* 16 nov. : indice des billes plus grand, plus élégant, et sortie en fondu flouté quand une bille monte */
html body #audio .ab-hint{font-size:clamp(13px,1vw,15px)!important;font-weight:400;letter-spacing:.04em;color:#3a4160;opacity:0;filter:blur(6px);translate:0 10px;transition:opacity .9s cubic-bezier(.2,.7,.2,1),filter .9s cubic-bezier(.2,.7,.2,1),translate .9s cubic-bezier(.2,.7,.2,1),letter-spacing .9s ease}
html body #audio .ab-hint.on{opacity:1;filter:blur(0);translate:0 0}
html body #audio .ab-hint:not(.on){letter-spacing:.12em;translate:0 -12px;transition-duration:.7s}
html body #audio .ab-hint::before,html body #audio .ab-hint::after{content:"";display:inline-block;width:28px;height:1px;vertical-align:middle;margin:0 14px;background:linear-gradient(90deg,transparent,#3d6bff88)}
html body #audio .ab-hint::after{background:linear-gradient(90deg,#3d6bff88,transparent)}
html[data-theme=nuit] body #audio .ab-hint{color:#c9cfe6}
@media (prefers-reduced-motion:reduce){html body #audio .ab-hint{transition:opacity .3s;filter:none;translate:none}}
/* 16 nov. : Éditions — même police que le site, bouton Retour comme les autres boutons, indice soigné */
html body #livres .tb-info h3{font-family:inherit!important;font-weight:500!important;letter-spacing:-.025em!important;line-height:1.1!important}
html body #livres .tb-back{height:44px;padding:0 22px!important;border:0!important;border-radius:999px!important;background:var(--navy,#142a6e)!important;color:#fff!important;font-size:15px!important;font-weight:600!important;letter-spacing:0!important;box-shadow:0 10px 24px -10px rgba(20,42,110,.6);transition:transform .2s,box-shadow .2s,background .2s}
html body #livres .tb-back:hover{transform:translateY(-1px);box-shadow:0 14px 28px -10px rgba(20,42,110,.7)}
html body #livres .tb-hint{font-size:clamp(14px,1.1vw,16px)!important;letter-spacing:.04em!important;color:#3a4160!important;bottom:26px}
html body #livres .tb-stage.open .tb-hint{color:#3a4160!important}
html body #livres .tb-hint::before,html body #livres .tb-hint::after{content:"";display:inline-block;width:28px;height:1px;vertical-align:middle;margin:0 14px;background:linear-gradient(90deg,transparent,#3d6bff88)}
html body #livres .tb-hint::after{background:linear-gradient(90deg,#3d6bff88,transparent)}
html[data-theme=nuit] body #livres .tb-hint,html[data-theme=nuit] body #livres .tb-stage.open .tb-hint{color:#c9cfe6!important}
html[data-theme=nuit] body #livres .tb-back{background:#eef0f6!important;color:#142a6e!important}
/* 16 nov. : Sites web — tuiles nettes comme les vidéos (sans cadre de verre pixelisé), rangée pleine largeur, plus d'ombre coupée */
html body #sites .st-glass{transform:none!important;background:none!important;box-shadow:none!important;padding:0!important;border:0!important}
html body #sites .st-glass::before,html body #sites .st-glass::after,html body #sites .st-sheet{display:none!important}
html body #sites .st-frame{border-radius:14px!important;overflow:hidden;transform:none!important;box-shadow:0 18px 40px -22px rgba(20,25,45,.45)!important;border:0!important;outline:0!important}
html body #sites .st-frame video{display:block;border-radius:0!important}
html body #sites .sw-viewport{margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;width:100vw!important;max-width:none!important;padding:24px 0 48px!important;margin-top:-24px!important;-webkit-mask:none!important;mask:none!important}
html body #sites .sw-tray,html body #sites .sw-scene{overflow:visible!important}
html[data-theme=nuit] body #sites .st-frame{box-shadow:inset 0 1px 0 rgba(238,240,246,.35),0 0 0 1px rgba(238,240,246,.10),0 20px 44px -20px rgba(0,0,0,.8)!important}
/* 16 nov. : tuiles Sites web de la même taille et du même espacement que les tuiles vidéo (plus nettes) */
html body #sites .st-card{width:var(--stw,clamp(242px,29vw,420px))!important;flex:0 0 var(--stw,clamp(242px,29vw,420px))!important}
html body #sites .sw-rail{gap:14px!important}
html body #sites .st-frame{aspect-ratio:16/9}
html body #sites .st-frame video{width:100%!important;height:100%!important;object-fit:cover;transform:scale(1.015)}
/* 17 nov. : plus d'étoiles en mode nuit (Éric) */
html[data-theme=nuit] body #fil::before,html[data-theme=nuit] body #fil::after{content:none!important;display:none!important}
/* 17 nov. : Éditions, cellulaire — le bouton Retour sous le texte, jamais par-dessus */
@media (max-width:759px){
 html body #livres .tb-back{position:static!important;top:auto!important;right:auto!important;margin:22px 0 0!important;height:44px;padding:0 22px!important;font-size:15px!important}
 html body #livres .tb-info h3{margin:10px 0 14px!important}
 html body #livres .tb-kind{display:block;padding-right:0!important}
}
/* 17 nov. : cellulaire — titres de section qui apparaissent en douceur (seulement h2 + sous-titre) */
@media (max-width:760px){
 html.mt body .sh>h2,html.mt body .sh>.lead{opacity:0;transform:translateY(12px);transition:opacity .6s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
 html.mt body .sh>.lead{transition-delay:.08s}
 html.mt body .sh.mt-in>h2,html.mt body .sh.mt-in>.lead{opacity:1;transform:none}
}
/* 17 nov. : fenêtres — la zone de message s'agrandit selon son texte, plus de mots coupés en bas */
html body dialog.cdlg textarea{height:auto!important;min-height:96px!important;max-height:42vh!important;field-sizing:content;line-height:1.5!important;overflow-y:auto!important;font-size:16px!important}
/* 17 nov. : cellulaire — de l'espace au-dessus de la vidéo Nova pour que Grob s'y assoie, comme sur ordinateur */
@media (max-width:759px){html body #personnages .mh{margin-top:58px!important}}
/* 17 nov. : onglets sur une seule ligne mince sur cellulaire */
@media (max-width:759px){
 html body #presentations .dk-tabs{display:flex!important;width:max-content!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none;gap:4px!important;padding:4px!important;border-radius:999px!important;max-width:100%;grid-template-columns:none!important}
 html body #presentations .dk-tabs::-webkit-scrollbar{display:none}
 html body #presentations .dk-tab{flex:0 0 auto!important;white-space:nowrap!important;padding:9px 16px!important;font-size:14px!important}
}
/* 17 nov. : cellulaire — plus de flash au changement clair/sombre.
   Safari n'anime pas toujours la propriété --rr dès la 1re image : la nouvelle page s'affichait entière une fraction de seconde.
   Sur les écrans tactiles, le cercle est fait avec clip-path (animé nativement dès la 1re image). */
@keyframes th-vapeur{from{-webkit-mask-size:0 0;mask-size:0 0;-webkit-mask-position:var(--x) var(--y);mask-position:var(--x) var(--y)}to{-webkit-mask-size:calc(2 * (var(--r) + 260px)) calc(2 * (var(--r) + 260px));mask-size:calc(2 * (var(--r) + 260px)) calc(2 * (var(--r) + 260px));-webkit-mask-position:calc(var(--x) - var(--r) - 260px) calc(var(--y) - var(--r) - 260px);mask-position:calc(var(--x) - var(--r) - 260px) calc(var(--y) - var(--r) - 260px)}}
@keyframes th-clip{from{clip-path:circle(0px at var(--x) var(--y))}to{clip-path:circle(calc(var(--r) + 40px) at var(--x) var(--y))}}
@media (hover:none),(max-width:1024px){
 /* 2 déc. (Éric) : même bord vaporeux que sur PC. Le dégradé est fixe et c'est sa taille qui s'anime (propriété native, animée dès la 1re image, sans le flash de Safari) */
 html.th-anim::view-transition-new(root){clip-path:none!important;-webkit-mask-image:radial-gradient(closest-side,#000 calc(100% - 220px),rgba(0,0,0,.55) calc(100% - 90px),transparent 100%)!important;mask-image:radial-gradient(closest-side,#000 calc(100% - 220px),rgba(0,0,0,.55) calc(100% - 90px),transparent 100%)!important;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:0 0;mask-size:0 0;-webkit-mask-position:var(--x) var(--y);mask-position:var(--x) var(--y);animation:th-vapeur 1.9s cubic-bezier(.65,0,.3,1) both!important}
 html.th-anim::view-transition-old(root){animation:none!important}
}
/* 17 nov. : en-tête PC — fin trait entre les réglages (langue, clair/sombre) et les réseaux sociaux ;
   et à 1440 px l'icône X dépassait de l'écran de 19 px : espacements resserrés jusqu'à 1600 px */
@media (min-width:1025px){
 html body .nav-end .th-sw{position:relative;overflow:visible}
 html body .nav-end .th-sw::after{content:"";position:absolute;right:-12px;top:50%;width:1px;height:22px;transform:translateY(-50%);background:currentColor;opacity:.2;pointer-events:none}
 html body .nav-end .th-sw+.nv-li{margin-left:2px}
}
@media (min-width:1025px) and (max-width:1600px){
 html body .nav-end{gap:16px!important}
 html body .nav-links a{padding-left:12px!important;padding-right:12px!important}
 html body .nav-in{gap:28px!important}
}
@media (min-width:1025px) and (max-width:1420px){html body .nav-links a{padding-left:9px!important;padding-right:9px!important}html body .nav-in{gap:20px!important}}
/* Bande de chiffres : même espacement que la bande d'outils (Éric, 17 nov.) */
html body section.stats[style*="--stg"] .tl-set>.st::after{margin-left:var(--stg)!important;margin-right:var(--stg)!important}
/* Éditions : photo réaliste des livres au repos, fiche 3D au clic (18 nov.) */
html body #livres .tb-stage.has-photo:not(.open){height:auto!important;aspect-ratio:4096/2294;background:#f7f7f7}
html body #livres .tb-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;pointer-events:none;-webkit-user-drag:none;user-select:none;transition:opacity .45s ease,transform 1.2s cubic-bezier(.2,.8,.2,1)}
html body #livres .tb-stage.open .tb-photo{opacity:0;transform:scale(1.03)}
html body #livres .tb-hot{position:absolute;inset:0;z-index:2;border:0;padding:0;margin:0;background:rgba(255,255,255,0);cursor:pointer;transition:background .3s}
html body #livres .tb-hot:hover{background:rgba(255,255,255,.14)}
html body #livres .tb-stage.open .tb-hot{display:none}
html body #livres .tb-stage:not(.open) .tb-hint{z-index:3;color:rgba(20,42,110,.55)}
html body #livres .tb-stage.has-photo:not(.open) .tb-load{opacity:0!important;pointer-events:none}
/* Éditions : le livre en rotation passe par-dessus la section du haut ; bouton Retour qui ne blanchit plus au clic (18 nov.) */
html body #livres{position:relative;z-index:3}
html body #livres .tb-photo{border-radius:inherit}
html body #livres .tb-stage:not(.open) .tb-back{visibility:hidden!important;transition:none!important}
html body #livres .tb-back:active,html body #livres .tb-back:focus{background:var(--navy,#142a6e)!important;color:#fff!important}
html[data-theme=nuit] body #livres .tb-back:active,html[data-theme=nuit] body #livres .tb-back:focus{background:#eef0f6!important;color:#142a6e!important}
/* Éditions : fiche éditoriale (option B, 18 nov.) */
html body #livres .tb-kind{display:flex;gap:18px;font-size:12px!important;font-weight:500!important;letter-spacing:.16em!important;text-transform:uppercase;color:#7b8194!important;padding-bottom:16px;border-bottom:1px solid rgba(20,42,110,.12);max-width:520px}
html body #livres .tb-kind i{font-style:normal;color:#9a7a3a}
html body #livres .tb-info h3{font-family:'Cormorant Garamond',Georgia,serif!important;font-weight:500!important;font-size:clamp(48px,5.4vw,80px)!important;line-height:.95!important;letter-spacing:-.02em!important;margin:24px 0 20px!important}
html body #livres .tb-rule{display:none}
html body #livres .tb-quote{margin:0 0 18px;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:500;font-size:clamp(20px,1.9vw,26px);line-height:1.35;color:#1b2030;max-width:520px}
html body #livres .tb-info p{font-size:16px!important;line-height:1.7!important;max-width:500px}
html body #livres .tb-back{background:transparent!important;color:#142a6e!important;box-shadow:none!important;padding:0!important;height:auto!important;font-size:14px!important;font-weight:600!important;border-radius:0!important}
html body #livres .tb-back:hover{transform:none!important;box-shadow:none!important;background:transparent!important;text-decoration:underline;text-underline-offset:4px}
html body #livres .tb-back:active,html body #livres .tb-back:focus{background:transparent!important;color:#142a6e!important}
html[data-theme=nuit] body #livres .tb-kind{color:#9aa1b3!important;border-color:rgba(255,255,255,.14)}
html[data-theme=nuit] body #livres .tb-quote{color:#eef0f6}
html[data-theme=nuit] body #livres .tb-back,html[data-theme=nuit] body #livres .tb-back:active,html[data-theme=nuit] body #livres .tb-back:focus{background:transparent!important;color:#eef0f6!important}
@media(max-width:760px){html body #livres .tb-info h3{font-size:44px!important;margin:16px 0 14px!important}html body #livres .tb-quote{font-size:20px}}
html body #livres .tb-quote.tw{font-family:'Special Elite','Courier New',monospace!important;font-style:normal!important;font-weight:400!important;font-size:clamp(17px,1.45vw,20px)!important;line-height:1.55!important;color:#23201b;letter-spacing:.01em;min-height:3.2em}
html body #livres .tw-c{display:inline-block;white-space:pre}
html body #livres .tw-cur{display:inline-block;width:.55em;height:1.05em;margin-left:1px;vertical-align:-2px;background:#142a6e;animation:twb 1s steps(1) infinite}
html body #livres .tw-cur.end{animation:twb 1s steps(1) 3 forwards}
@keyframes twb{50%{opacity:0}}
html[data-theme=nuit] body #livres .tb-quote.tw{color:#e9e6df}html[data-theme=nuit] body #livres .tw-cur{background:#eef0f6}
html body #livres .tw-w{display:inline-block;white-space:nowrap}
/* Éditions : chorégraphie d'ouverture de la fiche + nouveau bouton Retour (18 nov.) */
html body #livres .tb-kind{position:relative;border-bottom:0!important;opacity:0;transform:translateY(8px);transition:opacity .6s ease .15s,transform .7s cubic-bezier(.16,1,.3,1) .15s}
html body #livres .tb-kind:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(20,42,110,.18);transform:scaleX(0);transform-origin:left;transition:transform 1.1s cubic-bezier(.65,0,.35,1) .3s}
html body #livres .tb-info.s1 .tb-kind{opacity:1;transform:none}html body #livres .tb-info.s1 .tb-kind:after{transform:scaleX(1)}
html body #livres .rv-m{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.08em;margin-bottom:-.08em}
html body #livres .rv-ch{display:inline-block;transform:translateY(105%);transition:transform .9s cubic-bezier(.16,1,.3,1)}
html body #livres .tb-info.s1 .rv-ch{transform:none}
html body #livres .tb-quote{opacity:0;transition:opacity .4s}html body #livres .tb-info.s2 .tb-quote{opacity:1}
html body #livres .tb-info p,html body #livres .tb-back{opacity:0;transform:translateY(12px);filter:blur(4px);transition:opacity .8s ease,transform .9s cubic-bezier(.16,1,.3,1),filter .8s ease}
html body #livres .tb-info.s3 p{opacity:1;transform:none;filter:none}
html body #livres .tb-info.s3 .tb-back{opacity:1;transform:none;filter:none;transition-delay:.35s}
html body #livres .tb-back{display:inline-flex!important;align-items:center;gap:12px;margin-top:26px!important;padding:6px 20px 6px 6px!important;height:auto!important;border:1px solid rgba(20,42,110,.18)!important;border-radius:999px!important;background:rgba(255,255,255,.6)!important;backdrop-filter:blur(8px);color:#142a6e!important;font-size:14px!important;font-weight:600!important;letter-spacing:.01em!important;text-decoration:none!important;box-shadow:0 8px 24px -14px rgba(20,42,110,.45)!important}
html body #livres .tb-back .ar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#142a6e;color:#fff;font-size:16px;transition:transform .35s cubic-bezier(.16,1,.3,1)}
html body #livres .tb-back:hover{background:#fff!important;border-color:rgba(20,42,110,.35)!important;text-decoration:none!important}
html body #livres .tb-back:hover .ar{transform:translateX(-3px)}
html body #livres .tb-back:active,html body #livres .tb-back:focus{background:#fff!important;color:#142a6e!important}
html[data-theme=nuit] body #livres .tb-back,html[data-theme=nuit] body #livres .tb-back:active,html[data-theme=nuit] body #livres .tb-back:focus{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.18)!important;color:#eef0f6!important}
html[data-theme=nuit] body #livres .tb-back .ar{background:#eef0f6;color:#142a6e}
html[data-theme=nuit] body #livres .tb-kind:after{background:rgba(255,255,255,.18)}
@media(prefers-reduced-motion:reduce){html body #livres .rv-ch,html body #livres .tb-kind,html body #livres .tb-info p,html body #livres .tb-back{transition:none!important;transform:none!important;opacity:1!important;filter:none!important}}
/* Machine à écrire v2 : texte mis en page d'avance, curseur sans largeur (aucun saut), clignote en continu (19 nov.) */
html body #livres .tw-c{visibility:hidden;opacity:var(--o,1)}
html body #livres .tw-c.on{visibility:visible}
html body #livres .tw-cur{display:inline-block!important;position:relative;width:0!important;height:1em!important;margin:0!important;background:none!important;vertical-align:baseline!important;animation:none!important}
html body #livres .tw-cur:after{content:"";position:absolute;left:1px;bottom:-.18em;width:.55em;height:1.05em;background:#142a6e;animation:twb 1.05s steps(1) infinite}
html[data-theme=nuit] body #livres .tw-cur:after{background:#eef0f6}
html body #livres .rv-w{display:inline-block;white-space:nowrap}
/* Sites web : Grobu (ancienne mise en scène) ne s’affiche plus une fraction de seconde au chargement (19 nov.) */
html body #sites .sw-actor{visibility:hidden!important}
/* Fiche livre : titre sur 2 lignes max, bouton Retour disponible tout de suite (19 nov.) */
html body #livres .tb-info h3{font-size:clamp(34px,3.4vw,54px)!important;line-height:1.02!important;max-width:600px;margin:20px 0 18px!important;text-wrap:balance}
html body #livres .tb-info{width:min(44%,600px)!important}
html body #livres .tb-info.s1 .tb-back{opacity:1;transform:none;filter:none;transition-delay:.9s}
@media(max-width:760px){html body #livres .tb-info{width:auto!important}html body #livres .tb-info h3{font-size:clamp(28px,8vw,36px)!important;margin:12px 0 12px!important}}
/* Extrait du livre tapé à la machine (19 nov.) */
html body #livres .tb-quote.tw.ex{font-size:clamp(15px,1.15vw,17px)!important;line-height:1.7!important;max-width:540px}
html body #livres .tw-nl{display:block;height:.5em}
/* Fiche livre : plus de texte « Glissez pour tourner le livre » (19 nov.) */
html body #livres .tb-stage.open .tb-hint{display:none!important}
/* 19 nov. PERF : flous d'arrière-plan retirés là où ils recalculent chaque image (pastilles sur vidéos qui défilent, bouton son) ;
   barre du haut opaque sur cellulaire (le flou sur vidéo est très coûteux sur téléphone) */
html body .stag,html body .snd{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(14,16,24,.62)!important}
@media (max-width:900px),(hover:none){html body .nav.sc{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(255,255,255,.97)!important}
 html[data-theme=nuit] body .nav,html[data-theme=nuit] body .nav.sc{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(5,8,22,.97)!important}}
/* Éditions : fiche épurée (22 nov., Éric) — une police pour le texte, titre en police « livre », aucune ligne, bouton rond × */
html body #livres .tb-rule{display:none!important}
html body #livres .tb-kind,html body #livres .tb-kind *{font-family:Geist,Inter,system-ui,sans-serif!important;font-size:15px!important;font-weight:400!important;font-style:normal!important;letter-spacing:0!important;text-transform:none!important;color:#7a8090!important;border:0!important;padding:0!important}
html body #livres .tb-kind:after,html body #livres .tb-kind:before,html body #livres .tb-kind i{display:none!important;content:none!important}
html body #livres .tb-info h3{font-family:'Cormorant Garamond',Georgia,serif!important;font-weight:500!important;font-style:normal!important;letter-spacing:-.01em!important;line-height:1!important;margin:10px 0 18px!important}
html body #livres .tb-info p,html body #livres #tb-idesc{font-family:Geist,Inter,system-ui,sans-serif!important;font-size:17px!important;line-height:1.6!important;font-weight:400!important;color:#3f4452!important;margin:0 0 14px!important;max-width:31em}
html body #livres .tb-quote:before,html body #livres .tb-quote:after{display:none!important;content:none!important}
html[data-theme=nuit] body #livres .tb-kind,html[data-theme=nuit] body #livres .tb-kind *{color:rgba(238,240,246,.55)!important}
html[data-theme=nuit] body #livres .tb-info p,html[data-theme=nuit] body #livres #tb-idesc{color:rgba(238,240,246,.8)!important}
html body #livres .tb-stage>.tb-back{position:absolute!important;top:22px!important;right:22px!important;left:auto!important;bottom:auto!important;margin:0!important;width:46px!important;height:46px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.55)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(20,42,110,.22)!important;color:#142a6e!important;box-shadow:none!important;z-index:6;opacity:0;visibility:hidden;transform:none;transition:opacity .4s ease,visibility 0s linear .4s,background .25s,border-color .25s!important;cursor:pointer}
html body #livres .tb-stage.open>.tb-back{opacity:1;visibility:visible;transition:opacity .5s ease .6s,visibility 0s,background .25s,border-color .25s!important}
html body #livres .tb-stage>.tb-back svg{width:18px;height:18px;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
html body #livres .tb-stage>.tb-back:hover{background:rgba(255,255,255,.85)!important;border-color:rgba(20,42,110,.45)!important;text-decoration:none!important}
html body #livres .tb-stage>.tb-back:hover svg{transform:rotate(90deg)}
html[data-theme=nuit] body #livres .tb-stage>.tb-back{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.25)!important;color:#eef0f6!important}
html[data-theme=nuit] body #livres .tb-stage>.tb-back:hover{background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.5)!important}
@media(max-width:760px){html body #livres .tb-stage>.tb-back{top:12px!important;right:12px!important;width:42px!important;height:42px!important}html body #livres .tb-info p,html body #livres #tb-idesc{font-size:16px!important}}

/* 22 nov. (2) : sans description, genre et titre ensemble, dactylo d'origine */
html body #livres #tb-idesc{display:none!important}
html body #livres .tb-kind{transition-delay:0s,0s!important}html body #livres .tb-stage>.tb-back{filter:none!important;transform:none!important;z-index:30!important;color:#142a6e!important;background:rgba(255,255,255,.7)!important;border:1px solid rgba(20,42,110,.22)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
html body #livres .tb-stage>.tb-back svg{stroke:currentColor!important;stroke-width:1.8!important;opacity:1!important}
html body #livres .tb-stage>.tb-back:hover svg{transform:rotate(90deg)!important}
html[data-theme=nuit] body #livres .tb-stage>.tb-back{color:#eef0f6!important;background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.3)!important}
