/* ==========================================================================
   Beyond — thème Tebex
   Fond blanc / gris très clair, encre noire / anthracite, violet Beyond #5A49F7
   réservé aux actions et aux accents. Sections sombres pour les présentations
   immersives. Aucun effet néon, pas de verre omniprésent.
   ========================================================================== */

:root {
  --b-accent: #5a49f7;
  --b-accent-hover: #4836e8;
  --b-accent-soft: #eeecfe;
  --b-accent-ink: #3b2bd6; /* violet lisible sur fond clair (AA) */

  --b-bg: #ffffff;
  --b-bg-alt: #f5f5f7;
  --b-bg-raised: #fbfbfd;
  --b-ink: #1d1d1f;
  --b-ink-2: #424245;
  --b-muted: #6e6e73;
  --b-line: #d2d2d7;
  --b-line-soft: #e8e8ed;

  --b-dark: #000000;
  --b-dark-2: #111113;
  --b-dark-3: #1d1d1f;
  --b-dark-ink: #f5f5f7;
  --b-dark-muted: #a1a1a6;
  --b-dark-line: #2c2c2e;

  --b-ok: #1f7a3a;
  --b-warn: #8a5300;
  --b-danger: #b3261e;

  --b-radius-s: 10px;
  --b-radius: 18px;
  --b-radius-l: 28px;
  --b-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --b-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.05), 0 18px 40px rgba(0, 0, 0, 0.1);

  --b-font: 'Inter', -apple-system, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --b-font-display: 'Inter Tight', 'Inter', -apple-system, 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --b-container: 1200px;
  --b-gutter: clamp(16px, 4vw, 40px);
  --b-section: clamp(72px, 10vw, 136px);
  --b-nav-h: 48px;

  --b-ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --b-dur: 520ms;

  /* Pied de page légal Tebex : obligatoire, harmonisé (docs.tebex.io/developers/templates/footer) */
  --tebex-legal-footer-background-color: #f5f5f7;
  --tebex-legal-footer-text-color: #424245;
  --tebex-legal-footer-border-color: #d2d2d7;
  --tebex-legal-footer-max-width: 1200px;
  --tebex-legal-footer-logo-color: #1d1d1f;
}

