/* V10 | native, accessible gallery and interactive dashboard */
:root{--v10-deep:#081b33;--v10-accent:#155eef;--v10-mint:#0e968b}
[hidden]{display:none!important}.top .nav{gap:14px}.top nav{gap:12px}.top nav a{font-size:12px}.theme-section{background:linear-gradient(165deg,#f0f8fa 0%,#f9fbff 55%,#eaf0ff 100%)}.theme-section .section-heading,.module-section .section-heading{max-width:850px}.theme-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:24px;align-items:stretch}.theme-preview,.theme-picker,.dashboard-explorer,.module-panel{background:#fff;border:1px solid #d9e5ef;border-radius:24px;box-shadow:0 18px 60px #102f5710;min-width:0}.theme-preview{background:radial-gradient(ellipse at 40% 10%,#244b70,#081b33 75%);padding:20px;color:#d6e9f4;display:flex;flex-direction:column}.preview-top{display:flex;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:.06em;padding:3px 3px 14px}.theme-main-shot{background:transparent;border:0;padding:0;flex:1}.theme-main-shot img{height:clamp(340px,43vw,600px);object-fit:contain;width:100%;filter:drop-shadow(0 8px 24px #0005)}.theme-main-shot span{color:#d4e9ff;margin:14px 0 0}.theme-picker{padding:26px;display:flex;flex-direction:column;gap:15px}.theme-picker h3{font-size:1.7rem;margin:0}.swatches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.theme-option{display:flex;align-items:center;text-align:left;gap:8px;min-height:44px;border:1px solid #dce6ef;background:#fff;color:#173f68;padding:8px 10px;border-radius:10px;font-size:13px;font-weight:700}.theme-option span{width:21px;height:21px;flex:none;background:var(--swatch);border:1px solid #0001;border-radius:50%}.theme-option[aria-pressed=true],.theme-mini[aria-pressed=true]{border-color:#155eef;box-shadow:0 0 0 2px #155eef26;background:#eef5ff}.small-note{font-size:12px;margin:0}.theme-original{border-top:1px solid #dce6ef;padding-top:14px;display:grid;grid-template-columns:90px 1fr;gap:15px;align-items:center}.theme-original .shot{padding:5px}.theme-original .shot img{height:130px}.theme-original .shot span{font-size:10px}.theme-original p{font-size:13px;margin:5px 0}.rail-shell{min-width:0;margin-top:20px}.rail-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.rail-status{font-size:13px;color:#53667a;font-weight:650}.rail-controls{display:flex;gap:8px}.rail-controls button{width:44px;height:44px;border:1px solid #c9d7e5;border-radius:50%;background:#fff;color:#153f68;font-size:20px;line-height:1}.rail-controls button:not(:disabled):hover{background:#eaf3ff}.v10-rail{display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#b5c9db #edf3f8;padding:5px 4px 12px;min-width:0;max-width:100%}.v10-rail:focus-visible{outline:2px solid #155eef;outline-offset:2px}.v10-rail>*{flex:none;scroll-snap-align:start;min-width:0}.rail-progress{height:4px;background:#dfe8f0;border-radius:8px;overflow:hidden;margin-top:7px}.rail-progress i{height:100%;background:#155eef;display:block;width:100%;transition:width .16s}.theme-mini{width:140px;border:1px solid #d5e1eb;border-radius:14px;padding:8px;background:#fff;color:#173f68;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;font-weight:750}.theme-mini img{width:100%;height:180px;object-fit:contain}.dashboard-explorer{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.65fr);gap:20px;padding:24px;background:linear-gradient(145deg,#f7fbff,#e8f5f7)}.dashboard-left{min-width:0}.dashboard-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;font-weight:800;letter-spacing:.05em;margin-bottom:14px;color:#53667a}.module-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.module-tab{border:1px solid #d5e1eb;border-radius:15px;background:white;min-height:105px;padding:12px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#183b64;font-weight:750;font-size:14px;box-shadow:0 5px 12px #15385408}.module-tab[aria-pressed=true]{border-color:#155eef;box-shadow:0 0 0 2px #155eef30;background:#eef5ff}.module-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--module-color) 13%,white);color:var(--module-color)}.module-icon img{display:block;width:27px;height:27px;object-fit:contain;opacity:.85}.dashboard-proof{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0}.dashboard-proof .shot{border:0;background:transparent;padding:0}.dashboard-proof img{height:470px!important;max-height:100%;width:100%;object-fit:contain}.dashboard-proof p{font-size:12px;text-align:center;margin:8px 0 0}.module-panel{margin-top:20px;padding:24px}.module-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.module-panel-head h3{font-size:2rem;margin:6px 0}.module-panel-head p{margin:0}.v10-card,.gallery-rail>.module{width:clamp(280px,33vw,440px);display:flex;flex-direction:column;justify-content:space-between}.v10-card .shot,.gallery-rail .module .shot{border:0;background:#edf4fa}.v10-card .shot img,.gallery-rail .module .shot img{height:clamp(340px,38vw,500px);width:100%;object-fit:contain}.v10-card .module-copy,.gallery-rail .module-copy{padding:16px 20px}.v10-card h3,.gallery-rail h3{font-size:1.1rem}.gallery-tools{background:#f4f8fc;padding:20px;border:1px solid #dce6ef;border-radius:16px}.gallery-tools .filters{margin-bottom:16px}.gallery-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.gallery-fields label{font-size:13px;font-weight:700;display:grid;gap:5px}.gallery-fields input,.gallery-fields select{width:100%;min-height:46px;border:1px solid #b9cddd;border-radius:8px;background:white;padding:8px 12px;color:#173f68;font:inherit}.gallery-tools #gallery-count{margin:12px 0 0}.gallery-rail{margin-top:8px}.hero .desktop-frame img{aspect-ratio:auto;object-fit:contain}.hero .phone-frame img{width:100%;height:auto;object-fit:contain}
@media(max-width:1080px){.top nav{gap:8px}.top nav a{font-size:11px}.dashboard-proof img{height:420px!important}}@media(max-width:900px){.top nav a{font-size:16px}.theme-layout{grid-template-columns:1fr 1fr;gap:14px}.theme-picker{padding:18px}.swatches{grid-template-columns:1fr 1fr}.dashboard-explorer{grid-template-columns:1fr}.dashboard-proof{display:none}.v10-card,.gallery-rail>.module{width: min(65vw,400px)}}@media(max-width:600px){.theme-layout{grid-template-columns:1fr}.theme-preview{padding:14px}.theme-main-shot img{height:430px;max-height:65vh}.theme-picker{padding:16px}.theme-option{font-size:12px;padding:8px 6px}.theme-option span{width:17px;height:17px}.theme-mini{width:112px}.theme-mini img{height:145px}.dashboard-explorer{padding:12px;gap:12px}.module-tabs{gap:6px}.module-tab{min-height:94px;font-size:12px;padding:7px 3px;overflow-wrap:anywhere}.module-icon{width:36px;height:36px}.module-panel{padding:14px}.module-panel-head{align-items:flex-start;flex-direction:column}.module-panel-head .btn{width:100%}.v10-card,.gallery-rail>.module{width:85%}.v10-card .shot img,.gallery-rail .module .shot img{height: min(57vh,430px)}.gallery-fields{grid-template-columns:1fr}.gallery-tools{padding:14px}.dashboard-label{font-size:10px;flex-wrap:wrap}.rail-top{gap:6px}.rail-controls button{width:40px;height:40px}.rail-status{font-size:12px}.preview-top{font-size:10px}.theme-original{grid-template-columns:80px 1fr}}@media(prefers-reduced-motion:reduce){.rail-progress i{transition:none}}

#viewer:fullscreen{width:100%;height:100%;max-width:none;max-height:none;border-radius:0;background:#081b33}#viewer:fullscreen .viewarea{height:calc(100vh - 100px);max-height:none}#viewer:fullscreen .viewarea img{max-height:100%}#viewer:fullscreen .viewarea.zoom img{max-height:none}#viewer .dialogbar{flex-wrap:wrap}@media(max-width:1120px) and (min-width:901px){.top .nav nav{display:none;position:absolute;top:76px;left:0;right:0;background:white;padding:20px 32px;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch}.top .nav nav.open{display:flex}.top .nav nav a{font-size:16px;padding:7px}.top .menu{display:block;margin-left:auto;border:1px solid var(--line);background:white;border-radius:8px;padding:7px 12px}}

/* V10.1 — selectors adjacent to actual screenshots, mobile first */
.theme-layout{display:flex;flex-direction:column;gap:12px;min-width:0}.theme-picker{padding:14px 16px;gap:9px}.selector-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.selector-heading h3{font-size:1.15rem;letter-spacing:-.025em}.selector-heading .eyebrow{font-size:10px}.selector-heading #theme-reset{min-height:36px;padding:7px 10px;font-size:12px;white-space:nowrap}.selector-wrap{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:6px;align-items:center;min-width:0}.selector-arrow{width:34px;height:44px;display:grid;place-items:center;padding:0;border:1px solid #c9d7e5;border-radius:10px;background:white;color:#173f68;font-size:28px;line-height:1}.selector-arrow:disabled{opacity:.35}.selector-rail{display:flex!important;flex-wrap:nowrap;gap:10px!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b5c9db transparent;padding:5px 4px 8px;min-width:0;max-width:100%;scroll-padding-inline:4px;touch-action:pan-x pan-y}.selector-rail>*{flex:0 0 auto;scroll-snap-align:start}.selector-rail .theme-option{min-height:43px;white-space:nowrap;padding:8px 12px;font-size:13px}.selector-rail .module-tab{width:112px;min-height:82px;padding:8px 4px;font-size:12px;line-height:1.2;gap:5px}.selector-rail .module-icon{width:34px;height:34px;border-radius:9px}.selector-rail .module-icon img{width:23px;height:23px}.selector-hint{font-size:11px;color:#53667a;margin:0;line-height:1.4}.dashboard-explorer{display:block;padding:14px 16px}.dashboard-label{margin-bottom:6px}.module-panel{margin-top:10px}.theme-explanation{padding:8px 4px;border:0}.theme-explanation summary{font-size:13px}.theme-explanation .theme-original{margin-top:12px}.theme-preview{padding:14px}.theme-main-shot img{height:clamp(350px,44vw,600px)}.theme-section .rail-shell{margin-top:12px}.module-panel .rail-shell{margin-top:12px}
@media(max-width:600px){.theme-picker,.dashboard-explorer{padding:10px}.selector-wrap{grid-template-columns:27px minmax(0,1fr) 27px;gap:4px}.selector-arrow{width:27px;height:40px;font-size:23px;border-radius:8px}.selector-heading h3{font-size:1rem}.selector-heading #theme-reset{font-size:11px;padding:6px 8px;min-height:32px}.selector-rail .module-tab{width:96px;min-height:76px;font-size:11px}.selector-rail .theme-option{font-size:12px;min-height:40px;padding:7px 10px}.selector-rail .theme-option span{width:15px;height:15px}.theme-preview{padding:10px}.theme-main-shot img{height:min(53vh,430px)}.module-panel{padding:12px}.module-panel-head h3{font-size:1.4rem}.module-panel-head p{font-size:13px}.module-panel-head{gap:8px}.module-panel-head .btn{width:auto;padding:7px 12px;min-height:36px;font-size:12px}.module-panel .rail-shell{margin-top:8px}.module-panel .rail-top{margin-bottom:5px}}

/* V10.2 explicit selectors */
#module-selector-rail,#palette-rail{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;min-width:0!important;max-width:100%!important;grid-template-columns:none!important}#module-selector-rail>button,#palette-rail>button{flex:0 0 auto!important;white-space:nowrap}#module-selector-rail>button{width:112px} .selector-wrap{min-width:0;max-width:100%} @media(max-width:600px){#module-selector-rail>button{width:96px}}

/* V10.3 — donner la priorité à la capture complète sur petit écran. */
body[data-page="index"] :is(.theme-option,.module-tab,.selector-arrow):focus-visible{
 outline:2px solid #155eef;outline-offset:-2px;
}
@media(max-width:600px){
 body[data-page="index"] .module-rail{padding-inline:0;scroll-snap-type:x mandatory}
 body[data-page="index"] .module-rail > .v10-card{width:100%;scroll-snap-align:start}
 body[data-page="index"] .module-rail .shot img,
 body[data-page="index"] #theme-image{display:block;width:100%;height:auto;max-height:min(72svh,580px);object-fit:contain}
 body[data-page="index"] .module-rail .shot img{max-height:min(72vh,580px);max-height:min(72svh,580px)}
 body[data-page="index"] .module-panel .rail-controls button{min-width:44px;min-height:44px}
 body[data-page="index"] .rail-status{font-variant-numeric:tabular-nums}
}
