/* ============================================================================================================================
   Arceau Studio : page d'accueil, version B « scène interactive » (accueil_b.html). S'ajoute à accueil.css (mêmes tokens, mêmes .hm-*).
   ========================================================================================================================== */

/* ── Hero : texte à gauche, la scène 3D jouable à droite ── */
.hb-hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 84px) clamp(40px, 6vw, 80px); }
.hb-hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; z-index: 0; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 26%, transparent), transparent 72%); }
.hb-hero .hm-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hb-hero h1 { font-size: clamp(42px, 6.2vw, 92px); text-wrap: balance; max-width: none; line-height: 1; }
.hb-hero h1 span, .hb-hero h1 em { display: block; }
.hb-hero .hm-lead { max-width: 40ch; color: var(--text); }
@media (max-width: 960px) { .hb-hero .hm-wrap { grid-template-columns: 1fr; } }

/* ── La scène : image d'abord, 3D en direct dès qu'elle est prête ── */
.hb-stage { position: relative; border: 1px solid var(--n-4); border-radius: var(--r-lg); overflow: hidden; background: var(--n-1); aspect-ratio: 16 / 10; box-shadow: 0 40px 100px var(--shade-4), 0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent); }
.hb-stage img.hb-poster, .hb-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hb-stage img.hb-poster { object-fit: cover; transition: opacity .5s var(--ease); }
.hb-stage iframe { opacity: 0; transition: opacity .5s var(--ease); background: var(--n-0); }
.hb-stage.is-ready iframe { opacity: 1; }
.hb-stage.is-ready img.hb-poster { opacity: 0; pointer-events: none; }
.hb-badge { position: absolute; left: var(--sp-12); top: var(--sp-12); z-index: 2; display: inline-flex; align-items: center; gap: var(--sp-8); padding: var(--sp-4) var(--sp-10); background: color-mix(in srgb, var(--n-0) 82%, transparent); border: 1px solid var(--n-4); font-family: var(--font-display); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.hb-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: hb-pulse 2s infinite; }
@keyframes hb-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hb-play { position: absolute; inset: 0; z-index: 3; display: none; align-items: center; justify-content: center; background: color-mix(in srgb, var(--n-0) 38%, transparent); border: 0; cursor: pointer; color: var(--text-strong); font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-semi); text-transform: uppercase; letter-spacing: .06em; }
.hb-stage.needs-tap .hb-play { display: flex; }
.hb-stage.is-ready .hb-play, .hb-stage.loading .hb-play { display: none; }
.hb-drop { position: absolute; inset: 0; z-index: 4; display: none; align-items: center; justify-content: center; text-align: center; padding: var(--sp-24); background: color-mix(in srgb, var(--primary-fill) 70%, transparent); border: 3px dashed var(--text-strong); color: var(--on-primary); font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
.hb-stage.dropping .hb-drop { display: flex; }

/* ── Barre « essayez » : sponsors cliquables et dépôt de logo ── */
.hb-try { margin-top: var(--sp-12); }
.hb-try-label { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-12); align-items: baseline; margin: 0 0 var(--sp-8); font-size: var(--fs-md); color: var(--text-dim); }
.hb-try-label b { font-family: var(--font-display); font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; color: var(--primary-text); }
.hb-chips { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.hb-chip { padding: 0 var(--sp-12); min-height: 40px; width: 152px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid transparent; cursor: pointer; border-radius: var(--r-md); transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.hb-chip img { width: 100%; height: auto; }
.hb-chip.dark img, .hm-tile.dark img { filter: brightness(0); }
.hb-chip:hover { transform: translateY(-2px); }
.hb-chip[aria-pressed="true"] { border-color: var(--text-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-strong) 25%, transparent); }
.hb-upload { display: inline-flex; align-items: center; gap: var(--sp-8); padding: 0 var(--sp-16); min-height: 42px; border: 2px dashed var(--primary); background: transparent; color: var(--primary-text); cursor: pointer; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: var(--fw-semi); letter-spacing: .06em; text-transform: uppercase; border-radius: var(--r-md); }
.hb-upload:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.hb-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hb-upload:focus-within { outline: 2px solid var(--primary); outline-offset: 3px; }
.hb-note { margin: var(--sp-8) 0 0; font-size: var(--fs-sm); color: var(--text-faint); }
.hb-error { margin: var(--sp-8) 0 0; font-size: var(--fs-sm); color: var(--danger-text); min-height: 1.4em; }

/* ── Avant / avec ── */
.hb-versus { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); margin-top: var(--sp-32); }
.hb-col { border: 1px solid var(--n-3); border-radius: var(--r-lg); padding: var(--sp-28); background: var(--n-2); }
.hb-col h3 { font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--sp-16); color: var(--text-faint); }
.hb-col.with { border-color: var(--primary-fill); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, var(--n-2)), var(--n-2)); }
.hb-col.with h3 { color: var(--primary-text); }
.hb-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-12); }
.hb-col li { position: relative; padding-left: var(--sp-28); font-size: var(--fs-lg); color: var(--text-dim); }
.hb-col li::before { content: '×'; position: absolute; left: 0; top: -2px; font-size: 22px; line-height: 1.3; color: var(--n-5); }
.hb-col.with li { color: var(--text); }
.hb-col.with li::before { content: '✓'; color: var(--success); font-size: 18px; top: 0; }
@media (max-width: 760px) { .hb-versus { grid-template-columns: 1fr; } }