/* ---------- base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--b-nav-h) + 16px); }
body {
  margin: 0;
  background: var(--b-bg);
  color: var(--b-ink);
  font: 400 17px/1.47 var(--b-font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--b-font-display); color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--b-accent); outline-offset: 3px; border-radius: 6px; }
.b-dark :focus-visible { outline-color: #8f84ff; }
::selection { background: var(--b-accent-soft); color: var(--b-ink); }

.b-skip {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 16px; border-radius: 10px; background: var(--b-ink); color: #fff; font-weight: 600;
}
.b-skip:focus { top: 12px; }
.b-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.b-container { width: min(100% - 2 * var(--b-gutter), var(--b-container)); margin-inline: auto; }
.b-container--wide { width: min(100% - 2 * var(--b-gutter), 1440px); margin-inline: auto; }
.b-section { padding-block: var(--b-section); }
.b-section--tight { padding-block: calc(var(--b-section) * 0.6); }
.b-alt { background: var(--b-bg-alt); }
.b-dark { background: var(--b-dark); color: var(--b-dark-ink); }
.b-dark-2 { background: var(--b-dark-2); color: var(--b-dark-ink); }

/* ---------- typographie ----------------------------------------------------- */
.b-eyebrow { display: inline-block; margin-bottom: 12px; font: 600 13px/1.2 var(--b-font); letter-spacing: 0.02em; color: var(--b-accent-ink); text-transform: none; }
.b-dark .b-eyebrow { color: #a99fff; }
.b-display { font-size: clamp(44px, 7.4vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.b-h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.b-h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.028em; }
.b-h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
.b-lead { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.35; font-weight: 500; color: var(--b-ink-2); letter-spacing: -0.016em; }
.b-dark .b-lead { color: var(--b-dark-muted); }
.b-muted { color: var(--b-muted); }
.b-dark .b-muted { color: var(--b-dark-muted); }
.b-small { font-size: 14px; line-height: 1.45; }
.b-center { text-align: center; }
.b-section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.b-section-head.b-center { margin-inline: auto; }
.b-section-head .b-lead { margin-top: 14px; }
.b-section-head__row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: none; }

/* ---------- boutons --------------------------------------------------------- */
.b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 980px;
  font: 500 17px/1.2 var(--b-font); letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color 180ms var(--b-ease), color 180ms var(--b-ease), border-color 180ms var(--b-ease), transform 180ms var(--b-ease);
}
.b-btn:active { transform: scale(0.98); }
.b-btn--primary { background: var(--b-accent); color: #fff; }
.b-btn--primary:hover { background: var(--b-accent-hover); }
.b-btn--secondary { border-color: var(--b-accent); color: var(--b-accent-ink); background: transparent; }
.b-btn--secondary:hover { background: var(--b-accent); color: #fff; }
.b-dark .b-btn--secondary { border-color: #8f84ff; color: #c9c3ff; }
.b-dark .b-btn--secondary:hover { background: var(--b-accent); border-color: var(--b-accent); color: #fff; }
.b-btn--ghost { color: var(--b-ink); background: var(--b-bg-alt); }
.b-btn--ghost:hover { background: var(--b-line-soft); }
.b-dark .b-btn--ghost { color: var(--b-dark-ink); background: rgba(255, 255, 255, 0.1); }
.b-dark .b-btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.b-btn--small { min-height: 36px; padding: 6px 16px; font-size: 15px; }
.b-btn[disabled], .b-btn[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }
.b-btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.b-center .b-btn-row, .b-btn-row--center { justify-content: center; }
.b-link { color: var(--b-accent-ink); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.b-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.b-dark .b-link { color: #b3abff; }
.b-link svg { width: 14px; height: 14px; }

/* ---------- navigation ------------------------------------------------------ */
.b-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--b-nav-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.b-nav__inner { height: 100%; display: flex; align-items: center; gap: 8px; }
.b-nav__brand { display: inline-flex; align-items: center; gap: 10px; height: 100%; padding-right: 12px; font: 650 17px/1 var(--b-font-display); letter-spacing: -0.02em; }
.b-nav__brand img { height: 26px; width: auto; }
.b-nav__links { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.b-nav__links a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--b-ink-2); transition: color 160ms; }
.b-nav__links a:hover { color: var(--b-ink); }
.b-nav__links a[aria-current='page'] { color: var(--b-ink); font-weight: 600; }
.b-nav__tools { display: flex; align-items: center; gap: 2px; }
.b-icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--b-ink-2);
}
.b-icon-btn:hover { color: var(--b-ink); background: rgba(0, 0, 0, 0.04); }
.b-icon-btn svg { width: 18px; height: 18px; }
.b-badge {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--b-accent); color: #fff; font: 600 11px/17px var(--b-font); text-align: center;
}
.b-nav__menu-btn { display: none; }
/* bilingue : chaque texte existe en français (.lf) et en anglais (.le) ; layout.html pose data-lang avant l'affichage */
html:not([data-lang='en']) .le, html[data-lang='en'] .lf { display: none !important; }
.b-lang {
  height: 32px; min-width: 40px; padding: 0 9px; border: 1px solid var(--b-line); border-radius: 999px; background: transparent;
  color: var(--b-ink-2); font: 600 12px/1 var(--b-font); letter-spacing: 0.04em; cursor: pointer; margin-right: 4px;
}
.b-lang:hover { color: var(--b-ink); border-color: var(--b-ink-2); }
.b-lang:focus-visible { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.b-lang--wide { height: auto; padding: 10px 16px; font-size: 15px; letter-spacing: 0; margin: 0; }
.b-nav__account { font-size: 13px; color: var(--b-muted); padding: 0 8px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .b-nav__links { display: none; }
  .b-nav__menu-btn { display: inline-grid; }
  .b-nav__tools { margin-left: auto; }
  .b-nav__account { display: none; }
}
.b-mobile-menu {
  position: fixed; inset: var(--b-nav-h) 0 0 0; z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  padding: 20px var(--b-gutter) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 220ms var(--b-ease), transform 220ms var(--b-ease), visibility 0s linear 220ms;
}
.b-mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.b-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.b-mobile-menu li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--b-line-soft); font: 600 24px/1.2 var(--b-font-display); letter-spacing: -0.02em; }
.b-mobile-menu__secondary a { font-size: 17px !important; font-weight: 500 !important; color: var(--b-ink-2); }

/* bandeau de messages Tebex (page.message) */
.b-flash { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--b-line-soft); }
.b-flash--success { background: #eef8f1; color: var(--b-ok); }
.b-flash--danger, .b-flash--error { background: #fdf0ef; color: var(--b-danger); }
.b-flash--info, .b-flash--warning { background: var(--b-accent-soft); color: var(--b-accent-ink); }
.b-flash .b-container { display: flex; justify-content: space-between; gap: 16px; align-items: center; }

/* ---------- hero bPhoneDuo -------------------------------------------------- */
.b-hero { position: relative; overflow: hidden; background: var(--b-bg-alt); text-align: center; }
.b-hero__copy { position: relative; z-index: 2; padding-top: clamp(48px, 7vw, 88px); }
.b-hero__name { font-size: clamp(52px, 9vw, 112px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.b-hero__tag { margin: 14px auto 0; max-width: 620px; font-size: clamp(20px, 2.3vw, 28px); line-height: 1.25; font-weight: 500; color: var(--b-ink-2); letter-spacing: -0.02em; }
.b-hero__copy .b-btn-row { justify-content: center; margin-top: 26px; }
.b-hero__stage { position: relative; height: clamp(340px, min(58vh, 64vw), 680px); margin-top: clamp(4px, 1.5vw, 16px); }
.b-hero__stage > .b-phone-frame { position: absolute; inset: 0; }
.b-hero__states { position: relative; z-index: 2; display: flex; justify-content: center; gap: 6px; padding-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }

/* sélecteur segmenté (états de pliage, coloris) */
.b-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 980px; background: rgba(0, 0, 0, 0.05); }
.b-seg button {
  min-height: 36px; padding: 6px 16px; border: 0; border-radius: 980px; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--b-ink-2); transition: background-color 180ms, color 180ms;
}
.b-seg button:hover { color: var(--b-ink); }
.b-seg button[aria-pressed='true'] { background: #fff; color: var(--b-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.b-dark .b-seg { background: rgba(255, 255, 255, 0.1); }
.b-dark .b-seg button { color: var(--b-dark-muted); }
.b-dark .b-seg button:hover { color: #fff; }
.b-dark .b-seg button[aria-pressed='true'] { background: #3a3a3c; color: #fff; box-shadow: none; }

.b-swatches { display: inline-flex; gap: 12px; align-items: center; }
.b-swatch {
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18); background: var(--sw);
  box-shadow: inset 0 0 0 3px #fff;
  transition: box-shadow 160ms;
}
.b-swatch[aria-pressed='true'] { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--b-ink); }
.b-dark .b-swatch { box-shadow: inset 0 0 0 3px var(--b-dark-2); }
.b-dark .b-swatch[aria-pressed='true'] { box-shadow: inset 0 0 0 3px var(--b-dark-2), 0 0 0 2px #fff; }

/* cadre du téléphone (iframe srcdoc) + états */
.b-phone-frame { position: relative; display: block; width: 100%; height: 100%; }
.b-phone-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; }
.b-phone-frame__poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 400ms var(--b-ease); }
.b-phone-frame__poster img { max-height: 92%; width: auto; object-fit: contain; }
.b-phone-frame.is-ready .b-phone-frame__poster { opacity: 0; pointer-events: none; }
.b-phone-frame__status { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 13px; color: var(--b-muted); }
.b-phone-frame.is-ready .b-phone-frame__status { display: none; }

/* ---------- grilles & cartes ------------------------------------------------ */
.b-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.b-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b-grid--1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .b-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .b-grid--2, .b-grid--3, .b-grid--4 { grid-template-columns: minmax(0, 1fr); } }

.b-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--b-radius-l); background: var(--b-bg); overflow: hidden;
  transition: transform 260ms var(--b-ease), box-shadow 260ms var(--b-ease);
}
.b-alt .b-card { background: var(--b-bg); }
.b-section:not(.b-alt):not(.b-dark) .b-card { background: var(--b-bg-alt); }
.b-card:hover { transform: translateY(-3px); box-shadow: var(--b-shadow-lift); }
.b-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9e9ee; }
.b-card__media img, .b-card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--b-ease); }
.b-card:hover .b-card__media img { transform: scale(1.025); }
.b-card__media--contain { background: linear-gradient(180deg, #f7f7f9, #ececf0); }
.b-card__media--contain img { object-fit: contain; padding: 6%; }
.b-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.b-card__kicker { font-size: 13px; font-weight: 600; color: var(--b-muted); }
.b-card__title { font: 650 22px/1.2 var(--b-font-display); letter-spacing: -0.02em; }
.b-card__text { color: var(--b-ink-2); font-size: 15px; line-height: 1.5; margin: 0; }
.b-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.b-card__price { font-weight: 600; font-size: 17px; }
.b-card__price s { color: var(--b-muted); font-weight: 400; margin-right: 6px; }
.b-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.b-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.b-card__actions, .b-card__actions a, .b-card__actions button { position: relative; z-index: 2; }
.b-card__link:focus-visible { outline: none; }
.b-card:has(.b-card__link:focus-visible) { outline: 2px solid var(--b-accent); outline-offset: 3px; }

.b-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.b-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 980px; background: var(--b-bg-alt); color: var(--b-ink-2); font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.b-section:not(.b-alt) .b-card .b-chip { background: #fff; }
.b-chip--accent { background: var(--b-accent-soft) !important; color: var(--b-accent-ink) !important; }
.b-chip--dark { background: var(--b-ink) !important; color: #fff !important; }
.b-dark .b-chip { background: rgba(255, 255, 255, 0.1); color: var(--b-dark-ink); }

/* carte portfolio (Custom Projet) : même soin, identité distincte, jamais de prix */
.b-card--project { background: var(--b-dark-3) !important; color: var(--b-dark-ink); }
.b-card--project .b-card__media { background: #0b0b0c; }
.b-card--project .b-card__kicker { color: #b3abff; }
.b-card--project .b-card__text { color: var(--b-dark-muted); }
.b-card--project .b-chip { background: rgba(255, 255, 255, 0.1) !important; color: var(--b-dark-ink) !important; }
.b-card--project .b-chip--accent { background: rgba(90, 73, 247, 0.28) !important; color: #e1ddff !important; }
.b-card--wide { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.b-card--wide .b-card__media { aspect-ratio: auto; min-height: 380px; height: 100%; }
.b-card--wide .b-card__body { justify-content: center; padding: clamp(28px, 4vw, 48px); gap: 12px; }
.b-card--wide .b-card__title { font-size: clamp(28px, 3vw, 40px); }
.b-card--wide .b-card__text { font-size: 17px; }
@media (max-width: 860px) { .b-card--wide { display: flex; } .b-card--wide .b-card__media { aspect-ratio: 16 / 10; min-height: 0; } }
.b-project-flags { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.b-project-flags .b-chip { background: rgba(0, 0, 0, 0.72) !important; color: #fff !important; }

/* tuiles plein format façon vitrine */
.b-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: clamp(460px, 52vw, 620px); padding: clamp(40px, 5vw, 56px) 24px 0;
  border-radius: var(--b-radius-l); overflow: hidden; background: var(--b-bg-alt);
}
.b-tile--dark { background: var(--b-dark-2); color: var(--b-dark-ink); }
.b-tile__title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.b-tile__text { margin: 10px auto 18px; max-width: 460px; font-size: clamp(17px, 1.6vw, 21px); color: var(--b-ink-2); }
.b-tile--dark .b-tile__text { color: var(--b-dark-muted); }
.b-tile__media { position: relative; margin-top: auto; width: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; min-height: 220px; }
.b-tile__media img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--b-radius) var(--b-radius) 0 0; }

/* ---------- section immersive MLO ------------------------------------------ */
.b-immersive { position: relative; overflow: hidden; background: #000; color: #fff; }
.b-immersive__media { position: absolute; inset: 0; }
.b-immersive__media img { width: 100%; height: 100%; object-fit: cover; }
.b-immersive__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 38%, rgba(0, 0, 0, 0.08) 68%, rgba(0, 0, 0, 0) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.7) 100%); }
@media (max-width: 760px) { .b-immersive__media::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.75) 100%); } }
.b-immersive h1, .b-immersive h2, .b-immersive .b-lead { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35); }
.b-immersive__inner { position: relative; z-index: 1; min-height: clamp(560px, 70vw, 860px); display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(56px, 8vw, 104px); }
.b-immersive__inner .b-lead { color: rgba(255, 255, 255, 0.82); max-width: 560px; }
.b-immersive__foot { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.b-immersive__caption { font-size: 14px; color: rgba(255, 255, 255, 0.72); }

/* ---------- fiche produit --------------------------------------------------- */
.b-pdp-head { padding-top: clamp(40px, 6vw, 72px); }
.b-crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--b-muted); margin-bottom: 18px; }
.b-crumbs a:hover { color: var(--b-ink); text-decoration: underline; }
.b-pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .b-pdp { grid-template-columns: minmax(0, 1fr); } }
.b-buybox { position: sticky; top: calc(var(--b-nav-h) + 24px); display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--b-radius-l); background: var(--b-bg-alt); }
.b-buybox__price { font: 700 32px/1.1 var(--b-font-display); letter-spacing: -0.02em; }
.b-buybox__price s { font-size: 18px; font-weight: 500; color: var(--b-muted); margin-right: 8px; }
.b-buybox__note { font-size: 13px; color: var(--b-muted); }
.b-offers { display: grid; gap: 12px; }
.b-offer { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--b-radius); background: #fff; border: 1px solid var(--b-line); }
.b-offer__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b-offer__label { font-weight: 600; }
.b-offer__price { font: 700 24px/1.1 var(--b-font-display); letter-spacing: -0.02em; }
.b-offer__price small { font-size: 15px; font-weight: 500; color: var(--b-muted); }
.b-offer__price s { font-size: 15px; font-weight: 500; color: var(--b-muted); }
.b-card__price small { display: block; font-size: 13px; font-weight: 500; color: var(--b-muted); }
.b-buybox .b-btn { width: 100%; }
.b-buybox__meta { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--b-line); font-size: 14px; }
.b-buybox__meta div { display: flex; justify-content: space-between; gap: 12px; }
.b-buybox__meta dt { color: var(--b-muted); }
.b-buybox__meta dd { margin: 0; text-align: right; font-weight: 500; }

