/* Brand page (Haize's mockup, 2026-10-19): the same design on « Ma marque » and in the athletes' view.
   Cover, round logo over its edge, name, activity and signature; three counts; tabs; sections without cards.
   Loaded last: older brand-page rules (brand-profile.css, somagon-theme.css) are overridden here. */
html[data-theme][lang] :is(#app,body) .bp-brand{
 --bp-bg:var(--sg-bg);--bp-text:var(--sg-text);--bp-muted:var(--sg-muted);--bp-line:var(--sg-line);--bp-card:var(--sg-surface);
 --bp-violet:#7657FF;--bp-violet-ink:#5F40EE;--bp-tint:rgba(118,87,255,.1);
 display:block;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;color:var(--bp-text);font-family:var(--elan-ui-font,system-ui)}
html[data-theme="dark"][lang] :is(#app,body) .bp-brand{--bp-violet-ink:#B9A4FF;--bp-tint:rgba(118,87,255,.18)}
html[data-theme][lang] :is(#app,body) .bd-profile-panel .bp-brand{--bp-bg:var(--bd-panel,var(--sg-bg))}
/* Cover: 3:1, the framing chosen in « Modifier la couverture »; a soft fade into the page under it. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-masthead{position:relative;height:auto;aspect-ratio:3/1;overflow:hidden;border:0;isolation:isolate;background:radial-gradient(ellipse at 75% 100%,#3B3152 0,transparent 65%),#1E172D}
html[data-theme="light"][lang] :is(#app,body) .bp-brand .bp-masthead{background:radial-gradient(ellipse at 80% 100%,#DAD3E8 0,transparent 65%),#ECE9F3}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-cover{position:absolute;inset:0}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-masthead--photo .bp-cover::after{content:"";position:absolute;inset:auto 0 0;height:42%;background:linear-gradient(to bottom,transparent,color-mix(in srgb,var(--bp-bg) 72%,transparent));pointer-events:none}
html[data-theme][lang] :is(#app,body) .bp-brand--owner .bp-masthead{border-radius:18px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-cover-edit{position:absolute;top:10px;right:10px;z-index:2;display:inline-flex;align-items:center;gap:7px;min-height:36px;max-width:calc(100% - 20px);margin:0;padding:6px 12px;border:1px solid rgb(255 255 255 / .18);border-radius:999px;background:rgb(18 15 26 / .62);color:#fff;font:600 calc(.8125rem * var(--elan-ui-scale,1))/1.2 var(--elan-ui-font,system-ui);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:none;cursor:pointer}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-cover-edit::before,html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar-edit::before{content:"";position:absolute;inset:-5px}
/* The round logo button keeps its 34px look; inside its 2px border, a 7px margin brings its tap zone to 44 × 44 px (was 40). */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar-edit::before{inset:-7px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-cover-edit svg{flex:none;width:17px;height:17px}
/* Identity: the round logo over the cover's edge, then the name, the activity and the signature. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-content{padding:0}
html[data-theme][lang] :is(#app,body) .bd-profile-panel .bp-brand .bp-content{padding:0 20px max(28px,env(safe-area-inset-bottom,0px))}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-head{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start;margin:-46px 0 0;padding:0 0 0 8px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar-wrap{position:relative;z-index:1;width:96px;height:96px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar{position:relative;display:grid;place-items:center;width:96px;height:96px;margin:0;overflow:hidden;border:4px solid var(--bp-bg)!important;border-radius:50%!important;outline:0;box-sizing:border-box;box-shadow:0 6px 18px rgb(0 0 0 / .22);color:var(--bp-text)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar:not([data-logo-background]){background:#fff!important}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar>span{font:700 calc(1.5rem * var(--elan-ui-scale,1))/1 var(--elan-ui-font,system-ui);color:#202124}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar>img{position:absolute;inset:0;width:100%;height:100%;padding:16%;box-sizing:border-box;object-fit:contain;border-radius:0;background:transparent!important}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar.bd-logo-framed>img{padding:0!important;object-fit:cover}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar-edit{position:absolute;right:-2px;bottom:2px;z-index:2;display:grid;place-items:center;width:34px;height:34px;min-width:0;min-height:0;margin:0;padding:0;border:2px solid var(--bp-bg);border-radius:50%;background:#2B2636;color:#fff;box-shadow:none;cursor:pointer}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar-edit svg{width:17px;height:17px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-intro{min-width:0;padding:52px 0 0}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;margin:-4px 0 6px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-meta:has(>:only-child.sg-verified){position:absolute;top:8px;right:0;margin:0;max-width:calc(100% - 130px)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-meta>button.sg-verified{max-width:100%!important;margin:0!important;font-size:calc(.6875rem * var(--elan-ui-scale,1))!important}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-meta .sg-verified-pill{gap:4px;padding:3px 6px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-meta .sg-verified svg{flex-basis:12px;width:12px;height:12px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-meta :is(.bp-demo,.bp-preview){display:inline-flex;padding:2px 8px;border:1px solid var(--bp-line);border-radius:999px;background:transparent;color:var(--bp-muted)!important;font:500 calc(.75rem * var(--elan-ui-scale,1))/1.5 var(--elan-ui-font,system-ui)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-name{margin:0!important;padding:0;font:700 min(calc(1.75rem * var(--elan-ui-scale,1)),9vw)/1.12 var(--elan-ui-font,system-ui)!important;letter-spacing:-.025em!important;color:var(--bp-text)!important;overflow-wrap:break-word;text-transform:none}
html[data-theme][lang] :is(#app,body) .bp-brand :is(.bp-sector,.bp-category){margin:4px 0 0;font:400 calc(.9375rem * var(--elan-ui-scale,1))/1.4 var(--elan-ui-font,system-ui);color:var(--bp-text)!important;opacity:.86;overflow-wrap:break-word}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tagline{margin:3px 0 0;font:italic 400 calc(.9375rem * var(--elan-ui-scale,1))/1.45 var(--elan-ui-font,system-ui);color:var(--bp-muted)!important;overflow-wrap:break-word}
/* Counts: three cards with their icon. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0 0;padding:0;list-style:none}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"icon value" "label label";align-items:center;gap:4px 8px;min-width:0;margin:0;padding:11px 10px;border:1px solid var(--bp-line);border-radius:14px;background:var(--bp-card)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-icon{grid-area:icon;display:grid;place-items:center;color:var(--bp-violet-ink)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-icon svg{width:24px;height:24px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-text{display:contents}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-text>strong{grid-area:value;font:700 calc(1.25rem * var(--elan-ui-scale,1))/1.1 var(--elan-ui-font,system-ui);font-variant-numeric:tabular-nums;color:var(--bp-text)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-text>span{grid-area:label;font:500 calc(.75rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);color:var(--bp-muted);overflow-wrap:break-word}
@media(min-width:560px){
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat{grid-template-areas:"icon value" "icon label";padding:12px 14px;gap:2px 12px}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-icon svg{width:28px;height:28px}
}
/* Owner: « Modifier le profil » filled, « Aperçu athlète » outlined. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-owner-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 0}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0;min-height:48px;margin:0;padding:8px 12px;border:1.5px solid var(--bp-violet);border-radius:14px;background:transparent;color:var(--bp-violet-ink);font:600 calc(.9375rem * var(--elan-ui-scale,1))/1.25 var(--elan-ui-font,system-ui);text-align:center;box-shadow:none;cursor:pointer}
/* « Modifier le profil » is drawn like « Placer sur mes photos » (somagon-theme.css, Haize, 2026-10-21). */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-action svg{flex:none;width:19px;height:19px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-action:active{opacity:.85}
html[data-theme][lang] :is(#app,body) .bp-brand :is(.bp-action,.bp-cover-edit,.bp-avatar-edit,.bp-tab,.bp-invite,.bp-thumb,.bp-product,.bp-photo,.bp-website-link,.bp-network,.bp-link,.bp-more):focus-visible{outline:2px solid var(--bp-violet-ink);outline-offset:2px}
/* Tabs (Haize, 2026-10-19: « plus fin », « fixe »): plain words sharing the width, each on one line while they fit
   (four on the owner's page with Logos), a thin violet line under the one selected. The bar is not a scroll area:
   touched and dragged, it stays where it is and the page scrolls. A word is never cut: at 320 px « Produits phares »
   goes on two lines (audit 2026-10-26).
   Every tab has the same width, so the violet line is the same length under each one (Haize, 2026-11-10: « toutes les
   cases fassent la même taille »). « Produits phares » (7.6 em at 600) keeps one line in its share: the text follows the
   bar's width, down to 11 px (four tabs: 393 px → 12 px, 440 px → 13.3 px; three tabs: 14 px from 375 px). */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tabs{display:flex;gap:0;margin:18px 0 14px;padding:0;overflow:visible;border-bottom:1px solid var(--bp-line);touch-action:manipulation;scroll-margin-top:12px;container:bp-tabs/inline-size}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tab{position:relative;flex:1 1 0;min-width:0;min-height:44px;margin:0;padding:10px 6px 11px;border:0;border-radius:0;background:transparent;color:var(--bp-muted);font:500 calc(.875rem * var(--elan-ui-scale,1))/1.25 var(--elan-ui-font,system-ui);text-align:center;white-space:nowrap;overflow-wrap:normal;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tabs:has(>.bp-tab:nth-child(4))>.bp-tab{padding-inline:1px;font-size:max(11px,min(calc(.875rem * var(--elan-ui-scale,1)),calc(3.19vw - .8px)));font-size:max(11px,min(calc(.875rem * var(--elan-ui-scale,1)),calc(3.19cqi - .25px)))}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tabs:has(>.bp-tab:nth-child(3)):not(:has(>.bp-tab:nth-child(4)))>.bp-tab{font-size:max(11px,min(calc(.875rem * var(--elan-ui-scale,1)),calc(4.25vw - 2.2px)));font-size:max(11px,min(calc(.875rem * var(--elan-ui-scale,1)),calc(4.25cqi - 1.5px)))}
/* Below 360 px, or in English (« Featured products », 8.86 em) once its text is down to 11 px, a name that no longer fits
   on one line goes on two. */
@media(max-width:359px){html[data-theme][lang] :is(#app,body) .bp-brand .bp-tab{white-space:normal}}
html[data-theme][lang^="en"] :is(#app,body) .bp-brand .bp-tab{white-space:normal}
html[data-theme][lang^="en"] :is(#app,body) .bp-brand .bp-tabs:has(>.bp-tab:nth-child(4))>.bp-tab{font-size:max(11px,min(calc(.875rem * var(--elan-ui-scale,1)),calc(2.74vw - .6px)));font-size:max(11px,min(calc(.875rem * var(--elan-ui-scale,1)),calc(2.74cqi - .2px)))}
html[data-theme][lang^="en"] :is(#app,body) .bp-brand .bp-tabs:has(>.bp-tab:nth-child(3)):not(:has(>.bp-tab:nth-child(4)))>.bp-tab{font-size:max(11px,min(calc(.875rem * var(--elan-ui-scale,1)),calc(3.65vw - 1.9px)));font-size:max(11px,min(calc(.875rem * var(--elan-ui-scale,1)),calc(3.65cqi - 1.3px)))}
/* Large text at 320 px still fits whole words with narrower side padding. Text zoomed far past it (the browser's 200 %)
   leaves no room for whole words side by side: they may break there rather than run off the screen. */
@media(max-width:360px){html[data-theme][lang] :is(#app,body) .bp-brand .bp-tab{padding-inline:4px}}
@container bp-tabs (max-width:17.5rem){html[data-theme][lang] :is(#app,body) .bp-brand .bp-tab{min-width:0;overflow-wrap:break-word}}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tab[aria-selected="true"]{background:transparent;color:var(--bp-violet-ink);font-weight:600}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tab[aria-selected="true"]::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:2px 2px 0 0;background:var(--bp-violet)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-panel{display:grid;gap:12px;min-width:0}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-panel[hidden]{display:none!important}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-panel:focus{outline:none}
html[data-theme][lang] :is(#app,body) .bp-brand>.bp-content>.bp-panel:first-of-type:not([role]){margin-top:18px}
/* Sections (Haize, 2026-10-19: « enlève les bulles qui séparent chaque élément », then « oui enlève » for « Ma marque »):
   no card around them, on « Ma marque » as in the athletes' view; they follow each other with room between them. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-section{margin:0;padding:0;border:0;border-radius:0;background:transparent}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-panel{gap:30px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tabs{margin-bottom:22px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;min-width:0}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-section :is(h3,.bp-section-head h3){margin:0!important;font:650 calc(1.125rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui)!important;letter-spacing:-.01em!important;color:var(--bp-text)!important;text-transform:none!important;overflow-wrap:break-word}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-section p{margin:0;font:400 calc(.9375rem * var(--elan-ui-scale,1))/1.6 var(--elan-ui-font,system-ui);color:var(--bp-muted)!important;white-space:pre-line;overflow-wrap:break-word}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-section .bp-more{display:inline-flex;align-items:center;min-height:44px;margin:2px 0 -8px;padding:0;border:0;background:transparent!important;color:var(--bp-violet-ink)!important;font:600 calc(.875rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);text-decoration:none;box-shadow:none}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-count{flex:none;color:var(--bp-muted);font:500 calc(.8125rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);font-variant-numeric:tabular-nums}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-link{flex:none;min-height:44px;margin:-10px -4px;padding:0 4px;border:0;background:transparent;color:var(--bp-violet-ink);font:600 calc(.875rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);box-shadow:none;cursor:pointer}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-empty{margin:4px 0 0;color:var(--bp-muted)}
/* An empty section on the owner's page: a dashed button that leads to where it is filled. */
html[data-theme][lang] :is(#app,body) .bp-invite{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;margin:0;padding:10px 14px;box-sizing:border-box;overflow:hidden;border:1.5px dashed color-mix(in srgb,#7657FF 62%,transparent);border-radius:14px;background:rgba(118,87,255,.05);color:var(--bp-violet-ink,#5F40EE);font:600 calc(.9375rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);text-align:center;box-shadow:none;cursor:pointer}
html[data-theme="dark"][lang] :is(#app,body) .bp-invite{color:var(--bp-violet-ink,#B9A4FF)}
html[data-theme][lang] :is(#app,body) .bp-invite svg{flex:none;width:20px;height:20px}
html[data-theme][lang] :is(#app,body) .bp-invite input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
/* Photos de la marque: four large thumbnails, two per row, the last one counting the others.
   Every card takes its height from an empty block at the top (padding in % of its width), not from aspect-ratio:
   on iPad, Safari sized the grid row shorter than 4:5 cards and they ran over the next section (Haize, 2026-10-19). */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-thumb{position:relative;display:block;width:100%;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-radius:12px;background:var(--sg-soft);box-shadow:none;cursor:pointer}
html[data-theme][lang] :is(#app,body) .bp-brand :is(.bp-thumb,.bp-photo,.bp-photo-add)::before{content:"";display:block;padding-top:75%}
html[data-theme][lang] :is(#app,body) .bp-brand :is(.bp-thumb,.bp-photo)>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-thumb-more{position:absolute;inset:0;display:grid;place-items:center;background:rgb(12 10 18 / .58);color:#fff;font:700 calc(1.0625rem * var(--elan-ui-scale,1))/1 var(--elan-ui-font,system-ui)}
/* Produits phares: 4:5 cards, three per row (the framing chosen when the product was added), the name and a short line over the photo. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-grid>div{display:grid;min-width:0}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-grid .bp-invite{height:100%;min-height:140px;flex-direction:column}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product{position:relative;display:block;width:100%;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;border:1px solid var(--bp-line);border-radius:12px;background:linear-gradient(150deg,#3B2F63,#1C1828);color:#fff;text-align:left;box-shadow:none}
html[data-theme][lang] :is(#app,body) .bp-brand button.bp-product{cursor:pointer}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-media{position:relative;display:block;height:0;padding-top:125%}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-media img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product:not(.is-bare) .bp-product-media::after{content:"";position:absolute;inset:auto 0 0;height:62%;background:linear-gradient(to bottom,transparent,rgb(10 8 16 / .82))}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-text{position:absolute;left:0;right:0;bottom:0;display:grid;gap:1px;padding:8px 9px 9px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-text{padding:10px 11px 11px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-text>strong{font:700 calc(1rem * var(--elan-ui-scale,1))/1.2 var(--elan-ui-font,system-ui);color:#fff;overflow-wrap:break-word}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-text>span{font:400 calc(.8125rem * var(--elan-ui-scale,1))/1.25 var(--elan-ui-font,system-ui);color:rgb(255 255 255 / .86);overflow-wrap:break-word}
/* Disciplines soutenues: chips with a small pictogram. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-sports{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-sports li{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin:0;padding:8px 12px;border:1px solid var(--bp-line)!important;border-radius:12px;background:transparent!important;color:var(--bp-text)!important;font:500 calc(.875rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-sports li svg{flex:none;width:18px;height:18px;color:var(--bp-text)}
/* Réseaux sociaux: the same coloured marks as on athlete pages. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-social-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0;padding:0}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-network{display:grid;place-items:center;width:44px;height:44px;border-radius:12px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-network .sg-social-brand{width:38px;height:38px;border-radius:11px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-network .sg-social-brand svg{width:21px;height:21px}
/* Site internet: one row, the globe on its blue tile (info), the address, the arrow of a link that opens elsewhere. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-website-link{display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:60px;margin:0;padding:8px 14px 8px 8px;box-sizing:border-box;border:1px solid var(--bp-line);border-radius:16px;background:transparent;color:var(--bp-text)!important;font:650 calc(.9375rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);text-decoration:none!important}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-website-link .sg-tile svg{display:block;width:22px;height:22px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-website-address{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-website-link>svg{flex:none;width:18px;height:18px;color:var(--bp-muted)}
/* Photos tab: the brand's photos. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-photo,html[data-theme][lang] :is(#app,body) .bp-brand .bp-photo-add{position:relative;display:block;width:100%;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-radius:14px;background:var(--sg-soft);box-shadow:none}
html[data-theme][lang] :is(#app,body) .bp-brand button.bp-photo{cursor:pointer}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-photo-add{box-sizing:border-box;border:1.5px dashed color-mix(in srgb,#7657FF 62%,transparent);background:rgba(118,87,255,.05);color:var(--bp-violet-ink);font:600 calc(.875rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);text-align:center;cursor:pointer}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-photo-add-inner{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-photo-add input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-photo-add-mark svg{display:block;width:24px;height:24px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-status{margin:10px 0 0;color:var(--bp-muted)!important;font-size:calc(.875rem * var(--elan-ui-scale,1))}
/* Logos tab (owner only): the cards of « Vos logos » (photo-professional.css, brand.css), then « Restaurer le logo »
   after a removal. */
html[data-theme][lang] :is(#app,body) .bp-brand .bv-logo-tab .elan-photo-row{gap:8px!important}
html[data-theme][lang] :is(#app,body) .bp-brand .bv-logo-restore{margin:12px 0 0}
/* Products: three per row on a phone (Haize, 2026-10-19: « trop grand » two by two), four from the iPad width;
   « Présentation » shows one row of them, « Tout voir » the rest. */
@media(max-width:599px){
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-featured .bp-product-grid>:nth-child(n+4){display:none}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-text{padding:7px 8px 8px}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-text>strong{font-size:calc(.875rem * var(--elan-ui-scale,1))}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-text>span{font-size:calc(.75rem * var(--elan-ui-scale,1))}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-product-grid .bp-invite{min-height:120px;padding:8px;font-size:calc(.8125rem * var(--elan-ui-scale,1))}
}
@media(min-width:600px){
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-theme][lang] :is(#app,body) .bp-brand :is(.bp-thumbs,.bp-product-grid){grid-template-columns:repeat(4,minmax(0,1fr))}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-link--phone{display:none}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-head{gap:18px}
}
/* « Ma marque »: the page starts with its cover; the old hub blocks are gone. */
html[data-theme][lang] #app main.bv-brand>.bv-hub{display:block;padding:4px 0 0;gap:0}
/* Larger cards on a phone (Haize, 2026-10-19: « qu'ils viennent effleurer avec un mini espace l'iPhone »): the cover,
   the counts and the buttons of « Ma marque » 8 px from the screen's edges, with slightly larger words in the counts and
   the sections. The sections have no card: their words keep 16 px from the edges, as in the athletes' view. */
@media(max-width:599px){
 html[data-theme][lang] #app main.bv-brand>.bv-hub{margin-inline:-8px}
 html[data-theme][lang] :is(#app,body) .bd-profile-panel .bp-brand .bp-content{padding-inline:16px}
 html[data-theme][lang] :is(#app,body) .bp-brand--owner .bp-panel{padding-inline:8px}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-section p{font-size:calc(1rem * var(--elan-ui-scale,1))}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-stats{gap:6px}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-text>strong{font-size:calc(1.375rem * var(--elan-ui-scale,1))}
 html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-text>span{font-size:calc(.8125rem * var(--elan-ui-scale,1))}
}
/* A section edited from the page: the form waits here, out of sight, while its sheet is open over the page. */
html[data-theme][lang] #app main.bv-brand>.bv-edit-zone[data-bv-quick]{height:0;min-height:0;margin:0;padding:0;border:0;overflow:hidden}
/* Bottom menu of a photo: Remplacer and Supprimer, then the download. */
html[data-theme][lang] #app .bp-menu-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 6px}
html[data-theme][lang] #app .bp-menu-action.is-danger{grid-column:1/-1}
/* Recadrer and Remplacer are the violet action of « Placer sur mes photos » (somagon-theme.css, Haize, 2026-10-21). */
html[data-theme][lang] #app .bp-menu-action{position:relative;display:grid;place-items:center;min-height:46px;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:12px;font:600 calc(.875rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);box-shadow:none;cursor:pointer}
html[data-theme][lang] #app .bp-menu-action.is-danger{border-color:color-mix(in srgb,var(--sg-danger) 55%,transparent);background:transparent;color:var(--sg-danger)}
html[data-theme][lang] #app .bp-menu-action input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
/* The sheet of one product (from the page or « Modifier le profil » › Produits phares) rises from the bottom edge,
   rounded on top, like the other bottom menus (Haize, 2026-10-19: never « coupé tout droit » above the edge). */
html[data-theme] dialog.help-sheet.pe-sheet.bp-product-sheet{inset:auto 0 0;margin:0 auto;width:min(560px,100%);max-width:100%;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px));padding:0 0 env(safe-area-inset-bottom,0px);border:1px solid var(--sg-line);border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -18px 60px #0007;animation:sg-exit-rise 220ms cubic-bezier(.2,.8,.2,1)}
html[data-app-motion="reduced"] dialog.bp-product-sheet{animation:none!important}
@media(prefers-reduced-motion:reduce){dialog.bp-product-sheet{animation:none!important}}
/* « Modifier le profil » › Produits phares: the list and the sheet of one product. */
html[data-theme] dialog.bp-product-sheet .bp-sheet-list{display:grid;gap:0}
html[data-theme] dialog.bp-product-sheet .bp-sheet-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-areas:"thumb label chevron" "thumb value chevron";align-items:center;gap:0 12px;text-align:left}
html[data-theme] dialog.bp-product-sheet .bp-sheet-item .pe-label{grid-area:label}
html[data-theme] dialog.bp-product-sheet .bp-sheet-item .pe-value{grid-area:value;text-align:left}
html[data-theme] dialog.bp-product-sheet .bp-sheet-item .pe-chevron{grid-area:chevron}
html[data-theme] dialog.bp-product-sheet .bp-sheet-thumb{grid-area:thumb;display:block;width:44px;height:44px;overflow:hidden;border-radius:10px;background:linear-gradient(150deg,#3B2F63,#1C1828)}
html[data-theme] dialog.bp-product-sheet .bp-sheet-thumb img{display:block;width:100%;height:100%;object-fit:cover}
html[data-theme] dialog.bp-product-sheet .bp-invite{--bp-violet-ink:#5F40EE;margin-top:6px}
html[data-theme="dark"] dialog.bp-product-sheet .bp-invite{--bp-violet-ink:#B9A4FF}
html[data-theme] dialog.bp-product-sheet .bp-product-photo{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:14px}
html[data-theme] dialog.bp-product-sheet .bp-product-preview{display:grid;place-items:center;width:96px;height:120px;overflow:hidden;border-radius:14px;background:var(--sg-soft);color:var(--sg-muted);font-size:12px;text-align:center}
html[data-theme] dialog.bp-product-sheet .bp-product-picks{display:grid;gap:8px;justify-items:start}
html[data-theme] dialog.bp-product-sheet .bp-product-preview img{display:block;width:100%;height:100%;object-fit:cover}
/* Recadrer, Remplacer and Ajouter une photo: the violet action of « Placer sur mes photos » (somagon-theme.css, Haize, 2026-10-21). */
html[data-theme] dialog.bp-product-sheet .bp-photo-pick{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:120px;margin:0;padding:8px 14px;cursor:pointer}
html[data-theme] dialog.bp-product-sheet label.bp-photo-pick input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
html[data-theme] dialog.bp-product-sheet>footer .ps-save{margin-left:auto}
html[data-theme] dialog.bp-product-sheet>footer .bp-product-delete{min-height:48px;padding:8px 16px;border:1px solid color-mix(in srgb,var(--sg-danger) 55%,transparent);border-radius:12px;background:transparent;color:var(--sg-danger);font-weight:600}
/* « Afficher en grand » (Haize, 2026-10-19): a photo or a product of the brand full screen, for athletes and in
   « Aperçu athlète ». The round cross top right; the arrows and the count at the bottom; a swipe shows the next one. */
html[data-theme] dialog.bp-viewer{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);overflow:hidden;overscroll-behavior:contain;border:0;border-radius:0;background:#0B0910;color:#fff;font-family:var(--elan-ui-font,system-ui)}
html[data-theme] dialog.bp-viewer[open]{display:grid;grid-template-rows:68px minmax(0,1fr) auto}
html[data-theme] dialog.bp-viewer::backdrop{background:#0B0910}
html[data-theme] dialog.bp-viewer .bp-viewer-top{display:flex;align-items:center;justify-content:flex-end;padding:0 12px}
html[lang][data-theme]:root body dialog.bp-viewer .bp-viewer-close[data-sg-close]{color:#fff!important}
html[lang][data-theme]:root body dialog.bp-viewer .bp-viewer-close[data-sg-close] .sg-close-disc{fill:rgb(255 255 255 / .14)!important;stroke:rgb(255 255 255 / .5)!important}
html[data-theme] dialog.bp-viewer .bp-viewer-stage{display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0;margin:0;padding:0 12px;touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none}
html[data-theme] dialog.bp-viewer .bp-viewer-media{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden}
html[data-theme] dialog.bp-viewer .bp-viewer-media img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none}
html[data-theme] dialog.bp-viewer .bp-viewer-blank{display:block;width:min(72vw,320px);height:min(90vw,400px,50vh);border-radius:14px;background:linear-gradient(150deg,#3B2F63,#1C1828)}
html[data-theme] dialog.bp-viewer .bp-viewer-caption{display:grid;gap:2px;padding:14px 8px 0;text-align:center}
html[data-theme] dialog.bp-viewer .bp-viewer-caption:empty{display:none}
html[data-theme] dialog.bp-viewer .bp-viewer-caption strong{font:700 calc(1.125rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);overflow-wrap:break-word}
html[data-theme] dialog.bp-viewer .bp-viewer-caption span{font:400 calc(.9375rem * var(--elan-ui-scale,1))/1.4 var(--elan-ui-font,system-ui);color:rgb(255 255 255 / .74);overflow-wrap:break-word}
html[data-theme] dialog.bp-viewer .bp-viewer-nav{display:flex;align-items:center;justify-content:center;gap:16px;padding:12px 16px 16px}
html[data-theme] dialog.bp-viewer:not(:has(.bp-viewer-nav)){grid-template-rows:68px minmax(0,1fr) 28px}
html[data-theme] dialog.bp-viewer .bp-viewer-step{display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;margin:0;padding:0;border:1px solid rgb(255 255 255 / .22);border-radius:50%;background:rgb(255 255 255 / .12);color:#fff;box-shadow:none;cursor:pointer}
html[data-theme] dialog.bp-viewer .bp-viewer-step svg{width:22px;height:22px}
html[data-theme] dialog.bp-viewer .bp-viewer-step:disabled{opacity:.3;cursor:default}
html[data-theme] dialog.bp-viewer .bp-viewer-step:focus-visible{outline:2px solid #B9A4FF;outline-offset:2px}
html[data-theme] dialog.bp-viewer .bp-viewer-count{min-width:4.5em;font:600 calc(.9375rem * var(--elan-ui-scale,1))/1.3 var(--elan-ui-font,system-ui);font-variant-numeric:tabular-nums;text-align:center;color:rgb(255 255 255 / .86)}

/* Lot B (2026-11-08, V3): « Modifier la couverture » sits in the bottom corner of the cover, so it no longer hides the
   middle of the picture (a product name, a face). The camera of the logo sits outside the round logo, on its edge. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-cover-edit{top:auto;bottom:10px}
/* Review n° 28 (2026-11-11): on its own page a validated brand carries the « Compte validé » pill in the bottom right corner of
   the cover (Haize kept it there, 2026-10-27), exactly where « Modifier la couverture » went on 2026-11-08: the pill covered
   the button. With the pill, the button takes the top corner of the cover; without it, it keeps the bottom corner. */
html[data-theme][lang] :is(#app,body) .bp-brand--owner:has(.bp-head .bp-meta>:only-child.sg-verified) .bp-cover-edit{top:10px;bottom:auto}
/* A logo with a transparent background let the brand's initials show through it: with a logo, the initials are not drawn. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar:has(>img)>span{visibility:hidden}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar-edit{right:-10px;bottom:-10px;width:30px;height:30px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-avatar-edit svg{width:15px;height:15px}
/* Couleurs et icônes (Haize, 2026-11-11): each figure its drawing in a square of its colour (violet under way, blue athletes, green
   done); the tabs of the profile are a track like every tab menu of the app, the chosen one a raised pill, all four on one line. */
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-icon{width:40px;height:40px;border-radius:12px;background:color-mix(in srgb,var(--sg-tone) 16%,transparent);color:var(--sg-tone-icon)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat-icon svg{width:22px;height:22px}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat[data-bp-stat="handshake"]{--sg-tone:var(--sg-live);--sg-tone-icon:var(--sg-live-icon)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat[data-bp-stat="athletes"]{--sg-tone:var(--sg-info);--sg-tone-icon:var(--sg-info-icon)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-stat[data-bp-stat="trophy"]{--sg-tone:var(--sg-ok);--sg-tone-icon:var(--sg-ok-icon)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tabs{gap:0;min-height:44px;padding:0 3px;border:2px solid transparent;border-width:2px 0;border-radius:13px;background:var(--sg-soft);background-clip:padding-box}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tab{isolation:isolate;margin:-2px 0;border-radius:9px;color:var(--sg-muted)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tab[aria-selected="true"]{color:var(--sg-text);font-weight:600}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-tab[aria-selected="true"]::after{left:0;right:0;top:5px;bottom:5px;z-index:-1;height:auto;border-radius:9px;background:var(--sg-surface);box-shadow:0 1px 3px rgba(0,0,0,.16),inset 0 0 0 1px var(--sg-line)}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-sports li>.bp-sport-square{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:7px;color:#17131f}
html[data-theme][lang] :is(#app,body) .bp-brand .bp-sports li>.bp-sport-square>svg{width:17px;height:17px;color:#17131f}
