* {
  box-sizing: border-box
}

:root {
  --bg: #070b0d;
  --ink: #f4f1ea;
  --muted: #a6afac;
  --line: rgba(255, 255, 255, .16);
  --cyan: #55dcff;
  --violet: #aa7cff;
  --amber: #f4b85f;
  --green: #7de5ae;
  --danger: #ff7b73;
  --nav: 68px;
  --max: 1500px;
  --narrow: 1220px
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  overflow-x: hidden
}

body.landing-page,
.landing-page {
  padding: 0 !important;
  margin: 0 !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important
}

body.landing-page *:not(.fa):not(.fas):not(.far):not(.fal):not(.fad):not(.fab):not([class*="fa-"]):not(i) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Explicit Font Awesome icon font definitions to prevent font-family stripping */
.fa, .fas, .far, .fal, .fad, .fab, [class*="fa-"], i[class*="fa-"], i.fas, i.far, i.fab {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  display: inline-block !important;
}

.fab, i[class*="fa-youtube"], i[class*="fa-facebook"], i[class*="fa-instagram"], i[class*="fa-whatsapp"] {
  font-family: "Font Awesome 5 Brands" !important;
  font-weight: 400 !important;
}

body.landing-page .main-content,
.landing-page .main-content {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh !important;
  width: 100% !important;
  max-width: 100vw !important
}

body.landing-page .navbar,
body.landing-page #sidebar,
body.landing-page #overlay {
  display: none !important
}

button,
input,
select,
textarea {
  font: inherit
}

button {
  color: inherit
}

a {
  color: inherit;
  text-decoration: none
}

.bgLayer {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-position: center;
  background-size: cover;
  transition: opacity 1.2s ease;
  filter: brightness(.44) saturate(.96) contrast(1.05);
  transform: scale(1.025)
}

.bgLayer.next {
  opacity: 0
}

.bgVeil {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 28%, rgba(7, 11, 13, .02), rgba(7, 11, 13, .36) 54%, rgba(7, 11, 13, .74)), linear-gradient(180deg, rgba(7, 11, 13, .18), rgba(7, 11, 13, .48))
}

.wrap {
  width: min(calc(100% - 38px), var(--max));
  margin: auto
}

.narrow {
  width: min(calc(100% - 40px), var(--narrow));
  margin: auto
}

header.nav,
.nav {
  height: var(--nav) !important;
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(180deg, rgba(5, 9, 11, .96), rgba(5, 9, 11, .38), transparent) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important
}

.navin {
  width: min(calc(100% - 38px), var(--max)) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 0 !important
}

.logo {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px !important
}

.logo img {
  width: 35px !important;
  height: 35px !important;
  border-radius: 50% !important;
  object-fit: cover !important
}

.logo span {
  color: #fff !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important
}

.menu {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  font-size: 12px !important;
  color: #c8cdcb !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important
}

.menu a,
.menu button,
.desktopGalleryBtn {
  transition: .2s !important;
  color: #c8cdcb !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  line-height: normal !important;
  opacity: .92
}

.menu a:hover,
.menu button:hover,
.desktopGalleryBtn:hover {
  color: var(--cyan) !important;
  transform: translateY(-1px) !important;
  opacity: 1
}

.navActions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important
}

.btn,
.nextBtn {
  border: 1px solid var(--line) !important;
  background: rgba(8, 14, 17, .58) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 999px !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: .075em !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .22s, box-shadow .22s, border-color .22s, filter .22s !important
}

.btn:hover,
.nextBtn:hover {
  transform: translateY(-2px) scale(1.015) !important;
  filter: brightness(1.08) !important
}

.neonCyan,
.nextBtn {
  border-color: rgba(85, 220, 255, .60) !important;
  box-shadow: 0 0 20px rgba(85, 220, 255, .14) !important;
  color: #fff !important
}

.neonCyan:hover {
  border-color: rgba(85, 220, 255, .90) !important;
  box-shadow: 0 0 28px rgba(85, 220, 255, .26) !important
}

.neonViolet {
  border-color: rgba(170, 124, 255, .58) !important;
  box-shadow: 0 0 20px rgba(170, 124, 255, .14) !important;
  color: #fff !important
}

.storeTop {
  border-color: rgba(125, 229, 174, .56) !important;
  box-shadow: 0 0 20px rgba(125, 229, 174, .13) !important;
  background: rgba(8, 20, 16, .58) !important;
  color: var(--green) !important
}

.storeTop:hover {
  border-color: rgba(125, 229, 174, .85) !important;
  box-shadow: 0 0 28px rgba(125, 229, 174, .22) !important;
  color: #fff !important
}

.viewport {
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-margin-top: 0;
  padding: calc(var(--nav) + 16px) 0 24px;
  display: flex;
  align-items: center;
  position: relative
}

.hero {
  padding-top: calc(var(--nav) + 42px)
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 42px;
  align-items: end
}

.kicker {
  color: var(--amber);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase
}

.hero h1 {
  font-size: clamp(56px, 7vw, 112px);
  line-height: .89;
  letter-spacing: -.057em;
  font-weight: 530;
  margin: 15px 0 23px
}

.hero h1 span,
.sectionHead h2 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(85, 220, 255, .13)
}

.hero p {
  max-width: 790px;
  color: #d0d5d3;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.62
}

.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 26px
}

.heroPanel {
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: rgba(6, 11, 13, .47);
  backdrop-filter: blur(15px)
}

.heroPanel>small {
  display: block;
  color: #9ba4a1;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 13px
}

.serviceGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px
}

.serviceInfo {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 15px;
  padding: 14px;
  background: rgba(6, 11, 13, .42);
  min-height: 76px;
  transition: transform .22s, border-color .22s, background .22s
}

.serviceInfo:hover {
  transform: translateY(-3px);
  border-color: rgba(85, 220, 255, .38);
  background: rgba(10, 18, 21, .66)
}

.serviceInfo b {
  display: block;
  font-size: 18px
}

.serviceInfo span {
  color: #a5aeab;
  font-size: 11px
}

.serviceInfo.cyan b {
  color: var(--cyan)
}

.serviceInfo.violet b {
  color: var(--violet)
}

.serviceInfo.amber b {
  color: var(--amber)
}

.serviceInfo.green b {
  color: var(--green)
}

.cloud {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  color: #b7bfbc;
  font-size: 12px
}

.cloud:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  box-shadow: 0 0 13px rgba(125, 229, 174, .65)
}

.pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(7px);
  width: 245px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 8, 10, .97);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 60;
  box-shadow: 0 25px 70px #000b
}

.serviceInfo:hover .pop,
.infoCard:hover .pop,
.serviceInfo.open .pop,
.infoCard.open .pop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0)
}

.pop img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 9px
}

.pop a {
  display: block;
  margin-top: 7px;
  color: var(--cyan);
  font-size: 11px
}

.sectionHead {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 18px;
  padding: 0 16px
}

.sectionHead .ey {
  font-size: 9px;
  letter-spacing: .17em;
  color: #c0c6c4;
  text-transform: uppercase;
  font-weight: 850;
  text-shadow: 0 2px 12px #000
}

.sectionHead h2 {
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: .98;
  letter-spacing: -.043em;
  font-weight: 530;
  margin: 9px 0 0;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .7)
}

.sectionHead p {
  color: #c4cbc8;
  line-height: 1.55;
  max-width: 760px;
  margin: 10px auto 0;
  font-size: 13px;
  text-shadow: 0 2px 12px #000
}

/* PORTFOLIO: full-width, no outer frame */
#portfolio {
  overflow: hidden
}

.portfolioWrap {
  width: 100%
}

.portfolioBody {
  height: min(72dvh, 680px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1500px;
  touch-action: none;
  cursor: grab
}

.slider.drag {
  cursor: grabbing
}

.pc {
  --z: 300px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--z);
  height: calc(var(--z)*.80);
  border: 0;
  padding: 0;
  border-radius: 21px;
  overflow: hidden;
  background: #132127;
  will-change: transform, opacity;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .16s;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .55)
}

.slider.drag .pc {
  transition: none
}

.pc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.22, 1, .36, 1)
}

.pc:hover img {
  transform: scale(1.035)
}

.pc .visit360 {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 3;
  transform: translateX(-50%);
  border: 1px solid rgba(85, 220, 255, .75);
  border-radius: 999px;
  background: rgba(4, 18, 23, .74);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  color: #e3faff;
  font-weight: 850;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: 0 0 19px rgba(85, 220, 255, .24);
  transition: .22s
}

.pc .visit360:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.04);
  box-shadow: 0 0 30px rgba(85, 220, 255, .35)
}

.pc:not(.on) .visit360 {
  opacity: .15;
  pointer-events: none
}

/* ABOUT */
.aboutGrid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 11px
}

.aboutPhoto {
  min-height: 340px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: url('https://loftdesign.bilnov.com/media/portfolio/thumbnails/Enscape_2026-02-05-20-45-23_Enscape_scene_8.jpg') center/cover;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .25)
}

.aboutPhoto:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 9, 11, .90), transparent 64%)
}

.aboutPhoto div {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 20px;
  right: 20px
}

.aboutPhoto strong {
  font-size: 66px;
  color: var(--amber);
  text-shadow: 0 0 20px rgba(244, 184, 95, .18)
}

.aboutPhoto p {
  margin: 4px 0 0;
  color: #edf0ef;
  font-size: 13px
}

.aboutInfo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px
}

.infoCard {
  position: relative;
  min-height: 162px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 17px;
  padding: 16px;
  background: rgba(5, 10, 12, .56);
  backdrop-filter: blur(10px);
  transition: .22s
}

.infoCard:hover {
  transform: translateY(-3px);
  border-color: rgba(85, 220, 255, .34);
  background: rgba(7, 13, 16, .72)
}

.infoCard h3 {
  font-size: 20px;
  margin: 0 0 7px
}

.infoCard p {
  color: #bac2bf;
  line-height: 1.5;
  font-size: 12px;
  margin: 0
}

.learn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 11px
}

.infoCard .pop {
  left: auto;
  right: 0;
  transform: translateY(7px)
}

.infoCard:hover .pop,
.infoCard.open .pop {
  transform: translateY(0)
}

.bilnow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-top: 9px
}

.bilnow .serviceInfo {
  min-height: 66px;
  text-align: center;
  padding: 11px
}

.bilnow .serviceInfo b {
  font-size: 12px;
  margin-bottom: 4px
}

.bilnow .serviceInfo span {
  font-size: 10px
}

/* STORE BILNOV */
.navActions {
  display: flex;
  align-items: center;
  gap: 8px
}

.storeTop {
  border-color: rgba(125, 229, 174, .56);
  box-shadow: 0 0 20px rgba(125, 229, 174, .13);
  background: rgba(8, 20, 16, .58)
}

.storeTop:hover {
  border-color: rgba(125, 229, 174, .85);
  box-shadow: 0 0 28px rgba(125, 229, 174, .22)
}

.storeIcon {
  width: 17px;
  height: 17px;
  display: inline-block;
  flex: 0 0 17px
}

.storeIcon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.storeShell {
  width: min(calc(100% - 40px), 1280px);
  margin: auto
}

.storeLead {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 18px
}

.storeLead .storeBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(125, 229, 174, .35);
  background: rgba(6, 17, 13, .42);
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase
}

.storeLead h2 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 530;
  margin: 12px 0 10px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .72)
}

.storeLead h2 em {
  font-style: normal;
  color: var(--green);
  text-shadow: 0 0 28px rgba(125, 229, 174, .14)
}

.storeLead p {
  color: #d0d5d3;
  line-height: 1.62;
  font-size: 14px;
  max-width: 850px;
  margin: auto;
  text-shadow: 0 2px 12px #000
}

.storeGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px
}

.storeCard {
  position: relative;
  min-height: 205px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  padding: 17px;
  overflow: visible;
  isolation: isolate;
  background-position: center;
  background-size: cover;
  transition: transform .22s, border-color .22s, box-shadow .22s
}

.storeCard:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -2;
  background-image: var(--store-img);
  background-position: center;
  background-size: cover;
  filter: saturate(.82) brightness(.62)
}

.storeCard:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 8, 9, .34), rgba(3, 8, 9, .86) 78%), linear-gradient(90deg, rgba(3, 8, 9, .22), rgba(3, 8, 9, .52))
}

.storeCard:hover {
  transform: translateY(-5px);
  border-color: rgba(125, 229, 174, .48);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28), 0 0 22px rgba(125, 229, 174, .08)
}

.storeCard .num {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--green);
  font-weight: 850
}

.storeCard h3 {
  font-size: 19px;
  margin: 10px 0 7px
}

.storeCard p {
  font-size: 12px;
  line-height: 1.52;
  color: #e0e6e3;
  margin: 0;
  text-shadow: 0 2px 10px #000
}

.storeCard strong {
  color: #fff
}

.storeLearn {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(125, 229, 174, .44);
  background: rgba(4, 12, 10, .72);
  display: grid;
  place-items: center;
  color: var(--green);
  z-index: 3;
  transition: .2s
}

.storeCard:hover .storeLearn {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(125, 229, 174, .22)
}

.storePop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(300px, 86vw);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  border: 1px solid rgba(125, 229, 174, .34);
  border-radius: 16px;
  background: rgba(4, 9, 10, .98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .72);
  overflow: hidden;
  transition: .2s
}

.storePop img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block
}

.storePopBody {
  padding: 12px
}

.storePopBody b {
  display: block;
  color: var(--green);
  margin-bottom: 5px
}

.storePopBody p {
  font-size: 11px;
  line-height: 1.5;
  color: #c6cfcb;
  margin: 0
}

.storeCard:hover .storePop,
.storeCard.open .storePop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0)
}

.storeCta {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px
}

.storeCta .btn:first-child {
  border-color: rgba(125, 229, 174, .60);
  box-shadow: 0 0 22px rgba(125, 229, 174, .15)
}

/* COMPOSER */
.composerShell {
  width: min(calc(100% - 40px), 1120px);
  margin: auto
}

.landing-page .progress,
.composerShell .progress,
.progress {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 13px !important;
  max-width: 670px !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important
}

.landing-page .progress button,
.composerShell .progress button,
.progress button {
  border: 0 !important;
  background: none !important;
  color: #818a87 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-family: inherit !important
}

.landing-page .progress i,
.composerShell .progress i,
.progress i {
  font-style: normal !important;
  width: 30px !important;
  height: 30px !important;
  border: 1px solid var(--line, rgba(255, 255, 255, .16)) !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  background: rgba(5, 10, 12, .82) !important;
  color: #818a87 !important
}

.landing-page .progress button.active,
.composerShell .progress button.active,
.progress button.active {
  color: #fff !important
}

.landing-page .progress button.active i,
.composerShell .progress button.active i,
.progress button.active i {
  background: var(--cyan, #55dcff) !important;
  color: #041014 !important;
  border-color: var(--cyan, #55dcff) !important;
  box-shadow: 0 0 18px rgba(85, 220, 255, .25) !important
}

.landing-page .progress button.done,
.composerShell .progress button.done,
.progress button.done {
  color: var(--cyan, #55dcff) !important
}

.landing-page .progress>span,
.composerShell .progress>span,
.progress>span {
  width: 70px !important;
  height: 1px !important;
  background: var(--line, rgba(255, 255, 255, .16)) !important;
  margin: 0 9px !important;
  display: block !important
}

.composerViewport {
  max-height: calc(100dvh - var(--nav) - 185px);
  overflow: auto;
  padding: 0 3px 8px;
  scrollbar-width: thin
}

.landing-page .modeTabs,
.modeTabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  max-width: 800px !important;
  margin: 0 auto 11px !important
}

.landing-page .modeTabs button,
.modeTabs button {
  border: 1px solid var(--line, rgba(255, 255, 255, .16)) !important;
  border-radius: 14px !important;
  background: rgba(5, 10, 12, .58) !important;
  backdrop-filter: blur(9px) !important;
  -webkit-backdrop-filter: blur(9px) !important;
  color: white !important;
  text-align: left !important;
  padding: 13px !important;
  transition: .22s !important;
  cursor: pointer !important
}

.landing-page .modeTabs button:hover,
.modeTabs button:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(85, 220, 255, .34) !important
}

.landing-page .modeTabs button.on,
.modeTabs button.on {
  border-color: rgba(85, 220, 255, .62) !important;
  background: rgba(8, 22, 27, .70) !important;
  box-shadow: 0 0 20px rgba(85, 220, 255, .12) !important
}

.landing-page .modeTabs b,
.modeTabs b {
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important
}

.landing-page .modeTabs small,
.modeTabs small {
  color: #a2aaa7 !important;
  font-size: 11px !important
}

.landing-page .spaceGrid,
.spaceGrid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px !important
}

.landing-page .spaceCard,
.spaceCard {
  height: 205px !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #11181c !important;
  padding: 0 !important;
  transition: transform .22s, border-color .22s !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important
}

.landing-page .spaceCard:hover,
.spaceCard:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(85, 220, 255, .38) !important
}

.landing-page .spaceCard.selected,
.spaceCard.selected {
  border-color: rgba(85, 220, 255, .75) !important;
  box-shadow: 0 0 20px rgba(85, 220, 255, .15) !important
}

.landing-page .spaceCard img,
.spaceCard img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .32s !important;
  background: #11181c !important
}

.landing-page .spaceCard:hover img,
.spaceCard:hover img {
  transform: scale(1.035) !important
}

.landing-page .spaceCard:after,
.spaceCard:after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(0deg, rgba(5, 9, 11, .92) 0%, rgba(5, 9, 11, .45) 45%, transparent 75%) !important;
  pointer-events: none !important
}

.landing-page .spaceCard .check,
.spaceCard .check {
  position: absolute !important;
  z-index: 5 !important;
  top: 9px !important;
  right: 9px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid var(--line, rgba(255, 255, 255, .16)) !important;
  background: rgba(5, 10, 12, .82) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  font-style: normal !important;
  font-size: 13px !important;
  font-weight: 700 !important
}

.landing-page .spaceCard.selected .check,
.spaceCard.selected .check {
  background: var(--cyan, #55dcff) !important;
  border-color: var(--cyan, #55dcff) !important;
  color: #041014 !important;
  box-shadow: 0 0 12px rgba(85, 220, 255, .4) !important
}

.landing-page .spaceCard .copy,
.spaceCard .copy,
.copy {
  position: absolute !important;
  z-index: 5 !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 11px !important;
  text-align: left !important;
  pointer-events: none !important
}

.landing-page .spaceCard .copy strong,
.spaceCard .copy strong,
.copy strong {
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8) !important;
  margin-bottom: 2px !important
}

.landing-page .spaceCard .copy small,
.spaceCard .copy small,
.copy small {
  color: var(--cyan, #55dcff) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8) !important
}

.composerBottom {
  position: sticky;
  bottom: 0;
  z-index: 12;
  margin-top: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: rgba(4, 9, 11, .82);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.composerBottom small {
  display: block;
  color: #aeb6b3
}

.composerBottom b {
  color: var(--cyan)
}

.nextBtn {
  padding: 0 19px;
  color: #e5fbff
}

.typeBox {
  max-width: 840px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(5, 10, 12, .72);
  backdrop-filter: blur(12px);
  padding: 12px;
  transition: .25s
}

.typeBox label {
  font-size: 9px;
  letter-spacing: .13em;
  color: var(--amber);
  font-weight: 850
}

.typeBox select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: #111719;
  color: white;
  padding: 11px
}

.typeHint {
  margin-top: 7px;
  color: #f3c77f;
  font-size: 11px
}

.typeBox.attention {
  animation: typePulse .78s ease-in-out 3;
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(244, 184, 95, .09), 0 0 28px rgba(244, 184, 95, .20)
}

@keyframes typePulse {
  50% {
    transform: scale(1.018);
    box-shadow: 0 0 34px rgba(244, 184, 95, .34)
  }
}

.levels {
  max-width: 840px;
  margin: 7px auto 0;
  display: grid;
  gap: 5px
}

.levelRow {
  min-height: 45px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(5, 10, 12, .56);
  backdrop-filter: blur(8px);
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: .2s
}

.levelRow:hover {
  border-color: rgba(85, 220, 255, .30);
  background: rgba(6, 14, 17, .68)
}

.levelRow>button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 8px
}

.levelRow>button i {
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal
}

.levelRow.selected {
  border-color: rgba(85, 220, 255, .48)
}

.levelRow.selected>button i {
  background: var(--cyan);
  color: #041014;
  border-color: var(--cyan)
}

.levels.locked {
  opacity: .82
}

.surface {
  display: flex;
  align-items: center;
  gap: 7px
}

.surface input {
  width: 116px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #111719;
  color: white;
  padding: 9px 10px;
  appearance: textfield;
  -moz-appearance: textfield
}

.surface input::-webkit-inner-spin-button,
.surface input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0
}

.surface.prompt input {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(85, 220, 255, .20);
  animation: surfacePulse .95s ease-in-out 3
}

.surface.error input {
  border-color: var(--danger);
  box-shadow: 0 0 22px rgba(255, 123, 115, .22);
  animation: shake .30s linear 2
}

@keyframes surfacePulse {
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 27px rgba(85, 220, 255, .32)
  }
}

@keyframes shake {
  25% {
    transform: translateX(-5px)
  }

  75% {
    transform: translateX(5px)
  }
}

.serviceStage {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  max-width: 1080px;
  margin: auto;
}

@media (max-width: 991px) {
  .serviceStage {
    grid-template-columns: 1fr;
  }
}

.serviceChoices,
.quote {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  background: rgba(6, 12, 16, .82);
  backdrop-filter: blur(16px);
  padding: 20px;
  height: 460px;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.serviceChoices::-webkit-scrollbar,
.quote::-webkit-scrollbar {
  width: 5px;
}

.serviceChoices::-webkit-scrollbar-thumb,
.quote::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.serviceChoices h3,
.quote h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.serviceChoices>p {
  font-size: 13px;
  color: #94a09c;
  margin: 0 0 16px;
}

.projectCostInputBox {
  display: none !important;
}

.serviceChoice {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  color: white;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: all .22s;
}

.serviceChoice:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, .4);
  background: rgba(255, 255, 255, .05);
}

.serviceChoice .svc-check-icon,
.serviceChoice > i:first-child {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  font-style: normal;
  font-size: 11px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, .45);
  transition: all .22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.serviceChoice .svc-check-icon::before,
.serviceChoice > i:first-child::before {
  display: block;
  line-height: 1;
  margin: auto;
}

.serviceChoice:hover .svc-check-icon,
.serviceChoice:hover > i:first-child {
  border-color: rgba(85, 220, 255, 0.6);
  color: #fff;
  transform: scale(1.05);
}

.serviceChoice span {
  flex: 1;
}

.serviceChoice strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.serviceChoice small {
  display: block;
  font-size: 12px;
  color: #889591;
  margin-top: 2px;
}

.serviceChoice b {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-left: 12px;
  white-space: nowrap;
}

.serviceChoice.selected {
  border-color: #a855f7 !important;
  background: rgba(44, 25, 73, .35) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, .15);
}

.serviceChoice.selected .svc-check-icon,
.serviceChoice.selected > i:first-child {
  background: linear-gradient(135deg, #55dcff 0%, #00a8cc 100%) !important;
  color: #041014 !important;
  border-color: #55dcff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 14px rgba(85, 220, 255, 0.45) !important;
  transform: scale(1.06);
}

.btn-service-details {
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f8fafc !important;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-service-details:hover {
  background: rgba(85, 220, 255, 0.15) !important;
  border-color: var(--cyan, #55dcff) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(85, 220, 255, 0.25);
  transform: translateY(-1px);
}

.btn-service-details i {
  width: auto !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  display: inline-block !important;
  font-size: 0.85rem !important;
  color: inherit !important;
}

.quote {
  display: flex;
  flex-direction: column;
}

/* Floating Price & NextBtn bar fixed to top right under navbar */
.composerFloatingPriceBar {
  position: fixed;
  top: calc(var(--nav, 72px) + 14px);
  right: 24px;
  z-index: 1060;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 18px;
  background: rgba(6, 14, 20, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(85, 220, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(85, 220, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.composerFloatingPriceBar.active-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

[dir="rtl"] .composerFloatingPriceBar {
  right: auto;
  left: 24px;
  padding: 8px 18px 8px 10px;
}

.floatingPriceInfo {
  display: flex;
  flex-direction: column;
}

.floatingPriceInfo small {
  color: #8a9693;
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.floatingPriceInfo strong {
  color: var(--cyan, #55dcff);
  font-size: 17px;
  font-weight: 800;
  font-family: monospace, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2px;
  text-shadow: 0 0 12px rgba(85, 220, 255, 0.35);
}

.floatingNextBtn {
  border: 1.5px solid #55dcff !important;
  background: rgba(8, 22, 30, 0.95) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  box-shadow: 0 0 14px rgba(85, 220, 255, 0.3) !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.floatingNextBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(85, 220, 255, 0.5) !important;
  background: rgba(85, 220, 255, 0.2) !important;
}

@media (max-width: 768px) {
  .composerFloatingPriceBar {
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: space-between;
    border-radius: 16px;
    padding: 10px 14px;
  }
  [dir="rtl"] .composerFloatingPriceBar {
    right: 16px;
    left: 16px;
    padding: 10px 14px;
  }
}

.quoteRowsList {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.quoteRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
}

.quoteRow span {
  color: #d0d7d4;
}

.quoteRow b {
  color: #fff;
  font-weight: 700;
}

/* Compositeur & Preview Calculation Styles */
.formulaRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.formulaMeta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.formulaDetail {
  font-size: 11px;
  color: var(--cyan, #55dcff);
  font-family: monospace, sans-serif;
  line-height: 1.35;
  opacity: 0.92;
  word-break: break-word;
}

.svc-calc-controls {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.svc-calc-controls .cursor-pointer {
  cursor: pointer;
}

.svc-calc-controls input[type="number"] {
  font-family: monospace, sans-serif;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.svc-calc-controls input[type="number"]:focus {
  border-color: var(--cyan, #55dcff) !important;
  box-shadow: 0 0 8px rgba(85, 220, 255, 0.3) !important;
  outline: none;
}

.svc-calc-controls .form-check-input {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.25);
}

.svc-calc-controls .form-check-input:checked {
  background-color: var(--cyan, #55dcff);
  border-color: var(--cyan, #55dcff);
  box-shadow: 0 0 8px rgba(85, 220, 255, 0.4);
}

.calcExplanationBadge {
  background: rgba(85, 220, 255, 0.08);
  border: 1px solid rgba(85, 220, 255, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--cyan, #55dcff);
  font-family: monospace, sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.calcExplanationBadge i {
  font-size: 10px;
  opacity: 0.85;
}

.categoryHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 12px;
  margin-top: 6px;
}

.categoryHeader span {
  font-weight: 700;
  font-size: 13px;
  color: #f3f7f8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[dir="rtl"] .formulaRow {
  text-align: right;
}

[dir="rtl"] .formulaMeta {
  text-align: right;
}

[dir="rtl"] .categoryHeader {
  direction: rtl;
}

[dir="rtl"] .svc-calc-controls {
  direction: rtl;
  text-align: right;
}

aside.quote .grand,
aside.quote .nextBtn,
.serviceStage .quote .grand,
.serviceStage .quote .nextBtn,
.quote .grand,
.quote .nextBtn,
.quote #toContact {
  display: none !important;
}

.clientType {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}

.clientType button {
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(8, 14, 18, .6);
  color: #889591;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .22s;
}

.clientType button.active {
  border: 1.5px solid #55dcff;
  background: rgba(14, 30, 36, .85);
  color: #fff;
  box-shadow: 0 0 20px rgba(85, 220, 255, .2);
}

.clientType button:hover {
  transform: translateY(-2px);
}

.contactForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 960px;
  margin: auto;
  background: rgba(6, 12, 16, .82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 28px;
}

.contactForm label {
  font-size: 12px;
  font-weight: 600;
  color: #d0d7d4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contactForm input,
.contactForm select,
.contactForm textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(4, 9, 12, .85);
  color: white;
  padding: 13px 16px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.contactForm input:focus,
.contactForm select:focus,
.contactForm textarea:focus {
  border-color: #55dcff;
  outline: none;
  box-shadow: 0 0 12px rgba(85, 220, 255, .25);
}

.contactForm textarea {
  min-height: 84px;
  resize: vertical;
}

.contactForm .full,
.contactTotal,
.submitRow {
  grid-column: 1 / -1;
}

.contactTotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(4, 9, 12, .9);
  padding: 16px 24px;
  margin-top: 8px;
}

.contactTotal strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.contactTotal .tax {
  font-size: 12px;
  color: #889591;
  margin-top: 2px;
}

.contactTotal b {
  color: var(--cyan);
  font-size: 28px;
  font-weight: 800;
}

.submitRow {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.submitRow button#sendProject,
#sendProject {
  padding: 14px 52px;
  border-radius: 999px;
  border: 1.5px solid #55dcff !important;
  background: rgba(8, 18, 24, .95) !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  font-size: 13px !important;
  box-shadow: 0 0 20px rgba(85, 220, 255, .25) !important;
  cursor: pointer;
  transition: all .22s;
}

.submitRow button#sendProject:hover,
#sendProject:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(85, 220, 255, .45) !important;
}

.success {
  max-width: 920px;
  margin: auto
}

.successTop {
  text-align: center
}

.ok {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #04100b;
  font-size: 25px;
  margin: 0 auto 10px;
  box-shadow: 0 0 24px rgba(125, 229, 174, .23)
}

.successTop h3 {
  font-size: 29px;
  margin: 6px 0
}

.successTop p {
  color: #bac2bf;
  margin: 0 0 13px
}

.quotePreview {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: #4a4f4d;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
  margin-top: 10px
}

.qpHeader {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  background: #e9eee5;
  padding: 14px 17px
}

.qpHeader strong {
  font-size: 17px
}

.qpHeader small {
  display: block;
  line-height: 1.5
}

.qpLogo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #555
}

.qpMeta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 17px
}

.qpMeta h4 {
  font-size: 21px;
  margin: 0
}

.qpTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px
}

.qpTable th {
  background: #117c8d;
  color: white;
  padding: 9px 6px
}

.qpTable td {
  padding: 8px 6px;
  border-bottom: 1px solid #e7e7e7
}

.qpTotals {
  margin-left: auto;
  width: min(430px, 100%);
  background: #dff1f4
}

.qpTotals div {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px
}

.qpTotals div:last-child {
  background: #9fd0da;
  font-weight: 900
}

.downloadRow {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px
}

/* VIDEOS */
.videoRail {
  display: flex;
  gap: 14px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 8px max(18px, calc((100vw - var(--max))/2)) 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  overscroll-behavior-x: contain
}

.videoRail.dragging {
  cursor: grabbing;
  scroll-snap-type: none
}

.videoRail::-webkit-scrollbar {
  display: none
}

.videoRail>* {
  user-select: none;
  -webkit-user-drag: none
}

.videoCard {
  flex: 0 0 min(720px, 76vw);
  height: min(55dvh, 500px);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .35);
  transition: transform .25s;
  cursor: pointer;
  user-select: none
}

.videoCard:hover {
  transform: translateY(-4px)
}

.videoCard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .34s;
  pointer-events: none
}

.videoCard:hover img {
  transform: scale(1.035)
}

.videoCard:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 8, 10, .70), transparent 58%);
  pointer-events: none
}

.play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85, 220, 255, .72);
  background: rgba(5, 20, 25, .74);
  box-shadow: 0 0 24px rgba(85, 220, 255, .22);
  transition: .2s;
  pointer-events: none
}

.videoCard:hover .play {
  transform: translate(-50%, -50%) scale(1.08)
}

.videoLabel {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  font-weight: 850;
  text-shadow: 0 3px 16px #000;
  pointer-events: none
}

/* CONTACT */
.landing-page #contact,
#contact {
  position: relative !important
}

.landing-page .contactGrid,
.contactGrid {
  display: grid !important;
  grid-template-columns: .85fr 1.15fr !important;
  gap: 12px !important;
  align-items: stretch !important
}

.landing-page .contactIntro,
.contactIntro,
.landing-page .quickForm,
.quickForm {
  border: 1px solid rgba(255, 255, 255, .15) !important;
  border-radius: 17px !important;
  background: rgba(5, 10, 12, .58) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
}

.landing-page .contactIntro .kicker,
.contactIntro .kicker {
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: .18em !important;
  color: var(--amber, #f4b85f) !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important
}

.landing-page .contactIntro h3,
.contactIntro h3 {
  font-size: 26px !important;
  line-height: 1.15 !important;
  letter-spacing: -.03em !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 10px 0 !important
}

.landing-page .contactIntro p,
.contactIntro p {
  color: #b9c1be !important;
  line-height: 1.55 !important;
  font-size: 13px !important;
  margin: 0 0 16px 0 !important
}

.landing-page .contactIntro .details,
.contactIntro .details {
  display: grid !important;
  gap: 8px !important;
  margin: 0 0 20px 0 !important
}

.landing-page .contactIntro .details a,
.contactIntro .details a {
  color: #edf2f0 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: color .2s !important
}

.landing-page .contactIntro .details a:hover,
.contactIntro .details a:hover {
  color: var(--cyan, #55dcff) !important
}

.landing-page .socials,
.socials {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important
}

.landing-page .socials a,
.socials a {
  border: 1px solid var(--line, rgba(255, 255, 255, .16)) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  transition: transform .2s, border-color .2s !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  text-decoration: none !important;
  background: rgba(8, 14, 17, .45) !important
}

.landing-page .socials a:hover,
.socials a:hover {
  transform: translateY(-2px) scale(1.02) !important
}

.landing-page .socials .wa,
.socials .wa {
  color: #8bf0b8 !important;
  border-color: rgba(37, 211, 102, .46) !important
}

.landing-page .socials .fb,
.socials .fb {
  color: #8ab9ff !important;
  border-color: rgba(24, 119, 242, .42) !important
}

.landing-page .socials .ig,
.socials .ig {
  color: #f1a2d6 !important;
  border-color: rgba(225, 48, 108, .42) !important
}

.landing-page .socials svg,
.socials svg {
  width: 15px !important;
  height: 15px !important;
  display: block !important;
  fill: currentColor !important
}

.landing-page .quickForm,
.quickForm {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important
}

.landing-page .quickForm input,
.quickForm input,
.landing-page .quickForm textarea,
.quickForm textarea {
  width: 100% !important;
  border: 1px solid rgba(255, 255, 255, .17) !important;
  border-radius: 12px !important;
  background: rgba(10, 16, 18, .82) !important;
  color: white !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  outline: none !important;
  transition: border-color .2s !important;
  box-sizing: border-box !important
}

.landing-page .quickForm input:focus,
.quickForm input:focus,
.landing-page .quickForm textarea:focus,
.quickForm textarea:focus {
  border-color: var(--cyan, #55dcff) !important;
  box-shadow: 0 0 15px rgba(85, 220, 255, .12) !important
}

.landing-page .quickForm textarea,
.quickForm textarea {
  min-height: 100px !important;
  resize: vertical !important
}

.landing-page .quickForm .btn,
.quickForm .btn {
  width: 100% !important;
  min-height: 46px !important
}

.gallerySheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 8, 10, .96);
  backdrop-filter: blur(23px);
  transform: translateY(103%);
  transition: .34s cubic-bezier(.22, 1, .36, 1);
  overflow: auto;
  padding: 18px
}

.gallerySheet.open {
  z-index: 9999 !important;
  transform: none
}

.galleryClose {
  position: sticky;
  top: 4px;
  z-index: 4;
  margin: 0 auto 12px;
  display: block;
  width: 60px;
  height: 33px;
  border: 1px solid rgba(170, 124, 255, .6);
  background: linear-gradient(135deg, var(--amber), #ff8e51);
  color: #15100b;
  border-radius: 999px;
  font-weight: 900
}

.galleryInner {
  max-width: 1150px;
  margin: auto
}

.galleryHero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 10px
}

.galleryHero img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 19px
}

.gallerySide {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #101618;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.gallerySide h3 {
  font-size: 31px;
  margin: 7px 0
}

.gallerySide p {
  color: #aeb6b3;
  line-height: 1.55
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 7px
}

.thumbs img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  transition: .24s
}

.thumbs img:hover {
  transform: scale(1.025)
}

/* FOOTER */
.landing-page footer,
footer {
  padding: 22px 0 34px !important;
  border-top: 1px solid var(--line, rgba(255, 255, 255, .16)) !important;
  background: rgba(4, 8, 10, .88) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  font-size: 12px !important;
  color: #98a19e !important;
  width: 100% !important;
  box-sizing: border-box !important
}

.landing-page footer .foot,
footer .foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 15px !important;
  flex-wrap: wrap !important;
  width: min(calc(100% - 38px), var(--max, 1500px)) !important;
  margin: 0 auto !important
}

.landing-page footer b,
footer b {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important
}

.landing-page footer span,
footer span {
  color: #98a19e !important;
  font-size: 12px !important
}

.landing-page footer .footLinks,
footer .footLinks {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important
}

.landing-page footer .footLinks a,
footer .footLinks a {
  color: #c4cdc9 !important;
  font-size: 12px !important;
  text-decoration: none !important;
  transition: color .2s !important
}

