/* PowerShip COD — feuille de style unique. Propriétés logiques (inline/block) partout pour le RTL. */
@font-face { font-family: "Sora"; src: url(../fonts/sora-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url(../fonts/sora-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../fonts/manrope-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../fonts/manrope-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../fonts/manrope-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy-950: #050F24; --navy-900: #0A1A3A; --navy-800: #102756; --navy-700: #1A3A7A; --navy-500: #3B63B8;
  --orange: #F57C1F; --orange-hover: #FF9140; --orange-soft: #FFE3CC;
  --paper: #FBFAF7; --white: #fff; --ink: #0E1B33; --muted: #56627C; --line: #DFE3EC;
  --on-dark: #E9EEF8; --on-dark-muted: #A9B6D3; --glass: rgba(255,255,255,.045); --glass-line: rgba(255,255,255,.1);
  --error: #B42318; --error-bg: #FEF1F0; --ok: #146C43; --ok-bg: #ECF8F1; --warn: #8A4B00; --warn-bg: #FFF5E6;
  --radius: 14px; --radius-lg: 22px;
  --font-display: "Sora", "Plex Arabic", system-ui, sans-serif;
  --font-body: "Manrope", "Plex Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px -24px rgba(3, 12, 32, .55);
  color-scheme: light;
}
:lang(ar) { --font-display: "Plex Arabic", system-ui, sans-serif; --font-body: "Plex Arabic", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--navy-950); }
:lang(ar) body, body:lang(ar) { font-size: 17px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { line-height: 1.4; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* Bandeau environnement */
.envbar { background: #FFF5E6; color: var(--warn); font-size: 13px; font-weight: 600; text-align: center; padding: 6px 16px; }

/* Lien d'évitement */
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; background: var(--orange); color: var(--navy-950); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Wordmark */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo__mark { width: 38px; height: 38px; }
.logo--sm .logo__mark { width: 34px; height: 34px; }
.logo__bg { fill: var(--orange); }
.logo__ink { fill: none; stroke: var(--navy-950); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.logo__swoosh { display: none; }
.logo__text { font-family: "Sora", system-ui, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.logo__tag { color: var(--orange); font-weight: 600; }
.logo__text { direction: ltr; unicode-bidi: isolate; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(5, 15, 36, .86); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--glass-line); }
.topbar__inner { max-width: 1320px; margin-inline: auto; padding: 12px clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 24px; }
.topbar__brand { text-decoration: none; border-radius: 10px; }
.topnav { display: flex; gap: 22px; margin-inline-start: auto; }
.topnav a { color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav a:hover { color: var(--white); }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); }
.topnav + .langs { margin-inline-start: 8px; }
.topbar__brand + .langs { margin-inline-start: auto; }
.langs__item { color: var(--on-dark-muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; min-height: 32px; display: inline-flex; align-items: center; }
.langs__item:hover { color: var(--white); }
.langs__item[aria-current="true"] { background: var(--orange); color: var(--navy-950); }
.langs__item[lang="ar"] { font-family: "Plex Arabic", sans-serif; }
.langs__short { display: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 12px; border: 0; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .15s, box-shadow .15s; }
.btn--primary { background: var(--orange); color: var(--navy-950); box-shadow: 0 10px 24px -12px rgba(245, 124, 31, .8); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(5, 15, 36, .25); border-top-color: var(--navy-950); animation: spin .8s linear infinite; }
.btn[aria-busy="true"] .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* HERO */
.hero { position: relative; color: var(--on-dark); background:
  radial-gradient(900px 500px at 15% 0%, rgba(59, 99, 184, .35), transparent 60%),
  radial-gradient(700px 420px at 60% 65%, rgba(245, 124, 31, .12), transparent 65%),
  linear-gradient(180deg, var(--navy-900), var(--navy-950)); overflow: clip; }
.hero__grid { max-width: 1320px; margin-inline: auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); grid-template-areas: "intro auth" "visual auth" "services auth"; column-gap: clamp(32px, 4vw, 64px); row-gap: 36px; align-items: start; }
.hero__intro { grid-area: intro; }
.hero__visual { grid-area: visual; margin: 0; }
.hero__services { grid-area: services; }
.hero__auth { grid-area: auth; position: sticky; top: 84px; }
.eyebrow { display: inline-flex; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-block-end: 14px; }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow--dark { color: #B8560B; }
.hero__title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 700; letter-spacing: -.025em; color: var(--white); max-width: 15ch; text-wrap: balance; }
:lang(ar) .hero__title { letter-spacing: 0; max-width: 18ch; }
.hero__lead { margin-block-start: 18px; font-size: clamp(16px, 1.4vw, 19px); color: var(--on-dark-muted); max-width: 58ch; }
.origins { margin-block-start: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.origins__label { font-weight: 600; color: var(--on-dark); font-size: 15px; }
.origins__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-weight: 600; font-size: 14px; }
.hero__mobile-cta { display: none; margin-block-start: 22px; }
.hero__visual img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--glass-line); aspect-ratio: 960 / 620; background: var(--navy-800); }

.flag { display: inline-block; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); overflow: hidden; }
.flag--sm { width: 22px; height: 15px; }
.flag--md { width: 30px; height: 20px; }
.flag--lg { width: 42px; height: 28px; border-radius: 4px; }

.section-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.015em; color: var(--navy-900); }
:lang(ar) .section-title { letter-spacing: 0; }
.section-title--light { color: var(--white); }
.section-lead { margin-block-start: 10px; color: var(--muted); max-width: 62ch; font-size: 17px; }
.section-lead--light { color: var(--on-dark-muted); }