/* ── Offre ── */
.hb-offer { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--sp-16); margin-top: var(--sp-32); }
.hb-plan { border: 1px solid var(--n-3); border-radius: var(--r-lg); padding: var(--sp-32); background: var(--n-2); }
.hb-plan.now { border-color: var(--primary-fill); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, var(--n-2)), var(--n-2)); }
.hb-plan h3 { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-12); }
.hb-price { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 48px; color: var(--text-strong); line-height: 1; margin: var(--sp-16) 0 var(--sp-4); }
.hb-price small { font-size: var(--fs-md); color: var(--text-dim); font-weight: var(--fw-semi); }
.hb-plan .hm-list { margin-top: var(--sp-20); }
.hb-plan p { margin: var(--sp-12) 0 0; color: var(--text-dim); }
.hb-plan .hm-cta { margin-top: var(--sp-24); }
@media (max-width: 860px) { .hb-offer { grid-template-columns: 1fr; } }

/* ── Lien de partage : la même salle sur MacBook, iPad et iPhone (cadres en CSS, captures de la démo) ── */
.hb-share { display: grid; grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); gap: clamp(40px, 9vw, 140px); align-items: center; }
.hb-linkpill { display: inline-flex; align-items: center; gap: var(--sp-10); margin-top: var(--sp-24); max-width: 100%; padding: var(--sp-10) var(--sp-16); border: 1px solid var(--n-4); border-radius: var(--r-pill); background: var(--n-1); color: var(--primary-text); font-family: var(--font-mono); font-size: var(--fs-sm); }
.hb-linkpill { cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.hb-linkpill:hover { border-color: var(--primary); background: var(--n-2, var(--n-1)); }
.hb-linkpill:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.hb-linkpill .lp-url { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-linkpill .lp-copy { flex: none; margin-left: var(--sp-8, 8px); padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary-text); font-family: var(--font-display); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.hb-linkpill.copied { border-color: #3fb950; }
.hb-linkpill.copied .lp-copy { background: #3fb95026; color: #6ee07f; }
.hb-linkpill svg { flex: none; }
.hb-devices { position: relative; aspect-ratio: 16 / 12; max-width: 820px; width: calc(100% + clamp(0px, 3vw, 48px)); justify-self: start; container-type: inline-size; perspective: 1400px; perspective-origin: 50% 40%; }
.hb-devices::before { content: ''; position: absolute; inset: 4% -6% -6%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 20%, transparent), transparent 75%); pointer-events: none; }
/* Appareils en CSS 3D, façon « maquette posée en perspective » : une scène inclinée, chaque appareil a une épaisseur (calques décalés en profondeur) et une ombre portée. */
.stage3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -16deg)); }
.d3 { position: absolute; margin: 0; transform-style: preserve-3d; }
.d3 .body { position: absolute; inset: 0; transform-style: preserve-3d; }
.d3 .body > .layer, .d3 .deck > .layer { position: absolute; inset: 0; display: block; }
.d3 .face { position: absolute; inset: 0; box-sizing: border-box; transform-style: flat; background: linear-gradient(145deg, #3a3d44, #16171b 30%, #0c0d10 70%, #2a2c31); box-shadow: inset 0 0 0 1px #ffffff14; }
.d3 .screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.d3 .screen > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d3 .screen::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, #ffffff26 0%, #ffffff00 36%); }   /* reflet du verre */
.d3 .screen::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: var(--ga, 0);   /* reflet : la position et l'intensité sont lissées en JS (une seule lumière pour les trois écrans) */
  background: radial-gradient(ellipse 70% 60% at var(--gx, 50%) var(--gy, 35%), #ffffff1f 0, #ffffff0d 38%, #ffffff00 72%); }
/* MacBook : le couvercle, puis le clavier posé à plat devant */
.d3.mac { left: 10%; top: 4%; width: 62%; aspect-ratio: 16 / 10.3; transform: translateZ(0) rotateZ(-1.5deg); }
.d3.mac .body { --th: -0.1cqw; }
.d3.mac .face { padding: 0.9cqw 0.9cqw 1.3cqw; border-radius: 1.4cqw 1.4cqw 0.4cqw 0.4cqw; }
.d3.mac .notch { position: absolute; left: 50%; top: 0.9cqw; width: 8cqw; height: 1.1cqw; transform: translateX(-50%); background: #0b0d11; border-radius: 0 0 0.7cqw 0.7cqw; z-index: 4; }
.d3.mac .deck { position: absolute; left: -4%; width: 108%; top: calc(100% - 0.5cqw); height: 26%; transform-origin: 50% 0; transform: rotateX(80deg); transform-style: preserve-3d; background: linear-gradient(#3c4149, #20242a); border-radius: 0 0 2.4cqw 2.4cqw; box-shadow: 0 4cqw 6cqw #000000a6; }
.d3.mac .deck .pad { position: absolute; left: 32%; right: 32%; bottom: 12%; height: 36%; border-radius: 0.8cqw; background: linear-gradient(#2b2f36, #23262c); box-shadow: inset 0 0 0 1px #ffffff12; }
/* iPad : en avant à droite */
.d3.ipad { right: 13%; bottom: 6%; width: 29%; aspect-ratio: 0.709; transform: translateZ(20cqw) rotateZ(4deg); }   /* écran 820 × 1180 (iPad Air 11″) */
.d3.ipad .body { --th: -0.09cqw; }
.d3.ipad .face { padding: 0.9cqw; border-radius: 2cqw; }
.d3.ipad .screen { border-radius: 1.2cqw; }
/* iPhone : tout devant, à gauche (l'appareil vedette) */
.d3.iphone { left: 15%; bottom: -2%; width: 19%; aspect-ratio: 0.4835; transform: translateZ(30cqw) rotateZ(-5deg); }   /* écran 393 × 852 (iPhone 15 Pro) */
.d3.iphone .body { --th: -0.1cqw; }
.d3.iphone .face { padding: 0.8cqw; border-radius: 3.1cqw; }
.d3.iphone .screen { border-radius: 2.4cqw; }
.d3.iphone .island { position: absolute; left: 50%; top: 1.5cqw; width: 5.5cqw; height: 1.6cqw; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 4; }
/* ombre portée commune, sous les appareils */
.stage3d .cast { position: absolute; left: 6%; right: 2%; bottom: -3%; height: 12%; background: radial-gradient(closest-side, #000000b8, transparent); filter: blur(14px); transform: translateZ(-4cqw) rotateX(78deg); }
@media (max-width: 900px) { .hb-share { grid-template-columns: 1fr; } .hb-devices { max-width: 640px; margin-inline: auto; width: 100%; justify-self: center; } .stage3d { --ry: -12deg; --rx: 5deg; } .d3.iphone { left: 12%; transform: translateZ(22cqw) rotateZ(-5deg); } .d3.ipad { right: 9%; transform: translateZ(14cqw) rotateZ(4deg); } }

/* Ajout du logo du prospect (sous les pastilles de couleur) */
.hb-logoup { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-12); margin-top: var(--sp-12); }
.hb-up { display: inline-flex; align-items: center; gap: var(--sp-8); min-height: 44px; padding: 0 var(--sp-20, 20px); border: 2px dashed var(--primary); border-radius: var(--r-md); background: transparent; color: var(--text-strong, #fff); font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); transition: background var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.hb-up svg { color: var(--primary-text); }
.hb-up:hover { background: color-mix(in srgb, var(--primary) 14%, transparent); transform: none; box-shadow: none; }
.hb-up:focus-visible, .hb-upstate button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hb-upstate { display: inline-flex; align-items: center; gap: var(--sp-8); font-size: var(--fs-sm); color: var(--text); }
.hb-upstate img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #ffffffd9; padding: 2px; }
.hb-upstate button { border: 0; background: none; color: var(--primary-text); font: inherit; text-decoration: underline; cursor: pointer; padding: 4px; }
.hb-uperr { color: #ff8a8a; font-size: var(--fs-sm); }

.hb-chip[data-color="#151515"] { border-color: #ffffff2e; }   /* le noir se confond avec le fond de la page : fin liseré */
.hb-chip[data-color="#151515"][aria-pressed="true"] { border-color: var(--text-strong); }

/* Les 4 boutons (orange, noir, couleur au choix, Mon logo) : même taille, toute la largeur de la salle 3D */
.hb-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-8); align-items: stretch; }
.hb-chips .hb-chip, .hb-chips .hb-up { width: 100%; height: 44px; min-height: 0; box-sizing: border-box; justify-content: center; }
.hb-chips .hb-chip img { width: 100%; max-width: 128px; }
.hb-chips .hb-up { padding: 0 var(--sp-8, 8px); gap: var(--sp-8); white-space: nowrap; }
/* « couleur au choix » : même bouton que les autres couleurs, avec un dégradé élégant à la place de la couleur ; le sélecteur natif est invisible par-dessus */
.hb-custom { position: relative; gap: var(--sp-8, 8px); background: #151515; border-color: #ffffff2e; color: var(--text-strong, #fff); }   /* sobre, comme le noir : pastille de couleurs + libellé ; devient la couleur choisie (avec le logo) une fois sélectionnée */
.hb-swatch { flex: none; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#e5484d, #f5a524, #7ccf4f, #2bb6c8, #5b6cf0, #c94fd1, #e5484d); box-shadow: 0 0 0 2px #ffffff26; }
.hb-custom-lbl { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.hb-custom img { display: none; }
.hb-custom.is-set img { display: block; }
.hb-custom.is-set .hb-swatch, .hb-custom.is-set .hb-custom-lbl { display: none; }
.hb-custom.is-set { border-color: transparent; }
.hb-custom input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.hb-custom:focus-within { outline: 2px solid var(--primary); outline-offset: 3px; }
.hb-logoup:not(:has(> :not([hidden]))) { display: none; }
@media (max-width: 520px) { .hb-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Section « Tout se règle » : grille de cartes visuelles (zoom 3D + puces de réglages) ── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: clamp(280px, 31vw, 440px) clamp(220px, 23vw, 320px) clamp(220px, 23vw, 320px); gap: var(--sp-16, 16px); margin-top: var(--sp-32, 32px); }
.bn { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--n-3); border-radius: var(--r-lg, 14px); background: var(--n-0, #0b0e14); }
.bn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease, ease); }
.bn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #06080de6 0%, #06080db3 32%, #06080d00 68%); }
.bn:hover img { transform: scale(1.04); }
.bn-in { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-16, 16px) var(--sp-20, 20px) var(--sp-16, 16px); }
.bn h3 { margin: 0; font-family: var(--font-display); font-size: var(--fs-lg, 1.15rem); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.bn p { margin: 4px 0 var(--sp-12, 12px); color: #d3d8e0; font-size: var(--fs-sm); line-height: 1.4; max-width: 46ch; }
.bn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bn-chips li { padding: 3px 10px; border: 1px solid #ffffff33; border-radius: 99px; background: #0a0d14b3; backdrop-filter: blur(6px); color: #f2f4f8; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .02em; white-space: nowrap; }
.c-led { grid-column: 1 / span 7; } .c-paniers { grid-column: 8 / span 5; }
.c-toblos { grid-column: 1 / span 4; grid-row: 2; } .c-visuel { grid-column: 5 / span 4; grid-row: 2; } .c-tables { grid-column: 9 / span 4; grid-row: 2; }
.c-terrain { grid-column: 1 / span 6; grid-row: 3; } .c-gradins { grid-column: 7 / span 6; grid-row: 3; }
.st-foot { margin: var(--sp-32, 32px) 0 0; color: var(--text); text-align: center; }
.st-foot b { color: var(--text-strong, #fff); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .bn { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 3; }
  .bn.c-led { grid-column: 1 / -1 !important; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bn, .bn.c-led { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) { .bn p { display: none; } .bn-chips li { font-size: .68rem; } }
@media (prefers-reduced-motion: reduce) { .bn img { transition: none; } .bn:hover img { transform: none; } }

/* Accroche : chaque ligne reste entière (« parlez plus. », « Montrez-leur. »), taille réglée pour tenir dans la colonne de texte */
.hb-hero h1 span, .hb-hero h1 em { white-space: nowrap; }
@media (min-width: 900px) { .hb-hero h1 { font-size: clamp(42px, 4.9vw, 76px); } }

/* ── Passe d'apparence ── */
/* contraste : le texte des boutons orange était gris-bleu (3,9:1) ; blanc = 4,6:1 */
html:root .hm .btn-primary { color: #fff; }
/* Offre : la carte « Ensuite » n'est plus étirée à la hauteur de l'autre (elle restait à moitié vide) */
.hb-offer { align-items: start; }
.hb-plan:not(.now) { background: transparent; border-style: dashed; }
/* lien de partage : l'adresse tient en entier */
/* la pastille ne dépasse jamais la colonne de texte : l'adresse rétrécit avec la largeur disponible (elle reste entière), la pastille « Copier » aussi */
.hb-share-text { container-type: inline-size; }
.hb-linkpill { max-width: 100%; gap: 8px; padding: 8px 12px; }
.hb-linkpill .lp-url { font-size: clamp(.5rem, calc((100cqw - 132px) / 25.6), .72rem); min-width: 0; }
.hb-linkpill .lp-copy { margin-left: 4px; padding: 2px 8px; }
@container (max-width: 420px) { .hb-linkpill .i-link { display: none; } .hb-linkpill .lp-url { font-size: clamp(.5rem, calc((100cqw - 92px) / 25.6), .72rem); } }   /* colonne étroite (téléphone, 1100 px) : sans l'icône, l'adresse reste lisible */
/* téléphone : « Toucher pour essayer en 3D » sur une seule ligne */
@media (max-width: 520px) { .hb-play { font-size: .95rem; white-space: nowrap; padding-inline: var(--sp-12, 12px); } }
html:root .hm .hm-skip { color: #fff; }   /* lien d'évitement (visible au clavier) : même contraste */

/* Séparation entre le haut de page et « Le déclic » : filet comme celui des sections alternées, et léger fond en bas du hero */
.hb-hero { border-bottom: 1px solid var(--n-3); background: linear-gradient(to bottom, transparent 62%, color-mix(in srgb, var(--n-1) 70%, transparent)); }

/* Contact : sous la FAQ */
.hm-faq-more { margin: var(--sp-32, 32px) 0 0; text-align: center; color: var(--text-dim); }
.hm-faq-more a { color: var(--primary-text, var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.hm-faq-more a:hover { color: var(--text-strong, #fff); }

/* « Mon logo » : une fois le logo choisi, il s'affiche dans le bouton (miniature + nom), avec une croix pour le retirer */
.hb-upcell { position: relative; display: block; min-width: 0; }
.hb-chips .hb-up { min-width: 0; }
.hb-up .hb-up-thumb { flex: none; width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #ffffffdb; padding: 2px; }
.hb-up .hb-up-thumb[hidden] { display: none; }
.hb-up span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hb-up.has-logo { border-style: solid; background: color-mix(in srgb, var(--primary) 12%, transparent); padding-right: 34px; justify-content: flex-start; padding-left: 8px; }
.hb-up.has-logo span { text-transform: none; letter-spacing: .02em; font-weight: 600; }
.hb-up-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #ffffff1f; color: #fff; cursor: pointer; transition: background var(--dur-base) var(--ease); }
.hb-up-x:hover { background: color-mix(in srgb, var(--primary) 70%, transparent); }
.hb-up-x:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hb-up-x[hidden] { display: none; }

/* ── Prix des emplacements (#tarifs) : capture à gauche, texte à droite ── */
.hb-tarifs { display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.74fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.hb-tarifs-shot { margin: 0; border: 1px solid var(--n-3); border-radius: 16px; overflow: hidden; background: #07090f; box-shadow: 0 30px 70px -28px #000c, 0 0 0 1px #ffffff0d inset; }
.hb-tarifs-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .hb-tarifs { grid-template-columns: 1fr; } .hb-tarifs-text { order: -1; } .hb-tarifs-shot { max-width: 640px; margin-inline: auto; } }

/* les appareils 3D de la section partage dépassent un peu à droite (perspective) : sans ce rognage, la page défile à l'horizontale entre 900 et 1300 px de large */
#partage { overflow-x: clip; }


/* ── « À vous de jouer » : un peu plus visible, sans en faire trop ── */
.hb-try-label { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 2px; }
.hb-try-label > b { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; letter-spacing: .08em; }   /* seulement le titre, pas le « Mon logo » de la phrase */
.hb-try-label > b::before { content: ''; flex: none; width: 22px; height: 2px; border-radius: 2px; background: var(--primary); }
/* le bouton « Mon logo » respire doucement deux fois, puis s'arrête (et dès que le visiteur joue) */
@keyframes hbNudge { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--primary) 32%, transparent); } }
.hb-try:not(.played) .hb-up:not(.has-logo) { animation: hbNudge 2.2s ease-out 2.8s 2; }
@media (prefers-reduced-motion: reduce) { .hb-try:not(.played) .hb-up:not(.has-logo) { animation: none; } }


/* points de défilement : cachés sauf sur téléphone */
.swipe-dots { display: none; }

/* ═══════════════ Version téléphone (≤ 700 px) : la salle d'abord, des défilements horizontaux plutôt qu'une page interminable ═══════════════ */
@media (max-width: 700px) {
  .hm-section { padding-block: 44px; }
  .hm-section h2 { font-size: clamp(1.45rem, 6.6vw, 1.8rem); line-height: 1.18; }

  /* Haut de page : titre → la salle 3D à essayer → explication et bouton (au lieu de 3 écrans de texte avant la démo) */
  .hb-hero { padding-block: 22px 36px; }
  .hb-hero .hm-wrap { display: flex; flex-direction: column; gap: 0; }
  .hb-hero .hm-wrap > div:first-child { display: contents; }
  .hb-hero .hm-kicker { order: 1; font-size: .7rem; letter-spacing: .1em; margin-bottom: 10px; }
  .hb-hero h1 { order: 2; align-self: stretch; text-align: left; max-width: none; margin: 0 0 18px; font-size: clamp(2.1rem, 10.6vw, 2.7rem); line-height: 1.04; }
  .hb-hero .hm-wrap > div:nth-child(2) { order: 3; }
  .hb-hero .hm-lead { order: 4; margin-top: 22px; font-size: 1.02rem; }
  .hb-hero .hm-cta { order: 5; margin-top: 18px; }
  .hb-hero .hm-cta .btn { width: 100%; justify-content: center; }
  .hb-hero .hm-fine { order: 6; text-align: center; }
  .hb-stage { aspect-ratio: 5 / 4; border-radius: 14px; }

  /* Défilement horizontal (étapes, cartes « Tout se règle ») : on voit un bout de la carte suivante, des points indiquent la position */
  .hm-steps, .bento { display: flex; grid-template-columns: none; grid-template-rows: none; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 6px 16px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hm-steps::-webkit-scrollbar, .bento::-webkit-scrollbar { display: none; }
  .hm-steps li { flex: 0 0 76%; scroll-snap-align: start; padding: 20px; }
  .hm-steps li::before { font-size: 30px; margin-bottom: 8px; }
  .bn, .bn.c-led { flex: 0 0 80%; aspect-ratio: auto; height: 400px; scroll-snap-align: start; }
  .bn p { display: block; font-size: .86rem; margin-bottom: 10px; }
  .bn-in { padding: 14px 16px; }
  .swipe-dots { display: flex; justify-content: center; gap: 7px; margin: 2px 0 0; }
  .swipe-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--n-4); transition: width .25s, background .25s; }
  .swipe-dots i.on { width: 20px; border-radius: 4px; background: var(--primary); }
  .st-foot { margin-top: 22px; font-size: .95rem; }

  /* Le visuel avant la liste (partage, prix) : on voit la chose avant de lire le détail */
  .hb-share, .hb-tarifs { display: flex; flex-direction: column; gap: 0; }
  .hb-share-text, .hb-tarifs-text { display: contents; }
  .hb-share .hm-kicker, .hb-share h2, .hb-share .hm-lead, .hb-tarifs .hm-kicker, .hb-tarifs h2, .hb-tarifs .hm-lead { align-self: stretch; margin-inline: 0; text-align: left; }   /* sans ça, les marges automatiques les centrent (éléments d'une colonne flex) */
  .hb-share .hm-kicker, .hb-tarifs .hm-kicker { order: 1; }
  .hb-share h2, .hb-tarifs h2 { order: 2; }
  .hb-share .hm-lead, .hb-tarifs .hm-lead { order: 3; }
  .hb-devices, .hb-tarifs-shot { order: 4; margin-top: 24px; margin-bottom: 8px; }
  .hb-share .hm-list, .hb-tarifs .hm-list { order: 5; margin-top: 18px; }
  .hb-share .hb-linkpill { order: 6; align-self: stretch; max-width: 100%; justify-content: space-between; }
  .hb-share .hb-linkpill .i-link { display: none; }
  .hb-share .hb-linkpill .lp-url { font-size: clamp(.5rem, 2.55vw, .72rem); }   /* le conteneur de la colonne n'existe plus en une colonne (display: contents) : taille fixée sur la largeur d'écran */
  .hb-tarifs-shot { max-width: none; width: 100%; }
  .hb-tarifs-shot img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 24%; }

  /* Le déclic : cartes plus compactes */
  .hb-versus { gap: 12px; }
  .hb-versus > * { padding: 18px; }
  .hm-final { padding-block: 52px; }
}
