/* Language switcher, quote dialog and right-to-left support. Unlayered on purpose: it wins over the layered base. */

@font-face { font-family: "Cairo"; src: url("../assets/fonts/cairo.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

/* ===== language switcher ===== */
.nav__lang { display: flex; gap: 4px; margin-inline-start: auto; margin-inline-end: clamp(12px, 2vw, 32px); }
.nav__lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; font-weight: 500; font-size: var(--step-small); color: var(--half-white); text-decoration: none; position: relative; }
.nav__lang a[aria-current="true"] { color: var(--half-white); font-weight: 700; }
.nav__lang a[aria-current="true"]::after { content: ""; position: absolute; inset-inline: 8px; bottom: 6px; height: 3px; background: var(--torch); }
@media (hover: hover) and (pointer: fine) { .nav__lang a:hover { color: var(--torch); } }
.nav { gap: 8px; }
@media (min-width: 900px) {
  .nav { justify-content: flex-start; }
  .nav ul:not(.nav__lang) { margin-inline-start: auto; }
  .nav__lang { margin-inline-start: 0; margin-inline-end: 0; order: 3; margin-inline-start: clamp(16px, 2vw, 32px); }
}
@media (max-width: 899px) { .nav__lang { order: 2; } .nav__menu { order: 3; } }

/* ===== quote dialog ===== */
.quote { border: 0; padding: 0; margin: auto; width: min(680px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; background: var(--half-white); color: var(--onyx); border-radius: 0; opacity: 0; transform: translateY(24px); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), overlay 240ms allow-discrete, display 240ms allow-discrete; }
.quote[open] { opacity: 1; transform: none; }
@starting-style { .quote[open] { opacity: 0; transform: translateY(24px); } }
.quote::backdrop { background: rgb(39 42 49 / 0.86); opacity: 0; transition: opacity 240ms var(--ease-out), overlay 240ms allow-discrete, display 240ms allow-discrete; }
.quote[open]::backdrop { opacity: 1; }
@starting-style { .quote[open]::backdrop { opacity: 0; } }
.quote form { padding: clamp(20px, 4vw, 40px); display: grid; gap: 20px; }
.quote__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.quote h2 { font-size: var(--step-head); color: var(--onyx); }
.quote__close { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--onyx); color: var(--half-white); border: 0; cursor: pointer; transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.quote__close svg { width: 22px; height: 22px; }
.quote__close:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .quote__close:hover { background: var(--torch); } }
.quote__dims { background: var(--onyx); color: var(--half-white); padding: 12px 16px; font-weight: 500; }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qf { display: grid; gap: 6px; font-weight: 500; font-size: var(--step-small); color: var(--onyx); }
.qf--wide { grid-column: 1 / -1; }
.qf input, .qf select, .qf textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: #fff; color: var(--onyx); border: 0; border-radius: 0; font-size: 1rem; box-shadow: inset 0 0 0 2px #c4c5c7; transition: box-shadow 160ms var(--ease-out); }
.qf textarea { resize: vertical; min-height: 110px; }
.qf input:focus-visible, .qf select:focus-visible, .qf textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--torch); }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; left: -9999px; }
.quote__note { font-size: var(--step-small); color: var(--field-muted); min-height: 1.5em; }
.quote__note.is-error { color: #b3141b; font-weight: 500; }
.quote__note.is-ok { color: #1c6b3a; font-weight: 500; }
.quote__note a { color: inherit; }
.quote .btn { justify-self: start; }
.quote form.is-busy .btn { opacity: 0.6; pointer-events: none; }
@media (max-width: 640px) { .quote__grid { grid-template-columns: 1fr; } .quote .btn { width: 100%; } }

/* ===== right-to-left (Arabic) ===== */
[dir="rtl"] {
  --font-display: "Cairo", "Roboto Condensed", sans-serif;
  --font-text: "Cairo", "Roboto", system-ui, sans-serif;
}
[dir="rtl"] body { line-height: 1.7; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.2; text-transform: none; }
[dir="rtl"] .btn svg, [dir="rtl"] .crow--hello .round svg { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { [dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); } }
[dir="rtl"] .hero__name, [dir="rtl"] .footer__name, [dir="rtl"] .nav__brand { direction: ltr; }   /* the brand wordmark is Latin */
[dir="rtl"] .hero__lead { max-width: 30ch; }
[dir="rtl"] .hero h1 { line-height: 1.15; }
[dir="rtl"] .chapter li, [dir="rtl"] .panel li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .chapter li::before, [dir="rtl"] .panel li::before { left: auto; right: 0; transform: scaleX(-1); }
[dir="rtl"] .progress, [dir="rtl"] .montage__beam { transform-origin: right; }
[dir="rtl"] .nav ul:not(.nav__lang) a::after { transform-origin: right; }
[dir="rtl"] .drawing, [dir="rtl"] .montage__art, [dir="rtl"] .proj__plate { direction: ltr; }  /* drawings are not mirrored */
[dir="rtl"] .config__draw { direction: rtl; }
[dir="rtl"] .field label { direction: rtl; }
[dir="rtl"] .field input[type="range"] { direction: ltr; }
[dir="rtl"] .m-text, [dir="rtl"] .d-label { font-family: "Cairo", "Roboto Condensed", sans-serif; letter-spacing: 0; }
[dir="rtl"] .quote__close { margin-inline-start: auto; }
[dir="rtl"] .quote .btn { justify-self: start; }
[dir="rtl"] .footer__tag { direction: rtl; }
[dir="rtl"] .nav__lang a[lang="ar"] { font-family: "Cairo", sans-serif; }


/* ===== SINAA pop-up: onyx panel, a torch-red beam welded across the top, BAYTIMOD × SINAA lockup,
   big red dates, brand chevrons on a conveyor. Each part lands in turn every time the dialog opens. ===== */
.promo { border: 0; padding: 0; margin: auto; width: min(640px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; background: transparent; color: var(--half-white); opacity: 0; transform: translateY(36px) scale(0.96); transition: opacity 360ms var(--ease-out), transform 560ms var(--ease-out), overlay 360ms allow-discrete, display 360ms allow-discrete; }
.promo[open] { opacity: 1; transform: none; }
@starting-style { .promo[open] { opacity: 0; transform: translateY(36px) scale(0.96); } }
.promo::backdrop { background: radial-gradient(80% 60% at 50% 40%, rgb(231 30 37 / 0.16), transparent 70%), rgb(20 21 25 / 0.82); backdrop-filter: blur(6px); opacity: 0; transition: opacity 360ms var(--ease-out), overlay 360ms allow-discrete, display 360ms allow-discrete; }
.promo[open]::backdrop { opacity: 1; }
@starting-style { .promo[open]::backdrop { opacity: 0; } }
.promo__panel {
  position: relative; isolation: isolate; overflow: clip; display: grid; justify-items: center; text-align: center; gap: 18px;
  padding: clamp(48px, 6vw, 68px) clamp(24px, 6vw, 64px) clamp(32px, 5vw, 52px);
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--torch) 24%, transparent), transparent 62%), var(--onyx);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ardesia) 80%, transparent), 0 40px 120px rgb(0 0 0 / 0.6);
}
/* the red beam: drawn left to right like a weld seam, with a white-hot head */
.promo__beam { position: absolute; inset: 0 0 auto; height: 6px; background: var(--torch); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .promo__beam { transform-origin: right; }
.promo__beam::after { content: ""; position: absolute; inset-block: -3px; inset-inline-end: -2px; width: 18px; border-radius: 50%; background: radial-gradient(closest-side, #fff, #ffd27a 45%, transparent); filter: blur(1px); opacity: 0; }
.promo[open] .promo__beam { animation: promo-beam 700ms var(--ease-io) 150ms forwards; }
.promo[open] .promo__beam::after { animation: promo-head 700ms linear 150ms; }
@keyframes promo-beam { to { transform: scaleX(1); } }
@keyframes promo-head { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
/* brand chevrons on the side, rolling like a conveyor */
.promo__pattern { position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: 64px; overflow: hidden; opacity: 0.22; pointer-events: none; mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.promo__pattern::before { content: ""; position: absolute; inset: -60px; background-image: url("../assets/brand/pattern.svg"); background-size: 26px 29px; animation: promo-conveyor 6s linear infinite; }
@keyframes promo-conveyor { to { transform: translateY(58px); } }
.promo__close { position: absolute; top: 18px; inset-inline-end: 14px; width: 44px; height: 44px; background: color-mix(in oklab, var(--ardesia) 70%, var(--onyx)); }
/* lockup: BAYTIMOD mark × SINAA logo */
.promo__lockup { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 22px); margin-bottom: 6px; }
.promo__mark { width: 64px; display: grid; color: var(--half-white); }
.promo__mark svg { width: 100%; height: auto; animation: orb-glow 3.2s ease-in-out 1.6s infinite; }
.promo__x { position: relative; width: 18px; height: 18px; }
.promo__x::before, .promo__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 3px; background: var(--torch); translate: -50% -50%; rotate: 45deg; }
.promo__x::after { rotate: -45deg; }
.promo__logo { position: relative; display: block; width: clamp(190px, 42vw, 300px); overflow: hidden; }
.promo__logo img { display: block; width: 100%; height: auto; }
.promo__logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.55) 50%, transparent 65%); translate: -120% 0; }
.promo__when { display: flex; align-items: baseline; gap: 18px; margin-block: 10px 4px; padding: 14px 26px; border-inline-start: 4px solid var(--torch); background: linear-gradient(90deg, rgb(255 255 255 / 0.06), transparent); text-align: start; }
.promo__days { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 2.4rem + 4vw, 5rem); line-height: 0.9; color: var(--torch); white-space: nowrap; }
.promo__month { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); text-transform: uppercase; letter-spacing: 0.06em; }
.promo__place { color: var(--muted); font-size: var(--step-small); }
.promo__count { font-family: var(--font-display); font-weight: 700; font-size: var(--step-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--half-white); display: inline-flex; align-items: center; gap: 10px; }
.promo__count::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--torch); box-shadow: 0 0 0 0 var(--torch); animation: promo-pulse 1.6s ease-out infinite; }
@keyframes promo-pulse { to { box-shadow: 0 0 0 12px transparent; } }
.promo__lead { color: var(--muted); max-width: 38ch; }
.promo__actions { display: grid; justify-items: center; gap: 6px; margin-top: 8px; }
.promo .more { justify-self: center; }
.promo .sparks--local { display: block; }
/* entrance choreography: mark drops, × spins in, the SINAA logo is wiped in and polished, then the rest rises */
.promo[open] .promo__mark { animation: promo-drop 620ms var(--ease-out) 380ms both; }
.promo[open] .promo__x { animation: promo-spin 520ms var(--ease-out) 620ms both; }
.promo[open] .promo__logo { animation: promo-wipe 700ms var(--ease-io) 760ms both; }
.promo[open] .promo__logo::after { animation: promo-shine 900ms var(--ease-out) 1400ms; }
.promo[open] .promo__panel > :is(.promo__when, .promo__actions) { animation: promo-rise 640ms var(--ease-out) both; }
.promo[open] .promo__when { animation-name: promo-slide; animation-delay: 1000ms; }
.promo[open] .promo__actions { animation-delay: 1180ms; }
@keyframes promo-drop { from { opacity: 0; transform: translateY(-28px) scale(0.7); } 70% { transform: translateY(3px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes promo-spin { from { opacity: 0; transform: rotate(-180deg) scale(0); } to { opacity: 1; transform: none; } }
@keyframes promo-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes promo-shine { to { translate: 120% 0; } }
@keyframes promo-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes promo-slide { from { opacity: 0; transform: translateX(-24px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
[dir="rtl"] .promo__when { background: linear-gradient(270deg, rgb(255 255 255 / 0.06), transparent); }
@media (max-width: 640px) { .promo .btn { width: 100%; } .promo__actions { justify-items: stretch; width: 100%; } .promo__pattern { width: 28px; } .promo__mark { width: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .promo, .promo::backdrop { transition: none; }
  .promo__pattern::before, .promo__count::before, .promo__mark svg { animation: none; }
  .promo[open] :is(.promo__beam, .promo__beam::after, .promo__mark, .promo__x, .promo__logo, .promo__logo::after),
  .promo[open] .promo__panel > * { animation: none; }
  .promo__beam { transform: none; }
}
/* SINAA logo on the Événements spotlight */
.spot__logo { width: clamp(200px, 30vw, 340px); height: auto; }

/* ===== devis page: hero, form card + "what to prepare" aside, contact band ===== */
.dhero { position: relative; isolation: isolate; overflow: clip; min-height: clamp(340px, 52svh, 480px); display: grid; align-items: end; padding: clamp(110px, 14vw, 150px) 0 clamp(36px, 6vw, 64px); background: var(--onyx); color: var(--half-white); }
.dhero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.dhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(39 42 49 / 0.72), rgb(39 42 49 / 0.9)); }
.dhero::after { content: ""; position: absolute; inset-block-end: 0; inset-inline: 0; height: 6px; background: var(--torch); }
.dhero__inner { display: grid; gap: 14px; }
.dhero__crumb { font-size: var(--step-small); color: var(--muted); }
.dhero__crumb a { color: var(--half-white); }
.dhero h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5rem); }
.dhero__lead { color: var(--muted); max-width: 58ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }

.devis { padding-block: clamp(40px, 7vw, 88px); background: var(--onyx); color: var(--half-white); }
.devis__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3.5vw, 40px); align-items: start; }
.devis .quote__note { color: var(--muted); }
.devis .quote__note.is-error { color: #ff8a8e; }
.devis .quote__note.is-ok { color: #7fd6a0; }
.devis .quote__note a { color: var(--half-white); }
.qf input::placeholder, .qf textarea::placeholder { color: #8a8c90; }

.devis__side { display: grid; gap: 20px; position: sticky; top: 96px; }
.devis__prep h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); margin-bottom: 18px; }
.devis__check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.devis__check li { position: relative; padding-inline-start: 30px; }
.devis__check li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.2em; width: 18px; height: 10px; border-inline-start: 3px solid var(--torch); border-bottom: 3px solid var(--torch); transform: rotate(-45deg); transform-origin: center; }
[dir="rtl"] .devis__check li::before { transform: rotate(45deg); }
.devis__lock { margin-top: 20px; padding: 14px 16px; background: var(--onyx); color: var(--muted); font-size: var(--step-small); display: flex; gap: 10px; align-items: center; }
.devis__lock::before { content: ""; flex: none; width: 14px; height: 16px; background: var(--torch); clip-path: polygon(0 45%, 15% 45%, 15% 25%, 30% 5%, 70% 5%, 85% 25%, 85% 45%, 100% 45%, 100% 100%, 0 100%, 0 45%, 30% 45%, 30% 28%, 38% 18%, 62% 18%, 70% 28%, 70% 45%, 0 45%); }

.devis__band { background: var(--onyx); color: var(--half-white); text-align: center; padding-block: clamp(28px, 4vw, 44px); border-top: 6px solid var(--torch); }
.devis__band .wrap { display: grid; justify-items: center; gap: 6px; }
.devis__band-t { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.devis__band a { color: var(--half-white); }
@media (hover: hover) and (pointer: fine) { .devis__band a:hover, .dhero__crumb a:hover { color: var(--torch); } }

@media (max-width: 899px) {
  .devis__grid { grid-template-columns: 1fr; }
  .devis__side { position: static; }
}
@media (max-width: 560px) {
  }

/* ===== sub-pages: identity pattern in the hero, active nav item, devis call in the nav, closing band ===== */
.dhero__pattern { position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: clamp(80px, 14vw, 220px); overflow: hidden; opacity: 0.5; pointer-events: none; mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.dhero__pattern::before { content: ""; position: absolute; inset: -60px; background-image: url("../assets/brand/pattern.svg"); background-size: 39px 44px; animation: promo-conveyor 5s linear infinite; }
.dhero h1 { position: relative; padding-inline-start: 20px; }
.dhero h1::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 0.08em 0.12em; width: 6px; background: var(--torch); }
.nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav ul a.nav__cta { padding: 8px 16px; background: var(--torch); color: var(--half-white); text-decoration: none; transition: background-color 160ms var(--ease-out); }
.nav ul a.nav__cta::after { display: none; }
.nav ul a.nav__cta[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--half-white); }
@media (hover: hover) and (pointer: fine) { .nav ul a.nav__cta:hover { background: color-mix(in oklab, var(--torch) 80%, #000); } }
.subpage .work { padding-block-start: clamp(40px, 6vw, 72px); }
.subpage .contact { padding-block-end: clamp(24px, 4vw, 64px); }
.pband { background: var(--surface); border-top: 6px solid var(--torch); padding-block: clamp(32px, 5vw, 56px); }
.pband__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.pband__t { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1; }
@media (prefers-reduced-motion: reduce) { .dhero__pattern::before { animation: none; } }
@media (max-width: 640px) { .dhero__pattern { width: 56px; opacity: 0.35; } .pband .btn { width: 100%; } }

/* ===== events page: SINAA 2026 hero while the fair is upcoming or running ===== */
.dhero[hidden] { display: none; }
.ehero { position: relative; isolation: isolate; overflow: clip; min-height: min(100svh, 820px); display: grid; align-items: center; padding: clamp(110px, 14vw, 150px) 0 clamp(48px, 7vw, 88px); color: var(--half-white); text-align: center;
  background: radial-gradient(90% 70% at 50% 20%, color-mix(in srgb, var(--torch) 30%, transparent), transparent 65%), var(--onyx); }
.ehero::after { content: ""; position: absolute; inset-block-end: 0; inset-inline: 0; height: 6px; background: var(--torch); }
.ehero__glow { position: absolute; z-index: -1; inset: auto 0 -30% 0; height: 60%; background: radial-gradient(50% 60% at 50% 100%, rgb(231 30 37 / 0.35), transparent 70%); pointer-events: none; }
.ehero__inner { display: grid; justify-items: center; gap: clamp(16px, 2.4vw, 26px); }
.ehero__lockup { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 32px); padding: clamp(18px, 3vw, 32px) clamp(22px, 4vw, 48px); background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ardesia) 80%, transparent), 0 30px 80px -30px rgb(231 30 37 / 0.6); }
.ehero__mark { width: clamp(48px, 7vw, 84px); display: grid; color: var(--half-white); }
.ehero__mark svg { animation: orb-glow 3.2s ease-in-out infinite; }
.ehero__mark svg { width: 100%; height: auto; }
.ehero__logo { display: block; width: clamp(200px, 40vw, 440px); height: auto; }
.ehero h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4.6rem); max-width: 18ch; }
.ehero__when { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); padding: 14px 28px; border-inline-start: 6px solid var(--torch); background: linear-gradient(90deg, rgb(255 255 255 / 0.08), transparent); text-align: start; }
[dir="rtl"] .ehero__when { background: linear-gradient(270deg, rgb(255 255 255 / 0.08), transparent); }
.ehero__days { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.6rem, 2.4rem + 5vw, 6.5rem); line-height: 0.85; color: var(--torch); white-space: nowrap; }
.ehero__month { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.06em; }
.ehero__place { color: var(--muted); }
.ehero__actions { margin-top: 6px; }
.ehero .dhero__crumb { justify-self: start; }
.ehero__lockup, .ehero h1, .ehero__when, .promo__count, .ehero__actions { animation: rise 800ms var(--ease-out) both; }
.ehero h1 { animation-delay: 120ms; }
.ehero__when { animation-delay: 220ms; }
.ehero .promo__count { animation-delay: 300ms; }
.ehero__actions { animation-delay: 380ms; }
@media (prefers-reduced-motion: reduce) { .ehero * { animation: none !important; } }
@media (max-width: 640px) { .ehero__lockup { flex-wrap: wrap; } .ehero .btn { width: 100%; } .ehero__actions { width: 100%; } }

