/* BRICODIS HUB — charte progressive, compatible avec le portail observé le 28/10/2026. */
:root{--bh-red:#df1231;--bh-red-dark:#b80b24;--bh-ink:#17191e;--bh-muted:#626774;--bh-line:#e3e5eb;--bh-paper:#fff;--bh-ground:#f5f6f8;--bh-radius:18px;--bh-shadow:0 6px 22px #17203708}
html{scroll-padding-top:90px}
body.bh-theme{background:var(--bh-ground);color:var(--bh-ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.55}
.bh-theme *{box-sizing:border-box}
.bh-theme :focus-visible{outline:3px solid var(--bh-red);outline-offset:4px}
.bh-theme .text-brand,.bh-theme .text-brand-hot{color:var(--bh-red)}
.bh-theme>header{position:sticky;top:0;z-index:40;background:#15161bf5;color:white;border:0;border-bottom:3px solid var(--bh-red);backdrop-filter:blur(14px)}
.bh-theme>header>div{max-width:1280px;min-height:72px;height:auto;padding:12px 28px;gap:28px;margin:auto;display:flex;align-items:center}
.bh-theme>header a[href$="#top"]{font-size:22px;font-weight:900;letter-spacing:-.7px;white-space:nowrap}
.bh-theme>header nav{display:flex;margin-left:auto;gap:25px;align-items:center;font-size:13px;font-weight:600}
.bh-theme>header nav a{position:relative;padding:10px 0;color:#d2d3da;text-decoration:none;transition:color .18s}
.bh-theme>header nav a:hover,.bh-theme>header nav a[aria-current]{color:white}
.bh-theme>header nav a[aria-current]:after{content:"";position:absolute;left:0;right:0;bottom:2px;height:2px;background:var(--bh-red)}
.bh-theme #apiStatus{font-size:11px;max-width:180px;margin-left:0;white-space:normal;border-color:#53555e;background:#25262e;padding:6px 10px}
.bh-theme>main{max-width:1280px;padding:0 28px 70px;margin:auto}
.bh-theme #top{max-width:1224px;margin:24px auto 0;border-radius:24px;overflow:hidden;background:#15161b;color:white;box-shadow:0 12px 36px #11182715}
.bh-hero-art{margin:0;background:#131316}
.bh-hero-art img{display:block;width:100%;height:auto}
.bh-theme #top>div{max-width:none;padding:22px 28px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:14px 26px;background:#fff;color:var(--bh-ink)}
.bh-theme #top.bh-with-art>div>p:first-child,.bh-theme #top.bh-with-art h1,.bh-theme #top.bh-with-art>div>div{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.bh-theme #top>div>p{margin:0;color:var(--bh-muted);font-size:14px;max-width:none}
.bh-theme #top ul{margin:0;gap:8px;display:flex;flex-wrap:wrap;justify-content:flex-end}
.bh-theme #top li{padding:8px 10px;background:#f6f6f8;border:1px solid #eeeef2;border-radius:8px;font-size:11px;color:#666975;white-space:nowrap}
.bh-theme #top li b{color:var(--bh-red);font-weight:750}
.bh-theme main>section{padding-top:44px;scroll-margin-top:84px}
.bh-theme h2{font-size:28px;font-weight:800;line-height:1.25;letter-spacing:-.65px}
.bh-theme h2 .text-brand{color:var(--bh-red)}
.bh-theme h3{letter-spacing:-.25px;line-height:1.35}
.bh-theme .card{border:1px solid var(--bh-line);border-radius:var(--bh-radius);background:var(--bh-paper);box-shadow:var(--bh-shadow)}
.bh-theme #acces>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:22px}
.bh-theme #acces a.card{position:relative;display:flex;flex-direction:column;min-height:246px;padding:23px;text-decoration:none;transition:transform .18s,border-color .18s,box-shadow .18s;overflow:hidden}
.bh-theme #acces a.card:hover{transform:translateY(-4px);border-color:#eaa3af;box-shadow:0 14px 28px #87162b0d}
.bh-theme #acces a.card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--bh-red);transform:scaleX(0);transform-origin:left;transition:transform .18s}
.bh-theme #acces a.card:hover:before{transform:scaleX(1)}
.bh-theme #acces a.card>span:first-child{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #f7dce2;border-radius:12px;background:#fff3f5;color:var(--bh-red);margin-bottom:17px;font-size:22px}
.bh-theme #acces a.card h3{font-size:16px;font-weight:750;color:var(--bh-ink)}
.bh-theme #acces a.card p{font-size:13px;line-height:1.6;color:var(--bh-muted);margin-top:8px;flex:1}
.bh-theme #acces a.card>span:last-child{margin-top:18px;color:var(--bh-red);font-size:12px;font-weight:750}
.bh-icon{width:23px;height:23px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.bh-theme #familles{position:relative}
.bh-theme #familles>p{margin-top:8px;font-size:14px;color:var(--bh-muted)}
.bh-search-row{display:flex;align-items:center;gap:18px;justify-content:space-between;margin:22px 0 16px}
.bh-search-wrap{display:flex;align-items:center;gap:10px;background:white;border:1px solid #d9dce4;border-radius:12px;padding:0 14px;width:min(440px,100%);min-height:48px;color:#777c88}
.bh-search-wrap:focus-within{border-color:var(--bh-red);box-shadow:0 0 0 3px #df12310c}
.bh-search-wrap input{width:100%;min-width:0;border:0;outline:none!important;background:transparent;padding:13px 0;font:inherit;font-size:13px;color:var(--bh-ink)}
.bh-count{font-size:12px;color:var(--bh-muted);white-space:nowrap}
.bh-theme #famGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:0}
.bh-theme #famGrid .chip{position:relative;display:flex;align-items:center;gap:14px;text-align:left;min-height:85px;padding:17px;background:white;border:1px solid var(--bh-line);border-radius:14px;box-shadow:none;transition:border-color .16s,background .16s,transform .16s;cursor:pointer}
.bh-theme #famGrid .chip:hover{background:#fff9fa;border-color:#edb2bc;transform:translateY(-2px)}
.bh-theme #famGrid .chip[aria-pressed=true]{border-color:var(--bh-red);background:#fff5f7;box-shadow:0 0 0 1px var(--bh-red)}
.bh-theme #famGrid .chip>span:first-child{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;background:#f7f7fa;color:var(--bh-red);border-radius:9px;font-size:13px;font-weight:800}
.bh-theme #famGrid .chip>span:last-child{font-size:13px;font-weight:650;line-height:1.4;padding-right:12px}
.bh-theme #famGrid .chip:after{content:"›";position:absolute;right:13px;color:#9ca0aa;font-size:21px}
.bh-theme #famGrid .chip[hidden]{display:none!important}
.bh-empty{padding:24px;border:1px dashed var(--bh-line);border-radius:14px;background:white;color:var(--bh-muted);font-size:14px}
.bh-theme #famPanel{padding:26px;border-left:4px solid var(--bh-red);margin-top:22px;scroll-margin-top:90px}
.bh-theme #assistant{margin-top:20px;border-top:1px solid var(--bh-line)}
.bh-theme #assistant>p{max-width:760px;margin-top:10px;line-height:1.7;color:var(--bh-muted)}
.bh-theme #assistant .card{padding:26px}
.bh-theme .field{width:100%;padding:11px 13px;min-height:44px;border:1px solid #d9dce4;border-radius:9px;background:#fcfcfd;color:var(--bh-ink);font-size:14px;transition:border-color .15s,box-shadow .15s}
.bh-theme .field:focus{border-color:var(--bh-red);box-shadow:0 0 0 3px #df123112;outline:none}
.bh-theme .label{display:block;margin:17px 0 6px;font-size:12px;font-weight:700;color:#3d424d}
.bh-theme .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 20px;border-radius:9px;background:var(--bh-red);color:white;font-size:13px;font-weight:750;border:1px solid var(--bh-red);transition:background .18s,transform .18s;cursor:pointer}
.bh-theme .btn:hover{background:var(--bh-red-dark);transform:translateY(-1px)}
.bh-theme .btn-ghost{min-height:40px;padding:9px 15px;border:1px solid #d9dce4;border-radius:9px;background:white;font-size:12px;font-weight:650;color:#343944;cursor:pointer}
.bh-theme button:disabled{cursor:wait;opacity:.55}
.bh-theme details>summary{list-style-position:inside}
.bh-theme footer{padding:26px 24px;border-top:1px solid var(--bh-line);background:white;color:var(--bh-muted);font-size:12px;line-height:1.6}
.bh-menu-button{display:none;border:1px solid #626570;border-radius:8px;background:transparent;padding:8px 12px;color:white;font-size:12px;min-height:40px}
.bh-backtop{position:fixed;right:22px;bottom:22px;z-index:30;width:42px;height:42px;border:1px solid #d8dce4;border-radius:12px;background:white;color:#363b46;box-shadow:0 4px 18px #00000012;cursor:pointer;font-size:20px}
.bh-backtop[hidden]{display:none}
.bh-skip{position:fixed;left:16px;top:-100px;z-index:100;background:white;color:var(--bh-ink);padding:12px 18px;border-radius:8px}
.bh-skip:focus{top:12px}
@media(min-width:1400px){.bh-theme #top{margin-top:30px}}
@media(max-width:1000px){.bh-theme>header>div{gap:16px;padding:12px 20px}.bh-theme>header nav{gap:15px;font-size:12px}.bh-theme #apiStatus{display:none}.bh-theme #top{margin:18px 20px 0}.bh-theme>main{padding-left:20px;padding-right:20px}.bh-theme #acces>div{grid-template-columns:repeat(2,minmax(0,1fr))}.bh-theme #acces a.card{min-height:225px}.bh-theme #top>div{grid-template-columns:1fr;padding:20px}.bh-theme #top ul{justify-content:flex-start}.bh-theme #famGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){html{scroll-padding-top:80px}.bh-theme>header>div{min-height:64px;padding:10px 18px;flex-wrap:wrap;gap:8px}.bh-theme>header a[href$="#top"]{font-size:20px}.bh-menu-button{display:block;margin-left:auto}.bh-theme>header nav{display:none;order:3;flex:0 0 100%;flex-direction:column;align-items:stretch;gap:1px;margin:8px 0 0;padding:7px 0;border-top:1px solid #3b3d46}.bh-theme>header nav[data-open=true]{display:flex}.bh-theme>header nav a{padding:12px 4px;font-size:14px}.bh-theme #top{margin:14px 14px 0;border-radius:17px}.bh-theme>main{padding:0 16px 48px}.bh-hero-art{height:190px;overflow:hidden}.bh-hero-art img{height:100%;width:185%;max-width:none;object-fit:cover;object-position:right;transform:translateX(-40%)}.bh-theme #top.bh-with-art>div{padding:22px 20px;gap:12px}.bh-theme #top.bh-with-art h1{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal;font-size:29px;line-height:1.1;font-weight:850;color:var(--bh-ink)}.bh-theme #top>div>p{font-size:12px;line-height:1.65}.bh-theme #top li{font-size:10px;padding:6px 8px}.bh-theme #top ul{gap:6px}.bh-theme h2{font-size:24px}.bh-theme main>section{padding-top:32px}.bh-theme #acces>div{gap:10px;margin-top:18px}.bh-theme #acces a.card{min-height:235px;padding:17px 14px}.bh-theme #acces a.card h3{font-size:14px}.bh-theme #acces a.card p{font-size:12px;line-height:1.5}.bh-theme #acces a.card>span:first-child{width:38px;height:38px;border-radius:10px;margin-bottom:13px}.bh-theme #famGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.bh-theme #famGrid .chip{padding:12px 10px;gap:9px;min-height:90px}.bh-theme #famGrid .chip>span:first-child{flex-basis:32px;width:32px;height:36px;font-size:11px}.bh-theme #famGrid .chip>span:last-child{font-size:12px;padding-right:8px}.bh-theme #famGrid .chip:after{right:7px;font-size:17px}.bh-search-row{align-items:stretch;flex-direction:column;gap:9px;margin:18px 0 13px}.bh-search-wrap{width:100%}.bh-count{align-self:flex-end}.bh-theme #assistant .card{padding:20px 16px}.bh-theme #famPanel{padding:20px 16px}.bh-backtop{right:14px;bottom:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.bh-theme *{transition:none!important;animation:none!important}.bh-theme #acces a.card:hover,.bh-theme #famGrid .chip:hover{transform:none}}
@media print{.bh-theme>header{position:static}.bh-menu-button,.bh-backtop,.bh-search-row{display:none!important}.bh-theme #top{box-shadow:none;margin:0}.bh-theme #acces a.card{break-inside:avoid}.bh-theme .card{box-shadow:none}}