.services { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.service { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); transition: border-color .2s, background-color .2s; }
.service:hover { border-color: rgba(245, 124, 31, .45); background: rgba(255,255,255,.06); }
.service__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(245, 124, 31, .14); color: var(--orange); flex: none; }
.service__icon .icon { width: 22px; height: 22px; }
.service__body { display: grid; gap: 3px; }
.service__body strong { color: var(--white); font-size: 15.5px; font-weight: 700; }
.service__body span { color: var(--on-dark-muted); font-size: 14px; line-height: 1.5; }
.callout { margin-block-start: 16px; display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(245,124,31,.16), rgba(245,124,31,.04)); border: 1px solid rgba(245,124,31,.35); }
.callout__icon { color: var(--orange); }
.callout__icon .icon { width: 28px; height: 28px; }
.callout h3 { font-size: 17px; color: var(--white); margin-block-end: 6px; }
.callout p { color: var(--on-dark); font-size: 14.5px; }

/* Carte d'authentification */
.authcard { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 32px); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.6); }
.authcard__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #EDEFF4; border-radius: 12px; margin-block-end: 22px; }
.authcard__tabs a { text-align: center; text-decoration: none; padding: 10px 8px; border-radius: 9px; font-weight: 700; font-size: 15px; color: var(--muted); min-height: 44px; display: grid; place-items: center; }
.authcard__tabs a[aria-selected="true"] { background: var(--white); color: var(--navy-900); box-shadow: 0 1px 3px rgba(10,26,58,.12); }
.authcard__title { font-size: 24px; color: var(--navy-900); }
.authcard__sub { color: var(--muted); margin-block: 6px 18px; font-size: 15px; }
.authcard__legal { font-size: 12.5px; color: var(--muted); margin-block-start: 14px; }
.authcard__row { margin-block: 4px 16px; font-size: 14.5px; }
.authcard__row:last-child { margin-block: 16px 0; }
.link { color: var(--navy-700); font-weight: 700; text-underline-offset: 3px; }
.link:hover { color: #B8560B; }

.field { margin-block-end: 14px; }
.field__label { display: block; font-weight: 700; font-size: 14.5px; margin-block-end: 6px; color: var(--navy-900); }
.field__control { position: relative; }
.field__input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 11px; border: 1.5px solid #CDD3DF; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field__control--pw .field__input { padding-inline-end: 52px; }
:lang(ar) .field__input[dir="ltr"] { text-align: right; }
.field__input:hover { border-color: #A9B2C5; }
.field__input:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 4px rgba(59, 99, 184, .18); }
.field--error .field__input { border-color: var(--error); }
.field--error .field__input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .15); }
.field__toggle { position: absolute; inset-block: 0; inset-inline-end: 4px; margin-block: auto; width: 44px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
.field__toggle:hover { color: var(--navy-900); background: #F1F3F7; }
.field__toggle .icon--hide, .field__toggle[aria-pressed="true"] .icon--show { display: none; }
.field__toggle[aria-pressed="true"] .icon--hide { display: block; }
.field__hint { font-size: 13px; color: var(--muted); margin-block-start: 6px; }
.field__error { display: flex; align-items: flex-start; gap: 6px; color: var(--error); font-size: 13.5px; font-weight: 600; margin-block-start: 6px; }
.field__error:empty { display: none; }
.field__error .icon { width: 16px; height: 16px; margin-block-start: 2px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; font-size: 14.5px; font-weight: 600; margin-block-end: 14px; }
.alert .icon { margin-block-start: 1px; }
.alert--error { background: var(--error-bg); color: var(--error); border: 1px solid #F7C9C5; }
.alert--ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #BFE5CF; }
.alert--warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #F6D9A8; }
.alert:focus { outline: none; }

/* MARCHÉS */
.markets { background: var(--paper); padding-block: clamp(56px, 7vw, 96px); }
.markets__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: m; }
.market { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: m; transition: transform .2s, box-shadow .2s; }
.market:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(10, 26, 58, .35); }
.market::after { content: counter(m, decimal-leading-zero); position: absolute; inset-block-start: 16px; inset-inline-end: 18px; font-family: "Sora", sans-serif; font-weight: 700; font-size: 13px; color: #B9C1D2; }
.market__name { font-size: 19px; color: var(--navy-900); }
.market__meta { color: var(--muted); font-size: 14px; margin-block-start: 4px; }
.tag { display: inline-block; font-family: "Sora", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; background: var(--orange-soft); color: #8A3E00; }
.markets__origins { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.origin { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; background: #EEF2FA; border-radius: 12px; border: 1px dashed #B7C3DD; }
.origin span { display: grid; }
.origin strong { color: var(--navy-900); font-size: 15px; }
.origin small { color: var(--muted); font-size: 13px; }

/* COUVERTURE / GLOBE */
.coverage { color: var(--on-dark); padding-block: clamp(56px, 7vw, 100px); background:
  radial-gradient(700px 500px at 75% 50%, rgba(59, 99, 184, .28), transparent 65%), var(--navy-950); }
.coverage__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.selected { margin-block: 0 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); }
.selected__label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); font-weight: 700; }
:lang(ar) .selected__label { letter-spacing: 0; }
.selected__body { display: flex; align-items: center; gap: 14px; margin-block-start: 8px; min-height: 30px; }
.selected__name { font-family: var(--font-display); font-size: 24px; color: var(--white); }
.coverage__listtitle { font-size: 15px; color: var(--on-dark-muted); font-weight: 600; margin-block-end: 10px; }
.countrylist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.countrylist__btn { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--on-dark); font-weight: 600; text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
.countrylist__btn:hover { border-color: rgba(245,124,31,.5); }
.countrylist__btn[aria-pressed="true"] { background: rgba(245,124,31,.16); border-color: var(--orange); color: var(--white); }
.coverage__origins { margin-block-start: 16px; color: var(--on-dark-muted); font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--origin { background: #7FD3FF; box-shadow: 0 0 0 3px rgba(127, 211, 255, .2); }
.globe { position: relative; }
.globe__canvas { display: block; width: 100%; aspect-ratio: 1; max-width: 580px; margin-inline: auto; touch-action: pan-y; cursor: grab; }
.globe__canvas:active { cursor: grabbing; }
.globe__controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-block-start: 8px; }
.globe__hint { font-size: 13.5px; color: var(--on-dark-muted); }
.globe__source { text-align: center; font-size: 12px; color: #6F7EA0; margin-block-start: 6px; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); color: var(--on-dark); cursor: pointer; }
.iconbtn:hover { border-color: var(--orange); }
.iconbtn .icon--play, .iconbtn[aria-pressed="true"] .icon--pause { display: none; }
.iconbtn[aria-pressed="true"] .icon--play { display: block; }

/* Pages simples (réinitialisation, espace seller) */
.narrow { max-width: 480px; margin-inline: auto; padding: clamp(32px, 6vw, 72px) 16px; min-height: 70vh; }
.narrow--wide { max-width: 720px; }
.panel { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.panel__title { font-size: clamp(26px, 3vw, 34px); color: var(--navy-900); margin-block-end: 18px; }
.panel__h2 { font-size: 18px; color: var(--navy-900); margin-block: 22px 8px; }
.panel p { color: var(--muted); }
.statuslist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.statuslist li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.statuslist__ok { color: var(--ok); }
.statuslist__off { color: var(--muted); }

/* Pied de page */
.footer { background: var(--navy-950); color: var(--on-dark-muted); border-top: 1px solid var(--glass-line); }
.footer__inner { max-width: 1320px; margin-inline: auto; padding: 28px clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; }
.footer__status { margin-inline-start: auto; font-size: 13px; }

/* Responsive */
@media (max-width: 1180px) {
  .markets__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .topnav { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "auth" "visual" "services"; }
  .hero__auth { position: static; }
  .hero__mobile-cta { display: inline-flex; }
  .coverage__grid { grid-template-columns: minmax(0, 1fr); }
  .globe { order: -1; }
  .coverage__grid { margin-block-start: 20px; }
}
@media (max-width: 640px) {
  .markets__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market { padding: 16px; }
  .logo__text { font-size: 16px; }
  .langs__item { padding: 6px 9px; font-size: 13px; }
  .topbar__inner { gap: 10px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .countrylist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .langs__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .langs__short { display: inline; }
  .langs__item { min-width: 40px; justify-content: center; }
}
@media (max-width: 340px) {
  .logo--sm .logo__text { display: none; }
  .markets__list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* =========================================================================================================
   Espace seller
   ========================================================================================================= */
.page-app { background: #F2F4F8; }
.page-app .footer { display: none; }
.appuser { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; color: var(--on-dark); font-size: 14px; }
.appuser__org { font-weight: 700; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appuser__logout { background: none; border: 1px solid var(--glass-line); color: var(--on-dark-muted); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; font-weight: 600; }
.appuser__logout:hover { color: var(--white); border-color: var(--on-dark-muted); }
.appuser + .langs { margin-inline-start: 4px; }
.orgswitch { position: relative; }
.orgswitch summary { cursor: pointer; font-weight: 700; list-style: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--glass-line); }
.orgswitch ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); min-width: 220px; z-index: 40; }
.orgswitch button { width: 100%; text-align: start; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--ink); }
.orgswitch button:hover, .orgswitch button[aria-current="true"] { background: #EEF2FA; }

.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.sidenav { background: var(--navy-900); padding: 18px 12px; border-inline-end: 1px solid var(--glass-line); }
.sidenav__inner { position: sticky; top: 76px; display: grid; gap: 2px; }
.sidenav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidenav__group { font-family: "Sora", "Plex Arabic", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7285AD; padding: 14px 12px 4px; }
:lang(ar) .sidenav__group { letter-spacing: 0; font-size: 12.5px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.sidenav a:hover { color: var(--white); background: var(--glass); }
.sidenav a[aria-current="page"] { background: rgba(245,124,31,.16); color: var(--white); box-shadow: inset 3px 0 0 var(--orange); }
[dir="rtl"] .sidenav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--orange); }
.sidenav .icon { width: 20px; height: 20px; }
.appmain { padding: clamp(16px, 3vw, 32px); min-width: 0; display: grid; gap: 18px; align-content: start; }
.demobar { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: #FFF1E3; border: 1px dashed #F2A35E; color: #7A3A00; font-size: 14px; font-weight: 600; }
.apphead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.apphead h1 { font-size: clamp(22px, 2.4vw, 30px); color: var(--navy-900); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.apphead__sub { color: var(--muted); margin-block-start: 4px; max-width: 80ch; }
.apphead__status { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: 14px; }
.h2 { font-size: 18px; color: var(--navy-900); margin-block-end: 10px; }
.h3 { font-size: 16.5px; color: var(--navy-900); margin-block-end: 12px; display: flex; align-items: center; gap: 8px; }
.h4 { font-size: 14.5px; color: var(--navy-900); margin-block: 16px 8px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 22px); min-width: 0; }
.card--muted { background: #F7F8FB; border-style: dashed; }
.card > p + p { margin-block-start: 8px; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-block-end: 8px; }
.cardhead .h3 { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 13.5px; margin-block: 8px; }
ul.note { padding-inline-start: 18px; display: grid; gap: 4px; }
.sub { display: block; color: var(--muted); font-size: 12.5px; margin-block-start: 2px; }
.na { color: #8A94A8; font-style: italic; font-size: .92em; }
.raw { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; background: #EEF1F6; color: #3A4660; padding: 1px 6px; border-radius: 5px; }
.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inline { display: inline-flex; gap: 6px; margin-inline-start: 6px; vertical-align: middle; }
.stack { display: grid; gap: 12px; }
.stack label, .formgrid label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy-900); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn--danger { background: transparent; color: var(--error); border: 1.5px solid #F2C2BD; }
.btn--danger:hover { background: var(--error-bg); }
select, .filters input { font: inherit; font-size: 14.5px; min-height: 40px; padding: 7px 10px; border-radius: 9px; border: 1.5px solid #CDD3DF; background: var(--white); color: var(--ink); }
.page-app .field__input { min-height: 42px; }
textarea.field__input { min-height: 80px; resize: vertical; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.filters label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.filters__search { flex: 1 1 240px; }
.filters__search input { width: 100%; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-block-end: 2px; scrollbar-width: thin; }
.tabs a { white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.tabs a[aria-current="page"] { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.count { background: rgba(127,140,170,.18); border-radius: 999px; padding: 0 7px; font-size: 12px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.kpi__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi__value { font-family: var(--font-display); font-size: 26px; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.kpi--rate { border-color: #F6C9A3; background: #FFFBF7; }
.kpi__basis { font-size: 12px; color: var(--muted); }
.basis { margin-block-start: 10px; font-size: 14px; color: var(--muted); }
.basis summary { cursor: pointer; font-weight: 700; color: var(--navy-700); }
.basis ul { margin: 8px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; margin: 0 0 12px; }
.dl dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.dl dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.synclist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.synclist li { display: grid; gap: 4px; }
.synclist span { font-size: 13.5px; color: var(--muted); }
.synclist .badge { justify-self: start; }

.tablewrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.card .tablewrap { border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #F7F8FB; padding: 10px 12px; border-block-end: 1px solid var(--line); white-space: nowrap; }
:lang(ar) .table th { letter-spacing: 0; font-size: 13px; }
.table td { padding: 10px 12px; border-block-end: 1px solid #EEF0F5; vertical-align: top; }
.table tbody tr:hover { background: #FAFBFD; }
.table tbody tr:last-child td { border-block-end: 0; }
.table--compact td, .table--compact th { padding: 7px 10px; }

.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: #EEF1F6; color: #3A4660; }
.badge--confirmed, .badge--delivered { background: var(--ok-bg); color: var(--ok); }
.badge--pending, .badge--to_prepare, .badge--prepared, .badge--no_answer, .badge--busy { background: #FFF5E6; color: #8A4B00; }
.badge--callback { background: #EAF2FF; color: #1D4FA8; }
.badge--shipped, .badge--out_for_delivery { background: #E8F3FF; color: #155A9C; }
.badge--cancelled, .badge--refused, .badge--unreachable, .badge--wrong_number { background: var(--error-bg); color: var(--error); }
.badge--returned { background: #F4ECFF; color: #5B2DA3; }
.tag--demo { background: #FFE9D6; color: #8A3E00; }
.tag--warn { background: #FFF1D6; color: #8A4B00; margin-block-start: 4px; }
.tag--local { background: #EEF1F6; color: #3A4660; }
.ctry { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.calls, .timeline { margin: 0; padding-inline-start: 20px; display: grid; gap: 10px; }
.timeline { list-style: none; padding: 0; border-inline-start: 2px solid var(--line); }
.timeline li { padding-inline-start: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.timeline__at { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--navy-900); margin-inline-end: 6px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 40px 20px; background: var(--white); border: 1px dashed #C5CCDA; border-radius: var(--radius); color: var(--muted); }
.empty .icon { width: 28px; height: 28px; color: var(--navy-500); }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: var(--muted); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.formgrid__full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; }
legend { font-weight: 700; font-size: 14px; padding-inline: 4px; color: var(--navy-900); }
.lineinput { display: grid; grid-template-columns: minmax(0, 3fr) minmax(90px, 1fr); gap: 8px; margin-block-end: 8px; }
.lineinput select { width: 100%; }
.perms { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block: 8px; }
.check { display: inline-flex !important; grid-auto-flow: column; align-items: center; gap: 8px !important; font-weight: 600 !important; font-size: 14px !important; }
.check input { width: 18px; height: 18px; accent-color: var(--navy-700); }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.member { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.member__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-block-end: 6px; }
.member form:not(.inline) { display: inline; }
.copy { display: block; margin-block-start: 6px; padding: 8px 10px; background: var(--white); border-radius: 8px; border: 1px solid #BFE5CF; user-select: all; overflow-wrap: anywhere; font-size: 13px; }
.demotools { margin-block-start: 14px; padding-block-start: 12px; border-block-start: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demotools .inline { margin: 0; }
.panel__actions { margin-block-start: 18px; }

@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidenav { padding: 8px; position: sticky; top: 59px; z-index: 20; border-block-end: 1px solid var(--glass-line); }
  .sidenav__inner { position: static; display: flex; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .sidenav ul { display: contents; }
  .sidenav__group { display: none; }
  .sidenav a { white-space: nowrap; padding: 8px 12px; }
  .sidenav a[aria-current="page"], [dir="rtl"] .sidenav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
  .appuser__org { display: none; }
}
@media (max-width: 640px) {
  .page-app .topbar__inner .logo__text { display: none; }
  .filters { padding: 10px; }
  .filters label { flex: 1 1 140px; }
  .filters select { width: 100%; }
  .kpi__value { font-size: 22px; }
}
.card--wide { grid-column: 1 / -1; }
.stack > .btn { justify-self: start; }
.table td:first-child > a { white-space: nowrap; }

/* =========================================================================================================
   Espace seller — pays actif, indicateurs, graphiques
   ========================================================================================================= */
.ctryswitch, .orgswitch { position: relative; }
.ctryswitch summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--glass-line); background: var(--glass); font-weight: 700; white-space: nowrap; }
.ctryswitch summary::-webkit-details-marker { display: none; }
.ctryswitch summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: .7; margin-inline-start: 2px; }
.ctryswitch[open] summary { border-color: var(--orange); }
.ctryswitch__cur { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(245,124,31,.18); color: #FFC08A; }
.ctryswitch__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); display: grid; gap: 2px; padding: 6px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); min-width: 250px; z-index: 40; }
.ctryswitch__menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.ctryswitch__menu button span:nth-of-type(1) { flex: 1; }
.ctryswitch__menu button:hover { background: #EEF2FA; }
.ctryswitch__menu button[aria-current="true"] { background: #FFF1E3; box-shadow: inset 3px 0 0 var(--orange); }
[dir="rtl"] .ctryswitch__menu button[aria-current="true"] { box-shadow: inset -3px 0 0 var(--orange); }
.ctryswitch__menu .ctryswitch__cur { background: #EEF1F6; color: #3A4660; }
.apphead__sub .ctry { font-weight: 700; color: var(--navy-900); }
.apphead .btn .icon, .btn--sm .icon { width: 17px; height: 17px; }

.kpis { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.kpi { align-content: start; }
.kpi__value { font-variant-numeric: normal; white-space: nowrap; }
.kpis--money { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kpis--money .kpi__value { font-size: 21px; }
.lbl { display: block; }
.kpi__rate { justify-self: start; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #8A3E00; background: var(--orange-soft); border-radius: 999px; padding: 1px 10px; }
.kpi--good { border-color: #BFE5CF; background: var(--ok-bg); }
.kpi--good .kpi__value { color: var(--ok); }
.kpi--bad { border-color: #F7C9C5; background: var(--error-bg); }
.kpi--bad .kpi__value { color: var(--error); }
.cardhead__meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.cardhead .raw { font-size: 11px; }
.basis li { max-width: 90ch; }
.unit { font-weight: 600; color: var(--muted); }
.is-error .field__input, .is-error select { border-color: var(--error); }
.simbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.lineinput--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.prod { display: flex; align-items: center; gap: 10px; }
.prod__img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.prod .tag { margin-inline-start: 6px; }
input[type="file"].field__input { padding: 8px; font-size: 14px; }

/* Couleurs de données : une couleur par entité, toujours la même (validées — voir docs/ARCHITECTURE.md). */
.viz, .page-app {
  --v-blue: #2a78d6; --v-blue-soft: #cde2fb; --v-aqua: #1baf7a; --v-yellow: #eda100; --v-magenta: #e87ba4;
  --v-green: #008300; --v-violet: #6250d6; --v-red: #e34948; --v-gray: #898781;
  --v-volume: #1A3A7A; --v-volume-soft: #DCE3F2;   /* volume de commandes : encre neutre de la marque, hors palette de statuts */
  --v-grid: #E6E9F0; --v-axis: #C3C9D6; --v-ink: #56627C;
}
.c-conf-confirmed, .s-confirmed { --c: var(--v-blue); }
.c-conf-pending { --c: var(--v-yellow); }
.c-conf-callback { --c: var(--v-magenta); }
.c-conf-unreachable { --c: var(--v-violet); }
.c-conf-cancelled { --c: var(--v-red); }
.c-ship-delivered, .s-delivered { --c: var(--v-green); }
.c-ship-in_delivery { --c: var(--v-blue); }
.c-ship-preparing { --c: var(--v-yellow); }
.c-ship-refused { --c: var(--v-red); }
.c-ship-returned { --c: var(--v-violet); }
.c-conf-other, .c-ship-other { --c: var(--v-gray); }
.s-total { --c: var(--v-volume); }

.seg { margin: 0; display: grid; gap: 14px; }
.seg__bar { display: block; overflow: visible; }
.seg__part { fill: var(--c); stroke: var(--white); stroke-width: 2; transition: opacity .12s; }
.seg__part:hover { opacity: .85; }
.seg__txt { fill: #fff; font-size: 12.5px; font-weight: 700; pointer-events: none; font-family: var(--font-body); }
.seg__txt--conf-pending, .seg__txt--ship-preparing { fill: #0b0b0b; }
.seg__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.seg__list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 62px; align-items: center; gap: 10px; padding: 6px 0; border-block-end: 1px solid #EEF0F5; font-size: 14px; }
.seg__list li:last-child { border-block-end: 0; }
.seg__n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.seg__share { text-align: end; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }

.chart { margin: 0; display: grid; gap: 10px; }
.chart__frame { display: grid; grid-template-columns: 38px minmax(0, 1fr); }
.chart__svg, .chart__axis { display: block; overflow: visible; }
.chart__grid { stroke: var(--v-grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart__grid--base { stroke: var(--v-axis); }
.chart__tick, .chart__x { fill: var(--v-ink); font-size: 11.5px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart__val { fill: var(--navy-900); font-size: 12px; font-weight: 700; font-family: var(--font-body); pointer-events: none; }
.chart__bar { fill: var(--v-volume); }
.chart__line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--c); stroke: var(--white); stroke-width: 2; }
.chart__hit { fill: transparent; }
.chart__hit:hover { fill: rgba(16, 39, 86, .05); }
.chart__cross { stroke: var(--v-axis); stroke-width: 1; opacity: 0; pointer-events: none; shape-rendering: crispEdges; }
.chart__cross.is-on { opacity: 1; }
.chart__table summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy-700); }
.chart__table .tablewrap { margin-block-start: 8px; max-height: 320px; overflow-y: auto; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend__key { width: 16px; height: 3px; border-radius: 2px; background: var(--c); }

.meter { display: block; }
.meter__track { fill: var(--v-volume-soft); }
.meter__fill { fill: var(--v-volume); }
.col-bar { width: 22%; min-width: 90px; vertical-align: middle !important; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; font-size: 14px; }
.rank__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.rank__bar { grid-column: 1 / -1; }

.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--navy-900); color: var(--white); border-radius: 9px; padding: 8px 11px; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 28px -10px rgba(3, 12, 32, .6); max-width: 260px; }
.tip[hidden] { display: none; }
.tip__head { font-size: 11.5px; color: var(--on-dark-muted); font-weight: 600; }
.tip__row { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
  .ctryswitch__name { display: none; }
}
@media (max-width: 640px) {
  .seg__list li { grid-template-columns: 12px minmax(0, 1fr) auto 54px; }
  .col-bar { display: none; }
}
@media (forced-colors: active) {
  .seg__part, .chart__bar, .chart__dot, .meter__fill, .swatch { forced-color-adjust: none; }
}
.table code { white-space: nowrap; }
.prod .sub { display: block; }
/* Les graphiques gardent un sens de lecture fixe, même dans une page en arabe (le texte SVG suit la direction CSS). */
.seg__bar, .chart__svg, .chart__axis, .meter { direction: ltr; }
@media (max-width: 640px) {
  .page-app .topbar__inner { gap: 10px; padding-inline: 12px; }
  .page-app .langs { display: none; }   /* la langue reste modifiable dans Paramètres → Profil */
  .appuser { gap: 8px; min-width: 0; }
  .appuser__logout { white-space: nowrap; }
  .apphead .btn { width: 100%; }
}

/* Entrée des commandes : canaux, documentation, import */
.apphead__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tag--src { background: #E8F0FF; color: #1D4FA8; margin-inline-end: 4px; margin-block-start: 4px; }
.table td .tag { margin-block-start: 4px; }
.h2 { margin-block-start: 6px; }
.srcform { margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px dashed var(--line); }
.card--secret { border-color: #BFE5CF; background: #F6FCF8; }
.fieldlabel { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-block: 12px 0; }
.code { margin: 8px 0 0; padding: 12px 14px; background: var(--navy-950); color: #DCE6FA; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre; text-align: left; user-select: all; }
.steps { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 8px; font-size: 14.5px; max-width: 90ch; }
.plain--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); font-size: 14px; }
.demotools--plain { margin: 0; padding: 0; border: 0; }
.lineinput--3 { grid-template-columns: minmax(0, 3fr) minmax(80px, 1fr) minmax(110px, 1.4fr); }
@media (max-width: 640px) { .lineinput--3 { grid-template-columns: 1fr 1fr; } .lineinput--3 > :first-child { grid-column: 1 / -1; } }

/* Langue : un petit menu (globe + code), au lieu de trois pastilles */
.langmenu { position: relative; margin-inline-start: 8px; }
.topbar__brand + .langmenu { margin-inline-start: auto; }
.langmenu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--on-dark); font-weight: 700; font-size: 13.5px; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary .icon { width: 17px; height: 17px; }
.langmenu__panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; display: grid; gap: 2px; min-width: 160px; padding: 6px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.langmenu__panel .langs__item { color: var(--ink); border-radius: 9px; padding: 9px 12px; min-height: 0; }
.langmenu__panel .langs__item:hover { color: var(--ink); background: #EEF2FA; }
.langmenu__panel .langs__item[aria-current="true"] { background: var(--orange); color: var(--navy-950); }