/* ===== devis form v2: two steps, dark fields, the need shown visually ===== */
.devis__form { display: grid; gap: 28px; min-width: 0; }
.devis__form.is-busy { opacity: 0.6; pointer-events: none; }
.step { border: 0; margin: 0; padding: clamp(22px, 4vw, 44px); min-width: 0; display: grid; gap: 22px; background: var(--surface); border-top: 6px solid var(--torch); }
.step[hidden] { display: none; }
.step__t { display: flex; align-items: baseline; gap: 14px; padding: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1; float: left; width: 100%; }
.step__t b { color: var(--torch); font-size: 0.7em; }
.step__lead { color: var(--muted); margin-top: -10px; }
.step__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.step[data-step="1"] .step__nav { justify-content: flex-end; }
.step__back { background: none; border: 0; color: var(--half-white); font: inherit; font-weight: 500; cursor: pointer; padding: 10px 0; }

/* stepper */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.js .devis__form:not(.is-stepped) .steps { display: none; }
.steps__i { display: flex; align-items: center; gap: 12px; padding: 14px 0 0; border-top: 4px solid var(--ardesia); color: var(--muted); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; transition: border-color 300ms var(--ease-out), color 300ms var(--ease-out); }
.steps__i b { font-size: 1.3rem; }
.steps__i.is-on { border-color: var(--torch); color: var(--half-white); }
.steps__i.is-on b { color: var(--torch); }