.landing-page footer .footLinks a:hover,
footer .footLinks a:hover {
  color: var(--cyan, #55dcff) !important
}

@media(max-width:1100px) {
  .storeGrid {
    grid-template-columns: repeat(3, 1fr)
  }

  .menu {
    display: none
  }

  .heroGrid,
  .aboutGrid,
  .serviceStage,
  .contactGrid,
  .galleryHero {
    grid-template-columns: 1fr
  }

  .aboutInfo {
    grid-template-columns: repeat(4, 1fr)
  }

  .infoCard {
    min-height: 142px
  }

  .bilnow {
    grid-template-columns: repeat(3, 1fr)
  }

  .spaceGrid {
    grid-template-columns: repeat(3, 1fr)
  }

  .galleryHero img {
    height: 330px
  }

  .composerShell {
    width: min(calc(100% - 34px), 980px)
  }
}

@media(max-width:840px) {
  :root {
    --nav: 60px
  }

  .wrap,
  .narrow {
    width: calc(100% - 22px)
  }

  .navActions .btn {
    display: none
  }

  .navActions .storeTop {
    display: inline-flex;
    min-height: 38px;
    padding: 0 12px;
    font-size: 9px
  }

  .storeShell {
    width: calc(100% - 20px)
  }

  .storeGrid {
    grid-template-columns: 1fr 1fr
  }

  .storeCard {
    min-height: 150px;
    padding: 14px
  }

  .storeLead h2 {
    font-size: clamp(30px, 8.6vw, 43px)
  }

  .viewport {
    padding: calc(var(--nav) + 8px) 0 14px;
    align-items: flex-start
  }

  .hero {
    padding-top: calc(var(--nav) + 23px);
    align-items: center
  }

  .hero h1 {
    font-size: clamp(49px, 15vw, 74px)
  }

  .heroPanel {
    padding: 15px
  }

  .sectionHead {
    padding: 0 10px;
    margin-bottom: 10px
  }

  .sectionHead h2 {
    font-size: clamp(28px, 8.3vw, 42px)
  }

  .sectionHead p {
    font-size: 12px
  }

  .portfolioBody {
    height: 72dvh
  }

  .aboutInfo {
    grid-template-columns: 1fr 1fr
  }

  .aboutPhoto {
    min-height: 290px
  }

  .bilnow {
    grid-template-columns: 1fr 1fr
  }

  .composerShell {
    width: calc(100% - 16px)
  }

  .composerViewport {
    max-height: none;
    overflow: visible
  }

  .progress>span {
    display: none
  }

  .progress button span {
    display: none
  }

  .modeTabs {
    grid-template-columns: 1fr
  }

  .spaceGrid {
    grid-template-columns: 1fr 1fr
  }

  .spaceCard {
    height: 180px
  }

  .contactForm {
    grid-template-columns: 1fr
  }

  .contactForm .full,
  .contactTotal,
  .submitRow {
    grid-column: 1
  }

  .clientType {
    flex-direction: column;
    align-items: stretch
  }

  .clientType button {
    width: 100%
  }

  .gallerySheet {
    padding: 9px
  }

  .galleryHero img {
    height: 290px
  }

  .thumbs {
    grid-template-columns: 1fr 1fr
  }

  .videoCard {
    flex-basis: 86vw;
    height: 47dvh
  }
}

@media(max-width:480px) {
  .logo span {
    display: none
  }

  .navActions .storeTop {
    padding: 0 10px
  }

  .storeGrid {
    grid-template-columns: 1fr
  }

  .storeCard {
    min-height: auto
  }

  .serviceGrid,
  .aboutInfo,
  .bilnow,
  .spaceGrid {
    grid-template-columns: 1fr 1fr
  }

  .infoCard {
    min-height: 132px;
    padding: 13px
  }

  .infoCard h3 {
    font-size: 17px
  }

  .serviceInfo {
    min-height: 68px;
    padding: 11px
  }

  .serviceInfo b {
    font-size: 16px
  }

  .spaceCard {
    height: 165px
  }

  .composerBottom {
    align-items: flex-start;
    flex-direction: column
  }

  .composerBottom .nextBtn {
    width: 100%
  }

  .surface input {
    width: 92px
  }

  .downloadRow .btn {
    width: 100%
  }
}

@media(max-width:1023px) and (orientation:landscape) {
  .viewport {
    min-height: 100dvh;
    padding-top: calc(var(--nav) + 4px);
    padding-bottom: 6px
  }

  .sectionHead {
    margin-bottom: 7px
  }

  .sectionHead h2 {
    font-size: clamp(27px, 4.6vw, 40px)
  }

  .sectionHead p {
    display: none
  }

  .portfolioBody {
    height: 72dvh
  }

  .aboutPhoto {
    min-height: 230px
  }

  .infoCard {
    min-height: 116px;
    padding: 12px
  }

  .bilnow .serviceInfo {
    min-height: 55px
  }

  .composerViewport {
    max-height: calc(100dvh - var(--nav) - 155px);
    overflow: auto
  }

  .spaceCard {
    height: 155px
  }

  .galleryHero img {
    height: 280px
  }

  .videoCard {
    height: 62dvh
  }
}

/* =========================================================
   V9 — MOBILE APP MODE
   Fixed viewport, persistent pill navigation, no page scroll.
   ========================================================= */
.mobileAppNav {
  display: none
}

@media(max-width:840px) {
  :root {
    --nav: 52px;
    --appnav: 54px
  }

  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none
  }

  html {
    scroll-snap-type: none
  }

  body {
    position: fixed;
    inset: 0
  }

  .bgLayer,
  .bgVeil {
    position: fixed
  }

  .nav {
    height: var(--nav) !important;
    background: linear-gradient(180deg, rgba(5, 9, 11, .98), rgba(5, 9, 11, .78)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
  }

  .navin {
    width: 100%;
    padding: 0 11px
  }

  .logo {
    font-size: 12px;
    letter-spacing: .07em
  }

  .logo img {
    width: 31px;
    height: 31px
  }

  .menu,
  .navActions {
    display: none !important
  }

  .mobileAppNav {
    display: flex;
    position: fixed;
    z-index: 110;
    left: 0;
    right: 0;
    top: var(--nav);
    height: var(--appnav);
    align-items: center;
    gap: 7px;
    padding: 7px 9px 9px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, rgba(5, 9, 11, .94), rgba(5, 9, 11, .68), rgba(5, 9, 11, .12));
    backdrop-filter: blur(14px);
  }

  .mobileAppNav::-webkit-scrollbar {
    display: none
  }

  .appNavBtn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(7, 13, 15, .66);
    color: #eef2f0;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .035em;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .18s, border-color .18s, box-shadow .18s, background .18s
  }

  .appNavBtn:active {
    transform: scale(.97)
  }

  .appNavBtn.active {
    border-color: rgba(85, 220, 255, .68);
    background: rgba(17, 70, 84, .42);
    box-shadow: 0 0 17px rgba(85, 220, 255, .18)
  }

  .appNavBtn.store {
    border-color: rgba(125, 229, 174, .48)
  }

  .appNavBtn.store.active {
    background: rgba(24, 88, 58, .38);
    box-shadow: 0 0 17px rgba(125, 229, 174, .16)
  }

  .appNavBtn.compose {
    border-color: rgba(170, 124, 255, .48)
  }

  .appNavBtn.compose.active {
    background: rgba(65, 39, 105, .40);
    box-shadow: 0 0 17px rgba(170, 124, 255, .17)
  }

  .miniCart {
    font-size: 13px;
    margin-right: 3px
  }

  main {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--nav) + var(--appnav));
    bottom: 0;
    overflow: hidden;
  }

  main>.viewport {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 5px 0 max(8px, env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    transform: translate3d(7%, 0, 0) scale(.992);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .30s cubic-bezier(.22, 1, .36, 1), visibility .25s;
    align-items: flex-start !important;
    scroll-margin-top: 0 !important
  }

  main>.viewport.appActive {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    visibility: visible;
    pointer-events: auto;
    z-index: 5
  }

  #accueil {
    display: none !important
  }

  .sectionHead {
    flex: 0 0 auto;
    margin: 0 auto 7px !important;
    padding: 0 12px !important;
    max-width: 100% !important
  }

  .sectionHead .ey {
    font-size: 8px !important
  }

  .sectionHead h2 {
    font-size: clamp(25px, 7.6vw, 35px) !important;
    line-height: .98 !important;
    margin-top: 5px !important
  }

  .sectionHead p {
    font-size: 10.5px !important;
    line-height: 1.4 !important;
    margin-top: 5px !important
  }

  /* Portfolio = first application page */
  #portfolio {
    display: flex;
    align-items: stretch !important
  }

  .portfolioWrap {
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    min-height: 0 !important
  }

  .portfolioBody {
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    overflow: hidden !important
  }

  .slider {
    height: 100% !important
  }

  .pc {
    border-radius: 17px !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .46) !important
  }

  .pc .visit360 {
    bottom: 9px !important;
    padding: 8px 12px !important;
    font-size: 9px !important
  }

  /* About = fixed page + horizontal information cards */
  #apropos>.narrow {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 6px !important;
    padding: 0 9px !important
  }

  .aboutGrid {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 44% 56% !important;
    gap: 7px !important;
    overflow: hidden !important
  }

  .aboutPhoto {
    min-height: 0 !important;
    height: 100% !important;
    border-radius: 16px !important
  }

  .aboutPhoto strong {
    font-size: 43px !important
  }

  .aboutPhoto p {
    font-size: 9px !important;
    line-height: 1.35 !important
  }

  .aboutPhoto div {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important
  }

  .aboutInfo {
    min-width: 0 !important;
    display: flex !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px
  }

  .aboutInfo::-webkit-scrollbar {
    display: none
  }

  .infoCard {
    flex: 0 0 82% !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 13px !important;
    scroll-snap-align: start
  }

  .infoCard h3 {
    font-size: 16px !important
  }

  .infoCard p {
    font-size: 10.5px !important
  }

  .bilnow {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    margin-top: 0 !important
  }

  .bilnow::-webkit-scrollbar {
    display: none
  }

  .bilnow .serviceInfo {
    flex: 0 0 auto !important;
    min-width: 125px !important;
    min-height: 46px !important;
    padding: 8px 10px !important
  }

  .bilnow .serviceInfo b {
    font-size: 10px !important
  }

  .bilnow .serviceInfo span {
    font-size: 8.5px !important
  }

  /* Store = one full-screen horizontal feature at a time; no dense grid */
  #store {
    display: flex;
    align-items: stretch !important
  }

  .storeShell {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 5px !important;
    padding: 0 !important
  }

  .storeLead {
    margin: 0 auto 4px !important;
    padding: 0 12px !important
  }

  .storeLead .storeBadge {
    font-size: 7.5px !important;
    padding: 5px 8px !important
  }

  .storeLead h2 {
    font-size: clamp(25px, 7.5vw, 34px) !important;
    margin: 6px 0 4px !important;
    line-height: .98 !important
  }

  .storeLead p {
    display: none !important
  }

  .storeGrid {
    min-height: 0 !important;
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 9px !important
  }

  .storeGrid::-webkit-scrollbar {
    display: none
  }

  .storeCard {
    flex: 0 0 calc(100vw - 32px) !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 18px !important;
    border: 0 !important;
    border-radius: 18px !important;
    scroll-snap-align: center;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-shadow: none !important
  }

  .storeCard:before {
    filter: saturate(.86) brightness(.72) !important
  }

  .storeCard:after {
    background: linear-gradient(180deg, transparent 28%, rgba(3, 8, 9, .28) 48%, rgba(3, 8, 9, .94) 100%) !important
  }

  .storeCard .num {
    font-size: 9px !important
  }

  .storeCard h3 {
    font-size: 22px !important;
    margin: 8px 0 5px !important;
    max-width: 90%
  }

  .storeCard>p {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden
  }

  .storeLearn {
    top: 12px !important;
    right: 12px !important
  }

  .storePop {
    bottom: 44px !important;
    width: calc(100% - 24px) !important
  }

  .storeCta {
    margin: 0 !important;
    padding: 3px 9px 1px !important;
    flex-wrap: nowrap !important
  }

  .storeCta .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 39px !important;
    padding: 0 10px !important;
    font-size: 8.5px !important
  }



  /* Videos = full-width horizontal app rail */
  #videos>div {
    height: 100% !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    min-height: 0 !important
  }

  .videoRail {
    min-height: 0 !important;
    height: 100% !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 0 9px 6px !important;
    margin-left: 0 !important;
    width: 100vw !important
  }

  .videoCard {
    flex: 0 0 calc(100vw - 32px) !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 17px !important
  }

  .videoLabel {
    font-size: 10px !important;
    left: 12px !important;
    bottom: 10px !important
  }

  /* Contact = compact, readable fixed page */
  #contact>.narrow {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    padding: 0 9px !important
  }

  .contactGrid {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 7px !important
  }

  .contactIntro,
  .quickForm {
    padding: 11px !important;
    border-radius: 15px !important
  }

  .contactIntro h3 {
    font-size: 18px !important;
    margin: 4px 0 !important
  }

  .contactIntro p {
    display: none !important
  }

  .details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    margin: 6px 0 !important;
    font-size: 10px !important
  }

  .socials {
    position: absolute;
    right: 10px;
    top: 8px
  }

  .socials a {
    padding: 7px !important;
    border-radius: 50% !important;
    width: 32px;
    height: 32px;
    justify-content: center
  }

  .socials a span {
    display: none
  }

  .quickForm {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important
  }

  .quickForm input {
    padding: 9px !important;
    font-size: 11px !important
  }

  .quickForm textarea {
    grid-column: 1/-1 !important;
    min-height: 70px !important;
    padding: 9px !important
  }

  .quickForm .btn {
    min-height: 38px !important;
    font-size: 8px !important;
    padding: 0 8px !important
  }

  footer {
    display: none !important
  }
}

@media(max-width:840px) and (orientation:landscape) {
  :root {
    --nav: 44px;
    --appnav: 44px
  }

  .logo img {
    width: 27px;
    height: 27px
  }

  .mobileAppNav {
    padding: 4px 8px 5px;
    gap: 5px
  }

  .appNavBtn {
    min-height: 31px;
    padding: 0 11px;
    font-size: 8.5px
  }

  .sectionHead {
    margin-bottom: 3px !important
  }

  .sectionHead .ey {
    display: none !important
  }

  .sectionHead h2 {
    font-size: clamp(20px, 4vw, 28px) !important;
    line-height: .95 !important
  }

  .sectionHead p {
    display: none !important
  }

  .portfolioBody {
    height: auto !important
  }

  .aboutGrid {
    grid-template-columns: 36% 64% !important
  }

  .aboutPhoto strong {
    font-size: 32px !important
  }

  .aboutInfo .infoCard {
    flex-basis: 52% !important
  }

  .storeLead .storeBadge {
    display: none !important
  }

  .storeLead h2 {
    font-size: clamp(20px, 4vw, 28px) !important
  }

  .storeCard {
    flex-basis: 66vw !important
  }

  .storeCard h3 {
    font-size: 17px !important
  }

  .storeCard>p {
    -webkit-line-clamp: 2 !important;
    font-size: 9.5px !important
  }

  .composerShell .sectionHead h2 {
    font-size: 23px !important
  }

  .spaceCard {
    flex-basis: 34vw !important;
    height: 128px !important
  }

  .videoCard {
    flex-basis: 62vw !important
  }

  .contactGrid {
    grid-template-columns: .68fr 1.32fr !important;
    grid-template-rows: 1fr !important
  }

  .contactIntro {
    height: 100% !important
  }

  .quickForm {
    height: 100% !important
  }
}


/* =========================================================
   V10 — YOUTUBE INSIDE LOFT DESIGN
   Inline card playback + mini/full in-site player.
   ========================================================= */
.videoCard {
  cursor: pointer
}

.videoCard .inlineVideoFrame {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s
}

.videoCard.playing .inlineVideoFrame {
  opacity: 1;
  pointer-events: auto
}

.videoCard.playing>img,
.videoCard.playing>.play,
.videoCard.playing>.videoLabel {
  opacity: 0;
  pointer-events: none
}

.videoCard.playing:after {
  opacity: 0
}

.inlineVideoFrame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block
}

.inlineVideoTools {
  position: absolute;
  z-index: 10;
  top: 9px;
  right: 9px;
  display: flex;
  gap: 6px
}

.inlineVideoTools button {
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(4, 8, 10, .78);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35)
}

.inlineVideoTools button:hover {
  border-color: rgba(85, 220, 255, .72);
  transform: translateY(-1px)
}

.videoPlayerModal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 8, .72);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .22s
}

.videoPlayerModal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.videoPlayerPanel {
  width: min(900px, 92vw);
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(85, 220, 255, .35);
  background: #000;
  box-shadow: 0 35px 120px rgba(0, 0, 0, .76), 0 0 28px rgba(85, 220, 255, .08);
  transition: .25s cubic-bezier(.22, 1, .36, 1)
}

.videoPlayerModal.full {
  padding: 0;
  background: #000
}

.videoPlayerModal.full .videoPlayerPanel {
  width: 100vw;
  height: 100dvh;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0
}

.videoPlayerPanel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block
}

.videoPlayerBar {
  position: absolute;
  z-index: 4;
  left: 10px;
  right: 10px;
  top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none
}

.videoPlayerTitle {
  max-width: min(560px, 65vw);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(3, 8, 10, .72);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.videoPlayerActions {
  display: flex;
  gap: 6px;
  pointer-events: auto
}

.videoPlayerActions button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(3, 8, 10, .76);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  backdrop-filter: blur(12px)
}

.videoPlayerActions button:hover {
  border-color: rgba(85, 220, 255, .72)
}

.pop a.videoInsideBtn,
.storePop .videoInsideBtn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid rgba(85, 220, 255, .42);
  background: rgba(8, 38, 48, .48);
  color: #dff9ff !important;
  font-size: 10px !important;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer
}

.pop a.videoInsideBtn:hover,
.storePop .videoInsideBtn:hover {
  box-shadow: 0 0 18px rgba(85, 220, 255, .14)
}

.videoPlaceholderNotice {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 520;
  transform: translateX(-50%) translateY(20px);
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(4, 9, 11, .94);
  border: 1px solid rgba(244, 184, 95, .42);
  color: #f8e3bf;
  font-size: 10px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: .22s;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .55)
}

.videoPlaceholderNotice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

@media(max-width:840px) {
  .videoPlayerModal {
    padding: 8px
  }

  .videoPlayerPanel {
    width: calc(100vw - 16px);
    border-radius: 16px
  }

  .videoPlayerTitle {
    display: none
  }

  .videoPlayerBar {
    left: 7px;
    right: 7px;
    top: 7px;
    justify-content: flex-end
  }

  .videoPlayerActions button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 9px
  }

  .inlineVideoTools {
    top: 6px;
    right: 6px
  }

  .inlineVideoTools button {
    height: 31px;
    padding: 0 9px;
    font-size: 9px
  }
}


/* =========================================================
   V11 — RESPONSIVE ERGONOMY AUDIT / NO OVERLAP
   ========================================================= */

/* Slightly shorter composer mode selectors on every screen */
.modeTabs button {
  min-height: 52px;
  padding: 8px 13px;
}

.modeTabs b {
  line-height: 1.1
}

.modeTabs small {
  line-height: 1.15
}

/* Prevent flex/grid children from forcing horizontal overflow */
.viewport,
.narrow,
.composerShell,
.composerViewport,
.aboutGrid,
.aboutInfo,
.storeShell,
.storeGrid,
.contactGrid,
.quickForm,
.videoRail,
.portfolioWrap,
.portfolioBody {
  min-width: 0
}

img,
video,
iframe {
  max-width: 100%
}

@media(max-width:840px) {

  /* General app geometry */
  :root {
    --nav: 50px;
    --appnav: 50px
  }

  .navin {
    min-width: 0
  }

  .mobileAppNav {
    padding: 6px 8px 7px;
    gap: 6px
  }

  .appNavBtn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 9.5px;
  }

  main {
    top: calc(var(--nav) + var(--appnav));
  }

  .sectionHead {
    margin-bottom: 6px !important;
    padding: 0 10px !important;
  }

  .sectionHead .ey {
    font-size: 7.5px !important
  }

  .sectionHead h2 {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: .96 !important;
    margin-top: 4px !important;
  }

  .sectionHead p {
    max-width: 94% !important;
    font-size: 9.8px !important;
    line-height: 1.35 !important;
    margin-top: 4px !important;
  }

  /* PORTFOLIO — reserve clear vertical zones for title and carousel */
  #portfolio .portfolioWrap {
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  #portfolio .portfolioBody {
    min-height: 0 !important;
    padding-top: 0 !important;
  }

  #portfolio .slider {
    min-height: 0 !important
  }

  #portfolio .pc {
    max-height: 72% !important
  }

  #portfolio .visit360 {
    white-space: nowrap !important;
  }

  /* ABOUT — no clipped horizontal cards.
     Portrait uses one image row + a real 2x2 grid of information cards. */
  #apropos>.narrow {
    grid-template-rows: auto minmax(0, 1fr) 48px !important;
    gap: 5px !important;
  }

  #apropos .aboutGrid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(145px, 38%) minmax(0, 62%) !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  #apropos .aboutPhoto {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    background-position: center 58% !important;
  }

  #apropos .aboutPhoto div {
    left: 12px !important;
    right: 12px !important;
    bottom: 10px !important;
  }

  #apropos .aboutPhoto strong {
    font-size: 38px !important
  }

  #apropos .aboutPhoto p {
    max-width: 76% !important;
    font-size: 8.5px !important;
    line-height: 1.2 !important;
    margin: 2px 0 0 !important;
  }

  #apropos .aboutInfo {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 6px !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  #apropos .infoCard {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  #apropos .infoCard h3 {
    font-size: 14px !important;
    line-height: 1.08 !important;
    margin: 0 28px 5px 0 !important;
  }

  #apropos .infoCard p {
    font-size: 9.2px !important;
    line-height: 1.35 !important;
  }

  #apropos .infoCard .learn {
    width: 25px !important;
    height: 25px !important;
    right: 7px !important;
    top: 7px !important;
  }

  #apropos .bilnow {
    height: 48px !important;
    align-items: stretch !important;
    gap: 5px !important;
    padding-bottom: 0 !important;
  }

  #apropos .bilnow .serviceInfo {
    min-width: 116px !important;
    min-height: 44px !important;
    padding: 7px 8px !important;
  }

  /* STORE — keep CTA visible; card itself owns the remaining space. */
  #store .storeShell {
    grid-template-rows: auto minmax(0, 1fr) 44px !important;
    gap: 4px !important;
  }

  #store .storeLead {
    padding: 0 9px !important;
    margin-bottom: 2px !important;
  }

  #store .storeLead .storeBadge {
    padding: 4px 7px !important;
    font-size: 7px !important;
  }

  #store .storeLead h2 {
    font-size: clamp(22px, 6.7vw, 31px) !important;
    margin: 5px 0 2px !important;
    line-height: .96 !important;
  }

  #store .storeGrid {
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 7px !important;
    gap: 7px !important;
  }

  #store .storeCard {
    flex: 0 0 calc(100vw - 24px) !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 14px !important;
  }

  #store .storeCard h3 {
    font-size: 19px !important;
    margin: 6px 0 4px !important;
  }

  #store .storeCard>p {
    font-size: 10px !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 3 !important;
  }

  #store .storeCta {
    height: 44px !important;
    padding: 2px 7px 0 !important;
    gap: 6px !important;
  }

  #store .storeCta .btn {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 8px !important;
    font-size: 7.8px !important;
  }



  /* VIDEOS */
  #videos .videoRail {
    gap: 7px !important;
    padding: 0 8px 6px !important;
  }

  #videos .videoCard {
    flex: 0 0 calc(100vw - 24px) !important;
    min-width: 0 !important;
  }

  /* CONTACT — inputs must not stretch into giant blocks */
  #contact>.narrow {
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  #contact .contactGrid {
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  #contact .contactIntro {
    position: relative !important;
    padding: 9px 10px !important;
    min-height: 92px !important;
    height: auto !important;
  }

  #contact .contactIntro h3 {
    font-size: 16px !important;
    margin: 3px 108px 3px 0 !important;
    line-height: 1.08 !important;
  }

  #contact .details {
    margin: 5px 0 0 !important;
    gap: 4px 9px !important;
    font-size: 8.5px !important;
  }

  #contact .socials {
    right: 9px !important;
    top: 9px !important;
    gap: 5px !important;
  }

  #contact .socials a {
    width: 29px !important;
    height: 29px !important;
    padding: 6px !important;
  }

  #contact .quickForm {
    height: auto !important;
    min-height: 0 !important;
    align-content: start !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: min-content !important;
    gap: 6px !important;
    padding: 9px !important;
  }

  #contact .quickForm input {
    height: 42px !important;
    min-height: 42px !important;
    padding: 8px !important;
  }

  #contact .quickForm input:nth-of-type(3) {
    grid-column: 1/-1 !important;
  }

  #contact .quickForm textarea {
    grid-column: 1/-1 !important;
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
    padding: 8px !important;
  }

  #contact .quickForm .btn {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 7px !important;
  }

  #contact #quickStatus {
    grid-column: 1/-1 !important;
    min-height: 12px !important;
    font-size: 8px !important;
  }
}

/* Narrow phones */
@media(max-width:400px) {
  :root {
    --nav: 48px;
    --appnav: 48px
  }

  .mobileAppNav {
    gap: 5px;
    padding-inline: 6px
  }

  .appNavBtn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 8.5px
  }

  .sectionHead h2 {
    font-size: clamp(22px, 7.5vw, 29px) !important
  }

  #composer .modeTabs {
    height: 43px !important;
    min-height: 43px !important
  }

  #composer .modeTabs button {
    height: 43px !important;
    min-height: 43px !important;
    padding: 5px 7px !important
  }

  #composer .modeTabs b {
    font-size: 10px !important
  }

  #composer .modeTabs small {
    font-size: 7px !important
  }

  #composer .spaceCard {
    flex-basis: calc(54vw - 9px) !important;
    height: 145px !important
  }

  #apropos .aboutGrid {
    grid-template-rows: minmax(125px, 35%) minmax(0, 65%) !important
  }

  #apropos .infoCard {
    padding: 8px !important
  }

  #apropos .infoCard h3 {
    font-size: 12px !important
  }

  #apropos .infoCard p {
    font-size: 8.2px !important
  }

  #contact .contactIntro h3 {
    font-size: 14px !important;
    margin-right: 101px !important
  }

  #contact .quickForm input {
    height: 38px !important;
    min-height: 38px !important
  }

  #contact .quickForm textarea {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important
  }
}

/* Landscape phones / small tablets */
@media(max-width:840px) and (orientation:landscape) {
  :root {
    --nav: 42px;
    --appnav: 42px
  }

  .mobileAppNav {
    padding: 4px 7px;
    gap: 5px
  }

  .appNavBtn {
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 8px
  }

  .sectionHead {
    margin-bottom: 2px !important
  }

  .sectionHead .ey {
    display: none !important
  }

  .sectionHead h2 {
    font-size: clamp(19px, 3.5vw, 27px) !important
  }

  .sectionHead p {
    display: none !important
  }

  #apropos .aboutGrid {
    grid-template-columns: 38% 62% !important;
    grid-template-rows: 1fr !important;
  }

  #apropos .aboutInfo {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
  }

  #apropos .aboutPhoto p {
    display: none !important
  }

  #store .storeLead .storeBadge {
    display: none !important
  }

  #store .storeLead h2 {
    font-size: clamp(19px, 3.4vw, 26px) !important
  }

  #store .storeCard {
    flex-basis: 64vw !important
  }

  #composer .composerShell {
    grid-template-rows: auto 27px minmax(0, 1fr) !important;
  }

  #composer .composerShell .sectionHead h2 {
    font-size: 22px !important
  }

  #composer .progress {
    height: 27px !important;
    min-height: 27px !important
  }

  #composer .modeTabs {
    height: 40px !important;
    min-height: 40px !important
  }

  #composer .modeTabs button {
    height: 40px !important;
    min-height: 40px !important;
    padding: 4px 8px !important
  }

  #composer .spaceCard {
    flex-basis: 30vw !important;
    height: 116px !important
  }

  #composer .composerBottom {
    min-height: 46px !important;
    padding: 6px 9px !important
  }

  #videos .videoCard {
    flex-basis: 60vw !important
  }

  #contact .contactGrid {
    grid-template-columns: .7fr 1.3fr !important;
    grid-template-rows: 1fr !important;
  }

  #contact .contactIntro {
    height: 100% !important;
    min-height: 0 !important
  }

  #contact .quickForm {
    height: 100% !important
  }

  #contact .quickForm textarea {
    height: auto !important;
    min-height: 56px !important;
    max-height: none !important
  }
}


/* =========================================================
   V12 — MOBILE ERGONOMY + IN-CARD EXPLANATORY VIDEO
   ========================================================= */

/* Store is external only. Any obsolete Store page styling is inert. */
.mobileAppNav a.appNavBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Explanatory cards: no play icon. Video takes over the SAME card. */
.infoCard[data-explain-video] {
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
}

.infoCard[data-explain-video] .learn {
  display: none !important
}

.explainVideoLayer {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  border-radius: inherit;
  overflow: hidden;
}

.infoCard.previewing .explainVideoLayer,
.infoCard.mobilePreview .explainVideoLayer {
  opacity: 1;
  pointer-events: auto;
}

.explainVideoLayer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.explainVideoActions {
  position: absolute;
  z-index: 3;
  right: 7px;
  top: 7px;
  display: flex;
  gap: 5px;
}

.explainVideoActions button {
  min-height: 29px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(85, 220, 255, .48);
  background: rgba(3, 9, 11, .78);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.explainHoverHint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(85, 220, 255, 0);
  transition: box-shadow .22s;
}

@media(hover:hover) and (pointer:fine) {
  .infoCard[data-explain-video]:hover .explainHoverHint {
    box-shadow: inset 0 0 0 1px rgba(85, 220, 255, .32), 0 0 18px rgba(85, 220, 255, .06);
  }
}

/* Videos remain horizontal but are clearly shorter. */
#videos .videoRail {
  align-items: center !important;
}

#videos .videoCard {
  height: min(42dvh, 380px) !important;
  flex: 0 0 min(620px, 72vw) !important;
}

#videos .videoCard img {
  object-fit: cover !important;
}

#videos .play {
  width: 58px !important;
  height: 58px !important;
}

#videos .videoLabel {
  font-size: 11px !important;
}

/* =========================================================
   MOBILE / TABLET APP
   ========================================================= */
@media(max-width:840px) {

  /* Vertical, ergonomic information cards in About. */
  #apropos>.narrow {
    grid-template-rows: auto minmax(0, 1fr) 46px !important;
    gap: 5px !important;
  }

  #apropos .aboutGrid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(125px, 34%) minmax(0, 66%) !important;
    gap: 6px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #apropos .aboutPhoto {
    height: 100% !important;
    min-height: 0 !important;
  }

  #apropos .aboutInfo {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-snap-type: y proximity !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: 0 1px 2px !important;
  }

  #apropos .aboutInfo::-webkit-scrollbar {
    display: none
  }

  #apropos .infoCard {
    flex: 0 0 88px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 88px !important;
    min-height: 88px !important;
    padding: 10px 12px !important;
    scroll-snap-align: start;
    overflow: hidden !important;
  }

  #apropos .infoCard h3 {
    margin: 0 0 5px !important;
    font-size: 14px !important;
    line-height: 1.05 !important;
  }

  #apropos .infoCard p {
    margin: 0 !important;
    font-size: 9.4px !important;
    line-height: 1.3 !important;
    max-width: 88% !important;
  }

  #apropos .bilnow {
    height: 46px !important;
    min-height: 46px !important;
  }

  /* Main video page: shorter cards, horizontal rail, next card remains visible. */
  #videos>div {
    grid-template-rows: auto minmax(0, 1fr) !important;
  }

  #videos .videoRail {
    height: 100% !important;
    min-height: 0 !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 8px 8px !important;
  }

  #videos .videoCard {
    flex: 0 0 82vw !important;
    height: min(46dvh, 330px) !important;
    min-height: 220px !important;
    border-radius: 16px !important;
  }

  #videos .play {
    width: 52px !important;
    height: 52px !important;
    font-size: 16px !important;
  }

  #videos .videoLabel {
    left: 12px !important;
    right: 12px !important;
    bottom: 10px !important;
    font-size: 9px !important;
  }

  /* Small explanation video fills card; user may enlarge it with the button. */
  .explainVideoActions button {
    min-height: 27px;
    padding: 0 8px;
    font-size: 7.5px;
  }
}

/* Very narrow portrait screens */
@media(max-width:400px) {
  #apropos .aboutGrid {
    grid-template-rows: minmax(112px, 31%) minmax(0, 69%) !important;
  }

  #apropos .infoCard {
    flex-basis: 82px !important;
    height: 82px !important;
    min-height: 82px !important;
    padding: 8px 10px !important;
  }

  #apropos .infoCard h3 {
    font-size: 12.5px !important
  }

  #apropos .infoCard p {
    font-size: 8.5px !important
  }

  #videos .videoCard {
    flex-basis: 86vw !important;
    height: min(43dvh, 285px) !important;
    min-height: 200px !important;
  }
}

/* Landscape phones/tablets */
@media(max-width:840px) and (orientation:landscape) {
  #apropos .aboutGrid {
    grid-template-columns: 38% 62% !important;
    grid-template-rows: 1fr !important;
  }

  #apropos .aboutInfo {
    height: 100% !important;
  }

  #apropos .infoCard {
    flex: 0 0 68px !important;
    height: 68px !important;
    min-height: 68px !important;
  }

  #videos .videoCard {
    flex: 0 0 56vw !important;
    height: min(52dvh, 260px) !important;
    min-height: 150px !important;
  }
}


/* =========================================================
   V13 — NIVEAUX VERTICAUX + BILNOV RESPONSIVE MOBILE
   ========================================================= */
.levelsVertical {
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  margin: 8px auto 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

.levelGroup {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0
}

.levelGroupLabel {
  display: block;
  padding: 3px 4px 1px;
  color: #87918d;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase
}

.levelGroup.middleGroup {
  margin: 2px 0;
  padding: 7px 0;
  border-top: 1px solid rgba(85, 220, 255, .16);
  border-bottom: 1px solid rgba(85, 220, 255, .16)
}

.levelGroup.middleGroup .levelGroupLabel {
  color: var(--cyan)
}

.levelRow {
  width: 100%
}

.addLevelBtn {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px dashed rgba(85, 220, 255, .42);
  background: rgba(5, 18, 22, .48);
  color: #c9f6ff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
  transition: .2s
}

.addLevelBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(85, 220, 255, .72);
  background: rgba(11, 45, 55, .52);
  box-shadow: 0 0 18px rgba(85, 220, 255, .09)
}

.addLevelBtn.addLower {
  border-color: rgba(167, 124, 255, .38);
  color: #e1d3ff;
  background: rgba(35, 21, 55, .34)
}

.levelRow.newLevel {
  animation: newLevelGlow 1s ease 2
}

@keyframes newLevelGlow {
  50% {
    border-color: var(--cyan);
    box-shadow: 0 0 22px rgba(85, 220, 255, .20)
  }
}

@media(max-width:840px) {

  /* All levels remain in one vertical architectural stack. */
  #composer .levels,
  #composer .levelsVertical {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important
  }

  #composer .levelGroup {
    gap: 5px !important
  }

  #composer .levelRow {
    width: 100% !important;
    min-height: 43px !important;
    padding: 6px 9px !important
  }

  #composer .levelRow>button {
    font-size: 11px !important
  }

  #composer .addLevelBtn {
    min-height: 36px !important;
    font-size: 9px !important
  }

  /* Bilnov feature cards fit completely inside the mobile viewport. */
  #apropos>.narrow {
    grid-template-rows: auto minmax(0, 1fr) auto !important
  }

  #apropos .bilnow {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    overflow: visible !important;
    padding: 0 !important;
    margin-top: 2px !important
  }

  #apropos .bilnow .serviceInfo {
    min-width: 0 !important;
    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 6px 5px !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important
  }

  #apropos .bilnow .serviceInfo b {
    font-size: 8.5px !important;
    line-height: 1.05 !important;
    white-space: normal !important
  }

  #apropos .bilnow .serviceInfo span {
    margin-top: 2px !important;
    font-size: 7px !important;
    line-height: 1.05 !important;
    white-space: normal !important
  }
}

@media(max-width:400px) {
  #apropos .bilnow {
    grid-template-columns: 1fr 1fr !important
  }

  #apropos .bilnow .serviceInfo:last-child {
    grid-column: 1/-1
  }

  #apropos .bilnow .serviceInfo {
    height: 40px !important;
    min-height: 40px !important
  }
}

@media(max-width:840px) and (orientation:landscape) {
  #apropos .bilnow {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important
  }

  #apropos .bilnow .serviceInfo {
    height: 38px !important;
    min-height: 38px !important
  }

  #composer .levelsVertical {
    max-width: 560px !important
  }
}


/* =========================================================
   V14 — ABOUT 2x2 + BILNOV 3 ROWS + COMPACT VIDEO RAIL
   ========================================================= */
@media(max-width:840px) {

  /* ABOUT: everything visible in one app screen. */
  #apropos>.narrow {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 6px !important;
    padding: 0 8px max(6px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  #apropos .sectionHead {
    margin: 0 !important;
    padding: 0 6px !important;
  }

  #apropos .sectionHead h2 {
    font-size: clamp(23px, 6.7vw, 31px) !important;
    line-height: .96 !important;
  }

  #apropos .sectionHead p {
    font-size: 8.8px !important;
    line-height: 1.25 !important;
    margin-top: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #apropos .aboutGrid {
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(145px, 42%) minmax(0, 58%) !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  #apropos .aboutPhoto {
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    border-radius: 15px !important;
    background-position: center 58% !important;
  }

  #apropos .aboutPhoto div {
    left: 11px !important;
    right: 11px !important;
    bottom: 9px !important
  }

  #apropos .aboutPhoto strong {
    font-size: 36px !important;
    line-height: .9 !important
  }

  #apropos .aboutPhoto p {
    max-width: 82% !important;
    font-size: 7.8px !important;
    line-height: 1.15 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 4 service cards = exact 2 x 2 grid. */
  #apropos .aboutInfo {
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 6px !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  #apropos .infoCard {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 9px 10px !important;
    border-radius: 13px !important;
    overflow: hidden !important;
  }

  #apropos .infoCard h3 {
    margin: 0 0 4px !important;
    font-size: 13px !important;
    line-height: 1.05 !important;
  }

  #apropos .infoCard p {
    margin: 0 !important;
    font-size: 8.2px !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
  }

  /* Bilnov features = 3 rows: 2 + 2 + 1 full width. */
  #apropos .bilnow {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #apropos .bilnow .serviceInfo {
    min-width: 0 !important;
    width: 100% !important;
    height: 35px !important;
    min-height: 35px !important;
    padding: 5px 6px !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  #apropos .bilnow .serviceInfo:nth-child(5) {
    grid-column: 1/-1 !important
  }

  #apropos .bilnow .serviceInfo b {
    font-size: 8.4px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  #apropos .bilnow .serviceInfo span {
    font-size: 6.7px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
  }

  /* Main Videos: low horizontal cards, next card visible. */
  #videos>div {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  #videos .videoRail {
    width: 100vw !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 4px 8px max(8px, env(safe-area-inset-bottom)) !important;
    gap: 8px !important;
    align-items: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
  }

  #videos .videoCard {
    flex: 0 0 78vw !important;
    width: 78vw !important;
    height: min(34dvh, 285px) !important;
    min-height: 180px !important;
    max-height: 285px !important;
    border-radius: 15px !important;
    scroll-snap-align: center !important;
  }

  #videos .videoCard img {
    object-fit: cover !important
  }

  #videos .play {
    width: 48px !important;
    height: 48px !important;
    font-size: 15px !important;
  }

  #videos .videoLabel {
    left: 11px !important;
    right: 11px !important;
    bottom: 9px !important;
    font-size: 8.5px !important;
    line-height: 1.1 !important;
  }

  #videos .inlineVideoTools button {
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 8px !important;
    font-size: 8px !important;
  }
}

@media(max-width:400px) {
  #apropos .aboutGrid {
    grid-template-rows: minmax(125px, 39%) minmax(0, 61%) !important
  }

  #apropos .infoCard {
    padding: 7px 8px !important
  }

  #apropos .infoCard h3 {
    font-size: 11.5px !important
  }

  #apropos .infoCard p {
    font-size: 7.5px !important;
    -webkit-line-clamp: 3
  }

  #apropos .bilnow .serviceInfo {
    height: 32px !important;
    min-height: 32px !important
  }

  #videos .videoCard {
    flex-basis: 82vw !important;
    width: 82vw !important;
    height: min(32dvh, 245px) !important;
    min-height: 165px !important
  }
}

@media(max-width:840px) and (orientation:landscape) {
  #apropos>.narrow {
    grid-template-rows: auto minmax(0, 1fr) auto !important
  }

  #apropos .sectionHead p {
    display: none !important
  }

  #apropos .aboutGrid {
    grid-template-columns: 38% 62% !important;
    grid-template-rows: 1fr !important;
  }

  #apropos .aboutInfo {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important
  }

  #apropos .bilnow {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  #apropos .bilnow .serviceInfo:nth-child(5) {
    grid-column: auto !important
  }

  #apropos .bilnow .serviceInfo {
    height: 31px !important;
    min-height: 31px !important
  }

  #videos .videoCard {
    flex-basis: 50vw !important;
    width: 50vw !important;
    height: min(48dvh, 220px) !important;
    min-height: 135px !important
  }
}


/* V15 — composer slide: scroll stays functional but the vertical bar is hidden */
.composerViewport {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.composerViewport::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}


/* =========================================================
   V16 — MOBILE: AFFICHER TOUS LES ESPACES COMME SUR WEB
   ========================================================= */
@media(max-width:840px) {
  #composer .spaceGrid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }

  #composer .spaceGrid::-webkit-scrollbar {
    display: none !important
  }

  #composer .spaceCard {
    flex: none !important;
    width: auto !important;
    height: 126px !important;
    min-width: 0 !important;
    border-radius: 12px !important;
    scroll-snap-align: none !important;
  }

  #composer .spaceCard:nth-child(1),
  #composer .spaceCard:nth-child(2),
  #composer .spaceCard:nth-child(3) {
    grid-column: span 2;
  }

  /* Deuxième ligne centrée */
  #composer .spaceCard:nth-child(4) {
    grid-column: 2 / span 2;
  }

  #composer .spaceCard:nth-child(5) {
    grid-column: 4 / span 2;
  }

  #composer .spaceCard .copy {
    left: 9px !important;
    right: 9px !important;
    bottom: 8px !important;
  }

  #composer .spaceCard .copy strong {
    font-size: 11px !important;
    line-height: 1.05 !important;
  }

  #composer .spaceCard .copy small {
    font-size: 7.5px !important;
  }

  #composer .spaceCard .check {
    width: 25px !important;
    height: 25px !important;
    top: 7px !important;
    right: 7px !important;
    font-size: 12px !important;
  }

  #composer .composerBottom {
    margin-top: 6px !important;
  }
}

/* Téléphones plus étroits : 2 colonnes + dernier espace pleine largeur centrée */
@media(max-width:430px) {
  #composer .spaceGrid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  #composer .spaceCard {
    grid-column: auto !important;
    height: 118px !important;
  }

  #composer .spaceCard:nth-child(5) {
    grid-column: 1 / -1 !important;
    width: calc(50% - 3px) !important;
    justify-self: center !important;
  }
}

/* Paysage mobile : 5 cartes sur une seule ligne, comme le web mais compactes */
@media(max-width:840px) and (orientation:landscape) {
  #composer .spaceGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  #composer .spaceCard,
  #composer .spaceCard:nth-child(n) {
    grid-column: auto !important;
    width: auto !important;
    height: 112px !important;
  }
}


/* =========================================================
   V17 — MOBILE VIDEO POSITION + RELIABLE INLINE YOUTUBE PLAY
   ========================================================= */
@media(max-width:840px) {

  /* Descendre le carrousel sous le titre sans le couper. */
  #videos>div {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  #videos .videoRail {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    padding-top: clamp(34px, 8dvh, 72px) !important;
    padding-bottom: 10px !important;
    align-items: flex-start !important;
  }

  #videos .videoCard {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    height: min(31dvh, 240px) !important;
    min-height: 165px !important;
  }

  #videos .play {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 14 !important;
    width: 54px !important;
    height: 54px !important;
  }
}

@media(max-width:400px) {
  #videos .videoRail {
    padding-top: clamp(30px, 7dvh, 58px) !important
  }

  #videos .videoCard {
    flex-basis: 86vw !important;
    width: 86vw !important;
    height: min(29dvh, 215px) !important;
    min-height: 155px !important
  }
}

@media(max-width:840px) and (orientation:landscape) {
  #videos .videoRail {
    padding-top: 20px !important;
    align-items: flex-start !important
  }

  #videos .videoCard {
    flex-basis: 56vw !important;
    width: 56vw !important;
    height: min(45dvh, 205px) !important;
    min-height: 130px !important
  }
}

/* Le lecteur remplace proprement l'image dans le même cadre. */
.videoCard .inlineVideoFrame.v17Player {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 20 !important;
}

.videoCard.v17Playing>img,
.videoCard.v17Playing>.play,
.videoCard.v17Playing>.videoLabel {
  opacity: 0 !important;
  pointer-events: none !important
}

.videoCard.v17Playing:after {
  opacity: 0 !important
}

.videoCard .inlineVideoFrame.v17Player iframe {
  background: #000
}


/* =========================================================
   V19 — GALERIE INTÉGRÉE À LA PLATEFORME LOFT DESIGN
   ========================================================= */
.desktopGalleryBtn {
  border: 0;
  background: none;
  color: #c5cbc8;
  font: inherit;
  font-size: 12px;
  padding: 0;
  cursor: pointer
}

.desktopGalleryBtn:hover {
  color: var(--cyan)
}

.galleryPill {
  border-color: rgba(244, 184, 95, .48) !important
}

.galleryHeroBtn {
  border-color: rgba(244, 184, 95, .48) !important
}

body.galleryOpen {
  overflow: hidden !important
}

.galleryApp {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #070b0d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: .28s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
  color: var(--ink)
}

.galleryApp.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none
}

.galleryAppBg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("https://loftdesign.bilnov.com/media/spaces/gallery/living-room/16757/image_1.jpg") center/cover;
  filter: brightness(.24) saturate(.86);
  transform: scale(1.03)
}

.galleryApp:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 8, 10, .72), rgba(4, 8, 10, .91)),
    radial-gradient(circle at 50% 8%, transparent, rgba(2, 5, 7, .65))
}

.galleryAppHeader {
  height: 68px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(18px, calc((100vw - var(--max))/2));
  background: rgba(6, 10, 12, .74);
  backdrop-filter: blur(18px)
}

.galleryBrand {
  display: flex;
  align-items: center;
  gap: 10px
}

.galleryBrand img {
  width: 35px;
  height: 35px;
  border-radius: 50%
}

.galleryBrand b {
  display: block;
  letter-spacing: .08em
}

.galleryBrand small {
  display: block;
  color: #929b98;
  font-size: 9px;
  margin-top: 2px
}

.galleryHeaderActions {
  display: flex;
  gap: 8px
}

.galleryCartTop,
.galleryCloseTop {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff07;
  padding: 0 14px;
  font-size: 10px;
  font-weight: 850
}

.galleryCartTop {
  border-color: rgba(244, 184, 95, .52)
}

.galleryCartTop span {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--amber);
  color: #171008
}

.galleryCloseTop {
  width: 40px;
  padding: 0
}

.galleryAppBody {
  height: calc(100dvh - 68px);
  overflow: auto;
  padding: 28px max(18px, calc((100vw - var(--max))/2)) 90px;
  scrollbar-width: none
}

.galleryAppBody::-webkit-scrollbar {
  display: none
}

.galleryIntro {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 22px
}

.galleryIntro>span {
  font-size: 9px;
  color: var(--amber);
  font-weight: 850;
  letter-spacing: .16em
}

.galleryIntro h2 {
  font-size: clamp(35px, 4.2vw, 62px);
  line-height: .96;
  letter-spacing: -.045em;
  margin: 10px 0 9px;
  font-weight: 530
}

.galleryIntro h2 em {
  font-style: normal;
  color: var(--cyan)
}

.galleryIntro p {
  max-width: 760px;
  margin: auto;
  color: #b7c0bd;
  font-size: 13px;
  line-height: 1.55
}

.gallerySpaces {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 5px 0 10px;
  position: sticky;
  top: -28px;
  z-index: 8;
  background: linear-gradient(180deg, rgba(7, 11, 13, .97), rgba(7, 11, 13, .78), transparent)
}

.gallerySpaces::-webkit-scrollbar {
  display: none
}

.gallerySpaceBtn {
  position: relative;
  flex: 0 0 156px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #111;
  padding: 0;
  text-align: left
}

.gallerySpaceBtn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.46);
  transition: .25s
}

.gallerySpaceBtn:hover img {
  transform: scale(1.04)
}

.gallerySpaceBtn b {
  position: absolute;
  z-index: 2;
  left: 11px;
  bottom: 9px;
  font-size: 12px
}

.gallerySpaceBtn.active {
  border-color: rgba(85, 220, 255, .68);
  box-shadow: 0 0 20px rgba(85, 220, 255, .10)
}

.gallerySpaceBtn.active img {
  filter: brightness(.64)
}

.galleryContentHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0
}

.galleryContentHead small {
  font-size: 8px;
  color: #8c9692;
  letter-spacing: .13em
}

.galleryContentHead h3 {
  font-size: 31px;
  margin: 3px 0 0
}

.galleryContentHead>span {
  font-size: 10px;
  color: #929c98
}

.galleryCategoryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.galleryCategoryCard {
  position: relative;
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #101517;
  transition: .22s
}

.galleryCategoryCard:hover {
  transform: translateY(-4px);
  border-color: rgba(85, 220, 255, .38)
}

.galleryCategoryCard>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .28s
}

.galleryCategoryCard:hover>img {
  transform: scale(1.035)
}

.galleryCategoryCard:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(3, 7, 9, .92) 100%)
}

.galleryCategoryCopy {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 15px
}

.galleryCategoryCopy small {
  font-size: 8px;
  color: var(--cyan);
  letter-spacing: .12em
}

.galleryCategoryCopy h4 {
  font-size: 21px;
  margin: 5px 0 9px
}

.galleryCardActions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap
}

.galleryMiniBtn {
  min-height: 35px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(4, 9, 11, .72);
  font-size: 9px;
  font-weight: 850
}

.galleryMiniBtn.add {
  border-color: rgba(125, 229, 174, .52)
}

.galleryCategoryCard.selected {
  border-color: rgba(125, 229, 174, .74);
  box-shadow: 0 0 0 1px rgba(125, 229, 174, .14)
}

.gallerySelectedBadge {
  position: absolute;
  z-index: 4;
  right: 10px;
  top: 10px;
  border-radius: 999px;
  background: var(--green);
  color: #07110c;
  padding: 6px 9px;
  font-size: 8px;
  font-weight: 900
}

.galleryMobileCart {
  display: none
}

.galleryCartDrawer {
  position: fixed;
  z-index: 360;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(430px, 100vw);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(6, 11, 13, .98);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--line);
  transform: translateX(103%);
  transition: .28s;
  color: var(--ink)
}

.galleryCartDrawer.open {
  z-index: 9999 !important;
  transform: none
}

.galleryCartHead {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.galleryCartHead small {
  color: var(--amber);
  font-size: 8px;
  letter-spacing: .12em
}

.galleryCartHead h3 {
  font-size: 23px;
  margin: 3px 0 0
}

.galleryCartHead button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff07
}

.galleryCartItems {
  padding: 12px 16px;
  overflow: auto
}

.galleryCartItem {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line)
}

.galleryCartItem img {
  width: 64px;
  height: 55px;
  object-fit: cover;
  border-radius: 10px
}

.galleryCartItem b {
  display: block;
  font-size: 12px
}

.galleryCartItem small {
  font-size: 9px;
  color: #8f9995
}

.galleryRemove {
  border: 0;
  background: none;
  color: #ff9d9d;
  font-size: 20px
}

.galleryCartEmpty {
  text-align: center;
  padding: 60px 12px;
  color: #89938f;
  font-size: 12px
}

.galleryCartActions {
  padding: 13px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px
}

.galleryCartActions button {
  min-height: 43px;
  border-radius: 999px;
  background: #ffffff07;
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 850;
  color: #fff;
  cursor: pointer;
  transition: all .2s;
}

.galleryCartActions .gallerySubmitBtn {
  background: rgba(10, 24, 32, 0.95) !important;
  border: 1.5px solid #55dcff !important;
  color: #55dcff !important;
  font-weight: 850 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 0 16px rgba(85, 220, 255, 0.22) !important;
}

.galleryCartActions .gallerySubmitBtn:hover {
  background: #55dcff !important;
  color: #041217 !important;
  box-shadow: 0 0 24px rgba(85, 220, 255, 0.45) !important;
  transform: translateY(-1px);
}

.galleryCartActions button:not(#gallerySubmitSelection) {
  display: none !important;
}

.galleryDetail {
  position: fixed;
  inset: 0;
  z-index: 340;
  background: rgba(3, 7, 9, .94);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .22s;
  overflow: auto;
  padding: 18px
}

.galleryDetail.open {
  z-index: 9999 !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.galleryFloatingCartBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(8, 14, 18, 0.88);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(85, 220, 255, 0.35);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
}
[dir="rtl"] .galleryFloatingCartBtn {
  right: auto;
  left: 24px;
}
.galleryFloatingCartBtn:hover {
  background: var(--cyan);
  color: #030709;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(85, 220, 255, 0.5);
}
.galleryFloatingCartBtn .cartBadge {
  background: var(--cyan);
  color: #030709;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.2s, color 0.2s;
}
.galleryFloatingCartBtn:hover .cartBadge {
  background: #030709;
  color: var(--cyan);
}

.galleryDetailClose {
  position: fixed;
  right: 20px;
  top: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .27);
  background: #071013;
  color: #fff
}

.galleryDetailPanel {
  max-width: 1120px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0b1113;
  overflow: hidden
}

.galleryDetailTop {
  display: grid;
  grid-template-columns: 1fr 1fr
}

.galleryDetailHero {
  min-height: 390px;
  position: relative
}

.galleryDetailHero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.galleryDetailInfo {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.galleryDetailInfo small {
  font-size: 8px;
  color: var(--cyan);
  letter-spacing: .12em
}

.galleryDetailInfo h3 {
  font-size: 34px;
  margin: 5px 0 9px
}

.galleryDetailInfo p {
  color: #929c98;
  font-size: 12px;
  line-height: 1.55
}

.gallerySubTabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
  margin: 13px 0
}

.gallerySubTabs::-webkit-scrollbar {
  display: none
}

.gallerySubTab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff06;
  padding: 8px 11px;
  font-size: 8px
}

.gallerySubTab.active {
  border-color: var(--cyan);
  color: var(--cyan)
}

.galleryDetailAdd {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(125, 229, 174, .48);
  background: rgba(23, 74, 52, .3);
  font-size: 9px;
  font-weight: 850
}

.galleryPhotos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px
}

.galleryPhotos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 13px;
  transition: .2s
}

.galleryPhotos img:hover {
  transform: scale(1.014)
}

.galleryToast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0a1214;
  border: 1px solid rgba(125, 229, 174, .35);
  font-size: 9px;
  transition: .2s
}

.galleryToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

@media(max-width:980px) {
  .galleryCategoryGrid {
    grid-template-columns: 1fr 1fr
  }

  .galleryDetailTop {
    grid-template-columns: 1fr
  }

  .galleryDetailHero {
    min-height: 300px
  }
}

@media(max-width:840px) {
  .galleryAppHeader {
    height: 56px;
    padding: 0 9px
  }

  .galleryBrand img {
    width: 31px;
    height: 31px
  }

  .galleryBrand b {
    font-size: 11px
  }

  .galleryBrand small {
    font-size: 8px
  }

  .galleryCartTop {
    display: none
  }

  .galleryCloseTop {
    width: 36px;
    height: 36px;
    min-height: 36px
  }

  .galleryAppBody {
    height: calc(100dvh - 56px);
    padding: 15px 8px 82px
  }

  .galleryIntro {
    margin-bottom: 10px
  }

  .galleryIntro>span {
    font-size: 7px
  }

  .galleryIntro h2 {
    font-size: clamp(27px, 8.4vw, 38px);
    margin: 6px 0 5px
  }

  .galleryIntro p {
    font-size: 10px;
    padding: 0 7px
  }

  .gallerySpaces {
    top: -15px;
    padding: 5px 0 7px
  }

  .gallerySpaceBtn {
    flex-basis: 120px;
    height: 63px
  }

  .gallerySpaceBtn b {
    font-size: 10px
  }

  .galleryContentHead {
    margin: 8px 0
  }

  .galleryContentHead h3 {
    font-size: 24px
  }

  .galleryContentHead>span {
    display: none
  }

  .galleryCategoryGrid {
    grid-template-columns: 1fr 1fr;
    gap: 7px
  }

  .galleryCategoryCard {
    min-height: 225px;
    border-radius: 15px
  }

  .galleryCategoryCopy {
    left: 10px;
    right: 10px;
    bottom: 10px
  }

  .galleryCategoryCopy h4 {
    font-size: 15px;
    margin: 3px 0 7px
  }

  .galleryCategoryCopy small {
    font-size: 7px
  }

  .galleryCardActions {
    gap: 4px
  }

  .galleryMiniBtn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 7px
  }

  .galleryMobileCart {
    display: flex;
    position: fixed;
    z-index: 320;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(244, 184, 95, .45);
    background: rgba(6, 11, 13, .95);
    backdrop-filter: blur(17px);
    align-items: center;
    justify-content: space-between;
    padding: 0 9px 0 16px;
    font-size: 10px
  }

  .galleryMobileCart strong {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(85, 220, 255, .48);
    font-size: 8px
  }

  .galleryDetail {
    padding: 7px
  }

  .galleryDetailClose {
    right: 9px;
    top: 8px;
    width: 36px;
    height: 36px
  }

  .galleryDetailPanel {
    border-radius: 16px
  }

  .galleryDetailHero {
    min-height: 235px
  }

  .galleryDetailInfo {
    padding: 15px
  }

  .galleryDetailInfo h3 {
    font-size: 24px
  }

  .galleryDetailInfo p {
    font-size: 10px
  }

  .galleryPhotos {
    grid-template-columns: 1fr 1fr;
    padding: 7px;
    gap: 6px
  }
}

@media(max-width:430px) {
  .galleryCategoryGrid {
    grid-template-columns: 1fr
  }

  .galleryCategoryCard {
    min-height: 250px
  }

  .galleryPhotos {
    grid-template-columns: 1fr
  }
}


/* =========================================================
   V20 — GALERIE MOBILE RESPONSIVE
   Espace = vrai carrousel horizontal tactile
   ========================================================= */
@media(max-width:840px) {
  .galleryAppBody {
    overflow-x: hidden !important;
  }

  /* Zone de choix des espaces */
  .gallerySpaces {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: calc(100% + 16px) !important;
    margin-left: -8px !important;
    gap: 8px !important;
    padding: 7px 8px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 8px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x !important;
  }

  .gallerySpaces::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .gallerySpaceBtn {
    flex: 0 0 31vw !important;
    min-width: 118px !important;
    max-width: 148px !important;
    height: 72px !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    border-radius: 14px !important;
  }

  .gallerySpaceBtn b {
    left: 9px !important;
    right: 7px !important;
    bottom: 8px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* L'espace actif est mieux identifié sans agrandir le layout */
  .gallerySpaceBtn.active {
    transform: none !important;
    border-color: rgba(85, 220, 255, .78) !important;
    box-shadow: 0 0 0 1px rgba(85, 220, 255, .12), 0 0 18px rgba(85, 220, 255, .12) !important;
  }

  /* Contenu sous le carrousel */
  .galleryContentHead {
    margin: 8px 0 7px !important;
    padding: 0 2px !important;
  }

  .galleryContentHead h3 {
    font-size: 23px !important;
  }

  /* Sur téléphone : catégories plus lisibles, sans écrasement */
  .galleryCategoryGrid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .galleryCategoryCard {
    min-height: 255px !important;
    border-radius: 16px !important;
  }

  .galleryCategoryCopy h4 {
    font-size: 17px !important;
  }

  .galleryMiniBtn {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 7.5px !important;
  }
}

/* Téléphones très étroits */
@media(max-width:390px) {
  .gallerySpaceBtn {
    flex-basis: 34vw !important;
    min-width: 108px !important;
    height: 66px !important;
  }

  .galleryCategoryCard {
    min-height: 238px !important;
  }
}

/* Mobile paysage : plusieurs espaces visibles, toujours scrollables */
@media(max-width:840px) and (orientation:landscape) {
  .gallerySpaceBtn {
    flex-basis: 20vw !important;
    min-width: 125px !important;
    max-width: 170px !important;
    height: 66px !important;
  }

  .galleryCategoryGrid {
    grid-template-columns: 1fr 1fr !important;
  }

  .galleryCategoryCard {
    min-height: 215px !important;
  }
}


/* =========================================================
   V21 — GALERIE IMAGE-FIRST
   Espaces / catégories / sous-catégories = image + titre.
   Viewer intégré + lightbox plein écran.
   ========================================================= */

/* Gallery body starts directly with the horizontal spaces */
.galleryAppBody {
  padding-top: 18px !important;
}

.galleryIntro,
.galleryContentHead {
  display: none !important;
}

/* Spaces remain horizontal and visual */
.gallerySpaces {
  margin-top: 0 !important;
  padding-top: 2px !important;
}

.gallerySpaceBtn {
  height: 92px !important;
}

.gallerySpaceBtn:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 7, 9, .82) 100%);
  pointer-events: none;
}

.gallerySpaceBtn b {
  z-index: 3 !important;
  font-size: 13px !important;
  text-shadow: 0 2px 10px #000;
}

/* Categories: no descriptive labels, only image + title + actions */
.galleryCategoryGrid {
  margin-top: 13px !important;
}

.galleryCategoryCard {
  min-height: 330px !important;
}

.galleryCategoryCopy {
  left: 14px !important;
  right: 14px !important;
  bottom: 13px !important;
}

.galleryCategoryCopy small {
  display: none !important;
}

.galleryCategoryCopy h4 {
  font-size: 22px !important;
  margin: 0 0 10px !important;
  text-shadow: 0 2px 14px #000;
}

/* Cleaner detail overlay */
.galleryDetail {
  padding: 14px !important;
  overflow: hidden !important;
}

.galleryDetailPanel {
  width: min(1180px, 100%) !important;
  height: calc(100dvh - 28px) !important;
  max-width: 1180px !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  background: rgba(7, 12, 14, .98) !important;
  overflow: hidden !important;
}

.galleryDetailTop {
  display: block !important;
  position: relative !important;
  min-height: 185px !important;
  overflow: hidden !important;
  border-bottom: 1px solid var(--line);
}

.galleryDetailHero {
  min-height: 185px !important;
  height: 185px !important;
}

.galleryDetailHero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 7, 9, .05), rgba(2, 7, 9, .88));
}

.galleryDetailHero img {
  object-fit: cover !important;
}

.galleryDetailInfo {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 14px !important;
  z-index: 3 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.galleryDetailInfo small,
.galleryDetailInfo p {
  display: none !important;
}

.galleryDetailInfo h3 {
  margin: 0 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  text-shadow: 0 3px 16px #000;
}

.galleryDetailAdd {
  min-height: 38px !important;
  padding: 0 14px !important;
  flex: 0 0 auto;
}

/* New detail body */
.galleryDetailBody {
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  padding: 12px;
}

.galleryDetailBody::-webkit-scrollbar {
  display: none
}

.gallerySubGallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 1px 1px 9px;
}

.gallerySubGallery::-webkit-scrollbar {
  display: none
}

.gallerySubCard {
  position: relative;
  flex: 0 0 210px;
  height: 118px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101517;
  padding: 0;
  scroll-snap-align: start;
  transition: .2s;
}

.gallerySubCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.74);
  transition: .25s;
}

.gallerySubCard:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(3, 8, 10, .88) 100%);
}

.gallerySubCard b {
  position: absolute;
  z-index: 2;
  left: 11px;
  right: 9px;
  bottom: 9px;
  font-size: 11px;
  text-align: left;
  text-shadow: 0 2px 10px #000;
}

.gallerySubCard:hover img {
  transform: scale(1.035)
}

.gallerySubCard.active {
  border-color: rgba(85, 220, 255, .78);
  box-shadow: 0 0 18px rgba(85, 220, 255, .12);
}

.gallerySubCard.active img {
  filter: brightness(.88)
}

/* Main image viewer */
.galleryImageViewer {
  position: relative;
  width: 100%;
  min-height: 0;
  height: min(48dvh, 520px);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #020506;
}

.galleryImageViewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.galleryViewerFull {
  position: absolute;
  right: 10px;
  top: 10px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(85, 220, 255, .55);
  background: rgba(3, 9, 11, .72);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.galleryViewerCaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(3, 9, 11, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

/* thumbnails below viewer */
.galleryViewerThumbs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 8px 1px 1px;
  scroll-snap-type: x proximity;
}

.galleryViewerThumbs::-webkit-scrollbar {
  display: none
}

.galleryViewerThumb {
  flex: 0 0 118px;
  height: 76px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101517;
  padding: 0;
  scroll-snap-align: start;
  opacity: .72;
}

.galleryViewerThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galleryViewerThumb.active {
  opacity: 1;
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(85, 220, 255, .12);
}

/* FULL SCREEN IMAGE VIEWER */
.galleryLightbox {
  position: fixed;
  inset: 0;
  z-index: 430;
  background: rgba(0, 0, 0, .97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .2s;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: minmax(0, 1fr) 104px;
  align-items: center;
}

.galleryLightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.galleryLightboxStage {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
}

.galleryLightboxStage img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.galleryLightboxClose {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(7, 12, 14, .78);
  color: #fff;
}

.galleryLightboxNav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(7, 12, 14, .65);
  color: #fff;
  font-size: 30px;
  justify-self: center;
}

.galleryLightboxNav.prev {
  grid-column: 1;
  grid-row: 1
}

.galleryLightboxNav.next {
  grid-column: 3;
  grid-row: 1
}

.galleryLightboxThumbs {
  grid-column: 1/-1;
  grid-row: 2;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  padding: 10px 14px 14px;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.galleryLightboxThumbs::-webkit-scrollbar {
  display: none
}

.galleryLightboxThumb {
  flex: 0 0 118px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #111;
  opacity: .55;
}

.galleryLightboxThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.galleryLightboxThumb.active {
  opacity: 1;
  border-color: var(--cyan);
}

/* Mobile */
@media(max-width:840px) {
  .galleryAppBody {
    padding-top: 8px !important;
  }

  .gallerySpaces {
    position: sticky !important;
    top: -8px !important;
    z-index: 12 !important;
    margin-bottom: 5px !important;
  }

  .gallerySpaceBtn {
    flex: 0 0 34vw !important;
    min-width: 112px !important;
    max-width: 145px !important;
    height: 72px !important;
  }

  .gallerySpaceBtn b {
    font-size: 10px !important;
  }

  .galleryCategoryGrid {
    margin-top: 5px !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .galleryCategoryCard {
    min-height: 235px !important;
  }

  .galleryCategoryCopy h4 {
    font-size: 17px !important;
    margin-bottom: 8px !important;
  }

  .galleryDetail {
    padding: 0 !important;
  }

  .galleryDetailPanel {
    height: 100dvh !important;
    width: 100vw !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .galleryDetailClose {
    right: 8px !important;
    top: 8px !important;
    z-index: 10 !important;
  }

  .galleryDetailTop {
    min-height: 150px !important;
  }

  .galleryDetailHero {
    height: 150px !important;
    min-height: 150px !important;
  }

  .galleryDetailInfo {
    left: 12px !important;
    right: 52px !important;
    bottom: 10px !important;
    align-items: center !important;
  }

  .galleryDetailInfo h3 {
    font-size: 21px !important;
  }

  .galleryDetailAdd {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 8px !important;
  }

  .galleryDetailBody {
    padding: 8px !important;
  }

  .gallerySubCard {
    flex-basis: 44vw !important;
    min-width: 145px !important;
    height: 96px !important;
  }

  .gallerySubCard b {
    font-size: 9px !important;
  }

  .galleryImageViewer {
    height: min(43dvh, 360px) !important;
    border-radius: 14px !important;
  }

  .galleryViewerThumb {
    flex-basis: 92px !important;
    height: 62px !important;
  }

  .galleryLightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    grid-template-rows: minmax(0, 1fr) 86px;
  }

  .galleryLightboxStage {
    padding: 8px 2px;
  }

  .galleryLightboxNav {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .galleryLightboxClose {
    width: 38px;
    height: 38px;
    right: 8px;
    top: 8px;
  }

  .galleryLightboxThumbs {
    padding: 8px;
    gap: 5px;
  }

  .galleryLightboxThumb {
    flex-basis: 88px;
    height: 58px;
  }
}

/* Landscape mobile */
@media(max-width:840px) and (orientation:landscape) {
  .galleryDetailPanel {
    grid-template-rows: 115px minmax(0, 1fr) !important;
  }

  .galleryDetailTop,
  .galleryDetailHero {
    height: 115px !important;
    min-height: 115px !important;
  }

  .galleryDetailBody {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .gallerySubGallery {
    grid-column: 1;
    grid-row: 1/-1;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .gallerySubCard {
    flex: 0 0 92px !important;
    width: 100%;
    min-width: 0 !important;
  }

  .galleryImageViewer {
    grid-column: 2;
    grid-row: 1;
    height: 100% !important;
  }

  .galleryViewerThumbs {
    grid-column: 2;
    grid-row: 2;
  }
}


/* =========================================================
   V22 — FIX CATÉGORIES + EXEMPLES VISIBLES
   ========================================================= */
.galleryAppBody {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.gallerySpaces {
  flex: 0 0 auto !important;
}

.galleryCategoryGrid {
  flex: 0 0 auto !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding-bottom: 76px !important;
}

.galleryCategoryCard {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.galleryCategoryCard>img {
  display: block !important;
}

/* Desktop: categories immediately under the space selector */
@media(min-width:841px) {
  .galleryAppBody {
    padding-top: 18px !important;
  }

  .galleryCategoryGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* Mobile: spaces horizontal, categories clearly visible below */
@media(max-width:840px) {
  .galleryAppBody {
    padding-top: 7px !important;
    gap: 8px !important;
  }

  .gallerySpaces {
    width: calc(100% + 16px) !important;
    margin-left: -8px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .galleryCategoryGrid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .galleryCategoryCard {
    min-height: 242px !important;
  }
}


/* =========================================================
   V23 — BARRE DES ESPACES : SCROLL HORIZONTAL ERGONOMIQUE
   ========================================================= */
.gallerySpacesNav {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(6, 12, 16, 0.95) !important;
  backdrop-filter: blur(16px);
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.gallerySpaces {
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x proximity !important;
  scroll-behavior: smooth !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
  touch-action: pan-x !important;
  cursor: grab;
}

.gallerySpaces.dragging {
  cursor: grabbing;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

.gallerySpaces::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.gallerySpaceBtn {
  scroll-snap-align: start !important;
  scroll-snap-stop: normal !important;
}

.gallerySpaceArrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(6, 11, 13, .76);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: .18s;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.gallerySpaceArrow:hover {
  border-color: rgba(85, 220, 255, .66);
  box-shadow: 0 0 16px rgba(85, 220, 255, .10);
  transform: scale(1.04);
}

.gallerySpaceArrow:disabled {
  opacity: .24;
  pointer-events: none;
}

/* Mobile: arrows remain compact and the rail fills the width */
@media(max-width:840px) {
  .gallerySpacesNav {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    grid-template-columns: 34px minmax(0, 1fr) 34px !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 6px 0 8px !important;
  }

  .gallerySpaceArrow {
    width: 31px !important;
    height: 31px !important;
    font-size: 22px !important;
  }

  .gallerySpaces {
    margin: 0 !important;
    padding: 5px 1px 8px !important;
  }

  .gallerySpaceBtn {
    flex: 0 0 34vw !important;
    min-width: 112px !important;
    max-width: 145px !important;
  }
}

/* Très petits écrans : garder environ 2,5 cartes visibles */
@media(max-width:390px) {
  .gallerySpaceBtn {
    flex-basis: 38vw !important;
    min-width: 106px !important;
  }
}

/* Paysage mobile : davantage d'espaces visibles */
@media(max-width:840px) and (orientation:landscape) {
  .gallerySpaceBtn {
    flex-basis: 20vw !important;
    min-width: 122px !important;
    max-width: 170px !important;
  }
}

/* =========================================================
   RTL SUPPORT (Arabic / [dir="rtl"])
   ========================================================= */
[dir="rtl"] .heroGrid {
  direction: rtl;
}

[dir="rtl"] .menu {
  direction: rtl;
}

[dir="rtl"] .serviceChoice {
  text-align: right;
}

[dir="rtl"] .modeTabs button {
  text-align: right;
}

[dir="rtl"] .copy {
  text-align: right;
}

[dir="rtl"] .qpTable th,
[dir="rtl"] .qpTable td {
  text-align: right;
}

[dir="rtl"] .videoLabel {
  left: auto;
  right: 18px;
}

[dir="rtl"] .learn {
  right: auto;
  left: 10px;
}

[dir="rtl"] .levelGroupLabel {
  left: auto;
  right: 12px;
}

[dir="rtl"] .galleryCartDrawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

[dir="rtl"] .galleryCartDrawer.open {
  z-index: 9999 !important;
  transform: translateX(0);
}

[dir="rtl"] .galleryLightboxNav.prev {
  left: auto;
  right: 16px;
}

[dir="rtl"] .galleryLightboxNav.next {
  right: auto;
  left: 16px;
}


/* =========================================================
   PORTFOLIO & VIDEO RAIL CENTERING (MATCHING PROTOTYPE)
   ========================================================= */
#portfolio {
  overflow: hidden !important;
  width: 100% !important;
  position: relative !important;
}

.portfolioWrap {
  width: 100% !important;
}

.portfolioBody {
  height: min(72dvh, 680px) !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  overflow: hidden !important;
  position: relative !important;
}

.slider,
#slider {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  perspective: 1500px !important;
  touch-action: none !important;
  cursor: grab !important;
}

.slider.drag {
  cursor: grabbing !important;
}

.pc {
  --z: 300px;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: var(--z) !important;
  height: calc(var(--z) * .80) !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 21px !important;
  overflow: hidden !important;
  background: #132127 !important;
  will-change: transform, opacity !important;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .16s !important;
  box-shadow: 0 28px 72px rgba(0,0,0,.55) !important;
}

.slider.drag .pc {
  transition: none !important;
}

.pc img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  pointer-events: none !important;
  transition: transform .34s cubic-bezier(.22,1,.36,1) !important;
}

.pc:hover img {
  transform: scale(1.035) !important;
}

.pc .visit360 {
  position: absolute !important;
  left: 50% !important;
  bottom: 13px !important;
  z-index: 3 !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(85,220,255,.75) !important;
  border-radius: 999px !important;
  background: rgba(4,18,23,.74) !important;
  backdrop-filter: blur(12px) !important;
  padding: 10px 16px !important;
  color: #e3faff !important;
  font-weight: 850 !important;
  font-size: 11px !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 19px rgba(85,220,255,.24) !important;
  transition: .22s !important;
}

.pc .visit360:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.04) !important;
  box-shadow: 0 0 30px rgba(85,220,255,.35) !important;
}

.pc:not(.on) .visit360 {
  opacity: .15 !important;
  pointer-events: none !important;
}

.videoRail {
  display: flex !important;
  gap: 14px !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x proximity !important;
  padding: 8px max(18px, calc((100vw - var(--max)) / 2)) 18px !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  cursor: grab !important;
  user-select: none !important;
  touch-action: pan-y !important;
  overscroll-behavior-x: contain !important;
}

#errorContainer,
.quickForm #errorContainer,
#errorList,
.quickForm #errorList {
  width: 100% !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#errorList li,
.quickForm #errorList li {
  margin-bottom: 8px !important;
  list-style: none !important;
}

/* SweetAlert2 — Liquid-Glass Dark Theme for home */
.swal2-container {
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  background: rgba(4, 8, 11, 0.85) !important;
  z-index: 10000 !important;
}

.swal2-popup {
  background: rgba(8, 14, 18, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1.5px solid rgba(85, 220, 255, 0.35) !important;
  border-radius: 24px !important;
  color: #ffffff !important;
  padding: 2.2rem !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 35px rgba(85, 220, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.swal2-title {
  color: #ffffff !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
}

.swal2-html-container {
  color: #c0c7c4 !important;
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
}

.swal2-confirm {
  background: rgba(10, 24, 32, 0.95) !important;
  border: 1.5px solid #55dcff !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  padding: 0.75rem 2.4rem !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 0 20px rgba(85, 220, 255, 0.25) !important;
  transition: all 0.22s !important;
}

.swal2-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(85, 220, 255, 0.45) !important;
}

.swal2-icon.swal2-success {
  border-color: #55dcff !important;
  color: #55dcff !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #55dcff !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border: 0.25em solid rgba(85, 220, 255, 0.3) !important;
}

/* =========================================================
   SERVICE DETAILS MODAL — Dark Liquid Glass & Neon Accents
   ========================================================= */
#serviceDetailsModal .modal-content.svc-details-glass {
  background: rgba(8, 14, 18, 0.96) !important;
  backdrop-filter: blur(28px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(170%) !important;
  border: 1.5px solid rgba(85, 220, 255, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 35px rgba(85, 220, 255, 0.15) !important;
}

.svc-details-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(244, 184, 95, 0.12);
  border: 1px solid rgba(244, 184, 95, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--amber, #f4b85f);
  flex-shrink: 0;
}

#serviceDetailsToggleActionBtn.dash-btn-primary {
  background: var(--cyan, #55dcff) !important;
  color: #03141a !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(85, 220, 255, 0.32) !important;
  transition: all 0.2s ease !important;
}

#serviceDetailsToggleActionBtn.dash-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(85, 220, 255, 0.48) !important;
}

#svcDetailsLangTabs,
#serviceLangTabs {
  position: relative !important;
  z-index: 5 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  padding: 5px !important;
}

#svcDetailsLangTabs .nav-item,
#serviceLangTabs .nav-item {
  position: relative !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

#svcDetailsLangTabs .nav-link,
#serviceLangTabs .nav-link,
.svc-lang-btn {
  position: relative !important;
  z-index: 2 !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid transparent !important;
  transition: all 0.22s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#svcDetailsLangTabs .nav-link:hover,
#serviceLangTabs .nav-link:hover,
.svc-lang-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

#svcDetailsLangTabs .nav-link.active,
#serviceLangTabs .nav-link.active,
.svc-lang-btn.active {
  background: rgba(85, 220, 255, 0.2) !important;
  color: #55dcff !important;
  border-color: rgba(85, 220, 255, 0.45) !important;
  box-shadow: 0 0 16px rgba(85, 220, 255, 0.25) !important;
}

/* ==========================================================================
   COMPOSER DESIGN SYSTEM — LOFT DESIGN V93 MOBILE SERVICES FIXED SCROLL
   Harmonized V82 Solid UI, V86 Studio, V88 White Frames, V89 Responsive Mobile,
   V91 Service Cards, and V93 Exact 2-Line Article Layout + Fixed Scroll.
   ========================================================================== */

#composer {
  --v82-accent: #42d7ee;
  --v82-accent-strong: #14afc8;
  --v82-dark: #0f1618;
  --v82-dark-2: #172024;
  --v82-paper: #f4f6f4;
  --v82-white: #ffffff;
  --v82-ink: #1b2522;
  --v82-muted: #6f7b77;
  --v82-line: #d7dfdc;
  --v82-soft: #e9eeeb;

  --v86-bg: #071012;
  --v86-panel: #ffffff;
  --v86-panel-2: #f7f9f8;
  --v86-line: #d5dfdb;
  --v86-line-soft: #e2ebe7;
  --v86-text: #17201e;
  --v86-muted: #76827e;
  --v86-cyan: #3bd4ea;
  --v86-cyan-deep: #087d91;
  --v86-green: #23845f;
  --v86-gold: #c49b51;

  background: transparent !important;
  color: #fff;
  align-items: stretch !important;
}

#composer * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-sizing: border-box;
}

#composer.viewport,
#composer .composerShell,
#composer .composerViewport {
  background: transparent !important;
}

/* ---------- Header area & Stepper container ---------- */
#composer .composerShell {
  width: min(1180px, calc(100% - 34px)) !important;
  margin: 0 auto !important;
  padding: 34px 0 24px !important;
}

#composer .composerShell .sectionHead {
  width: min(1050px, 100%) !important;
  margin: 0 auto 14px !important;
  color: #fff !important;
  position: relative;
  padding-left: 2px;
}

[dir="rtl"] #composer .composerShell .sectionHead {
  padding-left: 0;
  padding-right: 2px;
}

#composer .composerShell .sectionHead::before {
  content: 'COMPOSITEUR DE PROJET';
  display: block;
  margin-bottom: 7px;
  color: var(--v86-cyan, #3bd4ea);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

[dir="rtl"] #composer .composerShell .sectionHead::before {
  content: 'منشئ المشروع';
}

#composer .composerShell .sectionHead::after {
  content: 'Configurez votre projet, choisissez vos prestations et obtenez un devis clair.';
  display: block;
  margin-top: 7px;
  color: #b5c0bc;
  font-size: 11px;
  line-height: 1.45;
}

[dir="rtl"] #composer .composerShell .sectionHead::after {
  content: 'قم بتهيئة مشروعك، واختر خدماتك واحصل على تقدير تكلفة فوري وواضح.';
}

#composer .composerShell .sectionHead h2 {
  margin: 0 !important;
  color: #f7faf9 !important;
  font-size: clamp(34px, 4vw, 54px) !important;
  line-height: .98 !important;
  letter-spacing: -.04em !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25) !important;
}

#composer .composerShell .sectionHead .ey,
#composer .composerShell .sectionHead .eyebrow,
#composer .composerShell .sectionHead p,
#composer .composerShell .sectionHead em {
  display: none !important;
}

/* ---------- Stepper : Solid, Clean White Floating Card (2-Line) ---------- */
#composer .progress {
  width: min(1050px, 100%) !important;
  margin: 0 auto 14px !important;
  min-height: 58px !important;
  padding: 6px !important;
  border: 1px solid #d7e0dd !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14) !important;
  display: grid !important;
  grid-template-columns: 1fr 22px 1fr 22px 1fr !important;
  align-items: center !important;
  gap: 0 !important;
}

#composer .progress > span {
  width: 100% !important;
  height: 1px !important;
  margin: 0 !important;
  background: #d8e0dd !important;
  display: block !important;
}

#composer .progress button {
  min-height: 44px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #66736e !important;
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 0 8px !important;
  text-align: left !important;
  transition: .16s ease !important;
  cursor: pointer;
}

[dir="rtl"] #composer .progress button {
  text-align: right !important;
}

#composer .progress button i {
  grid-row: 1 / 3 !important;
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #ccd6d2 !important;
  border-radius: 8px !important;
  background: #f8faf9 !important;
  color: #66736e !important;
  font-size: 9px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

#composer .progress button span {
  font-size: 10px !important;
  font-weight: 900 !important;
  color: inherit !important;
  line-height: 1.2 !important;
}

#composer .progress button::after {
  grid-column: 2 !important;
  display: block !important;
  margin-top: 1px;
  color: #7b8783;
  font-size: 7.5px;
  font-weight: 650;
  line-height: 1.2;
}

#composer .progress button[data-step="project"]::after { content: 'Type et surfaces'; }
#composer .progress button[data-step="services"]::after { content: 'Options et calcul'; }
#composer .progress button[data-step="contact"]::after { content: 'Client et validation'; }

[dir="rtl"] #composer .progress button[data-step="project"]::after { content: 'النوع والمساحات'; }
[dir="rtl"] #composer .progress button[data-step="services"]::after { content: 'الخيارات والحساب'; }
[dir="rtl"] #composer .progress button[data-step="contact"]::after { content: 'العميل والتأكيد'; }

#composer .progress button.active {
  background: #f5f7f6 !important;
  color: #17201e !important;
  box-shadow: inset 0 0 0 1px #d9e1de !important;
}

#composer .progress button.active i {
  background: var(--v86-cyan, #3bd4ea) !important;
  border-color: var(--v86-cyan, #3bd4ea) !important;
  color: #062027 !important;
}

#composer .progress button.active::after {
  color: #697572 !important;
}

#composer .progress button.done {
  color: #177653 !important;
}

#composer .progress button.done i {
  background: #e5f7ef !important;
  border-color: #78c9aa !important;
  color: #177653 !important;
}

/* ---------- Viewport / Step Host ---------- */
#composer .composerViewport {
  width: min(1050px, 100%) !important;
  margin: 0 auto !important;
  min-height: 0 !important;
  border-radius: 22px !important;
}

/* ==========================================================================
   STEP 1: PROJECT SCREEN (V86 Studio + V88 White Frames)
   ========================================================================== */

#composer .v86ProjectScreen {
  position: relative !important;
  width: min(1220px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--v86-text, #17201e) !important;
}

/* Desktop architectural side notes */
#composer .v86ProjectDecor {
  position: absolute;
  top: 10px;
  color: #536167;
  font-size: 10px;
  letter-spacing: .28em;
  line-height: 1.65;
  pointer-events: none;
}

#composer .v86ProjectDecor strong {
  display: block;
  font-size: 92px;
  line-height: .85;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: -.06em;
}

#composer .v86ProjectDecor span {
  display: block;
  margin-top: 24px;
}

#composer .v86ProjectDecor i {
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 10px;
  background: var(--v86-gold, #c49b51);
}

#composer .v86ProjectDecorLeft {
  right: calc(100% + 46px);
  width: 110px;
}

#composer .v86ProjectDecorRight {
  left: calc(100% + 42px);
  width: 130px;
  top: -58px;
  padding-left: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

[dir="rtl"] #composer .v86ProjectDecorLeft {
  right: auto;
  left: calc(100% + 46px);
}

[dir="rtl"] #composer .v86ProjectDecorRight {
  left: auto;
  right: calc(100% + 42px);
  padding-left: 0;
  padding-right: 26px;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* 1 / 2 / 3 White Main Functional Cards */
#composer .v86TypeBlock,
#composer .v86LevelsBlock,
#composer .v86SurfaceBlock {
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #17201e !important;
  border: 1px solid rgba(198, 211, 206, .95) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .12) !important;
}

#composer .v86BlockHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

#composer .v86BlockHead h3 {
  margin: 0 !important;
  color: #17201e !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
}

#composer .v86BlockHead h3 b {
  color: #17201e;
  font-weight: 900;
}

#composer .v86BlockHead p {
  margin: 3px 0 0 !important;
  color: #76827e !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}

#composer .v86BlockHead.compact {
  margin-bottom: 10px;
}

/* 1. Project types: visual image cards */
#composer .v86ProjectTypes {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

#composer .v86ProjectTypes button {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 124px !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #d5dfdb !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #17201e !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: 0 5px 16px rgba(31, 53, 47, .06) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

[dir="rtl"] #composer .v86ProjectTypes button {
  text-align: right !important;
}

#composer .v86ProjectTypes button:hover {
  background: #fbfcfb !important;
  border-color: #98aaa4 !important;
  transform: translateY(-2px) !important;
}

#composer .v86ProjectTypes button.selected {
  background: #ffffff !important;
  border: 2px solid #28c6dd !important;
  box-shadow: 0 0 0 3px rgba(40, 198, 221, .10), 0 8px 20px rgba(31, 53, 47, .08) !important;
}

#composer .v86ProjectImage {
  position: relative;
  display: block;
  width: 100%;
  height: 67px;
  overflow: hidden;
  background: #eef2f0;
}

#composer .v86ProjectImage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(10, 20, 22, .10));
}

#composer .v86ProjectImage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.82) brightness(.95);
  transition: .2s ease;
}

#composer .v86ProjectTypes button:hover img,
#composer .v86ProjectTypes button.selected img {
  filter: saturate(.95) brightness(1);
  transform: scale(1.025);
}

#composer .v86SelectedCheck {
  position: absolute !important;
  z-index: 3 !important;
  top: 8px !important;
  right: 8px !important;
  width: 26px !important;
  height: 26px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: var(--v86-cyan, #3bd4ea) !important;
  color: #062027 !important;
  font-size: 12px !important;
  font-style: normal !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25) !important;
}

[dir="rtl"] #composer .v86SelectedCheck {
  right: auto !important;
  left: 8px !important;
}

#composer .v86ProjectCardFoot {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  height: 57px;
  padding: 8px 10px;
  background: #ffffff !important;
}

#composer .v86ProjectCardFoot > em {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid #d2dcd8;
  background: #f4f7f6;
  color: #31403b;
  font-size: 16px;
  font-style: normal;
}

#composer .v86ProjectTypes button.selected .v86ProjectCardFoot > em {
  background: #e7fafd !important;
  border-color: #4acde0 !important;
  color: #087f92 !important;
}

#composer .v86ProjectCardFoot b {
  display: block;
  color: #1d2925 !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  font-weight: 800;
}

#composer .v86ProjectCardFoot small {
  display: block;
  margin-top: 3px;
  color: #7b8783 !important;
  font-size: 7.5px !important;
  line-height: 1.1 !important;
}

/* 2. Levels Block */
#composer .v86LevelsBlock {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

#composer .v86LevelControls {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

#composer .v86LevelControls .v47LevelCounter {
  min-height: 52px !important;
  padding: 7px 8px 7px 13px !important;
  border: 1px solid #d5dfdb !important;
  border-radius: 12px !important;
  background: #f7f9f8 !important;
  color: #1f2c28 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#composer .v86LevelControls .v47LevelCounter > span {
  color: #34423d !important;
  font-size: 10px !important;
  font-weight: 850;
}

#composer .v86LevelControls .v47Counter {
  background: #ffffff !important;
  border: 1px solid #cfd9d5 !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px !important;
  gap: 4px !important;
}

#composer .v86LevelControls .v47Counter button {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 7px !important;
  border: 0 !important;
  background: #f7f9f8 !important;
  color: #3e4b46 !important;
  font-size: 15px !important;
  cursor: pointer;
}

#composer .v86LevelControls .v47Counter b {
  min-width: 30px !important;
  text-align: center !important;
  color: #07859a !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

#composer .v86ExtraLevels {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #e3ebe7 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

#composer .v86ExtraLevels .v47LevelChip {
  background: #f7f9f8 !important;
  border: 1px solid #d5dfdb !important;
  border-radius: 9px !important;
  padding: 6px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#composer .v86ExtraLevels .v47LevelChip label {
  color: #34423d !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  margin: 0 !important;
}

#composer .v86ExtraLevels .v47InputShell {
  background: #ffffff !important;
  border: 1px solid #cfd9d5 !important;
  border-radius: 7px !important;
  padding: 2px 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

#composer .v86ExtraLevels .v47InputShell input {
  width: 58px !important;
  border: 0 !important;
  background: transparent !important;
  color: #17201e !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  text-align: right !important;
}

#composer .v86ExtraLevels .v47InputShell em {
  font-size: 9px !important;
  color: #7a8682 !important;
  font-style: normal;
}

/* 3. Surface Block */
#composer .v86SurfaceBlock {
  padding-bottom: 12px !important;
}

#composer .v86SurfaceGrid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 250px !important;
  gap: 12px !important;
  align-items: stretch !important;
}

#composer .v86SurfaceCard {
  min-height: 76px !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 146px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid #d4ded9 !important;
  border-radius: 13px !important;
  background: #f7f9f8 !important;
  color: #17201e !important;
}

#composer .v86SurfaceIcon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e9efed;
  color: #50615b;
  font-size: 21px;
}

#composer .v86SurfaceIcon.exterior {
  background: #e6f6ef;
  color: #23845f;
}

#composer .v86SurfaceCopy b {
  display: block;
  color: #1f2c28 !important;
  font-size: 11px !important;
  font-weight: 850;
}

#composer .v86SurfaceCopy small {
  display: block;
  margin-top: 4px;
  color: #76827e !important;
  font-size: 8px !important;
  line-height: 1.3 !important;
}

#composer .v86SurfaceCard .v47InputShell {
  min-width: 0 !important;
  height: 44px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  border: 1px solid #cfd9d5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  padding: 0 8px !important;
}

#composer .v86SurfaceCard .v47InputShell input {
  color: #17201e !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: right !important;
  border: 0 !important;
  background: transparent !important;
  width: 100% !important;
}

[dir="rtl"] #composer .v86SurfaceCard .v47InputShell input {
  text-align: left !important;
}

#composer .v86SurfaceCard .v47InputShell em {
  color: #6f7c77 !important;
  font-size: 10px !important;
  font-style: normal;
  margin-left: 4px;
}

/* Surface total card: light cyan highlight */
#composer .v86TotalCard {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid #28c6dd !important;
  border-radius: 13px;
  background: #edfafd !important;
  box-shadow: none !important;
}

#composer .v86TotalIcon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #d9f6fa !important;
  color: #07859a !important;
  font-size: 18px;
}

#composer .v86TotalCard small {
  display: block;
  color: #087f92 !important;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

#composer .v86TotalCard b {
  display: block;
  margin-top: 3px;
  color: #17201e !important;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

#composer .v86TotalCard p {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid rgba(40, 198, 221, .22) !important;
  color: #6a7974 !important;
  font-size: 8.5px;
  line-height: 1.35;
}

#composer .v86TotalCard p strong {
  color: #087f92 !important;
}

/* Footer row: transparent zone */
#composer .v86ProjectFooter {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 14px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#composer .v86Reset {
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid #cfd9d5 !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #34413d !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08) !important;
  transition: all .16s ease;
}

#composer .v86Reset:hover {
  background: #f7f9f8 !important;
  border-color: #b7c4bf !important;
}

#composer .v86Next {
  min-height: 44px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--v86-cyan, #3bd4ea) !important;
  color: #062027 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(59, 212, 234, .20) !important;
  transition: all .16s ease;
}

#composer .v86Next:hover {
  background: #6ce4f5 !important;
}

#composer .v86Next > span,
#composer .v47Next > span,
#composer .nextBtn > span.arrow,
#composer .nextBtn > i.arrow {
  display: none !important;
}

/* ==========================================================================
   STEP 2: SERVICES SCREEN (V82 Solid + V91 Cards + V93 Layout)
   ========================================================================== */

#composer .v46ServicesScreen {
  width: 100% !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr) !important;
  gap: 14px !important;
  height: auto;
  min-height: 520px;
}

#composer .v46AvailableColumn,
#composer .v46SelectedColumn {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22) !important;
}

/* Left Column: Light Paper Card */
#composer .v46AvailableColumn {
  border: 1px solid var(--v82-line, #d7dfdc) !important;
  background: var(--v82-paper, #f4f6f4) !important;
  color: var(--v82-ink, #1b2522) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

#composer .v46AvailableColumn .v46ColumnHead {
  border-bottom: 1px solid var(--v82-line, #d7dfdc) !important;
  background: #ffffff !important;
  min-height: 64px !important;
  padding: 11px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#composer .v46AvailableColumn .v46ColumnHead small {
  color: #82908b !important;
  font-size: 8px !important;
  font-weight: 850 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#composer .v46AvailableColumn .v46ColumnHead h3 {
  margin: 2px 0 0 !important;
  color: #1a2421 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

#composer .v46AvailableColumn .v46ColumnHead > span {
  border-radius: 7px !important;
  background: #e5f7fa !important;
  color: #0b7183 !important;
  min-width: 26px !important;
  height: 26px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 9px !important;
  font-weight: 900 !important;
}

#composer .v46AvailableScroll {
  padding: 9px !important;
  background: var(--v82-paper, #f4f6f4) !important;
  overflow-y: auto !important;
  max-height: 620px;
}

#composer .v46AvailableService {
  min-height: 66px !important;
  margin-bottom: 7px !important;
  border: 1px solid #d7dfdc !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 66px !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow: hidden !important;
  transition: border-color .15s ease, background .15s ease;
}

#composer .v46AvailableService:hover {
  border-color: #aab6b2 !important;
}

#composer .v46AvailableService.selected {
  border-color: #41bfd4 !important;
  background: #edfafd !important;
  box-shadow: inset 3px 0 0 var(--v82-accent, #42d7ee) !important;
}

[dir="rtl"] #composer .v46AvailableService.selected {
  box-shadow: inset -3px 0 0 var(--v82-accent, #42d7ee) !important;
}

#composer .v46ServiceAdd {
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1f2a27 !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  text-align: left !important;
  cursor: pointer;
}

[dir="rtl"] #composer .v46ServiceAdd {
  text-align: right !important;
}

#composer .v46ServiceAdd > i {
  width: 24px !important;
  height: 24px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #c9d3cf !important;
  border-radius: 7px !important;
  background: #f4f6f4 !important;
  color: #62706b !important;
  font-size: 12px !important;
  font-style: normal;
}

#composer .v46AvailableService.selected .v46ServiceAdd > i {
  background: var(--v82-accent, #42d7ee) !important;
  border-color: var(--v82-accent, #42d7ee) !important;
  color: #062127 !important;
}

#composer .v46ServiceAdd span b {
  display: block;
  color: #26322e !important;
  font-size: 11px !important;
  font-weight: 850;
  line-height: 1.25;
}

#composer .v46ServiceAdd span small {
  display: block;
  margin-top: 2px;
  color: #7c8984 !important;
  font-size: 8px !important;
}

#composer .v46ServiceAdd > strong {
  color: #0a859b !important;
  font-size: 12px !important;
  font-weight: 900;
  white-space: nowrap;
}

#composer .v46ServiceInfo {
  border: 0 !important;
  border-left: 1px solid #dde4e2 !important;
  background: #f7f9f7 !important;
  color: #65736e !important;
  font-size: 9px !important;
  font-weight: 850;
  cursor: pointer;
  transition: all .15s ease;
}

[dir="rtl"] #composer .v46ServiceInfo {
  border-left: 0 !important;
  border-right: 1px solid #dde4e2 !important;
}

#composer .v46ServiceInfo:hover {
  background: #eef2ef !important;
  color: #26322e !important;
}

/* Right Column: Dark Solid Card */
#composer .v46SelectedColumn {
  border: 1px solid #293438 !important;
  background: var(--v82-dark, #0f1618) !important;
  color: #ffffff !important;
  min-width: 390px !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

#composer .v46TotalDock {
  min-height: 76px !important;
  padding: 11px 13px !important;
  border-bottom: 1px solid #2a3639 !important;
  background: #10191b !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

#composer .v46TotalDock small {
  display: block;
  color: #7d8a86 !important;
  font-size: 8px !important;
  font-weight: 850;
  letter-spacing: .08em;
}

#composer .v46TotalDock strong {
  display: block;
  margin-top: 2px;
  color: var(--v82-accent, #42d7ee) !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1;
}

#composer .v46TotalDock .nextBtn {
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 1px solid var(--v82-accent, #42d7ee) !important;
  border-radius: 9px !important;
  background: var(--v82-accent, #42d7ee) !important;
  color: #072027 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  cursor: pointer;
  transition: all .16s ease;
}

#composer .v46TotalDock .nextBtn:hover {
  background: #6ce4f5 !important;
}

#composer .v46SelectedColumn .v46ColumnHead {
  border-bottom: 1px solid #2b3639 !important;
  background: #121b1e !important;
  min-height: 54px !important;
  padding: 9px 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#composer .v46SelectedColumn .v46ColumnHead small {
  color: #6f7e7a !important;
  font-size: 8px !important;
  font-weight: 850;
  text-transform: uppercase;
}

#composer .v46SelectedColumn .v46ColumnHead h3 {
  margin: 2px 0 0 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 850;
}

#composer .v46SelectedColumn .v46ColumnHead > span {
  border-radius: 7px !important;
  background: #1d3035 !important;
  color: #68e0f3 !important;
  min-width: 26px !important;
  height: 26px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 9px !important;
  font-weight: 900 !important;
}

#composer .v46SelectedScroll {
  padding: 9px !important;
  background: var(--v82-dark, #0f1618) !important;
  overflow-y: auto !important;
  max-height: 540px;
}

/* Selected Service Card — V91 Clean White Card */
#composer .v91ServiceCard {
  width: calc(100% - 16px) !important;
  max-width: calc(100% - 16px) !important;
  margin: 8px !important;
  padding: 13px !important;
  display: block !important;
  border: 1px solid #d4ddda !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #17201e !important;
  overflow: hidden !important;
}

#composer .v91ServiceHeader {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid #e1e7e5 !important;
}

#composer .v91ServiceHeader > span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

#composer .v91ServiceHeader b {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  color: #17201e !important;
  -webkit-text-fill-color: #17201e !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

#composer .v91ServiceHeader small {
  display: block !important;
  margin-top: 4px !important;
  color: #75817d !important;
  -webkit-text-fill-color: #75817d !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

#composer .v91ServiceControls {
  width: 100% !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

#composer .v91ServiceControls .v76ScopePick {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  width: 100% !important;
}

#composer .v91ServiceControls .v76ScopePick label {
  min-height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid #cbd6d2 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #5b6863 !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer;
}

#composer .v91ServiceControls .v76ScopePick label.on {
  border-color: #2fc4dc !important;
  background: #e9fafd !important;
  color: #087b8e !important;
}

#composer .v91ServiceControls .v76ScopePick input {
  margin: 0 !important;
  accent-color: #087b8e !important;
}

#composer .v91ServiceControls .v76NumberField,
#composer .v91ServiceControls .v76ReferenceField {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid #d1dbd7 !important;
  border-radius: 9px !important;
  background: #f7f9f8 !important;
  color: #26322e !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#composer .v91ServiceControls .v76NumberField input,
#composer .v91ServiceControls .v76ReferenceField input {
  width: 80px !important;
  padding: 4px 6px !important;
  border: 1px solid #cfd8d5 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #17201e !important;
  font-weight: 900 !important;
  text-align: center !important;
}

#composer .v91ServiceFooter {
  width: 100% !important;
  margin: 10px 0 0 !important;
  padding: 10px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border-top: 1px solid #e1e7e5 !important;
}

#composer .v91ServiceFooter .v91ServicePrice {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #08a0b9 !important;
  -webkit-text-fill-color: #08a0b9 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#composer .v91ServiceActions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
}

#composer .v91ServiceActions button {
  width: auto !important;
  min-width: 64px !important;
  height: 37px !important;
  min-height: 37px !important;
  padding: 0 11px !important;
  margin: 0 !important;
  border: 1px solid #cbd6d2 !important;
  border-radius: 8px !important;
  background: #f7f9f8 !important;
  color: #34413d !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition: all .15s ease;
}

#composer .v91ServiceActions button:hover {
  background: #eef2ef !important;
  border-color: #aab6b2 !important;
}

#composer .v91ServiceActions button.remove {
  width: 37px !important;
  min-width: 37px !important;
  padding: 0 !important;
  border-color: #efcaca !important;
  background: #fff4f4 !important;
  color: #c64242 !important;
  font-size: 14px !important;
}

#composer .v91ServiceActions button.remove:hover {
  background: #ffe8e8 !important;
  border-color: #e59999 !important;
}

#composer .v91ServiceCard .v46SelectedCalc > span {
  display: none !important;
}

#composer .v46SelectionEmpty {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #798682;
  font-size: 12px;
  font-style: italic;
  padding: 20px;
}

/* Budget field */
#composer .v46BudgetField {
  margin: 8px 8px 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #2b3639 !important;
  border-radius: 10px !important;
  background: #111a1c !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#composer .v46BudgetField > span {
  font-size: 11px !important;
  color: #8fa09b !important;
  font-weight: 800 !important;
}

#composer .v46BudgetField > div {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #091012 !important;
  border: 1px solid #304044 !important;
  border-radius: 7px !important;
  padding: 3px 8px !important;
}

#composer .v46BudgetField input {
  width: 100px !important;
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-align: right !important;
}

#composer .v46BudgetField b {
  color: var(--v86-cyan, #3bd4ea) !important;
  font-size: 10px !important;
}

/* ==========================================================================
   STEP 3: CONTACT SCREEN (V82 Solid Paper Card)
   ========================================================================== */

#composerBody:has(.contactForm) {
  width: 100% !important;
  max-width: 880px !important;
  margin: 0 auto !important;
  padding: 14px !important;
  border-radius: 20px !important;
  background: var(--v82-paper, #f4f6f4) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .28) !important;
}

#composer .clientType {
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 4px !important;
  border: 1px solid var(--v82-line, #d7dfdc) !important;
  border-radius: 11px !important;
  background: #e9eeeb !important;
  display: flex !important;
  gap: 6px !important;
}

#composer .clientType button {
  flex: 1 1 0 !important;
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #64716c !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  cursor: pointer;
  transition: all .16s ease;
}

#composer .clientType button.active {
  background: #11191b !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#composer .contactForm {
  padding: 15px !important;
  border: 1px solid var(--v82-line, #d7dfdc) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: var(--v82-ink, #1b2522) !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

#composer .contactForm .full {
  grid-column: 1 / -1 !important;
}

#composer .contactForm label {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  color: #53605b !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

#composer .contactForm input,
#composer .contactForm select,
#composer .contactForm textarea {
  width: 100% !important;
  border: 1px solid #cfd8d5 !important;
  border-radius: 8px !important;
  background: #f7f9f7 !important;
  color: #1f2a27 !important;
  padding: 9px 11px !important;
  font-size: 12px !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#composer .contactForm input:focus,
#composer .contactForm select:focus,
#composer .contactForm textarea:focus {
  outline: 0 !important;
  border-color: #36b8cf !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(66, 215, 238, .12) !important;
}

#composer .contactForm textarea {
  min-height: 70px !important;
  resize: vertical;
}

#composer .contactTotal {
  grid-column: 1 / -1 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #11191b !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#composer .contactTotal strong {
  display: block;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 850;
}

#composer .contactTotal .tax {
  display: block;
  margin-top: 2px;
  color: #7f8d88 !important;
  font-size: 10px !important;
}

#composer .contactTotal > b {
  color: var(--v82-accent, #42d7ee) !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

#composer .submitRow {
  grid-column: 1 / -1 !important;
  margin-top: 4px;
}

#composer .submitRow .btn {
  width: 100% !important;
  min-height: 46px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--v82-accent, #42d7ee) !important;
  color: #062027 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .15s ease;
}

#composer .submitRow .btn:hover {
  background: #6ce4f5 !important;
}

/* ==========================================================================
   STEP 4: DEVIS / SUCCESS SCREEN
   ========================================================================== */

#composer .success {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px;
}

#composer .facture-summary-box {
  background: #ffffff !important;
  border: 1px solid #d7dfdc !important;
  border-radius: 16px !important;
  color: #17201e !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14) !important;
}

#composer .facture-summary-box strong {
  color: #17201e !important;
}

#composer .facture-summary-box strong.cyan {
  color: #08a0b9 !important;
}

/* ==========================================================================
   RESPONSIVE: TABLET & SMALL DESKTOP (841px to 1180px)
   ========================================================================== */

@media (min-width: 841px) and (max-width: 1180px) {
  #composer .composerShell {
    width: calc(100% - 24px) !important;
  }
  #composer .v86ProjectTypes {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #composer .v46ServicesScreen {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr) !important;
    gap: 10px !important;
  }
  #composer .v46SelectedColumn {
    min-width: 0 !important;
  }
}

/* ==========================================================================
   RESPONSIVE: MOBILE APP (max-width: 840px)
   V89 + V91 + V93 Exact 2-Line Article Layout + Fixed Scroll Area
   ========================================================================== */

