/* ==========================================================================
   Landing « Liquid Glass » (page d'accueil) — actif seulement si html[data-ui="glass"]
   Reprend la maquette (hero, suivi, étapes, offres, appel final) et la page existante
   (recherche, catégories, sites de référence, calculatrice) + parcours, bénéfices, applications, FAQ.
   ========================================================================== */
.bc-home-glass { display: none; }
html[data-ui="glass"] .bc-home-glass { display: block; }
html[data-ui="glass"] .bc-home-classic { display: none; }

.bc-landing { --w: 1180px; overflow-x: clip; }
.bc-landing .bcl-wrap { width: min(var(--w), 100% - 2rem); margin-inline: auto; }
.bc-landing .bcl-section { padding: clamp(2.2rem, 5vw, 4.2rem) 0; }
.bc-landing .bcl-tight { padding-block: clamp(1.4rem, 3vw, 2.4rem); }
.bc-landing h1, .bc-landing h2, .bc-landing h3 { margin: 0; }
.bc-landing p { margin: 0; }

/* Apparition au défilement (uniquement si le script de la page tourne : classe .js) */
html.js .bc-landing .bc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--bc-ease), transform .7s var(--bc-ease); }
html.js .bc-landing .bc-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .bc-landing .bc-reveal { opacity: 1; transform: none; } }

/* ---------- Textes communs ---------- */
.bcl-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: var(--bc-brand-text); background: var(--bc-brand-50); border: 1px solid var(--bc-brand-100); }
.bcl-title { margin: 1.1rem 0 1.1rem !important; font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.bcl-lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--bc-ink-2); max-width: 58ch; line-height: 1.65; font-weight: 500; }
.bcl-sub { color: var(--bc-ink-2); margin-top: .5rem; }
.bcl-head { margin-bottom: 1.8rem; display: grid; gap: .8rem; justify-items: start; }
.bcl-head h2, .bcl-apps h2, .bcl-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; }
.bcl-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.bc-landing .bcl-more { margin-top: 2.2rem; text-align: center; }
.bcl-pill { display: inline-flex; align-items: center; padding: .2rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--bc-glass-bg-strong); color: var(--bc-ink); }
.bcl-pill-ok { background: var(--bc-ok-soft); color: var(--bc-ok); }
.bcl-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--bc-brand-50); color: var(--bc-brand-500); font-size: 1.35rem; flex: none; }

/* ---------- Hero ---------- */
.bcl-hero { padding: clamp(5.8rem, 9vw, 7.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.bcl-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.bcl-search { display: grid; grid-template-columns: 1.15fr 1fr 1fr auto; align-items: center; gap: .15rem; margin-top: 1.8rem; padding: .5rem; border-radius: 999px;
  background: var(--bc-glass-bg-strong); -webkit-backdrop-filter: var(--bc-glass-blur); backdrop-filter: var(--bc-glass-blur);
  border: 1px solid var(--bc-glass-border); box-shadow: var(--bc-glass-shadow), inset 0 1px 0 var(--bc-glass-edge); }
.bcl-field { display: flex; flex-direction: column; gap: .1rem; padding: .45rem 1rem; border-radius: var(--bc-r-m); min-width: 0; transition: background .2s; }
.bcl-field + .bcl-field { border-left: 1px solid var(--bc-line); border-radius: 0; }
.bcl-field:hover, .bcl-field:focus-within { background: rgba(255, 255, 255, .5); }
.bcl-field label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--bc-ink-3); margin: 0; white-space: nowrap; }
.bcl-field .mud-input-control { margin: 0; }
.bcl-field .mud-input, .bcl-field .mud-input-slot { font-weight: 600; font-size: .95rem; color: var(--bc-ink); padding: 0; margin: 0; min-height: 0; }
.bcl-field .mud-input.mud-input-underline:before, .bcl-field .mud-input.mud-input-underline:after { display: none; }
.bcl-field .mud-select-input { padding: 0; }
.bcl-field .mud-input > .mud-input-adornment { margin: 0; }
.bcl-field .mud-slider { margin-top: .15rem; }
.bcl-go { min-height: 54px; padding: 0 1.6rem; display: inline-flex; align-items: center; gap: .5rem; }
.bcl-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 1.4rem 0 0; padding: 0; font-size: .9rem; font-weight: 600; color: var(--bc-ink-2); }
.bcl-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.bcl-trust i { color: var(--bc-brand-500); font-size: 1.1rem; }