/* dark fields */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fd { display: grid; gap: 8px; position: relative; min-width: 0; }
.fd--wide { grid-column: 1 / -1; }
.fd > span { font-size: var(--step-small); font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.fd input, .fd select, .fd textarea { width: 100%; min-height: 54px; padding: 12px 16px; background: var(--onyx); color: var(--half-white); border: 0; border-radius: 0; font: inherit; font-size: 1.05rem; box-shadow: inset 0 -2px 0 var(--ardesia); transition: box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.fd select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--torch) 50%), linear-gradient(-45deg, transparent 50%, var(--torch) 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 44px; }
[dir="rtl"] .fd select { background-position: 22px 50%, 16px 50%; padding-inline: 44px 16px; }
.fd select option { background: var(--onyx); color: var(--half-white); }
.fd textarea { resize: vertical; min-height: 120px; }
.fd input::placeholder, .fd textarea::placeholder { color: #7d8087; }
.fd input:focus-visible, .fd select:focus-visible, .fd textarea:focus-visible { outline: none; box-shadow: inset 0 -3px 0 var(--torch); background: color-mix(in oklab, var(--onyx) 85%, #000); }
.fd--unit em { position: absolute; inset-inline-end: 16px; bottom: 16px; font-style: normal; color: var(--muted); pointer-events: none; }
.fd--unit input { padding-inline-end: 40px; }

/* recap of step 1 */
.recap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--onyx); border-inline-start: 4px solid var(--torch); color: var(--muted); font-size: var(--step-small); clear: both; }
.recap__edit { background: none; border: 0; color: var(--half-white); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--torch); text-underline-offset: 4px; cursor: pointer; }
.block { display: grid; gap: 14px; clear: both; }
.block__t { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem; }