@media (max-width: 840px) {
  /* Screen behaves as native app viewport */
  #composer.viewport {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    padding-top: calc(56px + 6px) !important;
    padding-bottom: calc(66px + max(8px, env(safe-area-inset-bottom)) + 6px) !important;
    overflow: hidden !important;
  }

  #composer .composerShell {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding-inline: 8px !important;
    width: 100% !important;
  }

  /* Compact header */
  #composer .composerShell .sectionHead {
    flex: 0 0 auto !important;
    margin: 0 0 6px !important;
    padding-inline: 2px !important;
  }

  #composer .composerShell .sectionHead h2 {
    font-size: 26px !important;
    line-height: 1 !important;
    margin: 1px 0 3px !important;
  }

  #composer .composerShell .sectionHead::before {
    font-size: 9px !important;
  }

  #composer .composerShell .sectionHead p,
  #composer .composerShell .sectionHead::after {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  /* Compact stepper */
  #composer .progress {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 0 6px !important;
    padding: 4px !important;
    min-height: 46px !important;
    grid-template-columns: 1fr 14px 1fr 14px 1fr !important;
  }

  #composer .progress button {
    min-height: 38px !important;
    grid-template-columns: 26px 1fr !important;
    padding: 4px 5px !important;
    gap: 0 5px !important;
  }

  #composer .progress button i {
    width: 25px !important;
    height: 25px !important;
    font-size: 8px !important;
  }

  #composer .progress button span {
    font-size: 9px !important;
  }

  #composer .progress button::after {
    display: none !important;
  }

  /* Main scrollable viewport */
  #composer .composerViewport {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 0 88px !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  #composer .composerViewport::-webkit-scrollbar {
    display: none !important;
  }

  /* ---------- MOBILE STEP 1: PROJECT ---------- */
  #composer .v86ProjectBlock {
    margin: 0 0 7px !important;
    padding: 9px !important;
    border-radius: 13px !important;
  }

  #composer .v86ProjectTypes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #composer .v86ProjectTypes button {
    width: 100% !important;
    height: 106px !important;
  }

  #composer .v86ProjectImage {
    height: 56px !important;
  }

  #composer .v86ProjectCardFoot {
    height: 50px !important;
    padding: 6px 7px !important;
  }

  #composer .v86LevelControls {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  #composer .v86LevelControls .v47LevelCounter {
    min-height: 48px !important;
    padding: 5px 6px 5px 9px !important;
  }

  #composer .v86SurfaceGrid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  #composer .v86SurfaceCard {
    min-height: 62px !important;
    padding: 7px !important;
    grid-template-columns: 34px minmax(0, 1fr) 108px !important;
    gap: 7px !important;
  }

  #composer .v86SurfaceIcon {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }

  #composer .v86SurfaceCard .v47InputShell {
    height: 40px !important;
  }

  #composer .v86TotalCard {
    padding: 9px !important;
    min-height: 72px !important;
  }

  #composer .v86TotalCard b {
    font-size: 20px !important;
  }

  #composer .v86ProjectFooter {
    position: sticky !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 80 !important;
    width: 100% !important;
    min-height: 64px !important;
    margin: 8px 0 0 !important;
    padding: 8px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #d4ded9 !important;
    border-radius: 13px !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .12) !important;
  }

  #composer .v86Reset {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-size: 0 !important;
  }

  #composer .v86Reset span {
    font-size: 19px !important;
  }

  #composer .v86Next {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }

  /* ---------- MOBILE STEP 2: V93 SERVICES SCREEN ---------- */
  #composer .composerViewport:has(.v46ServicesScreen) {
    overflow: hidden !important;
    padding-bottom: 0 !important;
    touch-action: none !important;
  }

  #composer .v46ServicesScreen {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: block !important;
  }

  #composer .v46ServicesScreen.v48StageAvailable .v46SelectedColumn {
    display: none !important;
  }

  #composer .v46ServicesScreen.v48StageSelected .v46AvailableColumn {
    display: none !important;
  }

  #composer .v46AvailableColumn,
  #composer .v46SelectedColumn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    margin: 0 !important;
  }

  #composer .v48MobileServiceProgress {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin: 0 0 8px !important;
    padding: 4px !important;
    border: 1px solid #d6dfdc !important;
    border-radius: 13px !important;
    background: #ffffff !important;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .08) !important;
  }

  #composer .v48MobileServiceProgress span {
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 10px !important;
    color: #66736e !important;
    font-size: 10px !important;
    font-weight: 850 !important;
  }

  #composer .v48MobileServiceProgress span b {
    width: 22px !important;
    height: 22px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: #eef2f0 !important;
    color: #66736e !important;
    font-size: 9px !important;
  }

  #composer .v48MobileServiceProgress span.active {
    color: #087b8e !important;
    background: #e8fafd !important;
    box-shadow: inset 0 0 0 1px #b8eaf2 !important;
  }

  #composer .v48MobileServiceProgress span.active b {
    background: var(--v86-cyan, #3bd4ea) !important;
    color: #062027 !important;
  }

  #composer .v48MobileServiceProgress span.done {
    color: #347b60 !important;
  }

  #composer .v48MobileServiceProgress span.done b {
    background: #e5f7ef !important;
    color: #177653 !important;
  }

  #composer .v48MobileServiceBack {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    min-height: 38px !important;
    margin: 0 0 8px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(255, 255, 255, .20) !important;
    border-radius: 10px !important;
    background: rgba(6, 14, 16, .82) !important;
    color: #f2f6f4 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    cursor: pointer;
  }

  #composer .v46AvailableScroll,
  #composer .v46SelectedScroll {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 180px !important;
    height: auto;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scrollbar-width: thin !important;
    padding: 6px !important;
  }

  #composer .v46AvailableScroll::-webkit-scrollbar,
  #composer .v46SelectedScroll::-webkit-scrollbar {
    width: 4px !important;
  }

  /* V93 EXACT 2-LINE ARTICLE LAYOUT FOR SELECTED CARDS */
  #composer .v91ServiceCard {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 7px !important;
    padding: 9px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 6px !important;
    row-gap: 8px !important;
    align-items: center !important;
    border: 1px solid #d3ddda !important;
    border-radius: 11px !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  #composer .v91ServiceHeader,
  #composer .v91ServiceFooter,
  #composer .v91ServiceActions {
    display: contents !important;
  }

  /* ROW 1 : designation */
  #composer .v91ServiceHeader > span {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid #e1e7e5 !important;
  }

  #composer .v91ServiceHeader b {
    display: block !important;
    width: 100% !important;
    color: #17201e !important;
    -webkit-text-fill-color: #17201e !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
  }

  #composer .v91ServiceHeader small {
    display: none !important;
  }

  /* ROW 2 : CONTROLS */
  #composer .v91ServiceControls {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #composer .v91ServiceControls .v76ScopePick {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
  }

  #composer .v91ServiceControls .v76ScopePick label {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border: 1px solid #cbd6d2 !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #596761 !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  #composer .v91ServiceControls .v76ScopePick label.on {
    border-color: #25c3dc !important;
    background: #e8fafd !important;
    color: #07798d !important;
  }

  #composer .v91ServiceControls .v76ScopePick input {
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    flex: 0 0 13px !important;
  }

  #composer .v91ServiceControls .v76NumberField,
  #composer .v91ServiceControls .v76ReferenceField {
    width: auto !important;
    max-width: 150px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    border-radius: 7px !important;
  }

  /* ROW 2 : PRICE */
  #composer .v91ServicePrice {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: end !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #069eb8 !important;
    -webkit-text-fill-color: #069eb8 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  #composer .v91ServiceCard:not(:has(.v91ServiceControls)) .v91ServicePrice {
    grid-column: 1 / 3 !important;
    justify-self: start !important;
  }

  /* ROW 2 : DETAILS */
  #composer .v91ServiceActions button[data-service-details] {
    grid-column: 3 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: end !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 6px !important;
    border: 1px solid #cbd6d2 !important;
    border-radius: 7px !important;
    background: #f7f9f8 !important;
    color: #34413d !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  /* ROW 2 : REMOVE (X) */
  #composer .v91ServiceActions button.remove {
    grid-column: 4 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: end !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid #efc7c7 !important;
    border-radius: 7px !important;
    background: #fff3f3 !important;
    color: #c74444 !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  /* STAGE 1 BOTTOM DOCK: count + Suivant */
  #composer .v48MobileServiceNext {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 116px !important;
    align-items: center !important;
    gap: 10px !important;
    position: fixed !important;
    z-index: 700 !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(var(--dock-h, 66px) + max(8px, env(safe-area-inset-bottom))) !important;
    min-height: 64px !important;
    padding: 8px 9px 8px 13px !important;
    border: 1px solid rgba(52, 202, 224, .48) !important;
    border-radius: 14px !important;
    background: #071214 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .30) !important;
    backdrop-filter: none !important;
  }

  #composer .v48MobileServiceNext small {
    display: block !important;
    color: #899691 !important;
    font-size: 8px !important;
    font-weight: 800 !important;
  }

  #composer .v48MobileServiceNext strong {
    display: block !important;
    margin-top: 2px !important;
    color: #f3f7f5 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  #composer .v48MobileServiceNext button {
    width: 116px !important;
    min-width: 116px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #3ccce2 !important;
    color: #062027 !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    cursor: pointer;
  }

  /* STAGE 2 BOTTOM DOCK: total + Continuer/Valider */
  #composer .v46TotalDock {
    position: fixed !important;
    z-index: 700 !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(var(--dock-h, 66px) + max(8px, env(safe-area-inset-bottom))) !important;
    width: auto !important;
    min-height: 64px !important;
    padding: 8px 9px 8px 13px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 116px !important;
    align-items: center !important;
    gap: 10px !important;
    border: 1px solid rgba(52, 202, 224, .48) !important;
    border-radius: 14px !important;
    background: #071214 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .30) !important;
    backdrop-filter: none !important;
  }

  #composer .v46TotalDock .nextBtn {
    width: 116px !important;
    min-width: 116px !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 10px !important;
  }

  /* ---------- MOBILE STEP 3: CONTACT ---------- */
  #composerBody:has(.contactForm) {
    padding: 10px !important;
    border-radius: 15px !important;
  }

  #composer .contactForm {
    padding: 12px !important;
    grid-template-columns: 1fr !important;
  }

  #composer .contactForm .full {
    grid-column: auto !important;
  }
}

/* Very Small Phones (<= 390px) */
@media (max-width: 390px) {
  #composer .v91ServiceCard {
    grid-template-columns: minmax(0, 1fr) auto 54px 32px !important;
    column-gap: 4px !important;
    padding: 8px !important;
  }

  #composer .v91ServiceHeader b {
    font-size: 12px !important;
  }

  #composer .v91ServiceControls .v76ScopePick {
    gap: 3px !important;
  }

  #composer .v91ServiceControls .v76ScopePick label {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 5px !important;
    font-size: 7.4px !important;
  }

  #composer .v91ServicePrice {
    font-size: 12px !important;
  }

  #composer .v91ServiceActions button[data-service-details] {
    width: 54px !important;
    min-width: 54px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 7.5px !important;
  }

  #composer .v91ServiceActions button.remove {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  #composer .v48MobileServiceNext,
  #composer .v46TotalDock {
    grid-template-columns: minmax(0, 1fr) 104px !important;
  }

  #composer .v48MobileServiceNext button,
  #composer .v46TotalDock .nextBtn {
    width: 104px !important;
    min-width: 104px !important;
  }
}

/* ==========================================================================
   COMPOSER VALIDATION & SHAKE ERROR ANIMATIONS
   ========================================================================== */

@keyframes composerShake {
  0%, 100% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-8px);
  }
  30% {
    transform: translateX(7px);
  }
  45% {
    transform: translateX(-6px);
  }
  60% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
  90% {
    transform: translateX(2px);
  }
}

#composer .composerShake,
#composer .composer-shake-error {
  animation: composerShake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

#composer .v47NeedsAttention {
  animation: composerShake 0.72s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
  border-color: rgba(255, 99, 132, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(255, 99, 132, 0.25),
    0 0 25px rgba(255, 99, 132, 0.3) !important;
}

[dir="ltr"] #composer .v47TypeRow.v47NeedsAttention,
[dir="ltr"] #composer .v86TypeBlock.v47NeedsAttention {
  border-color: rgba(255, 99, 132, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(255, 99, 132, 0.25),
    0 0 25px rgba(255, 99, 132, 0.3) !important;
  background: linear-gradient(90deg, rgba(255, 99, 132, 0.14), transparent 55%) !important;
}

[dir="rtl"] #composer .v47TypeRow.v47NeedsAttention,
[dir="rtl"] #composer .v86TypeBlock.v47NeedsAttention {
  border-color: rgba(255, 99, 132, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(255, 99, 132, 0.25),
    0 0 25px rgba(255, 99, 132, 0.3) !important;
  background: linear-gradient(-90deg, rgba(255, 99, 132, 0.14), transparent 55%) !important;
}

#composer .v86SurfaceCard.v47NeedsAttention,
#composer .v47LevelChip.v47NeedsAttention,
#composer .v47SurfaceCard.v47NeedsAttention {
  border-color: rgba(255, 99, 132, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(255, 99, 132, 0.25),
    0 0 25px rgba(255, 99, 132, 0.3) !important;
}

#composer .v46AvailableColumn.v47NeedsAttention,
#composer .v46ServicesScreen.v47NeedsAttention {
  border-color: rgba(255, 99, 132, 0.8) !important;
  box-shadow:
    0 0 0 3px rgba(255, 99, 132, 0.2),
    0 0 30px rgba(255, 99, 132, 0.2) !important;
}

#composer .v91ServiceCard.v47NeedsAttention,
#composer .v46BudgetField.v47NeedsAttention {
  border-color: rgba(255, 99, 132, 0.9) !important;
  box-shadow:
    0 0 0 3px rgba(255, 99, 132, 0.25),
    0 0 25px rgba(255, 99, 132, 0.3) !important;
}

#composer .progress button.composerShake {
  border-color: rgba(255, 99, 132, 0.9) !important;
  color: #ff6b81 !important;
}

#composer .contactForm.composerShake {
  border-color: rgba(255, 99, 132, 0.7) !important;
}


/* =========================================================
   UNIFIED DEVIS + CONTRACT DOCUMENT STAGE (final composer step)
   The document/contract classes below are intentionally NOT scoped to
   #composer: the same markup is reused, unchanged, by the read-only public
   dossier view (#publicQuoteView) opened from a shared ?quote= link.
   ========================================================= */
#composer .v47DocumentStage {
  width: min(100%, 930px);
  margin: 0 auto;
}
#composer .v47DocumentActions {
  position: sticky;
  top: 4px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(5, 10, 12, .92);
  backdrop-filter: blur(18px);
}
#composer .v47DocumentActions > div:first-child small {
  display: block;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}
#composer .v47DocumentActions > div:first-child b {
  display: block;
  color: #f3f6f5;
  font-size: 11px;
  margin-top: 2px;
}
#composer .v47SavedStatus {
  color: var(--green);
  font-size: 7.5px;
  min-height: 12px;
}
#composer .v47DocumentButtons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#composer .v47DocumentButtons button {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0d1517;
  color: #e9efed;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}
#composer .v47DocumentButtons button:hover {
  border-color: rgba(85, 220, 255, .4);
}
#composer .v47DocumentButtons .primary {
  border-color: rgba(85, 220, 255, .55);
  color: var(--cyan);
}

/* ---- Document look (shared by the composer stage and the public view) ---- */
.v47UnifiedDocument {
  background: #f6f7f5;
  color: #39413f;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .34);
}
.v47DocHeader {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  background: #e9efe9;
}
.v47DocCompany { min-width: 0 }
.v47DocHeader h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: .01em; color: #4b5351 }
.v47DocCompanyGrid {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 26px;
  row-gap: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: #4b5351;
  white-space: nowrap;
}
.v47DocCompanyGrid b { color: #3d4643; font-weight: 800 }
.v47DocLogo {
  width: 92px;
  height: auto;
  flex: 0 0 auto;
}
.v47DocSection {
  padding: 20px 24px;
  border-top: 1px solid #dfe4e1;
}
.v47DocSectionTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.v47DocSectionTitle h4 { margin: 0; font-size: 15px; color: #3d4643 }
.v47DocSectionTitle span { font-size: 9px; color: #7b8381 }
.v47ClientMeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef2ef;
  font-size: 12px;
}
.v47ClientMeta b { color: #414946 }
.v47DocTable { width: 100%; border-collapse: collapse; font-size: 12px }
.v47DocTable th { padding: 8px; background: #147e8e; color: #fff; text-align: left }
.v47DocTable td { padding: 8px; border-bottom: 1px solid #e1e5e3 }
.v47DocTable th:last-child,
.v47DocTable td:last-child { text-align: right }
.v47DocGrandTotal {
  margin: 12px 0 0 auto;
  width: min(320px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  background: #dceff2;
  font-size: 13px;
  font-weight: 900;
}
.v47ContractClause { margin-bottom: 10px }
.v47ContractClause h5 { margin: 0 0 3px; color: #147e8e; font-size: 12px }
.v47ContractClause p,
.v47ContractClause ul { margin: 0; font-size: 12px; line-height: 1.55; color: #59625f }
.v47Signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 22px;
}
.v47Signature {
  min-height: 90px;
  border-top: 1px solid #99a39f;
  padding-top: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: #68716e;
}

/* Contract intro + technical offer + NB block */
.v79ContractSection { padding-bottom: 28px }
.v79ContractIntro {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 126, 143, .16);
  border-radius: 10px;
  background: rgba(18, 126, 143, .035);
}
.v79ContractIntro p { margin: 3px 0; color: #46514e; font-size: 12px }
.v79TechnicalArticle > p { margin-bottom: 10px }
.v79ContractServices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.v79ContractService {
  min-width: 0;
  border: 1px solid rgba(18, 126, 143, .16);
  border-radius: 10px;
  background: #f8fbfb;
}
.v79ContractServiceHead {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 11px 11px 0;
}
.v79ContractServiceHead > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #127e8f;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}
.v79ContractService h6 { margin: 0 0 3px; color: #33403c; font-size: 13px; line-height: 1.3 }
.v79ContractService small {
  display: block;
  color: #127e8f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.v79ContractServiceBody { padding: 8px 11px 12px }
.v79ServiceLabel {
  display: block;
  margin: 8px 0 4px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #147e8e;
}
.v79ServiceLabel.inc { color: #266f52 }
.v79ServiceLabel.exc { color: #ad2626 }
.v79ContractServiceBody > p { margin: 0; color: #66716e; font-size: 12px; line-height: 1.5 }
.v79ListInc,
.v79ListExc { margin: 0; padding-left: 16px }
.v79ListInc li { margin: 2px 0; color: #59645f; font-size: 12px; line-height: 1.4 }
.v79ListExc li { margin: 2px 0; color: #9c3a3a; font-size: 12px; line-height: 1.4 }
.v79RedBox {
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(194, 62, 62, .35);
  border-radius: 8px;
  background: #fff5f5;
}

.v79ContractNb {
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid rgba(194, 62, 62, .62);
  border-radius: 10px;
  background: #fff1f1;
}
.v79ContractNb h5 { margin: 0 0 7px; color: var(--danger); font-size: 11px }
.v79NbIntro { margin: 0 0 8px; color: #6d6968; font-size: 9px }
.v81ContractOptionalList { display: grid; gap: 6px; margin-top: 7px }
.v81ContractOptionalRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(173, 38, 38, .14);
}
.v81ContractOptionalRow:last-child { border-bottom: 0 }
.v81ContractOptionalRow h6 { margin: 0; color: #4d5653; font-size: 10px }
.v81ContractOptionalRow span { color: #ad2626; font-size: 9px; font-weight: 800 }
.v81ContractOptionalActions { display: flex; gap: 6px; flex-wrap: wrap }
.v81ContractOptionalActions button,
.v81ContractOptionalActions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid rgba(173, 38, 38, .35);
  border-radius: 7px;
  background: #fff;
  color: #ad2626;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}
.v81ContractOptionalActions button.add,
.v81ContractOptionalActions a.add { background: #ad2626; border-color: #ad2626; color: #fff }

.v79Obligations { margin: 6px 0 0; padding-left: 19px }
.v79Obligations li { margin: 4px 0; color: #59635f; font-size: 12px; line-height: 1.5 }
.v79Signatures { margin-top: 20px }
.v79Signatures .v47Signature { min-height: 110px; line-height: 1.6 }

@media (max-width: 840px) {
  #composer .v47DocumentActions { position: sticky; top: 0; align-items: flex-start; display: block }
  #composer .v47DocumentButtons { width: 100%; margin-top: 7px }
  #composer .v47DocumentButtons button { flex: 1 1 auto }
  .v47ClientMeta,
  .v47Signatures,
  .v79ContractServices { grid-template-columns: 1fr }
  .v79ContractIntro,
  .v79ContractService,
  .v79ContractNb { padding: 11px }
  .v47DocHeader { flex-direction: column }
  .v47DocCompanyGrid { grid-template-columns: 1fr; white-space: normal }
}

/* Read-only public dossier page, served at /devis/<uuid>/ (public_quote.html) */
#publicQuoteView {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: auto;
  background: #eef3f3;
  padding: 32px 16px 60px;
}
.publicQuoteShell { width: min(930px, 100%); margin: 0 auto }

/* ==========================================================================
   FLOATING AUTH BUTTON (BOTTOM RIGHT)
   ========================================================================== */
.floating-auth-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

[dir="ltr"] .floating-auth-wrap {
  right: 24px;
  left: auto;
}

[dir="rtl"] .floating-auth-wrap {
  left: 24px;
  right: auto;
}

.floating-auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 14px;
  background: rgba(13, 22, 28, 0.88);
  border: 1px solid rgba(0, 245, 255, 0.45);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 245, 255, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.floating-auth-btn:hover {
  color: #00f5ff;
  border-color: #00f5ff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 26px rgba(0, 245, 255, 0.45);
}

.floating-auth-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 245, 255, 0.15);
  color: #00f5ff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.floating-auth-btn:hover .floating-auth-icon {
  background: #00f5ff;
  color: #080e12;
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.8);
}

.floating-auth-label {
  white-space: nowrap;
}

/* Dashboard variant for logged in user */
.floating-auth-dash {
  border-color: rgba(184, 107, 255, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(184, 107, 255, 0.22);
}

.floating-auth-dash:hover {
  color: #b86bff;
  border-color: #b86bff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 26px rgba(184, 107, 255, 0.45);
}

.floating-auth-dash .floating-auth-icon {
  background: rgba(184, 107, 255, 0.15);
  color: #b86bff;
}

.floating-auth-dash:hover .floating-auth-icon {
  background: #b86bff;
  color: #080e12;
  box-shadow: 0 0 12px rgba(184, 107, 255, 0.8);
}

@media (max-width: 640px) {
  .floating-auth-wrap {
    bottom: 18px;
    right: 16px;
  }
  [dir="ltr"] .floating-auth-wrap {
    right: 16px;
    left: auto;
  }
  [dir="rtl"] .floating-auth-wrap {
    left: 16px;
    right: auto;
  }
  .floating-auth-btn {
    padding: 8px 14px 8px 10px;
    font-size: 0.8rem;
  }
  .floating-auth-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
}