.bcl-scene { position: relative; min-height: 440px; }
html[data-ui="glass"] .bc-landing .bcl-track { position: absolute; inset: 24px 0 auto 6%; width: 88%; padding: 1.3rem 1.4rem; border-radius: var(--bc-r-xl); }
.bcl-track-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .95rem; color: var(--bc-ink); }
.bcl-route { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0 .9rem; color: var(--bc-ink); }
.bcl-route b { display: block; font-size: 1.2rem; letter-spacing: -.02em; }
.bcl-route small { color: var(--bc-ink-3); font-weight: 600; font-size: .74rem; }
.bcl-line { position: relative; flex: 1; height: 6px; border-radius: 9px; background: var(--bc-line); }
.bcl-line i { position: absolute; inset: 0 38% 0 0; border-radius: 9px; background: linear-gradient(90deg, var(--bc-amber), var(--bc-brand-500)); }
.bcl-line em { position: absolute; left: 62%; top: 50%; width: 28px; height: 28px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--bc-brand-500);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(253, 86, 49, .4); animation: bcl-bob 3s ease-in-out infinite; font-style: normal; }
@keyframes bcl-bob { 50% { transform: translate(-50%, -62%); } }
.bcl-steps { display: flex; gap: .45rem; flex-wrap: wrap; }
.bcl-steps span { padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bc-surface); border: 1px solid var(--bc-line); color: var(--bc-ink-2); }
.bcl-steps span.on { background: var(--bc-brand-500); border-color: var(--bc-brand-500); color: #fff; }
html[data-ui="glass"] .bc-landing .bcl-float { position: absolute; display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border-radius: var(--bc-r-m); font-weight: 700; font-size: .88rem; color: var(--bc-ink); animation: bcl-float 8s ease-in-out infinite; }
.bcl-float small { display: block; color: var(--bc-ink-3); font-weight: 600; font-size: .72rem; }
.bcl-float .bcl-ic { width: 38px; height: 38px; border-radius: 12px; font-size: 1.1rem; background: linear-gradient(135deg, var(--bc-brand-300), #d63e19); color: #fff; }
html[data-ui="glass"] .bc-landing .bcl-f1 { left: -2%; top: 215px; } html[data-ui="glass"] .bc-landing .bcl-f2 { right: 0; top: 290px; animation-delay: -3s; } html[data-ui="glass"] .bc-landing .bcl-f3 { left: 12%; bottom: 0; animation-delay: -5s; }
@keyframes bcl-float { 50% { transform: translateY(-9px); } }

/* ---------- Chiffres ---------- */
.bcl-stats-wrap { padding: 0; }
.bcl-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.5rem 1rem; border-radius: var(--bc-r-xl); }
.bcl-stats div { text-align: center; padding: .3rem; }
.bcl-stats b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; color: var(--bc-ink); }
.bcl-stats span { color: var(--bc-ink-3); font-weight: 600; font-size: .85rem; }

/* ---------- Parcours / cartes ---------- */
.bcl-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bc-surface); border: 1px solid var(--bc-line); }
.bcl-seg button { border: 0; background: transparent; color: var(--bc-ink-2); padding: .5rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .9rem; min-height: 40px; }
.bcl-seg button.on { background: var(--bc-brand-500); color: #fff; box-shadow: 0 3px 10px rgba(253, 86, 49, .28); }
.bcl-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.bcl-card { padding: 1.7rem; border-radius: var(--bc-r-xl); }
.bcl-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.bcl-card p { color: var(--bc-ink-2); line-height: 1.6; }
.bcl-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; margin-bottom: 1.1rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--bc-brand-300), #d63e19); box-shadow: 0 6px 16px rgba(253, 86, 49, .3); }
.bcl-benefits .bcl-card { background: var(--bc-surface); border: 1px solid var(--bc-line); box-shadow: var(--bc-shadow-card); transition: transform .35s var(--bc-spring), box-shadow .35s var(--bc-ease); }
.bcl-benefits .bcl-card:hover { transform: translateY(-3px); box-shadow: var(--bc-shadow-pop); }
.bcl-benefits .bcl-ic { margin-bottom: 1rem; }

/* ---------- Catégories ---------- */
.bcl-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.bcl-cat { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.1rem .6rem; border-radius: var(--bc-r-l); text-align: center; font-weight: 700; font-size: .9rem;
  color: var(--bc-ink); text-decoration: none; background: var(--bc-surface); border: 1px solid var(--bc-line); box-shadow: var(--bc-shadow-card); transition: transform .35s var(--bc-spring), box-shadow .35s var(--bc-ease); }
.bcl-cat:hover { transform: translateY(-4px); box-shadow: var(--bc-shadow-pop); color: var(--bc-ink); }
.bcl-cat .bcl-ic { width: 52px; height: 52px; border-radius: 18px; transition: transform .4s var(--bc-spring); }
.bcl-cat:hover .bcl-ic { transform: scale(1.14) rotate(-6deg); }

/* ---------- Offres ---------- */
.bcl-offer { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--bc-r-xl); text-decoration: none; color: inherit; background: var(--bc-surface); border: 1px solid var(--bc-line);
  box-shadow: var(--bc-shadow-card); transition: transform .35s var(--bc-spring), box-shadow .35s var(--bc-ease); }
.bcl-offer:hover { transform: translateY(-4px); box-shadow: var(--bc-shadow-pop); color: inherit; }
.bcl-offer-img { position: relative; height: 170px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--bc-brand-200), var(--bc-brand-500)); color: rgba(255, 255, 255, .95); font-size: 3rem; }
.bcl-offer-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.bcl-offer-img .bcl-pill { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bcl-offer-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.bcl-offer-body h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.3; color: var(--bc-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcl-meta { display: flex; align-items: center; gap: .45rem; color: var(--bc-ink-3); font-weight: 600; font-size: .82rem; }
.bcl-offer-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .5rem; }
.bcl-offer-foot strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--bc-ink); }

/* ---------- Applications mobiles ---------- */
.bcl-apps { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; align-items: center; padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--bc-r-xl); overflow: hidden; }
.bcl-apps-text { display: grid; gap: 1rem; justify-items: start; }
.bcl-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-weight: 600; color: var(--bc-ink); }
.bcl-checks li { display: flex; align-items: flex-start; gap: .65rem; }
.bcl-checks i { flex: none; display: inline-grid; margin-top: .1rem; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bc-brand-500); color: #fff; font-size: .7rem; }
.bcl-stores { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.bcl-store { display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 1.1rem; border-radius: 14px; background: #1d1512; color: #fff; text-decoration: none; min-height: 54px;
  transition: transform .3s var(--bc-spring), box-shadow .3s; box-shadow: 0 8px 20px rgba(29, 21, 18, .25); }
.bcl-store:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 26px rgba(29, 21, 18, .32); }
.bcl-store svg, .bcl-store .bcl-store-ic { width: 26px; height: 26px; font-size: 1.6rem; flex: none; }
.bcl-store span { display: grid; line-height: 1.15; font-weight: 800; font-size: 1.05rem; }
.bcl-store small { font-weight: 600; font-size: .68rem; opacity: .8; }
.bcl-store.is-soon { background: var(--bc-bg-2); color: var(--bc-ink-2); box-shadow: none; border: 1px dashed var(--bc-line); cursor: default; }
.bcl-phones { position: relative; min-height: 440px; }
html[data-ui="glass"] .bc-landing .bcl-phone { position: absolute; width: 215px; height: 420px; padding: 9px; border-radius: 34px; background: #1d1512; box-shadow: 0 24px 50px rgba(29, 21, 18, .35); }
.bcl-phone-a { left: 8%; top: 0; transform: rotate(-4deg); }
.bcl-phone-b { right: 4%; top: 40px; transform: rotate(5deg); }
.bcl-screen { height: 100%; border-radius: 26px; background: var(--bc-bg); overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 8px; color: var(--bc-ink); font-size: .72rem; }
.bcl-app-bar { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; } .bcl-app-bar i { color: var(--bc-brand-500); }
.bcl-app-search { padding: .55rem .75rem; border-radius: 12px; background: var(--bc-surface); border: 1px solid var(--bc-line); color: var(--bc-ink-3); }
.bcl-app-chips { display: flex; gap: 5px; } .bcl-app-chips span { padding: .2rem .6rem; border-radius: 99px; background: var(--bc-surface); border: 1px solid var(--bc-line); font-weight: 700; }
.bcl-app-chips span.on { background: var(--bc-brand-500); border-color: var(--bc-brand-500); color: #fff; }
.bcl-app-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 14px; background: var(--bc-surface); box-shadow: var(--bc-shadow-card); }
.bcl-app-item div { flex: 1; min-width: 0; } .bcl-app-item b { display: block; } .bcl-app-item small { color: var(--bc-ink-3); } .bcl-app-item em { font-style: normal; font-weight: 800; }
.bcl-thumb { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--bc-brand-300), var(--bc-brand-500)); flex: none; } .bcl-thumb.t2 { background: linear-gradient(135deg, #ffd27a, #fd7b3a); } .bcl-thumb.t3 { background: linear-gradient(135deg, #ff8a65, #c23516); }
.bcl-bubble { max-width: 82%; padding: .55rem .75rem; border-radius: 14px; font-weight: 500; line-height: 1.35; }
.bcl-bubble.in { background: var(--bc-surface); border: 1px solid var(--bc-line); border-bottom-left-radius: 4px; }
.bcl-bubble.out { align-self: flex-end; color: #fff; background: linear-gradient(180deg, var(--bc-brand-400), #d63e19); border-bottom-right-radius: 4px; }
.bcl-notif { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: .6rem .7rem; border-radius: 14px; background: var(--bc-glass-bg-strong); border: 1px solid var(--bc-glass-border); box-shadow: var(--bc-glass-shadow); }
.bcl-notif i { color: var(--bc-brand-500); font-size: 1.1rem; } .bcl-notif small { display: block; color: var(--bc-ink-3); }

/* ---------- Sites, calculatrice ---------- */
.bcl-sites { display: flex; flex-wrap: wrap; gap: .7rem; }
.bcl-site { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem 1.1rem .4rem .4rem; border-radius: 999px; background: var(--bc-surface); border: 1px solid var(--bc-line); box-shadow: var(--bc-shadow-card);
  color: var(--bc-ink); font-weight: 700; font-size: .88rem; text-decoration: none; transition: transform .3s var(--bc-spring), box-shadow .3s; }
.bcl-site:hover { transform: translateY(-2px); box-shadow: var(--bc-shadow-pop); color: var(--bc-ink); }
.bcl-site-logo { width: 34px; height: 34px; border-radius: 50%; background: #fff center / contain no-repeat; display: grid; place-items: center; color: var(--bc-brand-500); border: 1px solid var(--bc-line); }
.bcl-calc { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: center; margin-top: 1.8rem; padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--bc-r-xl); }
.bcl-calc img { width: 100%; max-width: 220px; margin: 0 auto; }
.bcl-calc h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .5rem; }
.bcl-calc p { color: var(--bc-ink-2); margin-bottom: 1rem; }

/* ---------- FAQ ---------- */
.bcl-faq-wrap { max-width: 860px; }
.bcl-faq { display: grid; gap: .7rem; width: 100%; }
.bcl-faq details { background: var(--bc-surface); border: 1px solid var(--bc-line); border-radius: var(--bc-r-l); box-shadow: var(--bc-shadow-card); padding: 0 1.3rem; transition: box-shadow .3s; }
.bcl-faq details[open] { box-shadow: var(--bc-shadow-pop); }
.bcl-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 800; color: var(--bc-ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.bcl-faq summary::-webkit-details-marker { display: none; }
.bcl-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--bc-brand-500); transition: transform .3s var(--bc-spring); }
.bcl-faq details[open] summary::after { transform: rotate(45deg); }
.bcl-faq p { padding: 0 0 1.2rem; color: var(--bc-ink-2); line-height: 1.65; }

/* ---------- Appel final ---------- */
.bcl-last { padding-bottom: 2rem; }
.bcl-cta { display: grid; grid-template-columns: 1.3fr auto; gap: 1.5rem; align-items: center; padding: clamp(1.8rem, 5vw, 3.4rem); border-radius: var(--bc-r-xl); overflow: hidden; }
.bcl-cta .bcl-lead { margin-top: .9rem; }
.bcl-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Adaptation ---------- */
@media (max-width: 1100px) { .bcl-cats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px) {
  .bcl-hero-grid, .bcl-apps, .bcl-cta { grid-template-columns: 1fr; }
  .bcl-grid3 { grid-template-columns: 1fr 1fr; }
  .bcl-cats { grid-template-columns: repeat(3, 1fr); }
  .bcl-stats { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .bcl-scene { min-height: 400px; }
  .bcl-phones { min-height: 440px; max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 720px) {
  .bcl-search { grid-template-columns: 1fr; border-radius: var(--bc-r-xl); padding: .6rem; }
  .bcl-field + .bcl-field { border-left: 0; border-top: 1px solid var(--bc-line); border-radius: 0; }
  .bcl-go { width: 100%; justify-content: center; }
  .bcl-grid3 { grid-template-columns: 1fr; }
  .bcl-calc { grid-template-columns: 1fr; text-align: center; }
  /* Sur mobile, la scène s'empile (les pastilles ne flottent plus) */
  .bcl-scene { min-height: 0; display: grid; gap: .7rem; }
  html[data-ui="glass"] .bc-landing .bcl-track, html[data-ui="glass"] .bc-landing .bcl-float { position: relative; inset: auto; width: auto; animation: none; }
  .bcl-float { margin: 0; }
  .bcl-cats { grid-template-columns: repeat(2, 1fr); }
  .bcl-phone { width: 190px; height: 380px; } .bcl-phones { min-height: 410px; }
  .bcl-hero { padding-top: 5.6rem; }
}

@media (max-width: 480px) {
  html[data-ui="glass"] .bc-landing .bcl-phone { width: 158px; height: 330px; padding: 7px; border-radius: 28px; }
  .bcl-phone-a { left: 0; } .bcl-phone-b { right: 0; top: 36px; } .bcl-phones { min-height: 380px; }
  .bcl-screen { padding: 9px; font-size: .62rem; gap: 6px; border-radius: 22px; }
  .bcl-app-chips span:nth-child(3) { display: none; }
}

/* Listes déroulantes Mud ouvertes depuis un champ étroit : au moins la largeur du champ, jamais tronquées */
html[data-ui="glass"] .mud-popover:has(> .mud-list), html[data-ui="glass"] .mud-popover:has(.mud-list) { max-width: min(420px, 92vw) !important; min-width: 220px; }
html[data-ui="glass"] .mud-popover.mud-popover-open .mud-list { min-width: 220px; }
html[data-ui="glass"] .mud-popover .mud-list-item-text { white-space: normal; }