.b-gallery { display: grid; gap: 12px; }
.b-gallery__main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--b-radius-l); overflow: hidden; background: #0b0b0c; }
.b-gallery__main img, .b-gallery__main iframe, .b-gallery__main video { width: 100%; height: 100%; object-fit: cover; border: 0; }
.b-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.b-gallery__thumb { flex: 0 0 auto; width: 104px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #e9e9ee; }
.b-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.b-gallery__thumb[aria-current='true'] { border-color: var(--b-accent); }
.b-gallery__thumb--video { display: grid; place-items: center; background: var(--b-ink); color: #fff; font-size: 12px; font-weight: 600; }

.b-prose { color: var(--b-ink-2); font-size: 17px; line-height: 1.6; max-width: 720px; }
.b-prose h2, .b-prose h3 { color: var(--b-ink); margin: 1.6em 0 0.5em; letter-spacing: -0.02em; }
.b-prose ul { padding-left: 1.2em; }
.b-prose li { margin: 0.3em 0; }
.b-prose a { color: var(--b-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.b-prose img { border-radius: var(--b-radius); margin: 1em 0; }

.b-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--b-line); }
.b-spec { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--b-line); }
.b-spec dt { font-size: 13px; font-weight: 600; color: var(--b-muted); margin-bottom: 6px; }
.b-spec dd { margin: 0; font-size: 16px; color: var(--b-ink); }
.b-spec dd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }

.b-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.b-feature { padding: 26px; border-radius: var(--b-radius); background: var(--b-bg-alt); }
.b-feature h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 8px; }
.b-feature p { margin: 0; font-size: 15px; color: var(--b-ink-2); }

.b-notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--b-radius); background: var(--b-accent-soft); color: var(--b-ink); font-size: 15px; }
.b-notice svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--b-accent-ink); margin-top: 2px; }
.b-notice--neutral { background: var(--b-bg-alt); }
.b-dark .b-notice { background: rgba(255, 255, 255, 0.08); color: var(--b-dark-ink); }

/* ---------- démo plein écran (dialog) -------------------------------------- */
.b-dialog {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #f5f5f7; color: var(--b-ink); overflow: hidden;
}
.b-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.b-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: b-in 260ms var(--b-ease); }
.b-dialog--dark { background: #000; color: var(--b-dark-ink); }
.b-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--b-gutter); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.b-dialog--dark .b-dialog__bar { border-color: var(--b-dark-line); }
.b-dialog__title { font: 650 17px/1.2 var(--b-font-display); }
.b-dialog__title small { display: block; font: 400 13px/1.3 var(--b-font); color: var(--b-muted); margin-top: 2px; }
.b-dialog__stage { position: relative; min-height: 0; }
.b-dialog__controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; padding: 14px var(--b-gutter) max(14px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(0, 0, 0, 0.08); }
.b-dialog--dark .b-dialog__controls { border-color: var(--b-dark-line); }
.b-dialog__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.b-dialog__label { font-size: 12px; font-weight: 600; color: var(--b-muted); }
.b-close {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.06); color: var(--b-ink);
}
.b-close:hover { background: rgba(0, 0, 0, 0.1); }
.b-dialog--dark .b-close { background: rgba(255, 255, 255, 0.12); color: #fff; }
.b-close svg { width: 16px; height: 16px; }
@keyframes b-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }

.b-dialog .b-btn--ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--b-line); }
.b-dialog .b-btn--ghost:hover { background: var(--b-bg-alt); }
.b-dialog .b-btn--ghost[aria-pressed='true'] { background: var(--b-ink); color: #fff; box-shadow: none; }
.b-dialog--dark .b-btn--ghost { background: rgba(255, 255, 255, 0.1); color: var(--b-dark-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.b-dialog--dark .b-btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }
.b-dialog--dark .b-btn--ghost[aria-pressed='true'] { background: #fff; color: #000; }
.b-dialog--dark .b-seg { background: rgba(255, 255, 255, 0.1); }
.b-dialog--dark .b-seg button { color: #d1d1d6; }
.b-dialog--dark .b-seg button:hover { color: #fff; }
.b-dialog--dark .b-seg button[aria-pressed='true'] { background: #fff; color: #000; box-shadow: none; }
.b-dialog--dark .b-dialog__label { color: #a1a1a6; }
.b-dialog--dark .b-swatch { box-shadow: inset 0 0 0 3px #000; }
.b-dialog--dark .b-dialog__title small, .b-dialog--dark .b-dialog__subtitle { color: #a1a1a6; }
.b-dialog__subtitle { display: block; font-size: 13px; color: var(--b-muted); margin-top: 2px; }
.b-demo-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 2; max-width: min(92%, 640px); padding: 8px 14px; border-radius: 980px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--b-shadow); font-size: 13px; color: var(--b-ink-2); text-align: center; }
.b-dialog--dark .b-demo-hint { background: rgba(28, 28, 30, 0.9); color: var(--b-dark-muted); }

/* ---------- viewer 3D ------------------------------------------------------- */
.b-viewer { position: relative; width: 100%; height: 100%; background: #0b0b0c; color: #fff; overflow: hidden; touch-action: none; }
.b-viewer canvas { width: 100% !important; height: 100% !important; outline: none; }
.b-viewer__poster { position: absolute; inset: 0; }
.b-viewer__poster img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.b-viewer__progress { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, 70%); text-align: center; font-size: 14px; }
.b-viewer__bar { height: 4px; margin-top: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.b-viewer__bar span { display: block; height: 100%; width: 0; background: #fff; transition: width 200ms linear; }
.b-viewer__error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(0, 0, 0, 0.72); }
.b-viewer__help { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 6px 12px; border-radius: 980px; background: rgba(0, 0, 0, 0.62); font-size: 12px; color: rgba(255, 255, 255, 0.92); pointer-events: none; }
[data-walkpad]:not([hidden]) { display: inline-flex; gap: 6px; }
[data-walkpad][hidden] { display: none !important; }
.b-viewer__views { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ---------- panier (tiroir) ------------------------------------------------- */
.b-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.b-drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 240ms var(--b-ease); }
.b-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: #fff; box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%); transition: transform 300ms var(--b-ease);
}
.b-drawer.is-open { pointer-events: auto; }
.b-drawer.is-open .b-drawer__scrim { opacity: 1; }
.b-drawer.is-open .b-drawer__panel { transform: none; }
.b-drawer:not(.is-open) .b-drawer__panel { box-shadow: none; visibility: hidden; transition: transform 300ms var(--b-ease), visibility 0s linear 300ms; }
.b-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--b-line-soft); }
.b-drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.b-drawer__foot { padding: 18px 22px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--b-line-soft); display: grid; gap: 12px; }
.b-line-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--b-line-soft); }
.b-line-item__name { font-weight: 600; }
.b-line-item__price { font-weight: 600; text-align: right; }
.b-line-item__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 13px; color: var(--b-muted); }
.b-line-item__meta a { color: var(--b-danger); }
.b-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 650; }