/* project type tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 124px; padding: 16px 10px; background: var(--onyx); text-align: center; font-weight: 500; font-size: var(--step-small); line-height: 1.25; cursor: pointer; box-shadow: inset 0 0 0 1px var(--ardesia); transition: box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.tile svg { width: 46px; height: 46px; fill: none; stroke: var(--half-white); stroke-width: 2; stroke-linejoin: round; stroke-linecap: square; transition: stroke 160ms var(--ease-out); }
.tile input, .chip input, .drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile:has(input:checked) { box-shadow: inset 0 0 0 3px var(--torch); background: color-mix(in oklab, var(--torch) 14%, var(--onyx)); }
.tile:has(input:checked) svg { stroke: var(--torch); }
.tile:has(input:checked)::after { content: ""; position: absolute; top: 8px; inset-inline-end: 8px; width: 16px; height: 16px; background: var(--torch); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.tile:has(input:focus-visible), .chip:has(input:focus-visible), .drop:has(input:focus-visible) { outline: 3px solid var(--torch); outline-offset: 3px; }
.tile:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tile:hover { box-shadow: inset 0 0 0 1px var(--half-white); } .tile:has(input:checked):hover { box-shadow: inset 0 0 0 3px var(--torch); } }

/* dimensions + live drawing */
.dims { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.dims__in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dims__draw { background: var(--onyx); padding: 10px; box-shadow: inset 0 0 0 1px var(--ardesia); transition: opacity 240ms var(--ease-out); }
.dims__draw.is-ghost { opacity: 0.45; }
.dims__draw svg { display: block; width: 100%; height: auto; }
[dir="rtl"] .dims__draw { direction: ltr; }
.dims__sum { grid-column: 2; font-family: var(--font-display); font-weight: 700; color: var(--torch); letter-spacing: 0.04em; min-height: 1.4em; margin-top: -6px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; background: var(--onyx); box-shadow: inset 0 0 0 1px var(--ardesia); font-weight: 500; cursor: pointer; transition: box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.chip i { width: 16px; height: 16px; background: var(--sw); box-shadow: 0 0 0 2px var(--onyx), 0 0 0 3px var(--ardesia); }
.chip:has(input:checked) { box-shadow: inset 0 0 0 3px var(--torch); background: color-mix(in oklab, var(--torch) 14%, var(--onyx)); }
@media (hover: hover) and (pointer: fine) { .chip:hover { box-shadow: inset 0 0 0 1px var(--half-white); } .chip:has(input:checked):hover { box-shadow: inset 0 0 0 3px var(--torch); } }

/* drop zone */
.drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 16px; background: var(--onyx); border: 2px dashed var(--ardesia); text-align: center; cursor: pointer; transition: border-color 160ms var(--ease-out); }
.drop svg { width: 38px; height: 38px; fill: none; stroke: var(--torch); stroke-width: 2.4; stroke-linecap: square; }
.drop__t { font-weight: 500; }
.drop__s { font-size: var(--step-small); color: var(--muted); }
.drop.has-file { border-style: solid; border-color: var(--torch); }
@media (hover: hover) and (pointer: fine) { .drop:hover { border-color: var(--half-white); } }

/* aside */
.devis__prep { padding: clamp(22px, 3vw, 32px); background: var(--surface); }
.devis__reply { display: grid; gap: 4px; padding: 22px 26px; background: var(--torch); color: var(--half-white); }
.devis__reply b { font-family: var(--font-display); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 0.9; }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dims { grid-template-columns: 1fr; } .dims__sum { grid-column: 1; } }
@media (max-width: 560px) {
  .fgrid, .dims__in { grid-template-columns: 1fr 1fr; }
  .fgrid .fd { grid-column: 1 / -1; }
  .step__nav .btn { width: 100%; }
  .steps__i span { font-size: 0.85rem; }
  .tile { min-height: 108px; }
}
/* devis: five project types, fields that follow the type, the drawing re-welds on change */
.tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fd > span[hidden], .fd[hidden], .dims__draw[hidden] { display: none; }
.dims__draw.weld .d-steel, .dims__draw.weld .d-ghost-s { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: weld 1.1s var(--ease-io) forwards; }
.dims__draw.weld .d-ghost-s { animation-duration: 0.8s; }
.dims__draw.weld .d-purlin { opacity: 0; animation: dims-in 300ms 900ms forwards; }
@keyframes dims-in { to { opacity: 1; } }
.chip--opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--torch); background: color-mix(in oklab, var(--torch) 14%, var(--onyx)); }
.chip--opt::before { content: ""; width: 16px; height: 16px; box-shadow: inset 0 0 0 2px var(--ardesia); }
.chip--opt:has(input:checked)::before { background: var(--torch); box-shadow: none; clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
/* ===== devis: live 3D preview, always on screen on the right ===== */
.show { display: grid; gap: 12px; padding: clamp(16px, 2vw, 22px); background: var(--onyx); box-shadow: inset 0 0 0 1px var(--ardesia), inset 0 6px 0 var(--torch); }
.show__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-top: 6px; }
.show__type { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); text-transform: uppercase; letter-spacing: 0.03em; }
.show__sum { font-family: var(--font-display); font-weight: 700; color: var(--torch); letter-spacing: 0.04em; }
.show__draw { position: relative; aspect-ratio: 800 / 520; background: radial-gradient(90% 80% at 50% 60%, color-mix(in oklab, var(--ardesia) 40%, var(--onyx)), var(--onyx)); transition: opacity 240ms var(--ease-out); }
.show__draw.is-ghost { opacity: 0.6; }
.show__draw svg { display: block; width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .show__draw { direction: ltr; }
.show__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.show__tags li { padding: 5px 10px; font-size: var(--step-small); font-weight: 500; background: var(--surface); border-inline-start: 3px solid var(--torch); }
.show__tags:empty { display: none; }
/* line styles of the 3D drawing */
.i-ground { fill: color-mix(in oklab, var(--ardesia) 55%, var(--onyx)); stroke: none; }
.i-steel { fill: none; stroke: var(--torch); stroke-width: 3.2; stroke-linecap: square; stroke-linejoin: miter; }
.i-steel--in { stroke-width: 2.2; }
.i-line { fill: none; stroke: var(--half-white); stroke-width: 1.6; }
.i-thin { fill: none; stroke: #9a9ca0; stroke-width: 1.1; }
.i-floor { fill: color-mix(in srgb, var(--torch) 30%, transparent); stroke: var(--torch); stroke-width: 2; }
.i-wall { fill: color-mix(in srgb, var(--half-white) 16%, transparent); stroke: var(--half-white); stroke-width: 1.6; stroke-linejoin: round; }
.i-roof { fill: color-mix(in srgb, var(--half-white) 12%, transparent); stroke: none; }
.i-ghostface { fill: color-mix(in oklab, var(--ardesia) 70%, var(--onyx)); stroke: #6b6d71; stroke-width: 1.2; }
.i-label { fill: var(--half-white); font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-anchor: middle; paint-order: stroke; stroke: var(--onyx); stroke-width: 4px; }
[dir="rtl"] .i-label { font-family: "Cairo", "Roboto Condensed", sans-serif; letter-spacing: 0; }
/* weld animation: lines are drawn, faces fade in, each piece at its own delay */
.show__draw .a path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: weld 700ms var(--ease-io) var(--d, 0ms) forwards; }
.show__draw .a :is(.i-floor, .i-wall, .i-roof) { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transform-box: fill-box; transform-origin: bottom; animation: show-rise 600ms var(--ease-out) var(--d, 0ms) forwards; }
.show__draw .a .i-label { opacity: 0; animation: dims-in 400ms var(--ease-out) 900ms forwards; }
.show__draw .a .i-steel { filter: drop-shadow(0 0 0 transparent); animation: weld 700ms var(--ease-io) var(--d, 0ms) forwards, show-glow 900ms ease-out var(--d, 0ms); }
@keyframes show-rise { from { opacity: 0; transform: scaleY(0.2); } to { opacity: 1; transform: none; } }
@keyframes show-glow { 0%, 60% { filter: drop-shadow(0 0 6px #ffb347); } 100% { filter: drop-shadow(0 0 0 transparent); } }
.devis__prep summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.devis__prep summary::-webkit-details-marker { display: none; }
.devis__prep summary h3 { margin: 0; font-size: 1.15rem; }
.devis__prep summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; color: var(--torch); line-height: 1; }
.devis__prep[open] summary::after { content: "–"; }
.devis__prep[open] summary { margin-bottom: 18px; }
/* single column: the preview becomes a slim band that stays at the top while the client fills the form */
@media (max-width: 1100px) {
  .devis__side { display: contents; }
  .show { order: -1; position: sticky; top: var(--nav-h, 72px); z-index: 4; box-shadow: inset 0 0 0 1px var(--ardesia), inset 0 4px 0 var(--torch), 0 12px 24px rgb(0 0 0 / 0.35); grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 4px 12px; padding: 10px 12px; }
  .show__head { grid-column: 1; display: grid; padding-top: 4px; }
  .show__type { font-size: 1.05rem; }
  .show__sum { font-size: 0.9rem; }
  .show__draw { grid-column: 2; grid-row: 1 / span 2; }
  .show__tags { display: none; }
  .i-label { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .show__draw .a path, .show__draw .a .i-label { animation: none; stroke-dashoffset: 0; opacity: 1; } }
/* preview: turnable view */
.show__draw { cursor: grab; touch-action: none; user-select: none; }
.show__draw.is-drag { cursor: grabbing; }
.show__views { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.show__v { min-height: 36px; padding: 6px 12px; background: var(--surface); color: var(--half-white); border: 0; font: inherit; font-size: var(--step-small); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--ardesia); transition: box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.show__v.is-on { box-shadow: inset 0 0 0 2px var(--torch); background: color-mix(in oklab, var(--torch) 14%, var(--onyx)); }
.show__v:focus-visible { outline: 3px solid var(--torch); outline-offset: 2px; }
.show__hint { margin-inline-start: auto; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 1100px) { .show__views { grid-column: 1 / -1; } .show__v { min-height: 30px; padding: 4px 9px; } .show__hint { display: none; } }

/* Bâtiment: one row per upper storey */
.floors__hint { font-size: var(--step-small); color: var(--muted); max-width: 52ch; }
.floors { display: grid; gap: 10px; }
.floor { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 10px; align-items: end; padding: 10px; background: color-mix(in oklab, var(--onyx) 70%, var(--surface)); border-inline-start: 3px solid var(--torch); animation: dims-in 300ms var(--ease-out); }
.floor > b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--torch); align-self: center; }
.floor .fd > span { font-size: 0.72rem; }
.floor .fd input { min-height: 46px; }

/* hangar mezzanine: bays from post to post */
.mezzbays { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; font-weight: 500; }
.mezzbays[hidden] { display: none; }
.mezzbays select { min-height: 46px; width: auto; min-width: 150px; padding: 8px 40px 8px 14px; background-color: var(--onyx); color: var(--half-white); border: 0; font: inherit; box-shadow: inset 0 -2px 0 var(--torch); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--torch) 50%), linear-gradient(-45deg, transparent 50%, var(--torch) 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.mezzbays > span { color: var(--muted); font-size: var(--step-small); }
/* finish colours on the 3D steel */
.show__draw { --steel: var(--torch); }
.show__draw[data-finish="std"] { --steel: #8d939b; }
.show__draw[data-finish="galva"] { --steel: #d5dbe1; }
.show__draw[data-finish="epoxy"] { --steel: #e71e25; }
.show__draw[data-finish="brut"] { --steel: #9b6b45; }
.show__draw .i-steel { stroke: var(--steel); transition: stroke 500ms var(--ease-out); }
.show__draw .i-floor { fill: color-mix(in srgb, var(--steel) 30%, transparent); stroke: var(--steel); transition: fill 500ms var(--ease-out), stroke 500ms var(--ease-out); }
.show__draw[data-finish="galva"] .i-steel { filter: drop-shadow(0 0 2px rgb(255 255 255 / 0.35)); }

/* hangar: concrete base wall */
.mezzbays input { width: 90px; min-height: 46px; padding: 8px 12px; background: var(--onyx); color: var(--half-white); border: 0; font: inherit; box-shadow: inset 0 -2px 0 var(--torch); }
.i-concrete { fill: #8e8b85; fill-opacity: 0.72; stroke: #b9b5ad; stroke-width: 1.4; }
.show__draw .a .i-concrete { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transform-box: fill-box; transform-origin: bottom; animation: show-rise 700ms var(--ease-out) var(--d, 0ms) forwards; }

/* building stair: light treads that stand out from the steel */
.i-step { fill: #e9e6df; fill-opacity: 0.85; stroke: #fffefa; stroke-width: 0.8; }
.show__draw .a .i-step { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; animation: dims-in 250ms var(--ease-out) var(--d, 0ms) forwards; }

/* hangar: brick base wall */
.i-brick { fill: #a9563a; fill-opacity: 0.88; stroke: #c9c4bb; stroke-width: 1.2; }
.i-mortar { fill: none; stroke: #c9c4bb; stroke-width: 0.9; stroke-opacity: 0.85; }
.show__draw .a .i-brick { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transform-box: fill-box; transform-origin: bottom; animation: show-rise 700ms var(--ease-out) var(--d, 0ms) forwards; }
.show__draw .a .i-mortar { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; animation: dims-in 400ms var(--ease-out) var(--d, 0ms) forwards; }

/* quieter stairs */
.i-step { fill: #fffefa; fill-opacity: 0.22; stroke: #9a9ca0; stroke-width: 0.6; }
/* overhead crane: bridge in signal yellow, hoist block */
.i-crane { fill: none; stroke: #f2b632; stroke-width: 3; stroke-linecap: square; }
.i-hoist { fill: #f2b632; fill-opacity: 0.85; stroke: #c98d12; stroke-width: 1; }
.show__draw .a :is(.i-hoist, .i-glass, .i-car) { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; animation: dims-in 400ms var(--ease-out) var(--d, 0ms) forwards; }
/* lift: glazed shaft, car riding up and down */
.i-glass { fill: #9fd3e6; fill-opacity: 0.12; stroke: #9fd3e6; stroke-opacity: 0.5; stroke-width: 0.8; }
.i-car { fill: #fffefa; fill-opacity: 0.7; stroke: #fffefa; stroke-width: 1; }
.ride { animation: ride 9s var(--ease-io) infinite; }
@keyframes ride { 0%, 12% { transform: none; } 45%, 62% { transform: translateY(var(--rise)); } 95%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ride { animation: none; } }

/* ===== mobile pass ===== */
@media (max-width: 1100px) {
  /* devis preview band: title and view buttons on one line, the drawing across the full width under it */
  .show { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head views" "draw draw"; align-items: center; gap: 6px 10px; padding: 8px 10px 6px; }
  .show__head { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding-top: 2px; min-width: 0; }
  .show__type { font-size: 1rem; }
  .show__sum { font-size: 0.82rem; }
  .show__views { grid-column: 2; grid-row: 1; flex-wrap: nowrap; gap: 4px; }
  .show__v { min-height: 40px; min-width: 40px; padding: 4px 8px; font-size: 0.78rem; }
  .show__draw { grid-column: 1 / -1; grid-row: 2; aspect-ratio: auto; height: clamp(150px, 26svh, 210px); }
  .show__draw svg { width: 100%; height: 100%; }
  .i-label { font-size: 26px; }
}
@media (max-width: 640px) {
  /* drawings in a 800-wide viewBox shrink to ~40 %: bigger labels so they stay readable */
  #drawing .d-label, .montage .d-label { font-size: 34px; }
  .montage .m-text { font-size: 30px; }
  /* tap targets of at least 44 px */
  .footer__grid > ul a, .footer__grid > ul [data-quote] { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__grid > ul { gap: 0; }
  .contact__info a, .contact__actions .mail, .crumbs a, .breadcrumb a, .dhero a:not(.btn), .ehero a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
  .faq summary { min-height: 52px; }
  .devis__band a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* photos are wrapped in <picture> for WebP: the wrapper takes no box of its own */
picture { display: contents; }

/* ===== Test 1 · Mise en avant ===== */
body::after { content: "Test 1 · Mise en avant"; position: fixed; left: 10px; bottom: 10px; z-index: 9999; padding: 6px 10px; background: #fffefa; color: #272a31; font: 700 12px/1 "Roboto Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.show__draw .i-steel { stroke: color-mix(in srgb, var(--steel) 28%, #8b8f96); transition: stroke 900ms var(--ease-out); }
.show__draw .i-floor { fill: color-mix(in srgb, var(--steel) 10%, transparent); stroke: color-mix(in srgb, var(--steel) 28%, #8b8f96); transition: fill 900ms, stroke 900ms; }
.show__draw .f .i-steel { stroke: var(--steel); }
.show__draw .f .i-floor { fill: color-mix(in srgb, var(--steel) 32%, transparent); stroke: var(--steel); }
.show__draw g[data-g]:not(.f) :is(.i-wall, .i-brick, .i-mortar, .i-crane, .i-hoist, .i-glass, .i-car) { opacity: 0.55; transition: opacity 900ms var(--ease-out); }
.show__draw .glow :is(.i-steel, .i-floor, .i-wall, .i-brick, .i-crane, .i-hoist, .i-glass, .i-mortar, .i-line, .i-thin, .i-car) { stroke-dashoffset: 0; opacity: 1; transform: none; animation: focus-glow 2.5s var(--ease-out) forwards; }
.show__draw .glow :is(.i-mortar, .i-line, .i-thin, .i-car) { animation: none; }
@keyframes focus-glow { 0% { filter: drop-shadow(0 0 7px var(--steel)) drop-shadow(0 0 14px color-mix(in srgb, var(--steel) 60%, transparent)); } 100% { filter: drop-shadow(0 0 0 transparent); } }
@media (prefers-reduced-motion: reduce) { .show__draw .glow * { animation: none; } }
/* budget: a free amount */
.budget input { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.03em; padding-inline-end: 56px; }
.budget em { bottom: 18px; font-weight: 600; }
.budget__words { min-height: 1.4em; margin-top: 8px; font-family: var(--font-display); font-weight: 700; color: var(--torch); letter-spacing: 0.04em; }

/* ===== partenaires: two logo conveyors on dark plates, logos in their own colours ===== */
.partners { padding-block: 0 var(--gap-section); overflow: hidden; }
.partners__row { --dur: 48s; display: flex; width: max-content; gap: clamp(12px, 1.4vw, 20px); margin-bottom: clamp(12px, 1.4vw, 20px); }
.partners__row--rev { --dur: 40s; }
.partners__track { display: flex; gap: clamp(12px, 1.4vw, 20px); padding: 0; list-style: none; animation: partners-run var(--dur) linear infinite; }
.partners__row--rev .partners__track { animation-direction: reverse; }
.partners__row:hover .partners__track { animation-play-state: paused; }
.partners__track li { --h: clamp(84px, 8vw, 112px); display: grid; place-items: center; height: var(--h); min-width: clamp(140px, 13vw, 200px); padding: 16px clamp(20px, 2.2vw, 34px); background: var(--surface); border-bottom: 3px solid transparent; transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out), background-color 300ms var(--ease-out); }
.partners__track li:hover { border-color: var(--torch); transform: translateY(-3px); background: color-mix(in oklab, var(--surface) 80%, var(--half-white)); }
.partners__track img { width: auto; height: auto; max-height: calc(var(--h) - 36px); max-width: 190px; object-fit: contain; }
[dir="rtl"] .partners__track { animation-name: partners-run-rtl; }
@keyframes partners-run { to { transform: translateX(calc(-100% - clamp(12px, 1.4vw, 20px))); } }
@keyframes partners-run-rtl { to { transform: translateX(calc(100% + clamp(12px, 1.4vw, 20px))); } }
@media (prefers-reduced-motion: reduce) {
  .partners__row { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--margin); }
  .partners__track { animation: none; flex-wrap: wrap; justify-content: center; }
  .partners__track[aria-hidden] { display: none; }
}

/* ===== Google map (embed, darkened to sit in the onyx theme; the pin stays red) ===== */
.map { position: relative; overflow: hidden; background: var(--surface); min-height: 260px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95) contrast(0.9); transition: filter 500ms var(--ease-out); }
.map:hover iframe, .map:focus-within iframe { filter: none; }
.map__go { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; background: var(--torch); color: var(--half-white); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.map__go svg { width: 18px; height: 18px; }
[dir="rtl"] .map__go svg { transform: scaleX(-1); }
.map__go:hover { background: color-mix(in oklab, var(--torch) 85%, white); }
/* the map takes the photo's place in the contact panel */
.contact__side .map { min-height: clamp(260px, 26vw, 380px); }
/* ===== services: the seven steps, numbered like the brochure ===== */
.flow { padding-block: clamp(56px, 8vw, 128px) var(--gap-section); }
.flow__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(12px, 1.6vw, 24px); counter-reset: none; }
.phase { position: relative; display: grid; align-content: start; gap: 12px; padding: clamp(22px, 2.4vw, 34px); padding-top: clamp(64px, 6vw, 84px); background: var(--surface); border-bottom: 3px solid transparent; transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out); }
.phase:hover { border-color: var(--torch); transform: translateY(-4px); }
.phase__n { position: absolute; inset-block-start: 0; inset-inline-start: clamp(22px, 2.4vw, 34px); padding: 10px 14px; background: var(--onyx); color: var(--half-white); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em; border-bottom: 3px solid var(--torch); }
.phase h3 { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.1; color: var(--torch); }
.phase p { color: var(--muted); line-height: 1.5; }
.phase:last-child { background: var(--torch); }
.phase:last-child h3, .phase:last-child p { color: var(--half-white); }
.phase:last-child .phase__n { border-color: var(--half-white); }

/* ===== à propos ===== */
.about { padding-block: clamp(56px, 8vw, 128px) clamp(48px, 6vw, 96px); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px); row-gap: 32px; align-items: center; }
.about__text { grid-column: 1 / span 6; display: grid; gap: 20px; }
.about__text p { color: var(--muted); line-height: 1.6; max-width: 58ch; }
.about__text .about__lead { color: var(--ink); font-size: var(--step-lead); line-height: 1.35; font-weight: 500; }
.about__img { grid-column: 8 / -1; aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 6px solid var(--torch); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.why { padding-block: clamp(48px, 6vw, 96px) var(--gap-section); }
.why__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.why__card { position: relative; display: grid; align-content: start; gap: 12px; padding: clamp(24px, 2.6vw, 38px); background: var(--surface); border-bottom: 4px solid transparent; transition: border-color 300ms var(--ease-out), transform 300ms var(--ease-out); }
.why__card:hover { border-color: var(--torch); transform: translateY(-4px); }
.why__ico { width: 44px; height: 44px; color: var(--torch); }
.why__fig { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 2.2vw, 3.6rem); line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.why__card h3 { font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem); line-height: 1.15; }
.why__card > p:last-child { color: var(--muted); line-height: 1.5; }
.why__tags { list-style: none; padding: 0; margin-top: clamp(20px, 2.4vw, 32px); display: flex; flex-wrap: wrap; gap: 10px; }
.why__tags li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; background: var(--surface); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; border-bottom: 2px solid transparent; transition: border-color 250ms var(--ease-out); }
.why__tags li::before { content: ""; width: 16px; height: 16px; background: var(--torch); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12.5l6 6L21 6' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12.5l6 6L21 6' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; }
.why__tags li:hover { border-color: var(--torch); }
@media (max-width: 1100px) { .why__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why__cards { grid-template-columns: 1fr; } }
.subpage .partners { padding-block-start: clamp(48px, 6vw, 96px); }
@media (max-width: 900px) { .about__text, .about__img { grid-column: 1 / -1; } .about__img { aspect-ratio: 16 / 10; } }
@media (min-width: 1100px) { .flow__list { grid-template-columns: repeat(4, 1fr); } .phase:last-child { grid-column: span 2; } }

/* ===== footer: social links ===== */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; background: var(--surface); color: var(--muted); border-bottom: 2px solid transparent; transition: color 250ms var(--ease-out), background-color 250ms var(--ease-out), border-color 250ms var(--ease-out), transform 250ms var(--ease-out); }
.social a svg { width: 20px; height: 20px; }
.social a:hover, .social a:focus-visible { color: var(--half-white); background: var(--torch); border-color: var(--half-white); transform: translateY(-2px); }

/* ===== à propos: the journey of a beam (pinned scroll scene, line drawing like the montage) ===== */
.journey { --jglow: rgb(107 58 34); --jbase: color-mix(in oklab, var(--jglow) 14%, var(--surface)); height: 720svh; position: relative;
  background: radial-gradient(ellipse 55% 65% at 66% 54%, color-mix(in oklab, var(--jglow) 42%, var(--jbase)) 0%, var(--jbase) 75%); }
[dir="rtl"] .journey { background: radial-gradient(ellipse 55% 65% at 34% 54%, color-mix(in oklab, var(--jglow) 42%, var(--jbase)) 0%, var(--jbase) 75%); }
@media (max-width: 899px) { .journey, [dir="rtl"] .journey { background: radial-gradient(ellipse 90% 40% at 50% 26%, color-mix(in oklab, var(--jglow) 42%, var(--jbase)) 0%, var(--jbase) 80%); } }
.journey__stick { isolation: isolate; position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; gap: clamp(16px, 3vw, 48px); padding: 64px var(--margin) 0; overflow: clip; }
.journey__text { display: grid; gap: 14px; align-content: center; }
.journey__kicker { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--torch); }
.journey h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.2rem); line-height: 1; }
.journey__lead { color: var(--muted); max-width: 36ch; }
.journey__steps { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 2px; }
.jstep button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 40px; padding: 4px 0; background: none; border: 0; cursor: pointer; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; text-align: start; transition: color 250ms var(--ease-out); }
.jstep button span { display: inline-grid; place-items: center; min-width: 38px; height: 28px; background: var(--onyx); color: var(--muted); font-size: 0.95rem; border-bottom: 2px solid transparent; transition: background-color 250ms, color 250ms, border-color 250ms; }
.jstep p { display: grid; grid-template-rows: 0fr; overflow: hidden; max-height: 0; opacity: 0; color: var(--ink); padding-inline-start: 52px; max-width: 46ch; line-height: 1.45; transition: max-height 400ms var(--ease-out), opacity 300ms var(--ease-out), margin 400ms var(--ease-out); }
.jstep.is-active button { color: var(--ink); }
.jstep.is-active button span { background: var(--torch); color: var(--half-white); border-color: var(--half-white); }
.jstep.is-active p { max-height: 6em; opacity: 1; margin: 2px 0 10px; }
@media (hover: hover) and (pointer: fine) { .jstep button:hover { color: var(--ink); } }
.journey__art { min-width: 0; direction: ltr; }
.journey__svg { width: 100%; height: auto; max-height: 82svh; overflow: hidden; }
.journey__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--torch); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .journey__bar { transform-origin: right; }
/* drawing */
.j-floor { stroke: var(--ardesia); stroke-width: 3; fill: none; }
.j-roller { fill: none; stroke: var(--muted); stroke-width: 2; }
.j-rust, .j-draw { fill: color-mix(in oklab, #8a4f2c 22%, transparent); stroke: #b0693f; stroke-width: 2.5; stroke-linejoin: miter; }
.j-speck { fill: #8a4f2c; }
.j-steel { fill: color-mix(in oklab, #c9ccd1 18%, var(--surface)); stroke: #dfe2e6; stroke-width: 2.5; stroke-linejoin: miter; }
.j-paint { fill: color-mix(in oklab, var(--torch) 30%, var(--surface)); stroke: var(--torch); stroke-width: 3; stroke-linejoin: miter; }
.j-hole { fill: var(--surface); stroke: var(--half-white); stroke-width: 1.5; }
.j-plate { fill: none; stroke: var(--half-white); stroke-width: 2.5; }
.j-tool-line, .j-blade { fill: none; stroke: var(--half-white); stroke-width: 2; }
.j-torch { fill: #fffefa; }
.j-nozzle { fill: var(--onyx); stroke: var(--half-white); stroke-width: 2; }
.j-hose { stroke: var(--muted); stroke-width: 3; fill: none; }
.j-tool circle { fill: #d9c08a; }
.j-tool.is-paint circle { fill: var(--torch); opacity: 0.8; }
.j-bed, .j-cab { fill: var(--onyx); stroke: var(--half-white); stroke-width: 2; }
.j-wheel { fill: var(--onyx); stroke: var(--muted); stroke-width: 3; }
.j-col { stroke: #c4c5c7; stroke-width: 3; fill: none; }
.j-foot { fill: var(--ardesia); }
.j-ghost { stroke: #8b8e94; stroke-width: 2; fill: none; }
.j-crane-mast, .j-crane-jib { stroke: #ffd166; stroke-width: 2.5; fill: none; stroke-linejoin: miter; }
.j-thin { stroke: #ffd166; stroke-width: 1.2; fill: none; opacity: 0.7; }
.j-trolley { fill: #ffd166; }
.j-cable { stroke: var(--half-white); stroke-width: 1.5; fill: none; }
/* static (reduced motion) and phones */
.journey.is-static { height: auto; }
.is-static .journey__stick { position: static; height: auto; padding-block: var(--gap-section); }
.is-static .jstep p { max-height: none; opacity: 1; }
@media (max-width: 899px) {
  .journey { height: 760svh; }
  .journey__stick { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; align-content: start; gap: 8px; padding-top: 72px; }
  .journey__art { order: -1; }
  .journey__svg { max-height: 36svh; }
  .journey__lead { display: none; }
  .journey h2 { font-size: 1.7rem; }
  .jstep button { min-height: 36px; font-size: 1rem; }
  .jstep:not(.is-active) p { display: none; }
}
/* 3D version: the scene fills the pinned area, the text sits over it on a soft fade */
.journey__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; }
.journey.is-3d .journey__art { visibility: hidden; }
.journey.is-3d .journey__text { position: relative; padding: 24px 28px 24px 0; }
.journey.is-3d .journey__stick::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--jbase) 0%, var(--jbase) 24%, color-mix(in oklab, var(--jbase) 70%, transparent) 36%, transparent 50%); }
[dir="rtl"] .journey.is-3d .journey__stick::before { background: linear-gradient(-90deg, var(--jbase) 0%, var(--jbase) 24%, color-mix(in oklab, var(--jbase) 70%, transparent) 36%, transparent 50%); }
.journey.is-3d .journey__stick > .sparks--local { display: none; }
@media (max-width: 899px) {
  .journey.is-3d .journey__art { display: none; }
  .journey.is-3d .journey__stick { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 28px; }
  .journey.is-3d .journey__text { padding: 0; gap: 6px; }
  .journey.is-3d h2 { font-size: 1.45rem; }
  .journey.is-3d .jstep:not(.is-active) { display: none; }
  .journey.is-3d .jstep p { padding-inline-start: 52px; }
  .journey.is-3d .journey__stick::before { background: linear-gradient(0deg, var(--surface) 0%, var(--surface) 26%, color-mix(in oklab, var(--surface) 70%, transparent) 38%, transparent 52%); }
}
/* ===== media page: coming soon, shown full screen on the events-hero base ===== */
.shero { min-height: 100svh; }
.shero .ehero__mark { margin-top: 8px; }
.shero__kicker { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; color: var(--torch); font-size: clamp(1rem, 0.8rem + 0.8vw, 1.4rem); }
.ehero h1.shero__title { max-width: none; font-size: clamp(3.2rem, 11vw, 12rem); line-height: 0.85; text-transform: uppercase; letter-spacing: 0.02em; text-shadow: 0 0 60px rgb(231 30 37 / 0.35); }
.shero__lead { max-width: 46ch; color: var(--muted); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.5; }
.shero__list { list-style: none; padding: 12px 28px; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(18px, 3vw, 40px); border-inline-start: 6px solid var(--torch); background: linear-gradient(90deg, rgb(255 255 255 / 0.08), transparent); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); }
[dir="rtl"] .shero__list { background: linear-gradient(270deg, rgb(255 255 255 / 0.08), transparent); }
.shero__list li + li::before { content: "·"; color: var(--torch); margin-inline-end: clamp(18px, 3vw, 40px); }
.shero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.shero__kicker, .shero__title, .shero__lead, .shero__list, .shero__actions, .shero .ehero__mark { animation: rise 800ms var(--ease-out) both; }
.shero__title { animation-delay: 120ms; }
.shero__lead { animation-delay: 220ms; }
.shero__list { animation-delay: 300ms; }
.shero__actions { animation-delay: 380ms; }
@media (prefers-reduced-motion: reduce) { .shero__kicker, .shero__title, .shero__lead, .shero__list, .shero__actions, .shero .ehero__mark { animation: none; } }
/* phone numbers read left to right, also on the Arabic pages */
a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }
