/* ChezBiro° — Home catalogue V31. Sans framework. */
:root{--bg:#090909;--panel:#141414;--paper:#f2efe8;--ink:#101010;--muted:#a09f9d;--line:#333331;--pad:clamp(20px,4.5vw,76px);--head:72px;--card-w:clamp(246px,25vw,388px)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:calc(var(--head) + 18px)}body{margin:0;background:var(--bg);color:var(--paper);font-family:Arial,Helvetica,sans-serif;overflow-x:clip}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default}img{max-width:100%}button:focus-visible,a:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:3px solid #ffd075;outline-offset:4px}.visually-hidden{position:absolute!important;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.skip-link{position:absolute;top:-90px;left:12px;z-index:230;background:var(--paper);color:var(--ink);padding:14px}.skip-link:focus{top:8px}[hidden]{display:none!important}
/* Main navigation */
.site-header{position:sticky;top:0;z-index:80;background:rgba(9,9,9,.97);border-bottom:1px solid #252525;backdrop-filter:blur(16px)}.header-bar{height:var(--head);padding:0 var(--pad);display:flex;align-items:center;gap:clamp(25px,4vw,80px)}.header-logo{flex-shrink:0;display:inline-flex;align-items:center;width:clamp(125px,12vw,164px);height:54px}.header-logo img{width:100%;height:auto;max-height:52px;object-fit:contain;object-position:left center}.nav-desktop{display:flex;align-items:center;gap:clamp(17px,2.1vw,38px);white-space:nowrap}.nav-desktop a,.nav-mobile a{font-size:11px;font-weight:800;letter-spacing:.11em;color:#a7a5a2;transition:color .18s}.nav-desktop a:hover,.nav-mobile a:hover,.nav-desktop a[aria-current=page],.nav-mobile a[aria-current=page]{color:var(--paper)}.search-open{margin-left:auto;border:1px solid #393939;border-radius:999px;background:#181818;padding:11px 16px;display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.12em;font-weight:800;min-height:44px}.search-open:hover{background:#262626}.search-open svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.nav-mobile{display:none}
/* Lead story */
.feature-hero{height:min(690px,75svh);min-height:530px;position:relative;isolation:isolate;background:#161718;overflow:hidden;scroll-margin-top:var(--head)}.feature-image{position:absolute;inset:0;background:radial-gradient(ellipse at 70% 40%,#303438 0%,#141515 66%);overflow:hidden}.feature-image img{width:100%;height:100%;object-fit:cover;object-position:67% center;display:block;opacity:.95}.feature-shade{position:absolute;inset:0;background:linear-gradient(90deg,#090909 1%,rgba(9,9,9,.96) 20%,rgba(9,9,9,.66) 46%,rgba(9,9,9,.07) 78%),linear-gradient(0deg,#090909 0%,transparent 32%,rgba(9,9,9,.18) 100%)}.feature-content{z-index:3;position:absolute;left:var(--pad);bottom:clamp(100px,17%,143px);max-width:min(650px,57%);pointer-events:none}.hero-kicker,.feature-type{display:block;font-size:11px;font-weight:800;letter-spacing:.2em;color:#d6d5d1}.feature-content h1{font-size:clamp(53px,6.4vw,104px);font-weight:900;line-height:.97;letter-spacing:-.062em;margin:16px 0 18px;max-width:12ch;text-wrap:balance;overflow-wrap:break-word}.feature-content p{font-size:clamp(16px,1.45vw,20px);line-height:1.47;color:#e0dfdd;max-width:49ch;margin:0 0 26px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hero-cta{display:inline-flex;background:var(--paper);color:var(--ink);padding:16px 23px;border-radius:5px;font-size:12px;font-weight:900;letter-spacing:.11em;align-items:center;gap:22px;pointer-events:none}.feature-hit{position:absolute;inset:0;z-index:2;border:0;background:transparent;width:100%;text-align:left;cursor:pointer}.feature-hit:focus-visible{outline-offset:-6px}.hero-foot{position:absolute;z-index:4;bottom:0;left:var(--pad);right:var(--pad);display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #ffffff55;padding:20px 0;color:#d4d3d1;font-size:10px;letter-spacing:.16em;font-weight:800}.hero-foot a{position:relative;z-index:5;padding:10px 0}.hero-foot a:hover{text-decoration:underline;text-underline-offset:5px}
/* Universal carousel collection */
.catalogue-body{padding:34px 0 94px}.collection-section{padding:35px 0 30px;scroll-margin-top:calc(var(--head) + 18px)}.collection-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:0 var(--pad) 20px}.collection-heading h2{margin:0;font-size:clamp(22px,2.2vw,34px);font-weight:900;letter-spacing:-.045em;line-height:1.08}.collection-heading .count{font-size:10px;color:var(--muted);letter-spacing:.16em}.collection-arrows{display:flex;gap:8px;margin-left:auto}.collection-arrow{width:39px;height:39px;background:#232322;border:1px solid #3f3f3c;border-radius:50%;display:grid;place-items:center;font-size:19px;transition:background .2s}.collection-arrow:hover:not(:disabled){background:#434340}.collection-arrow:disabled{opacity:.25}.collection-track{display:flex;gap:16px;padding:4px var(--pad) 25px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--pad);scrollbar-width:thin;scrollbar-color:#4e4e4c transparent;-webkit-overflow-scrolling:touch}.resource-card{scroll-snap-align:start;flex:0 0 var(--card-w);min-width:0;display:block;cursor:pointer;outline-offset:2px}.resource-poster{position:relative;aspect-ratio:16/9;border-radius:8px;background:linear-gradient(145deg,#252525,#111);overflow:hidden;border:1px solid #383838;transition:transform .18s,border-color .18s}.resource-card:hover .resource-poster,.resource-card:focus-visible .resource-poster{transform:translateY(-3px);border-color:#b9b7b2}.resource-poster img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.resource-poster.is-booklet img{object-fit:contain;padding:13px;background:radial-gradient(circle at 50% 50%,#353532,#1b1b1a)}.resource-poster.missing{background:radial-gradient(circle at 75% 25%,color-mix(in srgb,var(--accent) 24%,#141414),transparent 66%),linear-gradient(130deg,#282828,#111)}.fallback-symbol{position:absolute;bottom:12%;left:8%;width:70%;font-size:clamp(38px,4vw,70px);line-height:1;letter-spacing:-.08em;font-weight:900;color:#f2efe8}.fallback-brand{position:absolute;left:8%;top:12%;font-size:10px;font-weight:900;letter-spacing:.14em}.poster-label{position:absolute;bottom:11px;right:11px;font-size:9px;font-weight:900;letter-spacing:.09em;background:#090909dd;padding:7px 8px;border-radius:3px}.resource-title{font-size:17px;font-weight:800;line-height:1.24;letter-spacing:-.025em;margin:11px 0 5px;max-width:100%;text-wrap:balance}.resource-meta{font-size:11px;color:#b1aeaa;display:flex;gap:10px;align-items:center;min-height:16px}.resource-devices{display:flex;align-items:center;gap:6px;margin-top:9px}.device{display:inline-flex;align-items:center;justify-content:center;position:relative;width:24px;height:24px;border:1px solid #424240;border-radius:5px;color:#a5a4a1}.device svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linejoin:round;stroke-linecap:round}.device[data-state=optimized]{color:#58ce97;border-color:#347659}.device[data-state=untested]{color:#a5a4a1}.device[data-state=untested]::after{content:'?';position:absolute;right:-2px;top:-5px;font:900 9px Arial;background:#272725;color:var(--paper);border-radius:8px;padding:0 2px}.device[data-state=unsupported],.device[data-state=not_optimized]{color:#a4a2a0;opacity:.75}.device[data-state=unsupported]::after,.device[data-state=not_optimized]::after{content:'';position:absolute;width:19px;height:2px;background:currentColor;transform:rotate(-42deg)}.catalogue-status{margin:8px var(--pad);font-size:14px;color:#aaa}.catalogue-status:empty{display:none}
.studio-strip{background:#f2efe8;color:#090909;padding:70px var(--pad);display:flex;flex-direction:column;gap:18px}.studio-strip>span{font-size:10px;letter-spacing:.16em;font-weight:900}.studio-strip p{max-width:850px;font-size:clamp(32px,4.2vw,66px);font-weight:900;letter-spacing:-.065em;line-height:1.06;margin:0}.studio-strip a{align-self:flex-start;font-size:12px;letter-spacing:.1em;font-weight:900;margin-top:12px;padding:13px 0;border-bottom:1px solid #090909}
.site-footer{padding:76px var(--pad) 27px}.site-footer-title img{width:185px;height:auto;max-height:70px;object-fit:contain;object-position:left}.site-footer-row{display:flex;justify-content:space-between;gap:20px;align-items:start;border-top:1px solid var(--line);padding-top:23px;margin-top:58px;font-size:10px;letter-spacing:.1em;font-weight:800}.site-footer-row nav{display:flex;gap:14px 28px;flex-wrap:wrap;justify-content:flex-end}.site-footer-row a:hover{text-decoration:underline;text-underline-offset:4px}
/* Index – legacy search engine, upgraded focus and scroll */
.index-panel{position:fixed;inset:0;z-index:140;background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;transform:translateY(-102%);transition:transform .35s cubic-bezier(.22,.72,.2,1);padding:25px var(--pad) 75px;height:100dvh}.index-panel.open{transform:translateY(0)}.index-top{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:10px;font-weight:800;letter-spacing:.1em}.index-close{border:0;background:transparent;font-size:12px;font-weight:900;padding:10px 0}.index-close span{font-size:20px;vertical-align:middle;padding-left:6px}.index-search{width:100%;border:0;border-bottom:1px solid #aba9a4;background:transparent;color:#101010;letter-spacing:-.055em;font-size:clamp(36px,7vw,94px);padding:clamp(42px,7vh,100px) 0 16px;outline:0}.index-search:focus{border-color:#101010}.index-filters{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 35px}.index-filters button{border:1px solid #9c9993;background:transparent;color:#111;border-radius:999px;padding:10px 13px;font-size:10px;letter-spacing:.09em;min-height:39px}.index-filters button.active{background:#111;color:white}.index-row{display:grid;grid-template-columns:48px minmax(0,1fr) 85px 90px 23px;align-items:center;gap:16px;text-align:left;width:100%;border:0;border-top:1px solid #bcbab5;padding:17px 0;background:transparent;color:inherit;cursor:pointer}.index-row:last-child{border-bottom:1px solid #bcbab5}.index-row .title{font-size:clamp(22px,2.8vw,43px);line-height:1.2;letter-spacing:-.035em;text-align:left}.index-row .meta{font-size:10px;letter-spacing:.08em}.index-row:hover .title{text-decoration:underline;text-underline-offset:4px}.index-empty{font-size:28px;padding:45px 0}
/* Shared universal preview */
.shade{position:fixed;inset:0;z-index:150;background:#000b;opacity:0;transition:opacity .2s}.shade.on{opacity:1}.drawer{position:fixed;z-index:160;top:0;right:0;width:min(690px,100%);height:100dvh;overflow-y:auto;overscroll-behavior:contain;background:var(--paper);color:var(--ink);padding:29px clamp(21px,3vw,47px) 50px;transform:translateX(104%);transition:transform .36s cubic-bezier(.21,.78,.2,1);box-shadow:-20px 0 100px #0008}.drawer.open{transform:translateX(0)}.drawer-top{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px;letter-spacing:.16em;font-weight:800}.drawer-close{border:0;background:transparent;font-size:32px;line-height:1;padding:2px 10px}.drawer h2{font-size:clamp(42px,5vw,74px);font-weight:900;line-height:1.03;letter-spacing:-.052em;margin:25px 0 16px;text-wrap:balance;overflow-wrap:break-word}.drawer-pitch{font-size:clamp(16px,1.6vw,19px);line-height:1.5;margin:0;max-width:55ch}.drawer-media{margin:26px 0 19px;aspect-ratio:16/9;background:#1c1c1c;border-radius:8px;overflow:hidden}.drawer-media img{width:100%;height:100%;object-fit:contain}.drawer-media .resource-poster{height:100%;border-radius:0}.drawer-meta{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.drawer-meta span{border:1px solid #a6a4a0;border-radius:999px;font-size:11px;padding:8px 10px}.drawer-devices{font-size:12px;color:#3c3c3c;margin:18px 0}.drawer-devices .resource-devices{margin-top:9px}.drawer-devices .device{color:#565656;border-color:#b0b0b0}.drawer-devices .device[data-state=optimized]{color:#21895b}.drawer-devices .device[data-state=untested]::after{background:#e3e0d8;color:#444}.drawer-actions{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0}.drawer-action{display:inline-flex;align-items:center;gap:17px;padding:16px 17px;border-radius:5px;min-height:50px;background:#111;color:#fff;font-size:11px;font-weight:900;letter-spacing:.07em}.drawer-action.secondary{background:transparent;color:#111;border:1px solid #111}.drawer-action:hover{filter:brightness(1.15)}
@media(max-width:900px){:root{--head:66px}.header-bar{gap:22px}.search-open span{display:none}.search-open{padding:12px}.feature-hero{min-height:500px}.feature-content{max-width:70%}.feature-shade{background:linear-gradient(90deg,#090909 0%,#090909df 30%,#09090955 83%),linear-gradient(0deg,#090909,transparent 24%)}.studio-strip{padding-top:56px;padding-bottom:56px}}
@media(max-width:620px){:root{--head:103px;--pad:18px;--card-w:min(79vw,340px)}.site-header{backdrop-filter:none}.header-bar{height:59px}.header-logo{width:130px}.header-logo img{max-height:44px}.nav-desktop{display:none}.nav-mobile{height:44px;display:flex;align-items:center;gap:23px;padding:0 var(--pad);overflow-x:auto;white-space:nowrap;scrollbar-width:none}.nav-mobile::-webkit-scrollbar{display:none}.nav-mobile a{font-size:10px;flex:none}.feature-hero{height:auto;min-height:610px;max-height:none}.feature-image{inset:0 0 29%}.feature-image img{object-position:60% top}.feature-shade{background:linear-gradient(0deg,#090909 1%,#090909 25%,#09090985 55%,#09090912 100%)}.feature-content{max-width:none;left:var(--pad);right:var(--pad);bottom:93px}.feature-content h1{font-size:clamp(46px,11.4vw,66px);margin:11px 0 11px;max-width:11ch}.feature-content p{font-size:15px;line-height:1.4;-webkit-line-clamp:2;margin-bottom:18px}.hero-cta{font-size:11px;padding:14px 18px}.hero-foot{font-size:9px;padding:15px 0}.hero-foot span:first-child{max-width:150px;line-height:1.4}.catalogue-body{padding-top:17px;padding-bottom:48px}.collection-section{padding:29px 0 24px}.collection-heading{margin-bottom:16px}.collection-heading h2{font-size:24px}.collection-heading .count{display:none}.collection-arrow{width:35px;height:35px;font-size:17px}.collection-track{gap:12px}.resource-title{font-size:16px}.studio-strip p{font-size:clamp(34px,9vw,53px)}.site-footer{padding-top:60px}.site-footer-row{flex-direction:column;gap:25px}.site-footer-row nav{justify-content:start}.index-panel{padding:18px var(--pad) 80px}.index-top span:nth-child(2){display:none}.index-search{font-size:clamp(42px,12vw,66px);padding-top:45px}.index-row{grid-template-columns:30px minmax(0,1fr) 20px;gap:10px}.index-row .meta{display:none}.index-row .title{font-size:clamp(18px,5.7vw,29px)}.drawer{padding:22px 18px 40px}.drawer h2{font-size:clamp(38px,11vw,56px);margin-top:25px}.drawer-media{margin-top:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.lab-page{background:var(--paper);color:var(--ink)}.lab-hero{padding:14vh var(--pad) 8vh}.lab-hero h1{font-size:clamp(76px,16vw,240px);letter-spacing:-.09em;line-height:.75;margin:0}.lab-hero p{font-size:clamp(20px,2.4vw,36px);max-width:28ch;margin:7vh 0 0 auto}.lab-section{padding:4vh var(--pad) 9vh;border-top:1px solid #bbb}.lab-section-head{display:grid;grid-template-columns:90px 1fr;gap:20px;margin-bottom:35px}.lab-section-head b{font-size:10px;letter-spacing:.15em}.lab-section-head h2{font-size:clamp(38px,6vw,90px);letter-spacing:-.065em;margin:0;line-height:.86}.lab-items{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.lab-item{min-height:310px;border:1px solid #aaa;border-radius:8px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;transition:.25s}.lab-item:hover{background:#111;color:var(--paper);border-radius:30px}.lab-item h3{font-size:clamp(28px,3.5vw,58px);letter-spacing:-.05em;line-height:.88;margin:0}.lab-item p{max-width:34ch;line-height:1.4}.lab-item small{letter-spacing:.13em;text-transform:uppercase}

/* Legacy Lab page support */
.top{position:fixed;top:0;left:0;width:100%;z-index:80;padding:22px var(--pad);display:flex;justify-content:space-between;align-items:center;color:#fff;pointer-events:none}.top>*{pointer-events:auto}.top .brand,.top .index-btn{font-size:14px;font-weight:900;letter-spacing:.09em}.lab-page .footer{padding:9vh var(--pad) 4vh}.lab-page .footer-logo{width:min(27vw,390px)}.lab-page .footer-logo img{width:100%;height:auto;display:block}.lab-page .footer-row{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #333;padding-top:18px;font-size:10px;letter-spacing:.1em}.lab-page .footer-links{display:flex;gap:12px 26px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:950px){.lab-items{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.lab-hero,.lab-section{padding-left:18px;padding-right:18px}.lab-items{grid-template-columns:1fr}.lab-section-head{grid-template-columns:60px 1fr}.lab-page .footer-row{flex-direction:column}.lab-page .footer-links{justify-content:flex-start}.lab-page .footer-logo{width:52vw}.lab-call{grid-template-columns:1fr}}

/* Button reset for universal cards */
.resource-card{appearance:none;background:transparent;border:0;padding:0;color:inherit;font-family:inherit;text-align:left}.resource-card .resource-title{text-align:left}.resource-card .resource-meta{text-align:left}.image-error{background:#202020!important}.image-error::after{content:'Visuel indisponible';position:absolute;inset:0;display:grid;place-items:center;background:#1f1f1f;color:#ddd;font-size:14px}.feature-image.image-error::after{background:#171717;content:''}.drawer-media.image-error::after{content:'Visuel indisponible'}.hero-fallback{font-size:7vw;font-weight:900;padding:25vh 20vw 0;text-align:right}
/* V31.1 — ancres : ne pas cumuler scroll-padding (html) et scroll-margin (sections). */
.feature-hero,.collection-section{scroll-margin-top:0}
/* V31.1 — une vignette manquante ne doit jamais recouvrir le bouton de fermeture du tiroir. */
.drawer-media{position:relative}

/* État vide des rubriques LAB — V31.2 */
.lab-empty{grid-column:1/-1;min-height:100px;margin:0;display:flex;align-items:center;color:#62625f;font-size:clamp(14px,1.4vw,18px);letter-spacing:.02em;border-top:1px solid #c6c3bc;padding:20px 0}

/* V31.3 — Compatibilité binaire UNIQUEMENT lorsqu'elle est vérifiée.
   Les icônes sont en HTML/SVG, jamais intégrées dans les images. */
.device[data-state="optimized"],
.drawer-devices .device[data-state="optimized"] {color:#30c879;border-color:#30c879;opacity:1;background:rgba(48,200,121,.10)}

.device[data-state="limited"],
.drawer-devices .device[data-state="limited"] {color:#e7a64b;border-color:#e7a64b;opacity:1;background:rgba(231,166,75,.12)}
.device[data-state="limited"]::after,
.drawer-devices .device[data-state="limited"]::after {content:none}
.device[data-state="not_optimized"],
.drawer-devices .device[data-state="not_optimized"] {color:#f25b61;border-color:#f25b61;opacity:1;background:rgba(242,91,97,.10)}
.device[data-state="not_optimized"]::after,
.drawer-devices .device[data-state="not_optimized"]::after {content:none}

/* V31.7.1 — Alignement vertical fiable des vignettes et des titres.
   La media reste a la meme ordonnee, quelle que soit la longueur du titre. */
.collection-track{align-items:flex-start}
.collection-track .resource-card{display:flex;flex-direction:column;align-self:flex-start;justify-content:flex-start;min-width:0}
.collection-track .resource-poster{flex:none;width:100%;margin:0;aspect-ratio:16/9}
.collection-track .resource-title{flex:none;min-height:calc(2 * 1.24em);line-height:1.24;margin:11px 0 5px}
.collection-track .resource-meta{flex:none}

/* V31.8 — Raccourci DON’T TOUCH, accessible depuis le header, sans recouvrir la recherche. */
.dont-touch-shortcut{flex:none;display:inline-flex;align-items:center;gap:5px;min-height:44px;white-space:nowrap;font-size:10px;font-weight:900;letter-spacing:.1em;color:var(--paper);border:1px solid #43433f;border-radius:999px;padding:0 13px;transition:background .2s}
.dont-touch-shortcut:hover,.dont-touch-shortcut:focus-visible{background:#292928}
.search-open{margin-left:0}
.nav-desktop{margin-right:auto}
/* Titres deux lignes, puis indicateurs, puis TOUS les visuels à hauteur identique. */
.collection-track .resource-card{display:flex;flex-direction:column;justify-content:flex-start;align-self:flex-start}
.collection-track .resource-title{order:0;flex:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-height:calc(2*1.24em);max-height:calc(2*1.24em);line-height:1.24;margin:0 0 8px;text-wrap:balance}
.collection-track .resource-indicators{order:1;flex:none}
.collection-track .resource-poster{order:2;flex:none;width:100%;margin:0;aspect-ratio:16/9}
.collection-track .resource-meta{order:3;flex:none;margin-top:9px}
.resource-indicators{display:flex;align-items:center;gap:6px;height:32px;min-height:32px;margin-bottom:9px}
.resource-indicators .resource-devices{margin:0 0 0 auto;display:flex;gap:5px}
.app-flag{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;flex:none;border:1px solid #5a5856;color:#d2d1cd;border-radius:6px;background:#222222;line-height:1;font-size:10px;font-weight:900}
.app-flag-size{min-width:26px;width:auto;padding:0 5px;background:#f2efe8;color:#111;border-color:#f2efe8;font-size:11px;letter-spacing:-.02em}
.app-flag svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.app-flag.project-in-progress{color:#e7a64b;border-color:#b47831}
.app-flag.project-prototype{color:#f3c06a;border-color:#996c2d}
.app-flag.project-finished{color:#65d6a2;border-color:#347759}
/* Compatibilité uniquement binaire, rouge/vert, aucune icône "non testé". */
.resource-indicators .device{width:26px;height:26px}
.drawer-attributes .resource-indicators{justify-content:flex-start;gap:8px;min-height:35px;height:auto;margin:24px 0 0;flex-wrap:wrap}
.drawer-attributes .resource-indicators .resource-devices{margin-left:10px}
.drawer-attributes .app-flag{border-color:#adaba7;background:#e7e4dc;color:#222}
.drawer-attributes .app-flag-size{background:#111;color:#fff}
@media(max-width:1100px){.header-bar{gap:clamp(9px,1.5vw,22px)}.nav-desktop{gap:clamp(9px,1.6vw,20px)}.dont-touch-shortcut{padding:0 10px;font-size:9px}}
@media(max-width:620px){.header-bar{gap:8px}.search-open{margin-left:0}.dont-touch-shortcut{margin-left:auto;font-size:9px;min-height:38px;padding:0 9px;letter-spacing:.04em}.search-open{min-height:38px;padding:9px}.resource-indicators{gap:5px}.app-flag,.resource-indicators .device{width:24px;height:24px}.collection-track .resource-title{font-size:16px}}

.app-indicators-legend{margin:0 var(--pad) 18px;border:1px solid #343431;border-radius:8px;color:#c5c4be;padding:9px 12px;font-size:11px}
.app-indicators-legend summary{cursor:pointer;font-size:10px;font-weight:850;letter-spacing:.09em;min-height:23px;display:list-item;list-style-position:inside}
.app-indicators-legend[open]{background:#1c1c1c}
.app-legend-lines{display:flex;gap:10px 22px;flex-wrap:wrap;padding:9px 0 3px;line-height:1.5}
.app-legend-lines b{display:inline-block;background:#f2efe8;color:#111;min-width:24px;text-align:center;padding:1px 5px;border-radius:3px;margin-right:5px}
.app-legend-green{color:#30c879}.app-legend-red{color:#f25b61}


/* V31.8.1 — Un niveau + indicateurs sous la vignette; aucun mouvement des images. */
.collection-track .resource-card{display:flex;flex-direction:column;align-items:stretch}
.collection-track .resource-title{order:0}
.collection-track .resource-poster{order:1;aspect-ratio:16/9;margin:0}
.collection-track .resource-footer{order:2;display:flex;align-items:flex-start;gap:9px;margin-top:10px;width:100%;min-width:0;min-height:26px}
.collection-track .resource-footer .resource-meta{order:0;display:inline-flex;align-items:center;flex:0 0 auto;min-height:26px;line-height:1.2;white-space:nowrap;font-size:11px;color:#b1aeaa}
.collection-track .resource-footer .resource-indicators{order:1;flex:1 1 0;min-width:0;min-height:26px;height:auto;align-items:flex-start;align-content:flex-start;display:flex;flex-wrap:wrap;gap:4px;margin:0}
.collection-track .resource-footer .resource-devices{display:contents}
.collection-track .resource-footer .app-flag,.collection-track .resource-footer .device{width:24px;height:24px}
.collection-track .resource-footer .app-flag-size{width:auto;min-width:24px}
.collection-track .resource-footer .resource-indicators .device[data-state="optimized"]{color:#30c879;border-color:#30c879;opacity:1}
.collection-track .resource-footer .resource-indicators .device[data-state="limited"]{color:#e7a64b;border-color:#e7a64b;opacity:1}
.collection-track .resource-footer .resource-indicators .device[data-state="not_optimized"]{color:#f25b61;border-color:#f25b61;opacity:1}
/* Légende à côté des flèches : panneau déroulant surimposé, sans perdre de hauteur dans le carrousel. */
.collection-heading{position:relative;z-index:3;flex-wrap:wrap;align-items:center}
.collection-controls{display:flex;align-items:center;gap:10px;margin-left:auto;min-width:0}
.collection-controls .collection-arrows{flex:none;margin:0}
.collection-controls .app-indicators-legend{position:relative;flex:none;margin:0;padding:0;border:0;background:transparent;font-size:11px;color:#f2efe8}
.collection-controls .app-indicators-legend[open]{background:transparent}
.collection-controls .app-indicators-legend summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:6px;min-height:37px;border:1px solid #484844;border-radius:999px;padding:0 12px;font-size:10px;letter-spacing:.05em;cursor:pointer;white-space:nowrap;background:#222}
.collection-controls .app-indicators-legend summary::-webkit-details-marker{display:none}
.collection-controls .app-indicators-legend summary::after{content:'?';font-weight:950;font-size:12px;border:1px solid #777;border-radius:100%;width:15px;height:15px;display:inline-grid;place-items:center}
.collection-controls .app-indicators-legend[open] summary{background:#363633}
.collection-controls .app-indicators-legend summary:focus-visible{outline:2px solid #f2efe8;outline-offset:3px}
.collection-controls .app-legend-lines{position:absolute;top:calc(100% + 9px);right:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;width:min(420px,calc(100vw - 38px));max-height:60vh;overflow:auto;padding:17px;background:#171716;border:1px solid #4c4c48;border-radius:10px;box-shadow:0 15px 35px #000a;z-index:20;color:#eee;line-height:1.4}
.collection-controls .app-legend-lines span{min-width:0}
@media(max-width:620px){
  .collection-heading{align-items:flex-start;row-gap:10px}
  .collection-controls{gap:6px;flex:1 0 100%;justify-content:flex-end}
  .collection-controls .app-indicators-legend summary{padding:0 9px;min-height:35px;font-size:9px}
  .collection-track .resource-footer{gap:7px}
  .collection-track .resource-footer .app-flag,.collection-track .resource-footer .device{width:22px;height:22px}
  .collection-track .resource-footer .resource-indicators{gap:3px}
  .collection-controls .app-legend-lines{grid-template-columns:1fr;right:-76px;width:min(330px,calc(100vw - 38px))}
}

/* Légende : utiliser les SVG réels, plutôt que des symboles approchants. */
.collection-controls .app-legend-lines .legend-item{display:flex;align-items:center;gap:9px;min-width:0;font-size:11px}
.collection-controls .app-legend-lines .legend-item .resource-devices{display:inline-flex;margin:0}
.collection-controls .app-legend-lines .legend-item .app-flag,.collection-controls .app-legend-lines .legend-item .device{flex:none}

/* V31.8.2 — Tous les indicateurs des cartes sur une seule ligne.
   Priorité aux pictogrammes : si le niveau est long, lui seul est tronqué.
   Les icônes se réduisent proportionnellement, sans revenir à la ligne,
   y compris sur les plus petites cartes de mobile. */
.collection-track .resource-footer {
  align-items:center;
  flex-wrap:nowrap;
  min-width:0;
}
.collection-track .resource-footer .resource-meta {
  min-width:0;
  max-width:32%;
  flex:0 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.collection-track .resource-footer .resource-indicators {
  display:flex;
  flex-flow:row nowrap;
  flex:1 1 auto;
  align-items:center;
  justify-content:flex-end;
  align-content:center;
  min-width:0;
  overflow:hidden;
  gap:3px;
}
.collection-track .resource-footer .resource-devices {display:contents}
.collection-track .resource-footer .app-flag,
.collection-track .resource-footer .device {
  flex:0 1 24px;
  min-width:0;
  width:24px;
  height:auto;
  max-height:24px;
  aspect-ratio:1;
}
.collection-track .resource-footer .app-flag-size {
  min-width:0;
  padding:0 1px;
  font-size:10px;
  white-space:nowrap;
}
.collection-track .resource-footer .app-flag svg,
.collection-track .resource-footer .device svg {
  width:66%;
  height:66%;
  max-width:17px;
  max-height:17px;
}
@media(max-width:620px){
  .collection-track .resource-footer .resource-indicators{gap:2px}
  .collection-track .resource-footer .app-flag,
  .collection-track .resource-footer .device{width:22px;max-height:22px;flex-basis:22px}
  .collection-track .resource-footer .app-flag-size{font-size:9px}
}


/* ChezBiro° V32.0 PREPROD — classification et navigation Espace prof°.
   Lot 1 : les cartes et les actions demeurent accessibles (pas encore de verrouillage). */
.teacher-collection .teacher-intro{margin:0 var(--pad) 18px;color:#b7b4ae;font-size:clamp(13px,1.3vw,16px);line-height:1.5;max-width:760px}
.teacher-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 var(--pad) 20px;align-items:center}
.teacher-filters button{min-height:39px;padding:9px 13px;border:1px solid #51504c;border-radius:999px;background:#1d1d1c;color:#d2d0cb;font-size:10px;font-weight:800;letter-spacing:.045em;transition:background .15s,border-color .15s}
.teacher-filters button:hover{background:#323230}
.teacher-filters button.active{background:var(--paper);border-color:var(--paper);color:var(--ink)}
.teacher-empty{margin:20px var(--pad) 28px;color:var(--muted);font-size:14px}
.index-row .title{min-width:0}
.index-teacher-indicator{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;margin-left:8px;color:#6f6d69;white-space:nowrap}
.index-teacher-lock{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:620px){.teacher-filters{gap:6px}.teacher-filters button{font-size:9px;min-height:38px;padding:8px 10px}.teacher-collection .teacher-intro{font-size:13px}}


/* ChezBiro° V32.1 PREPROD — contrôle d'accès visuel, indépendant des vignettes. */
.resource-card.is-teacher-locked{position:relative}
.resource-card.is-teacher-locked .resource-poster img{filter:grayscale(1) brightness(.47)}
.resource-card.is-teacher-locked .resource-poster::after{content:'';pointer-events:none;position:absolute;inset:0;background:rgba(9,9,9,.22)}
.resource-card.is-teacher-locked .resource-title,.resource-card.is-teacher-locked .resource-footer{opacity:.68}
.resource-card .teacher-card-lock{position:absolute;z-index:2;top:calc(2 * 1.24em + 8px + 18px);right:12px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#111e;color:#f2efe8;border:1px solid #ddd7;pointer-events:none}
.teacher-card-lock svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.teacher-access-info{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin:0 var(--pad) 20px;padding:15px 18px;border:1px solid #3c3c39;border-radius:9px;color:#d6d4d0;font-size:12px;line-height:1.5}
.teacher-access-links{display:flex;gap:9px;flex-wrap:wrap;margin-left:auto}
.teacher-access-links a,.teacher-access-links button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:5px;padding:10px 14px;font-size:10px;font-weight:850;letter-spacing:.05em}
.teacher-get-code{background:#f2efe8;color:#101010}
.teacher-enter-code{background:transparent;color:#f2efe8;border:1px solid #a29f99}
.teacher-access-granted{border-color:#416452;color:#c5e7d0}
.teacher-renewal-notice{flex-basis:100%;margin:0;color:#f2efe8}
.teacher-renewal-notice strong{display:block;font-size:13px;margin-bottom:3px}
.index-row .index-teacher-indicator{color:#bdbab4}
.drawer-action.teacher-gated-action{border:0;text-align:left;background:#343432}
.teacher-access-layer{position:fixed;inset:0;z-index:260;display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}
.teacher-access-backdrop{position:fixed;inset:0;background:#000d}
.teacher-access-dialog{position:relative;background:#f2efe8;color:#111;width:min(515px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;border-radius:10px;padding:clamp(20px,4vw,35px);box-shadow:0 25px 90px #000a}
.teacher-access-top{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:10px;font-weight:850;letter-spacing:.09em}
.teacher-access-close{width:42px;height:42px;border:1px solid #a8a49f;border-radius:50%;background:transparent;font-size:29px;line-height:1}
.teacher-access-dialog h2{margin:20px 0 14px;font-size:clamp(26px,4vw,39px);line-height:1.1;letter-spacing:-.035em;font-weight:900}
.teacher-access-dialog p{font-size:14px;line-height:1.5;color:#4f4d49}
#teacherCodeForm{display:flex;flex-direction:column;margin:24px 0 10px;gap:10px}
#teacherCodeForm label{font-size:10px;font-weight:850;letter-spacing:.09em}
#teacherCodeInput{width:100%;min-height:48px;border-radius:5px;border:1px solid #908e89;color:#101010;background:#fff;padding:12px;font-size:16px}
.teacher-code-submit,.teacher-access-mail{display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;min-height:48px;padding:12px;border:0;border-radius:5px;font-size:11px;font-weight:850;letter-spacing:.05em}
.teacher-code-submit{background:#111;color:#fff}
.teacher-access-mail{margin-top:11px;background:transparent;border:1px solid #333;color:#111}
.teacher-access-dialog .teacher-code-feedback{margin:0;color:#9a2424;font-size:12px;font-weight:700;min-height:0}
.teacher-access-dialog .teacher-access-disclaimer{margin:12px 0 0;font-size:11px;color:#666}
@media(max-width:620px){.teacher-access-info{margin-bottom:18px;align-items:stretch;flex-direction:column;padding:13px}.teacher-access-links{margin-left:0}.teacher-access-links a,.teacher-access-links button{flex:1 1 auto}.teacher-access-dialog{padding:20px}.resource-card .teacher-card-lock{width:31px;height:31px;right:8px}}
@media(prefers-reduced-motion:reduce){.teacher-access-layer *{scroll-behavior:auto}}

/* ChezBiro° V32.2 PREPROD — demande de code : alternative e-mail visible et copiable. */
.teacher-request-alternative{flex:1 0 100%;margin:0;padding-top:3px;font-size:12px;line-height:1.65;color:#bdbab5}
.teacher-email-address{overflow-wrap:anywhere;font-weight:800;user-select:text}
.teacher-copy-email{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;min-height:34px;margin:4px 0 4px 8px;padding:6px 10px;border:1px solid #9e9a92;border-radius:5px;background:transparent;color:inherit;font-size:10px;letter-spacing:.035em;font-weight:800;cursor:pointer}
.teacher-copy-email:hover,.teacher-copy-email:focus-visible{outline-offset:2px;border-color:currentColor;text-decoration:underline}
.teacher-copy-feedback{display:inline-block;min-height:1em;margin-left:8px;font-size:11px;font-weight:700}
.teacher-access-dialog .teacher-access-disclaimer .teacher-email-address{color:#222}
.teacher-access-dialog .teacher-access-disclaimer .teacher-copy-email{color:#222;border-color:#777}
.teacher-access-dialog .teacher-access-disclaimer .teacher-copy-feedback{color:#285b42}
.teacher-access-dialog .teacher-reply-note{margin-top:3px;font-size:11px}
@media(max-width:620px){.teacher-request-alternative{font-size:12px}.teacher-copy-email{margin-left:4px}}

/* V32.3 — étiquette discrète et indépendante des images : 30 jours */
.resource-poster .teacher-new-mark{position:absolute;top:9px;left:9px;z-index:4;display:inline-block;padding:5px 9px;background:#f2efe8;color:#171717;border-radius:3px;font-size:9px;line-height:1;letter-spacing:.09em;font-weight:900;pointer-events:none}

/* KRONOS° Français — état de projet en développement */
.drawer-attributes .app-flag.project-in-progress{color:#995a11;border-color:#ad792d;background:#fff2d7}

/* V32.7 : fiches objet et lecteurs vidéo de l'Espace prof° */
.resource-poster.is-object img{object-fit:contain;background:#ece9e1}
.drawer-media.has-video-player{aspect-ratio:16/9;background:#090909}
.drawer-media .teacher-video-player{display:block;width:100%;height:100%;border:0}
