/* Généré par scripts/setup-assets.js */
@font-face{font-family:'Inter';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/inter-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Outfit';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/outfit-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Outfit';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/outfit-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Fredoka';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/fredoka-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fredoka';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/fredoka-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Nunito';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/nunito-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Nunito';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/nunito-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/space-grotesk-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Unbounded';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/unbounded-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Unbounded';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/unbounded-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/playfair-display-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Playfair Display';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/playfair-display-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Syne';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/syne-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Syne';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/syne-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Sora';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/sora-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Sora';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/sora-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Montserrat';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Montserrat';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/montserrat-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Orbitron';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/orbitron-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Lora';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/lora-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Lora';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/lora-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Caveat';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/caveat-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Caveat';font-style:normal;font-display:block;font-weight:100 900;src:url(../fonts/caveat-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Bebas Neue';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/bebas-neue-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Bebas Neue';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/bebas-neue-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Archivo Black';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/archivo-black-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Archivo Black';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/archivo-black-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'DM Serif Display';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/dm-serif-display-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'DM Serif Display';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/dm-serif-display-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Pacifico';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/pacifico-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Pacifico';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/pacifico-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Righteous';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/righteous-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Righteous';font-style:normal;font-display:block;font-weight:400;src:url(../fonts/righteous-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ExpoStudio — rendu des diapositives (partagé éditeur, présentation, export) */
.slide { position: relative; overflow: hidden; isolation: isolate; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
.slide .layer { position: absolute; inset: 0; }
.slide .layer.decor { pointer-events: none; }
.slide .el { position: absolute; box-sizing: border-box; }
.slide .el.is-decor { pointer-events: none; }
.slide .fx { position: absolute; inset: 0; }
.slide .body { position: absolute; inset: 0; box-sizing: border-box; }
.slide .body.v-top, .slide .body.v-middle, .slide .body.v-bottom { display: flex; flex-direction: column; }
.slide .body.v-middle { justify-content: center; align-items: center; }
.slide .body.v-bottom { justify-content: flex-end; }
.slide .body.v-top .txt, .slide .body.v-bottom .txt { width: 100%; }
.slide .body.has-txt { padding: 6%; }
.slide .body.has-txt .txt { width: 100%; }
.slide .txt { outline: none; word-wrap: break-word; overflow-wrap: break-word; white-space: pre-wrap; min-height: 1em; }
.slide .txt ul, .slide .txt ol { margin: 0; padding-left: 1.2em; }
.slide .txt li { margin: .18em 0; }
.slide .txt li::marker { color: var(--accent-mk, currentColor); }
.slide .txt p { margin: 0; }
.slide .txt b, .slide .txt strong { font-weight: 800; }
.tfx-clip { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent !important; padding-bottom: .08em; }
.tfx-clip * { -webkit-text-fill-color: transparent; }
.tfx-marker { text-decoration-line: underline; text-decoration-thickness: .34em; text-underline-offset: -.16em; text-decoration-skip-ink: none; }

/* ================= STYLES DE MATIÈRE ================= */
.st-flat { background: var(--c); }
.st-none { background: transparent; }

/* Clay 3D (claymorphism) */
.st-clay { background: var(--c);
  box-shadow: inset calc(var(--d) * .45) calc(var(--d) * .5) calc(var(--d) * .9) rgba(255,255,255,.55),
              inset calc(var(--d) * -.5) calc(var(--d) * -.6) calc(var(--d) * 1.1) color-mix(in srgb, var(--cdd) 45%, transparent),
              calc(var(--d) * .5) calc(var(--d) * 1) calc(var(--d) * 1.8) color-mix(in srgb, var(--cdd) 32%, transparent); }
.st-clay.poly { box-shadow: none; }

/* Gonflé (le relief vient du filtre SVG) */
.st-puffy { background: var(--c); }

/* Soft / neumorphisme */
.st-soft { background: var(--c);
  box-shadow: var(--d) var(--d) calc(var(--d) * 2.2) color-mix(in srgb, var(--c) 72%, #3a4565),
              calc(var(--d) * -1) calc(var(--d) * -1) calc(var(--d) * 2.2) color-mix(in srgb, var(--c) 30%, #ffffff); }
.st-soft-in { background: var(--c);
  box-shadow: inset calc(var(--d) * .7) calc(var(--d) * .7) calc(var(--d) * 1.4) color-mix(in srgb, var(--c) 72%, #3a4565),
              inset calc(var(--d) * -.7) calc(var(--d) * -.7) calc(var(--d) * 1.4) color-mix(in srgb, var(--c) 25%, #ffffff); }
.st-soft.poly, .st-soft-in.poly { box-shadow: none; }

/* Soft 3D satiné */
.st-soft3d { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 70%, #ffffff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 92%, #6a6ab0) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.9), inset 0 -6px 14px color-mix(in srgb, var(--cd) 18%, transparent),
              0 calc(var(--d) * .6) calc(var(--d) * 1.2) -4px rgba(40,30,110,.12), 0 calc(var(--d) * 1.6) calc(var(--d) * 3) -10px rgba(40,30,110,.22); }
.st-soft3d.poly { box-shadow: none; }

/* Verre dépoli (glassmorphism) */
.st-glass { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 26%, transparent), color-mix(in srgb, var(--c) 8%, transparent));
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  border: 2px solid color-mix(in srgb, var(--c) 42%, transparent);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12), 0 24px 60px -12px rgba(10,6,40,.28); }
.st-glass.poly { border: none; box-shadow: none; }

/* Liquid glass : réfraction + reflets spéculaires */
.st-liquid { background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 45%, rgba(255,255,255,.1));
  -webkit-backdrop-filter: url(#fx-liquid) blur(3px) saturate(185%) brightness(1.06); backdrop-filter: url(#fx-liquid) blur(3px) saturate(185%) brightness(1.06);
  box-shadow: inset 3px 3px 1.5px -1px rgba(255,255,255,.85), inset -2px -2px 1.5px -1px rgba(255,255,255,.55),
              inset 0 0 22px rgba(255,255,255,.18), inset 0 -14px 30px -12px rgba(255,255,255,.25),
              0 22px 50px -10px rgba(0,0,30,.32), 0 0 0 1px rgba(255,255,255,.22); }
.st-liquid::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,.38), rgba(255,255,255,0) 45%), radial-gradient(80% 50% at 90% 110%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%); }
.st-liquid.poly { box-shadow: none; }

/* Holographique */
.st-holo { background: linear-gradient(125deg, rgba(255,210,245,.75), rgba(200,225,255,.75) 30%, rgba(210,255,235,.72) 55%, rgba(255,243,200,.72) 78%, rgba(235,210,255,.75));
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 2px solid rgba(255,255,255,.8);
  box-shadow: inset 0 2px 0 #fff, 0 22px 50px -14px rgba(110,60,180,.35); }

/* Néon */
.st-neon { background: color-mix(in srgb, var(--c) 10%, rgba(5,2,20,.55)); border: 3px solid var(--c);
  box-shadow: 0 0 calc(var(--d) * .5) var(--c), 0 0 calc(var(--d) * 1.5) color-mix(in srgb, var(--c) 60%, transparent), inset 0 0 calc(var(--d) * .9) color-mix(in srgb, var(--c) 45%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.st-neon.poly { border: none; background: color-mix(in srgb, var(--c) 35%, transparent); box-shadow: none; }

/* Dégradé */
.st-gradient { background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 calc(var(--d) * .8) calc(var(--d) * 2) -6px color-mix(in srgb, var(--c) 55%, transparent); }
.st-gradient.poly { box-shadow: none; }

/* Chrome */
.st-chrome { background: linear-gradient(180deg, #ffffff 0%, #e5e7ee 22%, #f8f9fb 42%, #a7acb8 52%, #eceef2 70%, #c9cdd6 100%);
  border: 1.5px solid rgba(255,255,255,.9); box-shadow: inset 0 -3px 8px rgba(0,0,0,.12), 0 18px 38px -12px rgba(30,30,70,.35); }

/* Or */
.st-gold { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 10%, #16130f), #12100c);
  border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent);
  box-shadow: inset 0 0 0 6px #12100c, inset 0 0 0 7px color-mix(in srgb, var(--c) 30%, transparent), 0 30px 60px -20px rgba(0,0,0,.6); }

/* Néo-brutal */
.st-brutal { background: var(--c); border: 4px solid #111; box-shadow: calc(var(--d) * .32 + 4px) calc(var(--d) * .32 + 4px) 0 #111; }
.st-brutal.poly { border: none; box-shadow: none; }
/* Pop (Memphis) */
.st-pop { background: var(--c); border: 3px solid #1e1b3a; box-shadow: 10px 10px 0 color-mix(in srgb, var(--c2) 85%, #1e1b3a); }
.st-pop.poly { border: none; box-shadow: none; }

/* Tuile bento */
.st-tile { background: var(--c); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.16); }
.st-tile.poly { box-shadow: none; }

/* Papier / post-it */
.st-paper { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #ffffff), var(--c));
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 22px -14px rgba(40,30,10,.38), inset 0 -18px 30px -24px rgba(120,90,20,.25); }
.st-paper.poly { box-shadow: none; }

/* Organique */
.st-organic { background: var(--c); box-shadow: inset 0 -10px 30px -10px color-mix(in srgb, var(--cdd) 25%, transparent), 0 26px 40px -24px color-mix(in srgb, var(--cdd) 60%, transparent); }
.st-organic.poly { box-shadow: none; }

/* Autocollant (sticker) */
.st-sticker { background: var(--c); border: 7px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.05), 0 16px 26px -12px rgba(60,30,60,.35); }
.st-sticker.poly { border: none; box-shadow: none; }
/* Craie / croquis */
.st-sketch { background: color-mix(in srgb, var(--c) 8%, transparent); border: 3px dashed color-mix(in srgb, var(--c) 70%, transparent); border-radius: 18px 26px 16px 24px / 24px 16px 26px 18px; }
.st-sketch.poly { border: none; }
/* Cadre technique (plan, code) */
.st-frame { background: color-mix(in srgb, var(--c) 9%, transparent); border: 2px solid color-mix(in srgb, var(--c) 75%, transparent); box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--c) 6%, transparent); }
.st-frame.poly { border: none; background: color-mix(in srgb, var(--c) 30%, transparent); }

/* Contour */
.st-line { background: transparent; border: 3px solid currentColor; border-color: color-mix(in srgb, var(--c) 0%, #111); }
.dark .st-line { border-color: rgba(255,255,255,.85); }

/* ================= MATIÈRES v2 (21/11/2026) =================
   Variables posées par applyStyle : --c couleur, --c2 secondaire/fill2, --cl/--cd/--cdd clair/foncé, --d taille d'ombre,
   --p/--s/--a/--tx/--bgc = primaire, secondaire, accent, texte et fond du thème (elles suivent les variantes de couleur).
   Pas de backdrop-filter ici : tout est en dégradés, ombres et bordures. */

/* Interface Windows 95 : biseau */
.st-bevel { background: var(--c); box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf; }

/* Éditeur de code : panneau sombre + barre d'accent à gauche */
.st-ide { background: var(--c); border: 1px solid rgba(255,255,255,.07); box-shadow: inset 5px 0 0 var(--c2), 0 16px 30px -16px rgba(0,0,0,.7); }

/* HUD de science-fiction : repères d'angle */
.st-hud { --hb: var(--c2);
  background: linear-gradient(var(--hb), var(--hb)) 0 0 / 26px 3px no-repeat, linear-gradient(var(--hb), var(--hb)) 0 0 / 3px 26px no-repeat,
              linear-gradient(var(--hb), var(--hb)) 100% 0 / 26px 3px no-repeat, linear-gradient(var(--hb), var(--hb)) 100% 0 / 3px 26px no-repeat,
              linear-gradient(var(--hb), var(--hb)) 0 100% / 26px 3px no-repeat, linear-gradient(var(--hb), var(--hb)) 0 100% / 3px 26px no-repeat,
              linear-gradient(var(--hb), var(--hb)) 100% 100% / 26px 3px no-repeat, linear-gradient(var(--hb), var(--hb)) 100% 100% / 3px 26px no-repeat,
              linear-gradient(180deg, color-mix(in srgb, var(--c) 94%, transparent), color-mix(in srgb, var(--c) 72%, transparent));
  border: 1px solid color-mix(in srgb, var(--p) 30%, transparent);
  box-shadow: inset 0 0 40px color-mix(in srgb, var(--p) 10%, transparent), 0 0 30px -8px color-mix(in srgb, var(--p) 40%, transparent); }

/* Spotlight (SaaS sombre) : liseré fin + reflet en haut */
.st-spot { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.012)), var(--c); border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 60px -30px rgba(0,0,0,.85); }

/* Glitch : bords décalés en rouge/cyan */
.st-glitch { background: var(--c); border: 2px solid rgba(255,255,255,.88); box-shadow: -6px 0 0 -1px var(--p), 6px 0 0 -1px var(--s), inset 0 0 0 1px rgba(255,255,255,.08); }

/* Frutiger Aero : verre brillant avec reflet à mi-hauteur */
.st-aero { background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.62) 48%, rgba(214,242,255,.5) 52%, rgba(255,255,255,.8) 100%), var(--c);
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #fff, inset 0 -10px 18px -10px color-mix(in srgb, var(--p) 35%, transparent), 0 14px 26px -10px color-mix(in srgb, var(--p) 55%, #0a2a4a); }

/* Papier découpé : feuille posée sur une feuille plus claire, ombres étagées */
.st-cut { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 88%, #fff), var(--c));
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--c) 42%, #fffaf0), 0 16px 18px -2px rgba(40,25,10,.3), 0 28px 32px -10px rgba(40,25,10,.26), inset 0 1px 0 rgba(255,255,255,.6); }

/* Vitrail : verre coloré cerné de plomb */
.st-lead { background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--c) 68%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000));
  border: 7px solid #140e1c; box-shadow: inset 0 0 0 2px rgba(255,255,255,.14), inset 0 0 36px rgba(0,0,0,.35), 0 0 36px -6px color-mix(in srgb, var(--c) 70%, transparent), 0 0 0 1px rgba(255,214,120,.25); }

/* Manga : case de planche, double filet noir */
.st-panel { background: var(--c); border: 6px solid #0b0b0b; box-shadow: inset 0 0 0 3px var(--c), inset 0 0 0 5px #0b0b0b; }

/* Zine : papier déchiré (découpe haut et bas, ombre portée par l'enveloppe) */
.st-torn { background: var(--c);
  clip-path: polygon(0 5px, 3% 0, 7% 6px, 12% 1px, 17% 7px, 23% 0, 29% 5px, 35% 1px, 41% 7px, 47% 0, 53% 6px, 59% 1px, 65% 7px, 71% 0, 77% 5px, 83% 1px, 89% 6px, 95% 0, 100% 4px,
                     100% calc(100% - 4px), 94% calc(100% - 1px), 88% calc(100% - 7px), 82% 100%, 76% calc(100% - 5px), 70% calc(100% - 1px), 64% calc(100% - 7px), 58% 100%, 52% calc(100% - 6px), 46% calc(100% - 1px), 40% calc(100% - 7px), 34% 100%, 28% calc(100% - 5px), 22% calc(100% - 1px), 16% calc(100% - 7px), 10% 100%, 5% calc(100% - 6px), 0 calc(100% - 2px)); }

/* Gazette : filets de presse (double en haut, simple en bas), papier un peu vieilli */
.st-press { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 96%, #fff), var(--c)); border-top: 7px double var(--tx); border-bottom: 2px solid var(--tx);
  box-shadow: inset 0 0 50px color-mix(in srgb, #a9803a 14%, transparent), 0 14px 22px -16px rgba(0,0,0,.4); }

/* Ticket de caisse : bas en dents de scie */
.st-receipt { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 94%, #fff), var(--c));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%; }

/* Courrier : papier à lettres, filet en pointillés à l'intérieur */
.st-letter { background: var(--c); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 26px -16px color-mix(in srgb, var(--tx) 55%, transparent);
  outline: 2px dashed color-mix(in srgb, var(--s) 55%, transparent); outline-offset: -14px; }

/* Bois : plaque de chêne veinée */
.st-wood { background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.007 .26' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .09 0 0 0 0 .02 0 0 0 1.15 -.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E") 0 0 / 520px 260px,
              linear-gradient(180deg, color-mix(in srgb, var(--c) 90%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 88%, #000));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.2), 0 14px 22px -10px rgba(0,0,0,.65), 0 0 0 3px rgba(0,0,0,.28); }

/* Marbre : blanc veiné, liseré de métal en bas */
.st-marble { background: linear-gradient(125deg, transparent 0 36%, rgba(110,125,150,.1) 36.3% 36.9%, transparent 37.2% 61%, rgba(110,125,150,.08) 61.3% 62%, transparent 62.3%), linear-gradient(180deg, #ffffff, var(--c));
  border-bottom: 6px solid var(--c2); box-shadow: 0 18px 30px -20px rgba(30,50,90,.5), inset 0 0 0 1px rgba(30,60,110,.12); }

/* Denim / cuir : surpiqûres en pointillés */
.st-stitch { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 94%, #fff), var(--c)); box-shadow: 0 12px 20px -10px rgba(0,0,0,.55), inset 0 2px 8px rgba(0,0,0,.25); }
.st-stitch::before { content: ''; position: absolute; inset: 11px; border: 3px dashed var(--p); border-radius: inherit; opacity: .92; pointer-events: none; }

/* Liège : papier épinglé */
.st-pin { background: linear-gradient(170deg, color-mix(in srgb, var(--c) 92%, #fff), var(--c)); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 16px -8px rgba(60,30,10,.55), 0 3px 4px rgba(60,30,10,.18); }
.st-pin::before { content: ''; position: absolute; left: 50%; top: -12px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.85) 0 2.5px, transparent 4.5px), radial-gradient(circle at 50% 50%, var(--p), color-mix(in srgb, var(--p) 55%, #000)); box-shadow: 0 5px 5px -1px rgba(0,0,0,.4); }

/* Cinéma : pellicule avec perforations en haut et en bas */
.st-film { background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(246,236,206,.88) 12px 26px, transparent 26px 38px) left 0 top 9px / 100% 12px no-repeat,
                       repeating-linear-gradient(90deg, transparent 0 12px, rgba(246,236,206,.88) 12px 26px, transparent 26px 38px) left 0 bottom 9px / 100% 12px no-repeat,
                       linear-gradient(180deg, color-mix(in srgb, var(--c) 100%, #fff 5%), var(--c));
  border: 1px solid color-mix(in srgb, var(--p) 30%, transparent); box-shadow: 0 20px 36px -18px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.04); }

/* Carbone : tissage croisé + filet d'accent */
.st-carbon { background: repeating-linear-gradient(45deg, rgba(0,0,0,.28) 0 3px, transparent 3px 6px), repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 3px, transparent 3px 6px), linear-gradient(180deg, color-mix(in srgb, var(--c) 100%, #fff 6%), var(--c));
  border-top: 4px solid var(--p); box-shadow: 0 18px 30px -16px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.05); }

/* Psyché : anneaux concentriques autour de la carte */
.st-groovy { background: var(--c); box-shadow: 0 0 0 6px var(--bgc), 0 0 0 12px var(--s), 0 0 0 18px var(--bgc), 0 24px 30px -8px rgba(0,0,0,.5); }

/* Low poly : coins coupés (l'ombre passe par un filtre) */
.st-facet { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 85%, #000)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.16);
  clip-path: polygon(0 26px, 26px 0, calc(100% - 26px) 0, 100% 26px, 100% calc(100% - 26px), calc(100% - 26px) 100%, 26px 100%, 0 calc(100% - 26px)); }

/* Azulejo : carreau avec double bordure bleue */
.st-azul { background: var(--c); border: 4px solid var(--p); box-shadow: inset 0 0 0 6px var(--c), inset 0 0 0 8px color-mix(in srgb, var(--p) 55%, transparent), 0 14px 24px -14px color-mix(in srgb, var(--p) 60%, transparent); }

/* Steampunk : plaque de laiton rivetée */
.st-rivet { --rv: radial-gradient(circle, rgba(255,255,255,.8) 0 1.5px, color-mix(in srgb, var(--cdd) 70%, transparent) 2.5px 5px, transparent 6px);
  background: var(--rv) left 9px top 9px / 14px 14px no-repeat, var(--rv) right 9px top 9px / 14px 14px no-repeat, var(--rv) left 9px bottom 9px / 14px 14px no-repeat, var(--rv) right 9px bottom 9px / 14px 14px no-repeat,
              linear-gradient(150deg, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 42%, color-mix(in srgb, var(--c) 78%, #000) 100%);
  border: 3px solid color-mix(in srgb, var(--cdd) 70%, transparent); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 6px rgba(0,0,0,.25), 0 14px 24px -10px rgba(0,0,0,.7); }

/* Washi : papier de riz, bande vermillon sur le côté */
.st-washi { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 96%, #fff), var(--c)); box-shadow: inset 10px 0 0 var(--p), 0 14px 24px -14px rgba(0,0,0,.55); }

/* Flux (SaaS clair) : filet fin et grandes ombres douces */
.st-flow { background: var(--c); border: 1px solid rgba(50,50,93,.1); box-shadow: 0 50px 100px -20px rgba(50,50,93,.22), 0 30px 60px -30px rgba(0,0,0,.28), inset 0 -2px 6px rgba(10,37,64,.04); }

/* Web brut : cadre noir et double contour */
.st-raw { background: var(--c); border: 3px solid #000; outline: 1px solid #000; outline-offset: 4px; }

/* De Stijl : aplat cerné de noir épais */
.st-block { background: var(--c); border: 8px solid #111; }

/* découpes : pas de bordure / ombre / pseudo-éléments sur les formes polygonales */
.st-bevel.poly, .st-ide.poly, .st-hud.poly, .st-spot.poly, .st-glitch.poly, .st-aero.poly, .st-cut.poly, .st-lead.poly, .st-panel.poly, .st-press.poly, .st-letter.poly, .st-wood.poly,
.st-marble.poly, .st-stitch.poly, .st-pin.poly, .st-film.poly, .st-carbon.poly, .st-groovy.poly, .st-azul.poly, .st-rivet.poly, .st-washi.poly, .st-flow.poly, .st-raw.poly, .st-block.poly { border: none; box-shadow: none; outline: none; }
.st-stitch.poly::before, .st-pin.poly::before { display: none; }
.dv-code, .dv-hud, .dv-rays, .dv-chips, .dv-lowpoly, .dv-veins { overflow: hidden; }
.tfx-label { padding: .02em .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ================= OBJETS 3D ================= */
.o3d { position: absolute; }
.o3d.glassy { -webkit-backdrop-filter: blur(5px) saturate(160%); backdrop-filter: blur(5px) saturate(160%); }
.o3d.morph { animation: es-morph 9s ease-in-out infinite; animation-play-state: var(--morph, paused); }
.pl-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pl-ring { width: 104%; height: 30%; border-radius: 50%; border-style: solid; rotate: -16deg; box-sizing: border-box; }
.pl-ring.front { clip-path: inset(50% 0 0 0); }

/* ================= IMAGES ================= */
.img-frame { overflow: visible; }
.img-inner { position: absolute; inset: 0; overflow: hidden; }
.img-inner img { width: 100%; height: 100%; display: block; }
.img-ov { position: absolute; inset: 0; }
.fr-polaroid { background: #fff; box-shadow: 0 24px 40px -18px rgba(0,0,0,.45); }
.fr-polaroid .img-inner { inset: 5% 5% 18% 5%; }
.fr-polaroid .pol-cap { position: absolute; left: 0; right: 0; bottom: 3%; text-align: center; font-size: 44px; color: #333; }
.fr-clay .img-inner, .fr-glass .img-inner, .fr-neon .img-inner { inset: 4.5%; }
.fr-tilt { box-shadow: 0 34px 60px -24px rgba(0,0,0,.5); }
.fr-tilt .img-inner { box-shadow: inset 0 0 0 10px rgba(255,255,255,.9); }
.fr-rounded .img-inner { box-shadow: 0 0 0 0 transparent; }
.fr-rounded, .fr-circle, .fr-blob, .fr-arch { box-shadow: 0 30px 60px -28px rgba(0,0,0,.45); }
.img-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; border: 3px dashed rgba(127,127,160,.45); box-sizing: border-box; }
.img-ph .ph-ico { width: 18%; max-width: 120px; height: auto; aspect-ratio: 1; opacity: .7; }
.img-ph .ph-lab { font-size: 28px; font-weight: 600; text-align: center; padding: 0 8%; }

/* ================= GRAPHIQUES ================= */
.chart { display: flex; }
.bars { display: flex; align-items: stretch; gap: 3%; width: 100%; height: 100%; }
.bgrp { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.btrack { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; position: relative; }
.bars:not(.horiz) .bar { position: relative; min-height: 6px; width: 72%; margin: 0 auto; }
.bars:not(.horiz) .bval { text-align: center; font-weight: 800; font-size: 1.15em; margin-bottom: .3em; order: -1; }
.blab { text-align: center; margin-top: .5em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars.horiz { flex-direction: column; gap: 4%; }
.bars.horiz .bgrp { flex-direction: row; align-items: center; gap: 2%; }
.bars.horiz .blab { width: 24%; text-align: right; margin: 0; }
.bars.horiz .btrack { flex-direction: row; justify-content: flex-start; height: 62%; flex: 1; }
.bars.horiz .bar { height: 100%; position: relative; }
.bars.horiz .bval { width: 12%; font-weight: 800; }
.ch-donut, .ch-pie { align-items: center; gap: 6%; }
.pie-wrap { position: relative; height: 100%; aspect-ratio: 1; flex: none; }
.pie-fx, .pie { position: absolute; inset: 0; border-radius: 50%; }
.pie-ctr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4em; }
.legend { display: flex; flex-direction: column; gap: .7em; flex: 1; min-width: 0; }
.lgd { display: flex; align-items: center; gap: .6em; }
.lgd i { width: .9em; height: .9em; border-radius: 30%; flex: none; }
.lgd span { flex: 1; opacity: .9; }
.lgd b { font-size: 1.1em; }
.line-svg { position: absolute; inset: 0 0 12% 0; width: 100%; height: 88%; overflow: visible; }
.line-dots { position: absolute; inset: 0 0 12% 0; }
.ldot { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 7px solid; box-sizing: border-box; transform: translate(-50%, -50%); }
.ldot .lv { position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%); font-weight: 800; white-space: nowrap; font-size: 1.05em; }
.ldot .ll { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: .75; }
.ldot .ll { margin-top: 10px; }
.rings { display: flex; width: 100%; height: 100%; gap: 4%; justify-content: center; }
.ring-it { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .6em; min-width: 0; max-width: 34%; }
.ring-h { position: relative; width: 100%; aspect-ratio: 1; max-height: 80%; }
.ring-fx, .ring-c { position: absolute; inset: 0; border-radius: 50%; }
.ring-c { -webkit-mask-image: radial-gradient(circle closest-side, transparent 68%, #000 69%); }
.ring-v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.7em; }
.ring-l { text-align: center; opacity: .85; }
.progs { display: flex; flex-direction: column; justify-content: space-around; width: 100%; height: 100%; }
.prog-top { display: flex; justify-content: space-between; margin-bottom: .4em; }
.prog-tr { height: 1.05em; border-radius: 999px; overflow: visible; position: relative; }
.prog-tr .bar { height: 100%; position: relative; }

/* ================= TABLEAU ================= */
.tbl-wrap { padding: 2.2% 3%; overflow: hidden; }
.tbl { width: 100%; height: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: .45em .6em; border-bottom: 2px solid; }
.tbl tr:last-child td { border-bottom: none; }
.tbl th { font-weight: 800; }

/* ================= DÉCORS ================= */
.deco-grid { position: absolute; left: -40%; right: -40%; top: 0; height: 160%; background-size: 110px 110px; transform-origin: 50% 0; transform: perspective(520px) rotateX(62deg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); }
/* Aperçus : perspective 2D (écrasement vertical) — une vraie transformation 3D créait une couche GPU
   et forçait TOUS les aperçus suivants en couches pleine taille (128 couches / 144 Mpx sur l'accueil). */
.slide.lite .deco-grid { transform: scaleY(.47); }
.deco-hz { position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.deco-star { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%; }

/* ================= ÉDITEUR RAPIDE ================= */
/* Liquid glass : flou GPU au lieu de la distorsion SVG (recalculée sur le CPU à chaque repeinture) */
.slide.edit-fast .st-liquid { -webkit-backdrop-filter: blur(4px) saturate(185%) brightness(1.06); backdrop-filter: blur(4px) saturate(185%) brightness(1.06); }
/* (Ancienne règle « .dragging » qui coupait flous et filtres pendant un glisser : retirée — sur PC modeste,
   repeindre tout le canevas au début et à la fin du geste coûtait plus cher que de garder les effets.) */
/* Élément en cours de redimensionnement : effets coûteux coupés le temps du geste */
.slide .el.fast .fx, .slide .el.fast .ico { filter: none !important; }
.slide .el.fast .body { -webkit-backdrop-filter: blur(8px) !important; backdrop-filter: blur(8px) !important; }

/* ================= RENDU ALLÉGÉ (miniatures / mode Économie) ================= */
.slide.lite .fx, .slide.lite .ico, .slide.lite .pie-fx, .slide.lite .ring-fx, .slide.lite .line-svg path { filter: none !important; }
.slide.lite .body, .slide.lite .o3d, .slide.lite .bar { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.slide.lite .st-liquid { background: linear-gradient(160deg, rgba(255,255,255,.26), rgba(255,255,255,.1)); }
.slide.lite .st-glass { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 14%, transparent)); }
.slide.lite .dv-noise, .slide.lite .dv-woodgrain { display: none; }
.slide.lite .st-receipt { -webkit-mask: none; mask: none; }
/* aperçus : pas de masques de fondu sur les décors (chaque masque crée une surface GPU pleine taille) */
.slide.lite .el.is-decor .body { -webkit-mask-image: none !important; mask-image: none !important; }
.slide.lite .st-wood { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 90%, #fff), var(--c)); }
.slide.lite, .slide.lite * { animation: none !important; transition: none !important; }

/* ================= ANIMATIONS ================= */
.floating { animation: es-float 6s ease-in-out infinite; }
.floating .morph { --morph: running; }
@keyframes es-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -18px, 0); } }
@keyframes es-morph { 0%, 100% { border-radius: 58% 42% 49% 51% / 47% 54% 46% 53%; } 33% { border-radius: 42% 58% 61% 39% / 56% 38% 62% 44%; } 66% { border-radius: 51% 49% 38% 62% / 41% 60% 40% 59%; } }
.anim { animation-fill-mode: both; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
.anim-fade { animation-name: a-fade; }
.anim-up { animation-name: a-up; }
.anim-down { animation-name: a-down; }
.anim-left { animation-name: a-left; }
.anim-right { animation-name: a-right; }
.anim-zoom { animation-name: a-zoom; }
.anim-pop { animation-name: a-pop; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.anim-blur { animation-name: a-blur; }
.anim-spin { animation-name: a-spin; }
.anim-drop { animation-name: a-drop; animation-timing-function: cubic-bezier(.34, 1.4, .64, 1); }
.anim-flip { animation-name: a-flip; }
.anim-type { animation-name: a-type; animation-timing-function: steps(24, end); }
@keyframes a-fade { from { opacity: 0; } }
@keyframes a-up { from { opacity: 0; transform: translateY(80px); } }
@keyframes a-down { from { opacity: 0; transform: translateY(-80px); } }
@keyframes a-left { from { opacity: 0; transform: translateX(120px); } }
@keyframes a-right { from { opacity: 0; transform: translateX(-120px); } }
@keyframes a-zoom { from { opacity: 0; transform: scale(.6); } }
@keyframes a-pop { 0% { opacity: 0; transform: scale(.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes a-blur { from { opacity: 0; filter: blur(30px); transform: scale(1.08); } }
@keyframes a-spin { from { opacity: 0; transform: rotate(-200deg) scale(.4); } }
@keyframes a-drop { from { opacity: 0; transform: translateY(-260px); } }
@keyframes a-flip { from { opacity: 0; transform: perspective(900px) rotateY(80deg); } }
@keyframes a-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ================= VIDÉO ================= */
.vid video { width: 100%; height: 100%; display: block; background: #000; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 18%; max-width: 140px; min-width: 40px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: rgba(15, 15, 25, .45); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.55); }
.vid-play svg { width: 42%; height: 42%; margin-left: 8%; }
.vid-miss { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; color: #fff; font: 600 26px 'Inter', sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* ExpoStudio — mode présentation */
#player { position: fixed; inset: 0; z-index: 9999; background: #000; overflow: hidden; cursor: none; outline: none; user-select: none; }
#player.mouse { cursor: default; }
#player.laser, #player.laser.mouse { cursor: none; }
.pl-stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 50% 50%; perspective: 2400px; }
.pl-slide { position: absolute !important; inset: 0; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.08); opacity: 0; transition: opacity .3s; }
.pl-prog { height: 100%; width: 0; background: linear-gradient(90deg, #8b7bff, #ff6fd8, #ffc04d); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.pl-hud { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(10px); display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px;
  background: rgba(20,18,40,.45); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 30px rgba(0,0,0,.35); color: #fff; font: 600 14px 'Inter', system-ui, sans-serif; opacity: 0; transition: opacity .3s, transform .3s; }
#player.mouse .pl-hud, #player.mouse .pl-bar { opacity: 1; transform: translateX(-50%); }
#player.mouse .pl-bar { transform: none; }
.pl-hud button { all: unset; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; color: #fff; }
.pl-hud button:hover { background: rgba(255,255,255,.16); }
.pl-count { min-width: 64px; text-align: center; opacity: .9; }
.pl-notes { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); width: min(900px, 80vw); max-height: 30vh; overflow: auto; padding: 18px 22px; border-radius: 22px;
  background: rgba(14,12,30,.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); color: #f2f0ff; font: 500 18px/1.5 'Inter', sans-serif; display: none; white-space: pre-wrap; border: 1px solid rgba(255,255,255,.14); }
#player.show-notes .pl-notes { display: block; }
.pl-laser { position: fixed; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, #ff2d55 30%, rgba(255,45,85,.0) 72%); box-shadow: 0 0 24px 8px rgba(255,45,85,.55); pointer-events: none; display: none; }
#player.laser .pl-laser { display: block; }
.pl-black { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .4s; }
#player.black .pl-black { opacity: 1; }

/* Chronomètre (T), saisie d'un numéro de page, aide des raccourcis (? ou H) : simples pastilles, sans flou ni animation */
.pl-timer, .pl-goto { position: absolute; display: none; padding: 8px 16px; border-radius: 999px; background: rgba(14,12,30,.78); border: 1px solid rgba(255,255,255,.18); color: #fff;
  font: 700 20px/1 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; pointer-events: none; }
.pl-timer { top: 18px; right: 22px; }
#player.show-timer .pl-timer { display: block; }
.pl-timer.warn { background: rgba(214,130,20,.94); } .pl-timer.over { background: rgba(200,40,60,.95); }
.pl-goto { top: 18px; left: 50%; transform: translateX(-50%); }
.pl-goto.on { display: block; }
.pl-help { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(560px, 90vw); display: none; padding: 22px 26px; border-radius: 22px;
  background: rgba(14,12,30,.95); border: 1px solid rgba(255,255,255,.16); color: #f2f0ff; font: 500 15px/1.5 'Inter', system-ui, sans-serif; }
#player.show-help .pl-help { display: block; }
.pl-help b { display: block; margin-bottom: 10px; font-size: 17px; }
.pl-help div { display: flex; gap: 14px; padding: 3px 0; align-items: baseline; }
.pl-help kbd { flex: 0 0 170px; font: 700 13px 'Inter', system-ui, sans-serif; color: #c9c2ff; }

@media (max-width: 560px) { .pl-hud [data-a="laser"], .pl-hud [data-a="help"], .pl-hud [data-a="timer"] { display: none; } }   /* téléphone : barre plus courte */

/* Transitions */
.tr-in, .tr-out { animation-duration: .8s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.65,0,.25,1); }
.tr-fade.tr-in { animation-name: tf-in; } .tr-fade.tr-out { animation-name: tf-out; }
@keyframes tf-in { from { opacity: 0; } } @keyframes tf-out { to { opacity: 0; } }
.tr-slide.tr-in { animation-name: ts-in; } .tr-slide.tr-out { animation-name: ts-out; }
@keyframes ts-in { from { transform: translateX(calc(var(--dir) * 100%)); } } @keyframes ts-out { to { transform: translateX(calc(var(--dir) * -100%)); } }
.tr-zoom.tr-in { animation-name: tz-in; } .tr-zoom.tr-out { animation-name: tz-out; }
@keyframes tz-in { from { opacity: 0; transform: scale(1.25); } } @keyframes tz-out { to { opacity: 0; transform: scale(.85); } }
.tr-blur.tr-in { animation-name: tb-in; } .tr-blur.tr-out { animation-name: tb-out; }
@keyframes tb-in { from { opacity: 0; filter: blur(40px); } } @keyframes tb-out { to { opacity: 0; filter: blur(40px); } }
.tr-flip.tr-in { animation-name: tfl-in; backface-visibility: hidden; } .tr-flip.tr-out { animation-name: tfl-out; backface-visibility: hidden; }
@keyframes tfl-in { from { transform: rotateY(calc(var(--dir) * -180deg)); } } @keyframes tfl-out { to { transform: rotateY(calc(var(--dir) * 180deg)); } }
.tr-cube.tr-in { animation-name: tc-in; transform-origin: calc(50% - var(--dir) * 50%) 50%; } .tr-cube.tr-out { animation-name: tc-out; transform-origin: calc(50% + var(--dir) * 50%) 50%; }
@keyframes tc-in { from { transform: translateX(calc(var(--dir) * 100%)) rotateY(calc(var(--dir) * 90deg)); filter: brightness(.6); } }
@keyframes tc-out { to { transform: translateX(calc(var(--dir) * -100%)) rotateY(calc(var(--dir) * -90deg)); filter: brightness(.6); } }
.tr-rise.tr-in { animation-name: tr-rin; } .tr-rise.tr-out { animation-name: tr-rout; }
@keyframes tr-rin { from { transform: translateY(100%) scale(.9); border-radius: 60px; } } @keyframes tr-rout { to { transform: scale(.88); opacity: .3; filter: blur(6px); } }
.tr-iris.tr-in { animation-name: ti-in; } .tr-iris.tr-out { animation-name: tf-out; animation-delay: .3s; }
@keyframes ti-in { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
/* Autres transitions : uniquement transform / opacité / clip-path (légères, pas de flou). --dir = 1 en avant, -1 en arrière */
.tr-curtain.tr-in { animation-name: tcu-in; } .tr-curtain.tr-out { animation-name: tcu-out; }
@keyframes tcu-in { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } } @keyframes tcu-out { to { transform: scale(.94); opacity: .5; } }
.tr-zoomthru.tr-out { animation-name: tzt-out; z-index: 2; } .tr-zoomthru.tr-in { animation-name: tzt-in; }
@keyframes tzt-out { to { opacity: 0; transform: scale(calc(1.4 + var(--dir) * 1)); } } @keyframes tzt-in { from { opacity: 0; transform: scale(calc(1.175 - var(--dir) * .625)); } }
.tr-slide3d.tr-in { animation-name: t3-in; } .tr-slide3d.tr-out { animation-name: t3-out; }
@keyframes t3-in { from { opacity: 0; transform: translateX(calc(var(--dir) * 55%)) rotateY(calc(var(--dir) * -38deg)) scale(.9); } }
@keyframes t3-out { to { opacity: 0; transform: translateX(calc(var(--dir) * -55%)) rotateY(calc(var(--dir) * 38deg)) scale(.9); } }
.tr-door.tr-out { animation-name: td-out; z-index: 2; transform-origin: calc(50% - var(--dir) * 50%) 50%; backface-visibility: hidden; } .tr-door.tr-in { animation-name: td-in; }
@keyframes td-out { 70% { opacity: 1; } to { transform: rotateY(calc(var(--dir) * -100deg)); opacity: 0; } } @keyframes td-in { from { transform: scale(.92); opacity: .4; } }
.tr-wipe.tr-in { animation-name: tw-in; }
@keyframes tw-in { from { clip-path: inset(0 calc(var(--dir) * 50% + 50%) 0 calc(50% - var(--dir) * 50%)); } to { clip-path: inset(0 0 0 0); } }
.tr-wash.tr-in { animation-name: twa-in; }
.tr-wash.tr-in::after { content: ''; position: absolute; inset: 0; z-index: 60; background: var(--wash, #6a5cff); pointer-events: none; animation: twa-veil .8s cubic-bezier(.65,0,.25,1) both; }
@keyframes twa-in { 0% { opacity: 0; } 38% { opacity: 1; } 100% { opacity: 1; } } @keyframes twa-veil { 0%, 40% { opacity: 1; } 100% { opacity: 0; } }
.tr-streak.tr-in { animation-name: tst-in; animation-timing-function: cubic-bezier(.16,1,.3,1); } .tr-streak.tr-out { animation-name: tst-out; animation-timing-function: cubic-bezier(.7,0,.84,0); }
@keyframes tst-in { from { opacity: 0; transform: translateX(calc(var(--dir) * 75%)) skewX(calc(var(--dir) * -16deg)) scaleX(1.35); } }
@keyframes tst-out { to { opacity: 0; transform: translateX(calc(var(--dir) * -50%)) skewX(calc(var(--dir) * 16deg)) scaleX(1.35); } }
.tr-stack.tr-in { animation-name: tsk-in; z-index: 2; } .tr-stack.tr-out { animation-name: tsk-out; }
@keyframes tsk-in { from { transform: translateX(calc(var(--dir) * 100%)); } } @keyframes tsk-out { to { transform: translateX(calc(var(--dir) * -14%)) scale(.88); opacity: .4; } }
.tr-drop.tr-in { animation-name: tdr-in; z-index: 2; animation-timing-function: cubic-bezier(.34,1.35,.64,1); } .tr-drop.tr-out { animation-name: tdr-out; }
@keyframes tdr-in { from { transform: translateY(-105%); } } @keyframes tdr-out { to { transform: scale(.9); opacity: .2; } }

/* Animations d'entrée supplémentaires (le reste est dans slide.css). Choisies dans l'inspecteur > Animation */
.anim-bounce { animation-name: a-bounce; animation-timing-function: linear; }
@keyframes a-bounce {
  0% { opacity: 0; transform: translateY(-260px); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  38% { opacity: 1; transform: translateY(0); animation-timing-function: cubic-bezier(0,.55,.45,1); }
  56% { transform: translateY(-60px); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  72% { transform: translateY(0); animation-timing-function: cubic-bezier(0,.55,.45,1); }
  84% { transform: translateY(-18px); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  100% { transform: translateY(0); } }
.anim-elastic { animation-name: a-elastic; animation-timing-function: ease-out; }
@keyframes a-elastic { 0% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; transform: scale(1.18); } 60% { transform: scale(.92); } 78% { transform: scale(1.05); } 100% { transform: scale(1); } }
.anim-reveal { animation-name: a-reveal; animation-timing-function: cubic-bezier(.65,0,.25,1); }
@keyframes a-reveal { from { opacity: 0; clip-path: inset(0 100% 0 -40px); transform: translateX(-30px); } 25% { opacity: 1; } to { clip-path: inset(-200px -200px -200px -200px); transform: none; } }
.anim-grow { animation-name: a-grow; }
@keyframes a-grow { from { opacity: 0; transform: translateY(47.5%) scaleY(.05); } 40% { opacity: 1; } to { transform: translateY(0) scaleY(1); } }
.anim-skew { animation-name: a-skew; }
@keyframes a-skew { from { opacity: 0; transform: translateX(-280px) skewX(28deg); } to { transform: translateX(0) skewX(0); } }
.anim-roll { animation-name: a-roll; }
@keyframes a-roll { from { opacity: 0; transform: translateX(-320px) rotate(-200deg); } to { transform: translateX(0) rotate(0); } }
.anim-tilt { animation-name: a-tilt; }
@keyframes a-tilt { from { opacity: 0; transform: perspective(900px) rotateX(70deg) translateY(70px); } to { transform: perspective(900px) rotateX(0) translateY(0); } }

/* Page HTML autonome */
body.standalone { margin: 0; background: #000; }

/* ExpoStudio — Interface : liquid glass · glassmorphism · clay 3D · soft 3D */
:root {
  --bg: #0d0d12; --bg2: #14141b;
  --txt: #ecebf3; --txt2: #a9a7ba; --txt3: #73718a;
  --a1: #9b93d8; --a2: #c9a0c0; --a3: #8fbfcc; --a4: #d8b97f; --ok: #7fcfa8; --err: #e08a98;
  --acc: #8c84cf; --acc2: #a596cf;           /* accent principal (lavande désaturée) */
  --glass: rgba(26, 26, 36, .9); --glass2: rgba(255, 255, 255, .05); --glass-b: rgba(255, 255, 255, .08); --glass-hl: rgba(255, 255, 255, .1);
  --panel-a: rgba(28, 28, 38, .96); --panel-b: rgba(21, 21, 29, .97);
  --lg-a: rgba(44, 43, 58, .94); --lg-b: rgba(28, 28, 38, .95); --lg-c: rgba(36, 35, 48, .95);
  --soft-bg: #18181f; --soft-dk: rgba(0, 0, 0, .5); --soft-lt: rgba(255, 255, 255, .045);
  --field: rgba(0, 0, 0, .25);
  --r-lg: 26px; --r-md: 18px; --r-sm: 12px;
  --ui: 'Outfit', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --tb-h: 56px;
  color-scheme: dark;
}
[data-ui="nacre"] {
  --bg: #e8e9ef; --bg2: #f4f5f8;
  --txt: #1d1c28; --txt2: #55536a; --txt3: #8b8a9c;
  --glass: rgba(250, 250, 253, .92); --glass2: rgba(20, 20, 40, .04); --glass-b: rgba(30, 30, 60, .09); --glass-hl: rgba(255, 255, 255, .95);
  --panel-a: rgba(252, 252, 254, .97); --panel-b: rgba(244, 244, 248, .97);
  --lg-a: rgba(255, 255, 255, .97); --lg-b: rgba(246, 246, 250, .97); --lg-c: rgba(250, 250, 253, .97);
  --soft-bg: #e6e8f2; --soft-dk: rgba(90, 96, 140, .28); --soft-lt: rgba(255, 255, 255, .95);
  --field: rgba(255, 255, 255, .55);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--txt); font-family: var(--ui); font-size: 14px; -webkit-font-smoothing: antialiased; user-select: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }
svg[data-i], .ico-ui { width: 18px; height: 18px; flex: none; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(140, 130, 200, .25); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(160, 155, 200, .45); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Fond ambiant (statique : zéro coût GPU) ---------- */
#ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 600px at 8% -10%, rgba(120, 110, 200, .16), transparent 70%),
              radial-gradient(800px 600px at 100% 20%, rgba(190, 140, 170, .08), transparent 70%),
              radial-gradient(1000px 700px at 50% 120%, rgba(110, 140, 190, .10), transparent 70%), var(--bg); }
#ambient i { display: none; }
[data-ui="nacre"] #ambient { background: radial-gradient(900px 600px at 8% -10%, rgba(150, 140, 230, .18), transparent 70%), radial-gradient(1000px 700px at 50% 120%, rgba(160, 190, 230, .2), transparent 70%), var(--bg); }

/* ---------- Matières de l'interface ----------
   Verre « simulé » : dégradés + liserés lumineux + ombres, sans backdrop-filter (beaucoup plus fluide) */
.glass-panel { background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--glass-b); box-shadow: inset 0 1px 0 var(--glass-hl), 0 18px 40px -24px rgba(0, 0, 0, .6); }
.lg { background: linear-gradient(165deg, var(--lg-a), var(--lg-b) 55%, var(--lg-c));
  box-shadow: inset 1.5px 1.5px 0 -0.5px rgba(255, 255, 255, .28), inset -1px -1px 0 -0.5px rgba(255, 255, 255, .12), 0 14px 36px -18px rgba(0, 0, 0, .7), 0 0 0 1px var(--glass-b); }
[data-ui="nacre"] .lg { box-shadow: inset 1.5px 1.5px 0 -0.5px #fff, 0 14px 36px -20px rgba(60, 60, 110, .3), 0 0 0 1px rgba(255, 255, 255, .9); }
.soft-in { background: var(--field); box-shadow: inset 3px 3px 7px var(--soft-dk), inset -2px -2px 6px var(--soft-lt); border: 1px solid transparent; }
.soft-out { background: var(--soft-bg); box-shadow: 6px 6px 14px var(--soft-dk), -4px -4px 12px var(--soft-lt); }

/* ---------- Boutons ---------- */
button { cursor: pointer; }
.ib { all: unset; box-sizing: border-box; cursor: pointer; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--txt2); transition: background .15s, color .15s, transform .15s; flex: none; }
.ib:hover { background: var(--glass2); color: var(--txt); }
.ib:active { transform: scale(.94); }
.ib.sm { width: 30px; height: 30px; border-radius: 10px; }
.ib.on { background: rgba(150, 144, 210, .22); color: var(--txt); }
.ib:disabled { opacity: .35; pointer-events: none; }
.pill-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; white-space: nowrap; transition: transform .15s, background .15s; }
.pill-btn:active { transform: scale(.96); }
.glass-btn { background: var(--glass2); border: 1px solid var(--glass-b); box-shadow: inset 0 1px 0 var(--glass-hl); }
.glass-btn:hover { background: rgba(255, 255, 255, .12); }
.big { height: 50px !important; padding: 0 24px !important; font-size: 16px; }
.clay-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 700; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  box-shadow: inset 3px 4px 7px rgba(255, 255, 255, .45), inset -4px -5px 10px rgba(30, 26, 60, .45), 0 10px 22px -6px rgba(60, 55, 110, .5);
  transition: transform .15s, filter .15s; text-shadow: 0 1px 2px rgba(20, 18, 40, .3); }
.clay-btn:hover { filter: brightness(1.08) saturate(1.1); transform: translateY(-1px); }
.clay-btn:active { transform: translateY(1px) scale(.97); box-shadow: inset 2px 3px 6px rgba(255, 255, 255, .35), inset -3px -3px 8px rgba(30, 26, 60, .45), 0 4px 10px -4px rgba(60, 55, 110, .5); }
.clay-btn.round { width: 42px; height: 42px; padding: 0; }
.clay-btn.mint { background: linear-gradient(135deg, #3be3a5, #22b7e6); box-shadow: inset 3px 4px 7px rgba(255, 255, 255, .45), inset -4px -5px 10px rgba(0, 80, 90, .45), 0 10px 22px -6px rgba(30, 190, 200, .55); }
.clay-btn.amber { background: linear-gradient(135deg, #ffcf5c, #ff8a4c); box-shadow: inset 3px 4px 7px rgba(255, 255, 255, .5), inset -4px -5px 10px rgba(140, 60, 0, .4), 0 10px 22px -6px rgba(255, 140, 60, .55); }
.clay-btn.ghost { background: var(--glass2); color: var(--txt); text-shadow: none; box-shadow: inset 0 1px 0 var(--glass-hl), 0 0 0 1px var(--glass-b); }
.clay-btn:disabled { opacity: .5; pointer-events: none; }
.link { all: unset; cursor: pointer; color: var(--a1); font-weight: 600; font-size: 12.5px; }
.link:hover { text-decoration: underline; }

/* ---------- Barre du haut ---------- */
#topbar { position: fixed; top: 8px; left: 8px; right: 8px; height: var(--tb-h); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px; border-radius: 20px; -webkit-app-region: drag; }
#topbar button, #topbar input, #topbar .brand { -webkit-app-region: no-drag; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; padding-right: 4px; }
.logo { width: 36px; height: 36px; display: block; }
.logo img { width: 100%; height: 100%; display: block; }
.brand-name { font-size: 18px; font-weight: 500; letter-spacing: -.3px; }
.brand-name b { font-weight: 800; color: var(--a1); }
.tb-sep { width: 1px; height: 26px; background: var(--glass-b); }
.tb-editor, .tb-home { display: flex; align-items: center; gap: 8px; }
.tb-group { display: flex; gap: 2px; }
.tb-spacer { flex: 1; }
.win-ctrl-space { width: 138px; flex: none; }
body.mode-home .tb-editor, body.mode-home .tb-sep { display: none; }
body.mode-editor .tb-home { display: none; }
.doc-title { all: unset; font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 10px; min-width: 120px; max-width: 360px; cursor: text; }
.doc-title:hover { background: var(--glass2); }
.doc-title:focus { background: var(--field); box-shadow: inset 2px 2px 5px var(--soft-dk); }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt3); padding: 4px 10px; border-radius: 99px; background: var(--glass2); }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.save-state.busy i { background: var(--a4); box-shadow: 0 0 8px var(--a4); animation: pulse 1s infinite; }
.save-state.err i { background: var(--err); }
@keyframes pulse { 50% { opacity: .3; } }
.ai-btn { background: linear-gradient(135deg, rgba(150, 144, 210, .25), rgba(140, 190, 205, .18)); border: 1px solid rgba(160, 155, 210, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.ai-btn:hover { background: linear-gradient(135deg, rgba(150, 144, 210, .4), rgba(140, 190, 205, .3)); }
.ai-orb { width: 18px; height: 18px; min-width: 18px; border-radius: 50%; display: inline-block; background: radial-gradient(circle at 32% 28%, #f4f1ff 0 8%, #c3bce8 30%, #8e86c9 70%, #5c5590 100%); box-shadow: inset -2px -2px 4px rgba(20, 16, 50, .4), 0 2px 6px rgba(0, 0, 0, .3); flex: none; }
.ai-orb.big { width: 38px; height: 38px; min-width: 38px; }
.ai-orb.busy { background: conic-gradient(from 0deg, #c3bce8, #8fbfcc, #d8b97f, #c9a0c0, #c3bce8); animation: spin 1.4s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Vues ---------- */
.view { position: fixed; inset: calc(var(--tb-h) + 16px) 8px 8px 8px; z-index: 1; }

/* ---------- Accueil ---------- */
#home { overflow-y: auto; padding: 0 24px 60px; inset: calc(var(--tb-h) + 16px) 0 0 0; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; max-width: 1400px; margin: 10px auto 0; min-height: 380px; }
.hero h1 { font-size: 68px; line-height: .98; letter-spacing: -2.5px; margin: 0 0 20px; font-weight: 800; }
.grad { background: linear-gradient(95deg, #b3abe6, #d1aecb 50%, #dcc394); -webkit-background-clip: text; color: transparent; }
.hero p { font-size: 18px; line-height: 1.5; color: var(--txt2); max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; height: 360px; }
.ha-card { position: absolute; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; border-radius: 30px; color: #fff; }
.ha-card b { font-size: 22px; } .ha-card span { opacity: .8; font-size: 13px; }
.ha-glass { width: 260px; height: 190px; left: 4%; top: 30px; z-index: 3; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  box-shadow: inset 3px 3px 1.5px -1px rgba(255, 255, 255, .55), inset -2px -2px 1.5px -1px rgba(255, 255, 255, .3), inset 0 0 22px rgba(255, 255, 255, .08), 0 24px 50px -12px rgba(0, 0, 0, .5); rotate: -6deg; }
.ha-clay { width: 230px; height: 170px; left: 40%; top: 150px; z-index: 2; background: #d9a3bd; color: #46243a; box-shadow: inset 10px 12px 20px rgba(255, 255, 255, .45), inset -12px -14px 24px rgba(110, 50, 80, .35), 18px 26px 40px -10px rgba(0, 0, 0, .5); rotate: 5deg; }
.ha-soft { width: 210px; height: 160px; right: 2%; top: 10px; z-index: 1; background: linear-gradient(150deg, #efedf7, #d4d1e6); color: #2e2b48; box-shadow: inset 0 2px 0 #fff, 0 22px 40px -14px rgba(0, 0, 0, .55); rotate: 8deg; }
.ha-o { position: absolute; border-radius: 50%; }
.ha-o.o1 { width: 150px; height: 150px; left: 26%; top: 0; background: radial-gradient(circle at 32% 26%, #fff 0 5%, #f1dcae 14%, #d6ae6c 50%, #8a6532 100%); box-shadow: 0 18px 30px -8px rgba(0, 0, 0, .5); }
.ha-o.o2 { width: 210px; height: 210px; left: 8%; top: 160px; border-radius: 50%; background: radial-gradient(circle closest-side, #2c2948 40%, #5d5794 47%, #aaa4d8 58%, #6e679f 70%, #2c2948 79%, transparent 80%); -webkit-mask-image: radial-gradient(circle closest-side, transparent 39%, #000 40%, #000 79%, transparent 80%); }
.ha-o.o3 { width: 120px; height: 120px; right: 12%; top: 210px; background: radial-gradient(circle at 32% 26%, #fff 0 6%, #c8e6ec 15%, #7fb3c2 55%, #3d6a78 100%); }
.ha-o.o4 { width: 70px; height: 70px; right: 40%; top: 20px; background: radial-gradient(circle at 32% 26%, #fff 0 8%, #ecc9dd 20%, #c58eab 60%, #6e3f58 100%); }
.home-sec { max-width: 1400px; margin: 36px auto 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.sec-head span { color: var(--txt3); font-size: 13px; }
.sec-head .type-search { margin-left: auto; width: 280px; max-width: 100%; height: 38px; align-self: center; padding: 0 16px; border-radius: 19px; background: var(--field); box-shadow: inset 3px 3px 7px var(--soft-dk), inset -2px -2px 6px var(--soft-lt); color: var(--txt); font-size: 13.5px; }
.sec-head .type-search::placeholder { color: var(--txt3); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.type-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 24px; cursor: pointer; overflow: hidden; min-height: 150px;
  background: var(--glass); border: 1px solid var(--glass-b); box-shadow: inset 0 1px 0 var(--glass-hl), 0 14px 30px -18px rgba(0, 0, 0, .6); transition: transform .2s, box-shadow .2s; }
.type-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-hl), 0 24px 40px -18px rgba(60, 55, 110, .45); }
.type-card .tc-ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff; box-shadow: inset 3px 4px 7px rgba(255, 255, 255, .45), inset -4px -5px 9px rgba(0, 0, 0, .28), 0 8px 16px -6px rgba(0, 0, 0, .45); }
.type-card .tc-ico svg { width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.type-card b { font-size: 16px; } .type-card span { color: var(--txt3); font-size: 12.5px; line-height: 1.35; }
.recent-grid, .style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.recent-card, .style-card { position: relative; cursor: pointer; border-radius: 20px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-b); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .7); transition: transform .2s, box-shadow .2s; }
.recent-card:hover, .style-card:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -20px rgba(60, 55, 110, .4); }
.thumb-box { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.thumb-box > .slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.card-meta { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.card-meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta span { color: var(--txt3); font-size: 12px; }
.recent-card .rc-del { position: absolute; top: 8px; right: 8px; opacity: 0; background: rgba(0, 0, 0, .45); color: #fff; }
.recent-card:hover .rc-del { opacity: 1; }
.empty-note { color: var(--txt3); padding: 20px; border-radius: 18px; border: 1px dashed var(--glass-b); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--txt2); background: var(--glass2); border: 1px solid var(--glass-b); transition: all .15s; }
.chip:hover { color: var(--txt); }
.chip.on { color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); border-color: transparent; box-shadow: inset 2px 3px 5px rgba(255, 255, 255, .35), inset -2px -3px 6px rgba(30, 26, 60, .4), 0 6px 14px -6px rgba(70, 64, 120, .45); }
.chips.sm .chip { padding: 5px 10px; font-size: 12px; }

/* ---------- Éditeur ---------- */
#editor { display: grid; grid-template-columns: 76px auto 1fr 300px; gap: 8px; }
#editor.drawer-closed #drawer { display: none; }
#rail { border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; overflow-y: auto; }
#rail button { all: unset; cursor: pointer; width: 62px; padding: 8px 0 6px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--txt3); font-size: 10.5px; font-weight: 600; transition: all .15s; }
#rail button svg { width: 22px; height: 22px; }
#rail button:hover { color: var(--txt); background: var(--glass2); }
#rail button.on { color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: inset 2px 3px 6px rgba(255, 255, 255, .4), inset -3px -4px 8px rgba(30, 26, 60, .4), 0 8px 16px -6px rgba(70, 64, 120, .45); }
#drawer { width: 330px; border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px 18px; }
.drawer-head h3 { margin: 0; font-size: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 14px 20px; }
.d-sec { margin: 10px 0 18px; }
.d-sec > h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--txt3); font-weight: 700; }
.d-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.d-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.d-grid.g4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.d-grid.g5 { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.d-item { position: relative; cursor: pointer; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-b); transition: transform .15s, border-color .15s, box-shadow .15s; }
.d-item:hover { transform: translateY(-2px); border-color: rgba(160, 155, 210, .6); box-shadow: 0 10px 20px -10px rgba(60, 55, 110, .45); }
.d-item.on { border-color: var(--a1); box-shadow: 0 0 0 2px var(--a1); }
.d-item .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-item .lbl.below { position: static; background: none; color: var(--txt2); padding: 6px 8px; text-align: center; }
.d-prev { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; }
.d-prev.wide { aspect-ratio: 16/9; }
.d-prev > .slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.d-prev.checker { background: repeating-conic-gradient(rgba(127, 127, 160, .14) 0 25%, transparent 0 50%) 0 0/16px 16px; }
.d-ico { aspect-ratio: 1; display: grid; place-items: center; color: var(--txt); border-radius: 12px; }
.d-ico svg { width: 26px; height: 26px; }
.d-ico:hover { background: var(--glass2); }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 14px; margin-bottom: 12px; }
.search input { all: unset; flex: 1; }
.add-big { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 16px; width: 100%; margin-bottom: 10px; }

/* Zone de travail */
#stageWrap { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 8px; min-width: 0; min-height: 0; }
#canvasArea { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 0; }
#canvasScaler { position: absolute; left: 0; top: 0; transform-origin: 0 0; contain: layout style; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); border-radius: 4px; }
#canvasScaler > .slide { border-radius: inherit; }
#canvasScaler .el:not(.is-decor) { cursor: default; }
#canvasScaler .el.locked { pointer-events: none; }
#canvasScaler .txt[contenteditable="true"] { user-select: text; cursor: text; outline: none; caret-color: var(--a2); }
#overlay, #guides { position: absolute; inset: 0; pointer-events: none; will-change: transform; contain: strict; }
.sel-box { position: absolute; border: 2px solid #a39bd9; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; transform-origin: 50% 50%; }
.sel-box.multi { border-style: dashed; }
.sel-box.hover { border: 1.5px solid rgba(157, 139, 255, .7); box-shadow: none; }
.sel-box.editing { border-color: var(--a2); border-style: dashed; }
.hdl { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 2px solid var(--acc); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); pointer-events: auto; }
.hdl.e, .hdl.w { width: 8px; height: 22px; margin: -11px 0 0 -4px; border-radius: 6px; }
.hdl.n, .hdl.s { width: 22px; height: 8px; margin: -4px 0 0 -11px; border-radius: 6px; }
.hdl.rot { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: linear-gradient(135deg, var(--acc), var(--acc2)); border: 2px solid #fff; display: grid; place-items: center; cursor: grab; }
.hdl.rot::after { content: '⟳'; color: #fff; font-size: 14px; font-weight: 800; }
.sel-badge { position: absolute; padding: 3px 8px; border-radius: 8px; background: rgba(20, 16, 40, .85); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; pointer-events: none; transform: translate(-50%, 0); }
.marquee { position: absolute; border: 1.5px solid #a39bd9; background: rgba(150, 144, 210, .12); border-radius: 4px; }
.guide { position: absolute; background: #e3a5c8; }
.guide.v { width: 1px; top: 0; bottom: 0; } .guide.h { height: 1px; left: 0; right: 0; }
.quickbar { position: absolute; display: flex; gap: 2px; padding: 4px; border-radius: 14px; pointer-events: auto; transform: translate(-50%, -100%); }
.drop-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff; background: rgba(60, 55, 110, .4); border: 3px dashed rgba(200, 190, 255, .8); border-radius: var(--r-lg); pointer-events: none; }

#zoomBar { position: absolute; right: 14px; bottom: 150px; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; z-index: 5; }
.zoom-val { all: unset; cursor: pointer; min-width: 52px; text-align: center; font-weight: 600; font-size: 12px; }
.zb-sep { width: 1px; height: 18px; background: var(--glass-b); margin: 0 4px; }

/* Pellicule */
#filmstrip { border-radius: var(--r-lg); height: 132px; padding: 12px; overflow: hidden; }
#thumbs { display: flex; gap: 12px; height: 100%; overflow-x: auto; overflow-y: hidden; align-items: center; padding: 2px 4px 4px; }
.th { position: relative; flex: none; width: 172px; height: 96.75px; border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 16px -8px rgba(0, 0, 0, .7); transition: box-shadow .15s, transform .15s; }
.th:hover { transform: translateY(-2px); }
.th.a4 { width: 68px; height: 96.2px; }
.th.on { box-shadow: 0 0 0 3px #a39bd9, 0 10px 24px -8px rgba(140, 120, 255, .8); }
.th > .slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.th .th-n { position: absolute; left: 6px; bottom: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: rgba(10, 8, 25, .6); }
.th .th-menu { position: absolute; right: 4px; top: 4px; opacity: 0; background: rgba(10, 8, 25, .6); color: #fff; }
.th:hover .th-menu { opacity: 1; }
.th.drag-over-l { box-shadow: -5px 0 0 0 var(--a2); } .th.drag-over-r { box-shadow: 5px 0 0 0 var(--a2); }
.th, .d-item, .style-card, .recent-card { contain: layout paint; }
#thumbs .th { content-visibility: auto; contain-intrinsic-size: 172px 97px; }
.th-add { flex: none; width: 96px; height: 96.75px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--txt2); border: 2px dashed var(--glass-b); transition: all .15s; }
.th-add:hover { color: #fff; border-color: var(--a1); background: rgba(150, 144, 210, .15); }
.th-add svg { width: 28px; height: 28px; }

/* Inspecteur */
#inspector { border-radius: var(--r-lg); overflow-y: auto; overflow-x: hidden; }
#inspBody { padding: 14px 14px 30px; }
.ins-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.ins-head .ih-ico { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: inset 2px 3px 5px rgba(255, 255, 255, .4), inset -3px -3px 6px rgba(30, 26, 60, .4); }
.ins-head b { font-size: 15px; display: block; } .ins-head span { font-size: 12px; color: var(--txt3); }
.ins-sec { padding: 12px 0; border-top: 1px solid var(--glass-b); }
.ins-sec:first-of-type { border-top: none; }
.ins-sec > h5 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--txt3); display: flex; justify-content: space-between; align-items: center; }
.row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.row > label, .lab { font-size: 12px; color: var(--txt2); min-width: 64px; }
.row.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.num { display: flex; align-items: center; height: 34px; border-radius: 11px; padding: 0 8px; gap: 6px; min-width: 0; }
.num span { font-size: 11px; color: var(--txt3); font-weight: 700; width: 12px; }
.num input { all: unset; width: 100%; min-width: 0; font-weight: 600; font-size: 13px; }
.field { all: unset; box-sizing: border-box; height: 34px; border-radius: 11px; padding: 0 10px; width: 100%; font-size: 13px; }
textarea.field { height: auto; min-height: 90px; padding: 10px; line-height: 1.45; white-space: pre; overflow: auto; font-family: 'JetBrains Mono', monospace; font-size: 12px; user-select: text; }
textarea.field.prose { font-family: var(--ui); white-space: pre-wrap; font-size: 13px; }
select.field { appearance: none; cursor: pointer; line-height: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--txt2) 50%), linear-gradient(135deg, var(--txt2) 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
select.field option { background: #1a1730; color: #fff; }
[data-ui="nacre"] select.field option { background: #fff; color: #111; }
.rng { flex: 1; display: flex; align-items: center; gap: 10px; }
.rng input[type=range] { flex: 1; appearance: none; height: 8px; border-radius: 99px; background: var(--field); box-shadow: inset 2px 2px 4px var(--soft-dk), inset -1px -1px 3px var(--soft-lt); outline: none; }
.rng input[type=range]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #b9b3e6, #cbbfe3); box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6), inset -2px -2px 4px rgba(30, 26, 60, .4), 0 3px 8px rgba(0, 0, 0, .4); cursor: pointer; }
.rng b { min-width: 38px; text-align: right; font-size: 12px; font-weight: 600; }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--field); box-shadow: inset 2px 2px 6px var(--soft-dk), inset -1px -1px 4px var(--soft-lt); }
.seg button { all: unset; flex: 1; cursor: pointer; height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; color: var(--txt2); font-weight: 600; font-size: 12.5px; transition: all .15s; }
.seg button svg { width: 15px; height: 15px; }
.seg button:hover { color: var(--txt); }
.seg button.on { color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: inset 2px 2px 4px rgba(255, 255, 255, .35), inset -2px -2px 5px rgba(30, 26, 60, .4), 0 4px 10px -4px rgba(70, 64, 120, .45); }
.tools { display: flex; flex-wrap: wrap; gap: 4px; }
.tools .ib { width: 34px; height: 34px; background: var(--glass2); }
.tools .ib.on { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.sw { aspect-ratio: 1; border-radius: 9px; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 2px 5px rgba(0, 0, 0, .3); transition: transform .12s; }
.sw:hover { transform: scale(1.12); }
.sw.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #a39bd9; }
.sw.tok::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, .6); }
.sw.custom { background: conic-gradient(#ff5f5f, #ffd25f, #5fff8a, #5fd5ff, #8b5fff, #ff5fd2, #ff5f5f); display: grid; place-items: center; }
.sw.custom input { opacity: 0; position: absolute; inset: 0; cursor: pointer; width: 100%; height: 100%; }
.col-btn { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 11px; cursor: pointer; flex: 1; min-width: 0; }
.col-btn i { width: 20px; height: 20px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }
.col-btn span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.style-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stc { cursor: pointer; border-radius: 12px; padding: 4px 4px 6px; text-align: center; font-size: 10px; font-weight: 600; color: var(--txt2); border: 1px solid transparent; transition: all .12s; }
.stc:hover { background: var(--glass2); color: var(--txt); }
.stc.on { border-color: var(--a1); background: rgba(150, 144, 210, .14); color: var(--txt); }
.stc .d-prev { border-radius: 9px; margin-bottom: 4px; }
.tgl { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--txt2); }
.tgl input { display: none; }
.tgl i { width: 36px; height: 20px; border-radius: 99px; position: relative; background: var(--field); box-shadow: inset 2px 2px 4px var(--soft-dk), inset -1px -1px 3px var(--soft-lt); transition: background .2s; flex: none; }
.tgl i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #d8d4f0; box-shadow: 0 2px 4px rgba(0, 0, 0, .4); transition: left .2s, background .2s; }
.tgl input:checked + i { background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.tgl input:checked + i::after { left: 18px; background: #fff; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-row .clay-btn, .btn-row .pill-btn { height: 34px; padding: 0 14px; font-size: 12.5px; }
.hint { font-size: 12px; color: var(--txt3); line-height: 1.45; }
.kbd { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--glass2); border: 1px solid var(--glass-b); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.layer-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; cursor: pointer; margin-bottom: 4px; background: rgba(255, 255, 255, .03); }
.layer-row:hover { background: var(--glass2); }
.layer-row.on { background: rgba(150, 144, 210, .22); }
.layer-row .ln { flex: 1; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-row .lt { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--glass2); color: var(--txt2); }
.layer-row .lt svg { width: 14px; height: 14px; }

/* ---------- Atelier Claude ---------- */
#aiPanel { position: fixed; top: calc(var(--tb-h) + 16px); right: 8px; bottom: 8px; width: 420px; z-index: 60; border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; animation: slideIn .35s cubic-bezier(.2, .8, .2, 1); background: var(--panel-a); }
[data-ui="nacre"] #aiPanel { background: rgba(255, 255, 255, .72); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.ai-head > div { flex: 1; }
.ai-head h3 { margin: 0; font-size: 17px; }
.ai-status { font-size: 12px; color: var(--txt3); }
.ai-status.ok { color: var(--ok); } .ai-status.err { color: var(--err); }
#aiMode { margin: 0 14px 10px; }
.ai-log { flex: 1; overflow-y: auto; padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 10px; user-select: text; }
.ai-memory { flex: 1; overflow-y: auto; padding: 6px 14px 14px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 18px; line-height: 1.5; font-size: 13.5px; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); border-bottom-right-radius: 6px; box-shadow: inset 2px 2px 4px rgba(255, 255, 255, .3), 0 6px 14px -6px rgba(70, 64, 120, .45); }
.msg.ai { align-self: flex-start; background: var(--glass2); border: 1px solid var(--glass-b); border-bottom-left-radius: 6px; }
.msg.tool { align-self: flex-start; font-size: 12px; padding: 6px 10px; border-radius: 10px; color: var(--txt2); background: rgba(140, 190, 205, .08); border: 1px solid rgba(140, 190, 205, .2); font-family: 'JetBrains Mono', monospace; }
.msg.sys { align-self: center; font-size: 12px; color: var(--txt3); text-align: center; background: none; }
.msg.err { align-self: flex-start; background: rgba(255, 93, 122, .12); border: 1px solid rgba(255, 93, 122, .35); }
.msg .msg-act { margin-top: 8px; display: flex; gap: 6px; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--a1); animation: typ 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; background: var(--a2); } .typing i:nth-child(3) { animation-delay: .3s; background: var(--a3); }
@keyframes typ { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-input { padding: 10px 14px 14px; border-top: 1px solid var(--glass-b); }
.ai-sugg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ai-sugg .chip { font-size: 11.5px; padding: 5px 10px; }
.ai-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 20px; }
.ai-box textarea { all: unset; flex: 1; min-height: 40px; max-height: 160px; overflow-y: auto; line-height: 1.45; padding: 6px 0; user-select: text; white-space: pre-wrap; }
.ai-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.mem-card { padding: 12px 14px; border-radius: 16px; background: var(--glass2); border: 1px solid var(--glass-b); margin-bottom: 10px; }
.mem-card h6 { margin: 0 0 6px; font-size: 12px; color: var(--txt2); text-transform: uppercase; letter-spacing: 1px; }
.mem-item { font-size: 12.5px; line-height: 1.45; padding: 6px 0; border-top: 1px solid var(--glass-b); }
.mem-item:first-of-type { border-top: none; }
.mem-item small { color: var(--txt3); display: block; }

/* ---------- Modales, menus, toasts ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 200; background: rgba(5, 5, 10, .62); display: grid; place-items: center; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: min(1080px, 92vw); max-height: 88vh; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--panel-a); animation: pop .3s cubic-bezier(.34, 1.4, .64, 1); }
[data-ui="nacre"] .modal { background: rgba(255, 255, 255, .85); }
.modal.sm { width: min(560px, 92vw); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 10px; }
.modal-head h3 { margin: 0; font-size: 20px; flex: 1; }
.modal-body { padding: 8px 22px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 22px 20px; }
.ctx { position: fixed; z-index: 300; min-width: 210px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 6px; border-radius: 16px; animation: pop .15s; background: var(--panel-a); }
[data-ui="nacre"] .ctx { background: rgba(255, 255, 255, .9); }
.ctx button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.ctx button:hover { background: rgba(150, 144, 210, .25); }
.ctx button svg { width: 16px; height: 16px; color: var(--txt2); }
.ctx button kbd { margin-left: auto; font-size: 11px; color: var(--txt3); font-family: inherit; }
.ctx hr { border: none; border-top: 1px solid var(--glass-b); margin: 4px 6px; }
.ctx button.danger { color: #ff8aa0; }
#toasts { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; font-weight: 600; animation: pop .25s; background: var(--panel-a); }
[data-ui="nacre"] .toast { background: rgba(255, 255, 255, .9); }
.toast .t-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.toast.err .t-dot { background: var(--err); box-shadow: 0 0 10px var(--err); }
.toast.info .t-dot { background: var(--a1); box-shadow: 0 0 10px var(--a1); }
.toast button { margin-left: 6px; }
.progress-bar { height: 8px; border-radius: 99px; background: var(--field); overflow: hidden; margin-top: 10px; box-shadow: inset 2px 2px 4px var(--soft-dk); }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 99px; transition: width .3s; }
.wiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.export-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.exp-card { cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: var(--glass2); border: 1px solid var(--glass-b); transition: all .15s; }
.exp-card:hover { transform: translateY(-2px); border-color: rgba(160, 155, 210, .6); }
.exp-card .ec-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: inset 3px 3px 6px rgba(255, 255, 255, .4), inset -3px -4px 8px rgba(0, 0, 0, .3); }
.exp-card b { display: block; font-size: 15px; } .exp-card span { font-size: 12px; color: var(--txt3); }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--glass-b); }
.set-row:first-child { border-top: none; }
.set-row > div:first-child { flex: 1; }
.set-row b { display: block; margin-bottom: 2px; } .set-row span { font-size: 12px; color: var(--txt3); }
.code { font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 10px 12px; border-radius: 12px; background: var(--field); user-select: text; white-space: pre-wrap; word-break: break-all; }

/* ---------- Comptes (version site) ---------- */
.acct-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--glass-b); font-weight: 600; font-size: 13px; -webkit-app-region: no-drag; flex: none; }
.acct-btn:hover { background: rgba(255, 255, 255, .1); }
.acct-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--txt2); background: var(--field); box-shadow: inset 2px 2px 4px var(--soft-dk), inset -1px -1px 3px var(--soft-lt); }
.acct-av svg { width: 16px; height: 16px; }
.acct-av.on { color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: inset 2px 3px 5px rgba(255, 255, 255, .35), inset -2px -3px 6px rgba(30, 26, 60, .4); }
.acct-av.big { width: 54px; height: 54px; font-size: 22px; flex: none; }
.acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-form { display: flex; flex-direction: column; gap: 10px; }
.acct-form .field { height: 42px; font-size: 14px; user-select: text; }
.acct-err { color: var(--err); font-size: 13px; min-height: 4px; }
.acct-head { display: flex; align-items: center; gap: 14px; }
.acct-head b { font-size: 18px; display: block; }

/* ---------- Signature ---------- */
.by-retox { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--txt3); opacity: .8; padding: 0 4px 0 2px; white-space: nowrap; -webkit-app-region: no-drag; pointer-events: none; }
.by-retox b { color: var(--a1); font-weight: 800; }

/* ---------- Consentement, légal, emplacement des exposés ---------- */
.consent { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 500; width: min(860px, calc(100vw - 32px)); display: flex; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--panel-a); animation: pop .3s; }
.consent-txt { flex: 1; font-size: 13px; line-height: 1.5; color: var(--txt2); }
.consent-txt > b { display: block; color: var(--txt); font-size: 14px; margin-bottom: 2px; }
.consent-txt a { color: var(--a1); }
.consent-btns { display: flex; gap: 8px; flex: none; }
@media (max-width: 700px) { .consent { flex-direction: column; align-items: stretch; } .consent-btns { justify-content: flex-end; } }
.acct-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.acct-modes > div { padding: 12px; border-radius: 14px; background: var(--glass2); border: 1px solid var(--glass-b); font-size: 12.5px; line-height: 1.45; color: var(--txt2); }
.acct-modes b { display: block; color: var(--txt); margin-bottom: 4px; font-size: 13.5px; }
.acct-terms { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--txt2); line-height: 1.4; cursor: pointer; }
.acct-terms input { margin-top: 2px; accent-color: var(--acc); }
.acct-terms a { color: var(--a1); }
.save-state.warn i { background: var(--a4); box-shadow: 0 0 8px var(--a4); }
.save-state.action { cursor: pointer; color: var(--txt); background: rgba(216, 185, 127, .14); border: 1px solid rgba(216, 185, 127, .35); }
.save-state.action:hover { background: rgba(216, 185, 127, .24); }
.recent-card .where { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; color: #fff; background: rgba(10, 10, 20, .6); }
.recent-card .where.cloud { background: rgba(110, 100, 190, .75); }
.legal-foot { max-width: 1400px; margin: 50px auto 0; padding: 22px 0 10px; border-top: 1px solid var(--glass-b); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--txt3); }
.lf-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-foot a { color: var(--txt2); text-decoration: none; }
.legal-foot a:hover { color: var(--txt); text-decoration: underline; }
.lf-by b { color: var(--a1); }
html:not(.web) .legal-foot { display: none; }
/* Connexion : Google, e-mail vérifié, codes */
.g-btn { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14px; color: #1f1f1f; background: #ffffff; border: 1px solid #dadce0; }
.g-btn:hover { background: #f4f5f7; }
.g-btn:disabled { opacity: .7; cursor: progress; }
.acct-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--txt3, var(--txt2)); font-size: 12px; }
.acct-or::before, .acct-or::after { content: ''; flex: 1; height: 1px; background: var(--glass-b); }
.acct-forgot { align-self: center; margin-top: 2px; }
.acct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a4); margin-left: -2px; }
.code-in { text-align: center; font-size: 26px !important; letter-spacing: 10px; font-weight: 800; height: 56px !important; }
.acct-sent { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--glass-b); font-size: 13px; line-height: 1.45; color: var(--txt2); }
.acct-sent svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 1px; }
.acct-sent b { color: var(--txt); }
.acct-links { display: flex; justify-content: space-between; margin-top: 2px; }
.acct-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.acct-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; background: var(--glass2); border: 1px solid var(--glass-b); color: var(--txt2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.acct-badge svg { width: 14px; height: 14px; flex: none; }
.acct-badge.ok svg { color: var(--ok); }
/* Réduire / agrandir d'un coup */
.scale-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; }
.scale-btn { justify-content: center; height: 38px; padding: 0 8px !important; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; touch-action: none; user-select: none; }
.scale-btn:active { transform: translateY(1px); background: rgba(255, 255, 255, .12); }
.scale-pct { min-width: 44px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--txt2); }
/* Personnalisation du thème : couleur dominante + polices */
.sub-lbl { font-size: 11.5px; font-weight: 700; color: var(--txt2); margin: 10px 0 6px; letter-spacing: .2px; }
.hue-row { display: grid; grid-template-columns: repeat(7, minmax(0, 30px)); gap: 7px; justify-content: space-between; }
.hue-sw { all: unset; cursor: pointer; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 2px 2px 4px rgba(255, 255, 255, .35), inset -2px -3px 5px rgba(0, 0, 0, .25); position: relative; }
.hue-sw:hover { transform: scale(1.08); }
.hue-sw.on { outline: 2px solid var(--txt); outline-offset: 2px; }
.hue-sw.orig::after { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.font-row { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 74px; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.font-chip { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--glass-b); min-width: 0; }
.font-chip b { font-size: 18px; line-height: 1.1; font-weight: 700; }
.font-chip span { font-size: 10.5px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.font-chip:hover { background: rgba(255, 255, 255, .08); }
.font-chip.on { border-color: var(--a1); box-shadow: 0 0 0 1px var(--a1); }
/* Règles du mot de passe + vérification en 2 étapes */
.pw-rules { display: flex; gap: 12px; font-size: 12px; color: var(--txt2); margin-top: -4px; }
.pw-rules span::before { content: '○ '; }
.pw-rules span.ok { color: var(--ok); }
.pw-rules span.ok::before { content: '✓ '; }
.acct-2fa-title { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.acct-2fa-title svg { width: 20px; height: 20px; color: var(--a1); }
/* Espace admin (caché derrière « by retox ») */
.by-retox.clickable { pointer-events: auto; cursor: pointer; -webkit-app-region: no-drag; }
.modal.adm-modal { width: min(980px, 94vw); }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.adm-tile { padding: 14px; border-radius: 16px; background: var(--glass2); border: 1px solid var(--glass-b); display: grid; gap: 2px; }
.adm-tile svg { width: 18px; height: 18px; color: var(--a1); }
.adm-tile b { font-size: 24px; font-variant-numeric: tabular-nums; }
.adm-tile span { font-size: 12px; color: var(--txt2); }
.adm-info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12.5px; color: var(--txt2); }
.adm-table { border-radius: 14px; border: 1px solid var(--glass-b); overflow: auto; max-height: 46vh; }
.adm-row { display: grid; grid-template-columns: 1.1fr 1.6fr .7fr .9fr .6fr .7fr 76px; gap: 8px; align-items: center; padding: 8px 12px; font-size: 13px; border-top: 1px solid var(--glass-b); min-width: 720px; }
.adm-row:first-child { border-top: 0; }
.adm-th { font-size: 11px; font-weight: 700; color: var(--txt2); text-transform: uppercase; letter-spacing: .4px; background: var(--glass2); position: sticky; top: 0; }
.adm-name { display: flex; gap: 6px; align-items: center; min-width: 0; }
.adm-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-name i { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 99px; background: var(--glass2); color: var(--txt2); }
.adm-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt2); }
.adm-acts { display: flex; gap: 4px; justify-content: flex-end; }
/* Aide des raccourcis, bannière d'annonce, message personnel */
.kbd-help { display: grid; gap: 7px; }
.kbd-help > div { display: grid; grid-template-columns: 190px 1fr; gap: 10px; align-items: center; font-size: 13px; color: var(--txt2); }
.kbd-help .kbd { justify-self: start; }
.site-banner { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: 10px; max-width: min(720px, calc(100vw - 24px)); padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--lg-a); border: 1px solid var(--glass-b); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); font-size: 14px; line-height: 1.4; }
.site-banner > svg { color: var(--a1); flex: none; }
.site-banner.warn > svg { color: var(--a4); }
.site-banner.ok > svg { color: var(--ok); }
.notice-txt { white-space: pre-wrap; font-size: 14.5px; line-height: 1.55; color: var(--txt); }
/* Espace admin : onglets, fiches */
.adm-tabs { margin-bottom: 14px; overflow-x: auto; }
.adm-tabs button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.adm-tile.live b { color: var(--ok); }
.adm-row.click { cursor: pointer; }
.adm-row.click:hover { background: var(--glass2); }
.adm-row.blocked { opacity: .6; }
.adm-row.on5 { grid-template-columns: 1fr .7fr 1.4fr .9fr .7fr; min-width: 560px; }
.adm-row.log { grid-template-columns: 110px 1.3fr 1fr 1fr; min-width: 520px; }
.adm-row.deck { grid-template-columns: 24px 1fr 80px 110px; min-width: 0; }
.dot-on { width: 8px; height: 8px; border-radius: 50%; background: var(--ok) !important; padding: 0 !important; flex: none; }
.adm-user-head { display: flex; gap: 14px; align-items: center; }
.adm-user-head b { font-size: 18px; display: flex; gap: 8px; align-items: center; }
.adm-badge { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--glass2); }
.adm-badge.err { color: var(--err); }
.pill-btn.danger { color: var(--err); }
.adm .ins-sec { margin-top: 16px; }
.adm .ins-sec .field { margin-top: 6px; }

/* ================= VERSION TÉLÉPHONE ================= */
#inspToggle { display: none; }
#canvasArea { touch-action: none; }
@media (max-width: 760px) {
  :root { --tb-h: 52px; }
  #topbar { top: 6px; left: 6px; right: 6px; gap: 4px; padding: 0 6px; border-radius: 16px; }
  .brand-name, .tb-sep, #topbar .ai-btn, .acct-name, #saveState span { display: none; }
  .doc-title { width: 92px; min-width: 0; font-size: 13px; }
  #topbar .tb-editor .pill-btn, #topbar .tb-editor .clay-btn { font-size: 0; gap: 0; padding: 0 11px; min-width: 0; }
  #topbar .tb-editor .pill-btn svg, #topbar .tb-editor .clay-btn svg { width: 18px; height: 18px; }
  .acct-btn { padding: 0 4px; }
  .by-retox { font-size: 10px; padding: 0 2px; }
  .view { inset: calc(var(--tb-h) + 12px) 6px 6px 6px; }
  /* accueil */
  #home { padding: 0 14px 40px; inset: calc(var(--tb-h) + 12px) 0 0 0; }
  .hero { grid-template-columns: 1fr; gap: 8px; min-height: 0; margin-top: 4px; }
  .hero h1 { font-size: 40px; letter-spacing: -1.5px; margin-bottom: 12px; }
  .hero p { font-size: 15px; margin-bottom: 18px; }
  .hero-art { display: none; }
  .hero-actions .big { flex: 1; justify-content: center; }
  .sec-head { flex-wrap: wrap; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .recent-grid, .style-grid, .wiz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .export-grid { grid-template-columns: 1fr; }
  /* éditeur : canevas plein écran, barre d'outils en bas, panneaux en « feuilles » */
  #editor { display: block; }
  #stageWrap { position: absolute; inset: 0 0 72px 0; }
  #rail { position: fixed; left: 6px; right: 6px; bottom: 6px; height: 62px; flex-direction: row; gap: 2px; padding: 4px; overflow-x: auto; overflow-y: hidden; z-index: 30; border-radius: 18px; }
  #rail button { width: 58px; flex: none; padding: 6px 0 4px; font-size: 10.5px; }
  #rail button svg { width: 20px; height: 20px; }
  #drawer, #inspector { position: fixed; left: 6px; right: 6px; bottom: 74px; width: auto; max-height: 58vh; z-index: 31; box-shadow: 0 -12px 40px rgba(0, 0, 0, .45); }
  #inspector { display: none; }
  #editor.insp-open #inspector { display: block; }
  #filmstrip { height: 76px; padding: 8px; }
  #thumbs { gap: 8px; }
  #thumbs .th { zoom: .62; }
  #zoomBar { bottom: 90px; right: 8px; }
  #zoomBar [data-act="present-here"], #zoomBar .zb-sep { display: none; }
  #inspToggle { display: flex; position: absolute; left: 8px; bottom: 90px; z-index: 6; height: 40px; padding: 0 14px; gap: 6px; font-size: 13px; }
  #editor.insp-open #inspToggle { background: var(--glass2); }
  .d-grid.g4, .d-grid.g5 { grid-template-columns: repeat(4, 1fr); }
  /* fenêtres */
  .modal { border-radius: 20px; max-height: 92vh; }
  .modal-head { padding: 16px 16px 8px; }
  .modal-body { padding: 6px 16px 18px; }
  .acct-modes { grid-template-columns: 1fr; }
  .kbd-help > div { grid-template-columns: 1fr; gap: 2px; }
  .site-banner { bottom: 80px; font-size: 13px; }
  .toast, #toasts { max-width: calc(100vw - 24px); }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .doc-title { width: 64px; }
}
/* Admin : grande fiche du compte, cartes d'exposés avec aperçu */
.modal.adm-big { width: min(1240px, 96vw); max-height: 94vh; }
.adm-deck-bar { align-items: center; margin-bottom: 10px; }
.adm-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; max-height: 52vh; overflow-y: auto; padding: 4px; }
.adm-deck { position: relative; border-radius: 16px; overflow: hidden; background: var(--glass2); border: 1px solid var(--glass-b); cursor: pointer; display: flex; flex-direction: column; }
.adm-deck:hover { border-color: rgba(255, 255, 255, .18); }
.adm-deck.on { border-color: var(--a1); box-shadow: 0 0 0 2px var(--a1); }
.adm-prev { pointer-events: none; }
.adm-check { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(10, 8, 25, .55); border: 1.5px solid rgba(255, 255, 255, .6); color: transparent; }
.adm-check svg { width: 16px; height: 16px; }
.adm-deck.on .adm-check { background: var(--acc); border-color: var(--acc); color: #fff; }
.adm-deck-info { padding: 9px 11px 4px; display: grid; gap: 2px; min-width: 0; }
.adm-deck-info b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-deck-info span { font-size: 11.5px; color: var(--txt2); }
.adm-deck-acts { display: flex; gap: 4px; align-items: center; padding: 4px 8px 9px; }
.adm-deck-acts .pill-btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; margin-right: auto; }
.adm-edit-bar { position: fixed; top: calc(var(--tb-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 14px; background: #3a2f12; color: #ffe7a8; border: 1px solid rgba(255, 210, 110, .35); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: calc(100vw - 24px); }
.adm-edit-bar b { color: #fff; }
.adm-edit-bar svg { color: #ffd36e; flex: none; }
.adm-edit-bar .clay-btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
@media (max-width: 760px) { .adm-decks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-edit-bar { font-size: 11.5px; } }
@media (max-width: 760px) {
  /* barre du haut de l'éditeur : l'essentiel seulement */
  .mode-editor #topbar .brand, .mode-editor #topbar .by-retox, #topbar [data-act="redo"] { display: none; }
  .mode-editor #topbar .tb-editor:first-of-type { flex: 1; min-width: 0; }
  .mode-editor .doc-title { flex: 1; width: auto; }
  .mode-editor .tb-spacer { display: none; }
  /* panneau ouvert : la diapo remonte au-dessus au lieu d'être cachée */
  #drawer, #inspector { max-height: 46vh; }
  #editor:not(.drawer-closed) #stageWrap, #editor.insp-open #stageWrap { bottom: calc(46vh + 80px); }
  #editor:not(.drawer-closed) #filmstrip, #editor.insp-open #filmstrip { display: none; }
  #editor:not(.drawer-closed) #stageWrap, #editor.insp-open #stageWrap { grid-template-rows: 1fr; }
  #editor:not(.drawer-closed) #zoomBar, #editor:not(.drawer-closed) #inspToggle, #editor.insp-open #zoomBar { bottom: 10px; }
  #editor.insp-open #inspToggle { bottom: 10px; }
}
@media (max-width: 760px) {
  .mode-editor .doc-title { flex: 1 1 0; width: 0; min-width: 40px; padding: 0 6px; }
  .mode-editor #topbar .tb-editor:first-of-type { gap: 2px; }
  .mode-editor #topbar .ib { width: 34px; height: 34px; }
  #topbar .tb-editor.tb-right { gap: 4px; flex: none; }
  #topbar .tb-editor .pill-btn, #topbar .tb-editor .clay-btn { height: 36px; padding: 0 10px; }
  .mode-editor .acct-btn { height: 36px; padding: 0 2px; }
  .mode-editor .acct-av { width: 28px; height: 28px; }
  .mode-editor #saveState { padding: 0 6px; }
}

/* ---------- Fluidité (PC modestes : Intel UHD, Pentium…) ----------
   Mesuré avec scripts/web-perf.js et scripts/web-variants.js.
   1. Aperçus de thèmes = images pré-calculées (scripts/make-theme-previews.js), plus de mini-diapos vivantes.
   2. Chaque grande zone a sa propre couche GPU : en défilant, le navigateur déplace des images déjà dessinées
      au lieu de tout repeindre (accueil : 5 → 45+ images/s).
   3. Les panneaux sont isolés (contain) : modifier l'inspecteur ne recalcule plus la mise en page de toute la page. */
.thumb-box > .th-img, .d-prev > .th-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.hero, .home-sec, .d-grid, .wiz-grid { will-change: transform; }
.thumb-box, .d-prev { contain: strict; }
#drawer, #inspector, #filmstrip { contain: layout paint style; }
#inspBody { will-change: transform; }
/* Claude : réservé au mode admin (classe posée par admin.js quand l'admin est connecté) */
html:not(.is-admin) .ai-btn, html:not(.is-admin) #aiPanel { display: none !important; }

/* ===== ExpoStudio Pro (offre non publiée : tout est caché tant que html n'a pas la classe pro-on) ===== */
.pro-btn { display: none; color: var(--a4); }
html.pro-on .pro-btn { display: inline-flex; }
.pro-btn svg { color: var(--a4); }
.pro-tag { position: absolute; top: 6px; right: 6px; z-index: 3; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .8px; color: #2b2210; background: linear-gradient(135deg, #f1dcae, #d8b97f); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); pointer-events: none; }
.acct-badge.pro { color: #2b2210; background: linear-gradient(135deg, #f1dcae, #d8b97f); border-color: transparent; font-weight: 700; }
.acct-badge.pro svg { color: #2b2210; }
.modal.pro-modal .modal-body { padding: 0; }
.pro-page { padding: 8px 26px 26px; display: flex; flex-direction: column; gap: 6px; user-select: text; }
.pro-hero { text-align: center; padding: 18px 8px 6px; }
.pro-crown { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: #2b2210; background: linear-gradient(145deg, #f6e6bd, #d8b97f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -4px 8px rgba(120, 90, 30, .35), 0 12px 24px -10px rgba(216, 185, 127, .6); }
.pro-crown svg { width: 28px; height: 28px; }
.pro-hero h2 { margin: 12px 0 6px; font-size: 32px; letter-spacing: -1px; }
.pro-grad { background: linear-gradient(90deg, #f1dcae, #d8b97f, #c9a0c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pro-hero p { margin: 0 auto; max-width: 520px; color: var(--txt2); font-size: 15px; line-height: 1.5; }
.pro-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--glass2); border: 1px solid var(--glass-b); color: var(--txt2); font-size: 13px; margin-top: 8px; }
.pro-note svg { width: 18px; height: 18px; flex: none; color: var(--a4); }
.pro-soon-txt { margin: 14px 4px 4px; color: var(--txt2); font-size: 15px; line-height: 1.55; text-align: center; }
.pro-note.ok svg { color: var(--ok); }
.pro-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 6px; align-items: stretch; }
.pro-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), var(--glass); border: 1px solid var(--glass-b); box-shadow: inset 0 1px 0 var(--glass-hl), 0 16px 30px -20px rgba(0, 0, 0, .7); }
.pro-plan.best { border-color: rgba(216, 185, 127, .75); box-shadow: inset 0 1px 0 rgba(255, 240, 200, .35), 0 0 0 1px rgba(216, 185, 127, .5), 0 22px 40px -22px rgba(216, 185, 127, .5); transform: translateY(-4px); }
.pro-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .6px; white-space: nowrap; color: #2b2210; background: linear-gradient(135deg, #f1dcae, #d8b97f); }
.pro-plan-name { font-size: 15px; color: var(--txt2); }
.pro-price { display: flex; align-items: baseline; gap: 8px; }
.pro-amt { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; }
.pro-per { color: var(--txt3); font-size: 13px; }
.pro-plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; font-size: 13.5px; color: var(--txt2); }
.pro-plan li { display: flex; gap: 8px; align-items: flex-start; }
.pro-plan li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ok); }
.pro-plan button[disabled] { opacity: .65; cursor: default; }
.pro-h { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--txt2); }
.pro-table { border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-b); background: var(--glass2); }
.pro-tr { display: grid; grid-template-columns: 1fr 110px 110px; align-items: stretch; border-top: 1px solid var(--glass-b); font-size: 13.5px; }
.pro-tr:first-child { border-top: 0; }
.pro-tr > span { padding: 11px 8px; display: flex; align-items: center; justify-content: center; }
.pro-tr > .lbl { justify-content: flex-start; padding-left: 16px; }
.pro-tr.pro-head { font-weight: 700; color: var(--txt2); }
.pro-col { background: rgba(216, 185, 127, .09); }
.pro-tr svg { width: 18px; height: 18px; vertical-align: middle; }
.pro-tr svg.yes { color: var(--ok); } .pro-tr svg.no { color: var(--txt3); }
.pro-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pro-th-card { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-b); aspect-ratio: 16 / 9; background: var(--glass2); }
.pro-th-card img, .pro-th-card .slide { width: 100%; height: 100%; display: block; }
.pro-th-item > span { display: block; margin-top: 6px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--txt2); }
.pro-faq details { border-radius: 14px; background: var(--glass2); border: 1px solid var(--glass-b); padding: 12px 16px; margin-bottom: 8px; }
.pro-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.pro-faq p { margin: 8px 0 0; color: var(--txt2); font-size: 13.5px; line-height: 1.5; }
.pro-legal { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--txt3); }
.pro-legal a { color: var(--a1); }
@media (max-width: 760px) {
  .pro-page { padding: 4px 14px 22px; }
  .pro-hero h2 { font-size: 26px; }
  .pro-plans { grid-template-columns: 1fr; gap: 20px; }
  .pro-plan.best { transform: none; order: -1; }
  .pro-tr { grid-template-columns: 1fr 64px 64px; font-size: 12.5px; }
  .pro-tr > .lbl { padding-left: 10px; }
  .pro-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Paiement Pro (PayPal) */
.pro-pay .pro-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--glass-b); }
.pro-pay .pro-step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a1530; background: linear-gradient(160deg, #e9d29a, #c9a35a); }
.pro-pay .pro-step b { display: inline; font-size: 15px; }
.pro-pay .pro-step > div > span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--txt2); }
.pro-pay .pro-code { display: inline-block; margin: 4px 0 0 4px; padding: 4px 12px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; background: rgba(233,210,154,.16); color: #f1dca8; cursor: pointer; }

/* ---------- Vidéo de présentation de l'accueil (site) ---------- */
.promo-modal .modal-body { padding-top: 4px; }
.promo-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.promo-vid { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.promo-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .15s ease; }
.promo-play:hover { transform: scale(1.06); }
.promo-play svg { width: 36px; height: 36px; margin-left: 5px; fill: #15131c; }
.promo-wrap.playing .promo-play { display: none; }
@media (max-width: 760px) { .promo-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .promo-play svg { width: 28px; height: 28px; } }

/* ---------- Choix du moyen de paiement (Pro) ---------- */
.pro-pay-list { display: grid; gap: 8px; margin: 10px 0 6px; }
.pro-pay-m { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-b); background: rgba(255,255,255,.04); color: var(--txt); cursor: pointer; font: inherit; }
.pro-pay-m svg { flex: none; width: 22px; height: 22px; opacity: .85; }
.pro-pay-m b { display: block; font-size: 14px; }
.pro-pay-m span { display: block; font-size: 12.5px; color: var(--txt2); }
.pro-pay-m.on { border-color: #e9d29a; background: rgba(233,210,154,.10); }
.pro-pay-detail:empty { display: none; }
.pro-pay-detail { margin-top: 6px; }
.pro-pay-rows { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.pro-pay-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.pro-pay-row span { color: var(--txt2); }
.pro-pay-row b { cursor: pointer; font-family: 'JetBrains Mono', monospace; word-break: break-all; text-align: right; }
.pay-admin { display: grid; gap: 10px; }
.pay-admin-row { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--glass-b); }
.pay-admin-f { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- Accueil : onglets Exposés / CV ---------- */
.home-tabs { display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 6px auto 0; padding: 5px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--glass-b); }
.home-tabs button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--txt2); transition: color .15s, background .15s; }
.home-tabs button svg { width: 18px; height: 18px; }
.home-tabs button:hover { color: var(--txt); }
.home-tabs button.on { color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: inset 2px 3px 5px rgba(255, 255, 255, .35), inset -2px -3px 6px rgba(30, 26, 60, .4), 0 6px 14px -6px rgba(70, 64, 120, .45); }
.home-tabs button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
#home.cv-mode .expo-only, #home:not(.cv-mode) .cv-only { display: none !important; }
.cv-hero { min-height: 300px; }
.cv-tips { display: flex; flex-direction: column; gap: 12px; }
.cv-tips > div { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-b); color: var(--txt2); font-size: 15px; line-height: 1.4; }
.cv-tips b { color: var(--txt); }
.cv-tips svg { width: 26px; height: 26px; flex: none; color: var(--acc); }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; will-change: transform; }
.thumb-box.a4 { aspect-ratio: 1240 / 1754; background: #e9e7f0; }
.cv-card .card-meta span { line-height: 1.35; }
.cv-pick-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
@media (max-width: 760px) {
  .home-tabs { margin-top: 2px; }
  .home-tabs button { padding: 8px 18px; }
  .cv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cv-tips > div { padding: 12px 14px; font-size: 14px; }
}