/* ---------- recherche ------------------------------------------------------- */
.b-search { width: min(720px, calc(100vw - 32px)); max-height: min(640px, calc(100dvh - 96px)); margin: 72px auto auto; padding: 0; border: 0; border-radius: var(--b-radius-l); background: #fff; box-shadow: var(--b-shadow-lift); color: var(--b-ink); }
.b-search::backdrop { background: rgba(0, 0, 0, 0.28); }
.b-search[open] { display: flex; flex-direction: column; animation: b-in 200ms var(--b-ease); }
.b-search__field { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--b-line-soft); }
.b-search__field svg { width: 18px; height: 18px; color: var(--b-muted); flex: 0 0 auto; }
.b-search__field input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 19px; background: transparent; }
.b-search__results { overflow-y: auto; padding: 8px; margin: 0; list-style: none; }
.b-search__results li a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; }
.b-search__results li a:hover, .b-search__results li a:focus-visible, .b-search__results li a[aria-selected='true'] { background: var(--b-bg-alt); outline: none; }
.b-search__thumb { width: 52px; height: 36px; border-radius: 8px; background: #e9e9ee center / cover no-repeat; }
.b-search__name { font-weight: 600; }
.b-search__desc { display: block; font-size: 13px; color: var(--b-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-search__type { font-size: 12px; font-weight: 600; color: var(--b-muted); white-space: nowrap; }
.b-search__type--project { color: var(--b-accent-ink); }
.b-search__empty { padding: 28px 20px; color: var(--b-muted); text-align: center; }

/* ---------- formulaires ----------------------------------------------------- */
.b-field { display: grid; gap: 6px; }
.b-field label { font-size: 13px; font-weight: 600; color: var(--b-ink-2); }
.b-input, .b-select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--b-line); border-radius: 12px; background: #fff; font-size: 17px; }
.b-input:focus, .b-select:focus { outline: none; border-color: var(--b-accent); box-shadow: 0 0 0 4px rgba(90, 73, 247, 0.16); }
.b-form-card { max-width: 520px; margin-inline: auto; padding: clamp(24px, 4vw, 40px); border-radius: var(--b-radius-l); background: var(--b-bg-alt); }
.b-form-card form { display: grid; gap: 16px; }

/* ---------- pied de page ---------------------------------------------------- */
.b-footer { background: var(--b-bg-alt); color: var(--b-muted); font-size: 13px; border-top: 1px solid var(--b-line-soft); }
.b-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 48px 32px; }
@media (max-width: 760px) { .b-footer__grid { grid-template-columns: 1fr 1fr; } .b-footer__brand { grid-column: 1 / -1; } }
.b-footer h2 { font: 600 13px/1.3 var(--b-font); color: var(--b-ink); margin-bottom: 12px; }
.b-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.b-footer a:hover { color: var(--b-ink); text-decoration: underline; text-underline-offset: 3px; }
.b-footer__brand img { height: 28px; width: auto; margin-bottom: 14px; }
.b-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 18px 28px; border-top: 1px solid var(--b-line); }

/* ---------- divers ---------------------------------------------------------- */
.b-empty { padding: 48px 24px; text-align: center; color: var(--b-muted); border-radius: var(--b-radius-l); background: var(--b-bg-alt); }
.b-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .b-split { grid-template-columns: 1fr; } }
.b-media-frame { border-radius: var(--b-radius-l); overflow: hidden; background: #0b0b0c; }
.b-media-frame img, .b-media-frame video { width: 100%; height: 100%; object-fit: cover; }
.b-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--b-radius-l); overflow: hidden; background: #000; }
.b-video video, .b-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-kv { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--b-muted); }
.b-kv b { color: var(--b-ink); font-weight: 600; }
.b-divider { height: 1px; background: var(--b-line); border: 0; margin: 0; }
.b-preview-banner { position: fixed; left: 12px; bottom: 12px; z-index: 300; max-width: 360px; padding: 10px 14px; border-radius: 12px; background: #1d1d1f; color: #f5f5f7; font-size: 12px; line-height: 1.4; box-shadow: var(--b-shadow-lift); }
.b-preview-banner b { color: #c9c3ff; }

/* ---------- révélations au défilement -------------------------------------- */
.b-reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--b-dur) var(--b-ease), transform var(--b-dur) var(--b-ease); }
.b-reveal.is-in { opacity: 1; transform: none; }
.no-js .b-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .b-reveal { opacity: 1; transform: none; }
  .b-card:hover, .b-card:hover .b-card__media img { transform: none; }
}
