/* Jenko — home, round v12 over home-v11.css (owner, 2026-09-27, v11 chosen: panel ground, the phone's bar away going down):
   1 the opening — the workshop's number above its status line, sized with it, the three bottom lines on one line;
   2 « back to top » — a rectangular button on the footer's last line (no ring: the site's shapes are rectangles);
   3 phones — the partners in moving rows (who works with us on one screen), the request as a clear form and the four steps
     on one screen without the building, and the number at the end: « Questions? Call us », the number, the company. */

/* ——— 1. The opening's contact: the number, then the status under it; the lead's last line, the status line and « see our
   solutions » stand on one line (last baseline). The number is about as wide as its status line: the sub role on laptops and
   monitors, the title role on tablets and phones; the status and the cue keep the small role (home-v11.css) ——— */
.opening__foot { align-items: last baseline; }
.opening__contact { display: grid; gap: var(--s-2); justify-items: start; min-width: 0; }
.opening__tel { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; flex-basis: auto;
  font-size: var(--t-sub); font-weight: 400; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.opening__tel::before { display: none; }
/* the status is one line of words with its dot inside it: on a phone it breaks only before the place (home.js) */
.opening__status { display: block; }
.opening__pulse { display: inline-block; vertical-align: 0.1em; margin-right: var(--s-2); }
/* « see our solutions »: its arrow rides inside the words' line, so the cue's baseline is the words' (an arrow as the last
   flex item gave its foot as the baseline: the words stood 4 px above the status line) */
.opening__scroll > span { display: block; }
.opening__scroll svg { display: inline-block; width: 18px; height: 18px; margin-left: var(--s-2); vertical-align: -0.28em; }
@media (max-width: 900px), (max-aspect-ratio: 1/1) { .opening .opening__tel { font-size: var(--t-title); letter-spacing: -0.03em; } }
@media (max-width: 760px) {
  .opening__foot { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s-5); column-gap: var(--s-4); }
}
/* the narrowest phones: « see our solutions » under the status, at the right, on the page's last line */
@media (max-width: 360px) { .opening__foot { grid-template-columns: minmax(0, 1fr); } .opening__scroll { justify-self: end; } }

/* ——— 2. The footer's last line: the company and the legal links on the left, « back to top » on the right — its words on
   the same baseline as theirs; a rectangular outlined button, the small size of the site's button ——— */
.footer__legal { display: flex; flex-wrap: nowrap; align-items: last baseline; column-gap: var(--gutter); }
.footer__legal-t { flex: 1; min-width: 0; max-width: none; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-5); }
.footer__up { flex: none; }
.footer__up { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border: 1px solid currentColor;
  color: var(--on-graphite); font-size: var(--t-small); font-weight: 520; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-s), color var(--dur-s); }
/* the arrow rides inside the words' line, so the button's baseline is the words' (not the arrow's foot) */
.footer__up svg { display: inline-block; width: 16px; height: 16px; margin-left: var(--s-2); vertical-align: -0.2em; }
.footer__up:hover { background: var(--on-graphite); color: var(--graphite); }
.footer__up:focus-visible { outline: 2px solid var(--jaune); outline-offset: 2px; }
html[data-v-ground="panel"] .footer__up:focus-visible { outline-color: var(--ink); }
html main[data-screens] + .footer .footer__legal { align-items: last baseline; }
/* on laptops and monitors the button stands on the line without making it taller (it reaches into the paddings around) */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) { html main[data-screens] + .footer .footer__up { margin-block: -12px; } }
/* phones: the two legal links one under the other, « back to top » beside the last of them */
@media (max-width: 600px) {
  main[data-screens] + .footer .footer__legal-t > span { flex-basis: 100%; }
  main[data-screens] + .footer .footer__legal-t { flex-direction: column; align-items: flex-start; gap: 0; }
  main[data-screens] + .footer .footer__legal-t a { min-height: 32px; display: inline-flex; align-items: center; }
}

/* ——— 3a. The closing call, phones only (on tablets, laptops and monitors the number is in the request) ——— */
.footer__call { display: none; }
@media (max-width: 600px) {
  html main[data-screens] + .footer .footer__call { grid-row: 1; }
  html main[data-screens] + .footer .footer__brand { grid-row: 2; }
  .footer__call { grid-column: 1 / -1; display: grid; gap: var(--s-1); justify-items: start; padding-bottom: var(--s-4); border-bottom: 1px solid var(--rule-strong); }
  .footer__call-q { margin: 0; font-size: var(--t-sub); font-weight: 540; line-height: var(--lh-sub); letter-spacing: -0.02em; color: var(--on-graphite); }
  .footer__call-tel { font-size: var(--t-accent); font-weight: 400; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
    color: var(--on-graphite); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
  .footer__call-info { margin: 0; display: grid; gap: var(--s-1); font-size: var(--t-small); line-height: var(--lh-small); color: var(--on-graphite-2); max-width: 34ch; }
  main[data-screens] + .footer .footer__grid { padding-top: var(--s-6); }
  main[data-screens] + .footer .footer__note { display: none; }
  main[data-screens] + .footer .footer__col :is(a, span) { min-height: 32px; }
  html main[data-screens] + .footer .footer__grid { row-gap: var(--s-3); }
  html main[data-screens] + .footer .footer__legal { padding-top: var(--s-3); }
  /* the request no longer carries the number on phones: it waits at the end */
  .s5-fin .fin7__tel { display: none !important; }
}

/* ——— 3b. Who works with us on a phone: one screen. The two main clients, one testimonial, and the installers and the
   suppliers as two rows of logos that move slowly (home-v12.js doubles each row for a seamless loop and sets the speed);
   a finger on a row stops it; with reduced motion the rows stand still and scroll sideways ——— */
@media (max-width: 600px) {
  .s5-refs7 .refs7__main { flex: 1 1 0; min-height: 0; }
  .s5-refs7 .refs7__main li { aspect-ratio: auto; height: 100%; }
  .s5-refs7.is-measure .refs7__main { flex: none; height: 80px; }
  .s5-refs7 .refs7__group { flex: none !important; display: grid !important; grid-template-rows: auto auto; gap: var(--s-2); min-width: 0; }
  .refs7__rail { overflow: hidden; border-block: 1px solid var(--rule); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); touch-action: pan-y; }
  .s5-refs7 .refs7__rail ul { display: flex !important; width: max-content; margin: 0; padding: 0; border: 0 !important; grid-template-columns: none !important; grid-template-rows: none !important;
    animation: refs-rail var(--rail-dur, 40s) linear infinite; }
  .s5-refs7 .refs7__sup .refs7__rail ul { animation-direction: reverse; }
  .s5-refs7 .refs7__rail li { flex: none; width: 124px; height: 56px !important; padding: 0 18px !important; border: 0 !important; display: grid; place-items: center; }
  .s5-refs7 .refs7__rail img { width: auto; max-width: 100%; height: calc(19px * var(--k, 1)); object-fit: contain; opacity: 0.9; }
  .refs7__rail:is(:hover, :focus-within, .is-held) ul { animation-play-state: paused; }
  .refs7__rail:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
}
@keyframes refs-rail { to { transform: translateX(-50%); } }
/* elsewhere the rows are the tables they were: the wrapper steps aside, the doubled logos stay hidden */
.refs7__rail { display: contents; }
.refs7__group li[data-clone] { display: none; }
@media (max-width: 600px) { .refs7__rail { display: block; } .refs7__group li[data-clone] { display: grid; } }
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .s5-refs7 .refs7__rail ul { animation: none; }
  /* standing still, each logo once: the doubled half is only there for the seamless loop */
  .refs7__group li[data-clone] { display: none; }
  .refs7__rail { overflow-x: auto; scrollbar-width: none; touch-action: auto; -webkit-mask-image: none; mask-image: none; }
  .refs7__rail::-webkit-scrollbar { display: none; }
}

/* ——— 3c. The request on a phone: one screen — the title, the form made plain (filled fields, the button across the width),
   and the four steps two by two; no building (the address and the number wait at the end) ——— */
@media (max-width: 600px) {
  .s5-fin .fin7__ph { display: none !important; }
  .s5-fin .fin7 { justify-content: flex-start; }
  .s5-fin .fin5__steps ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: var(--gutter); border-top: 1px solid color-mix(in srgb, var(--on-graphite) 30%, transparent); }
  /* the number on the step's name line, the words under them */
  .s5-fin .fin5__steps li { display: block; padding-block: var(--s-2) var(--s-3); }
  .s5-fin .fin5__steps li::before { display: inline-block; min-width: 1.5em; line-height: 1.3 !important; }
  .s5-fin .fin5__steps b { display: inline; }
  .s5-fin .fin5__steps span { display: block; margin-top: var(--s-1); }
  .s5-fin .fin7 .fin5__steps h3 { font-size: var(--t-small); font-weight: 600; letter-spacing: 0.01em; color: var(--on-graphite-2); }
  .s5-fin .fin5__steps b { line-height: 1.3; }
  .s5-fin .fin5__steps span { line-height: 1.4; }
  .s5-fin.is-measure .fin7 { justify-content: flex-start; }
}
/* the messages come with the sending, after the tap (home.js): no field keeps an empty line for them on upright screens */
@media (max-width: 900px), (max-aspect-ratio: 1/1) { html .s5-fin .fin5__form .field__err { min-height: 0; } }
/* the fields read as fields on every device: a filled, rectangular box with its line under it */
.s5-fin .field input { padding-inline: var(--s-3); background: color-mix(in srgb, var(--on-graphite) 8%, transparent); }
.s5-fin .field input:focus-visible { background: color-mix(in srgb, var(--on-graphite) 13%, transparent); }

/* ——— 3d. Phone fit (one screen for who works with us and for the request): the short forms of two texts, the scale's
   smaller steps inside the blocks. The short step words keep the facts of the long ones (jenko.fr). ——— */
.refs7__note-s, .fin5__steps-s { display: none; font-style: normal; }
@media (max-width: 600px) {
  .s5-refs7 .refs7__note .refs5__note-t { display: none !important; }
  .s5-refs7 .refs7__note-s { display: inline; color: var(--ink-2); }
  .s5-refs7 .refs7 { gap: var(--s-4) !important; }
  .s5-refs7 .refs7__avis { gap: var(--s-2); }
  .s5-refs7 .refs7__avis figure { gap: var(--s-2); padding-top: var(--s-2); }
  .s5-refs7 .refs7__group { gap: var(--s-1); }
  .s5-refs7 .refs7__rail li { height: 52px !important; }
  .s5-refs7.is-measure .refs7__main { height: 64px; }
  .s5-fin .fin5__steps span { display: none; }
  .s5-fin .fin5__steps-s { display: block; margin-top: var(--s-1); font-size: var(--t-small); line-height: 1.4; color: var(--on-graphite-2); }
  .s5-fin .field input { min-height: 48px; }
  .s5-fin .fin5__steps li { padding-block: var(--s-2); }
  .s5-fin .fin7 { gap: var(--s-4); }
  /* the form and the four steps stay together at the panel's bottom distance (the thumb's reach): the free height
     stands between the title and the form */
  .s5-fin .fin7 { justify-content: flex-end; }
}

/* ——— 4. The footer on a phone in one screen: the company's words across the width, the legal block as a grid — the
   company on its own line, the two links under it, « back to top » beside the last link on its baseline ——— */
@media (max-width: 600px) {
  main[data-screens] + .footer .footer__call-info { max-width: none; }
  html main[data-screens] + .footer .footer__legal { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gutter); row-gap: 0; align-items: last baseline; }
  main[data-screens] + .footer .footer__legal-t { display: contents; }
  main[data-screens] + .footer .footer__legal-t > span { grid-column: 1 / -1; grid-row: 1; margin-bottom: var(--s-1); }
  main[data-screens] + .footer .footer__legal-t a:nth-of-type(1) { grid-column: 1; grid-row: 2; justify-self: start; }
  main[data-screens] + .footer .footer__legal-t a:nth-of-type(2) { grid-column: 1; grid-row: 3; justify-self: start; }
  html main[data-screens] + .footer .footer__up { grid-column: 2; grid-row: 3; }
}

/* ——— 5. The footer's lists stand on lines: each row's names share their first baseline (a name on two lines no longer
   pushes its neighbours to the middle), and on tablets the products run in two columns, so no name breaks ——— */
@media (min-width: 601px) and (max-aspect-ratio: 1/1), (min-width: 601px) and (max-width: 900px) {
  html main[data-screens] + .footer .footer__col { align-items: first baseline; }
  html main[data-screens] + .footer .footer__col:nth-of-type(4) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ——— 6. The review round (impeccable, 2026-09-27): lines, one shape for the controls, the scale's distances ——— */

/* 6a the status (a block of words, so its last line is its baseline): where the line is too narrow for the state and the
   time together (a phone), the time with its place goes under the state as a whole, under the words and not the dot
   (home.js marks it .is-two) — the town never stands alone on a line */
.opening__st-a, .opening__st-b { display: inline-block; white-space: nowrap; }
.opening__status.is-two .opening__st-sep { display: none; }
.opening__status.is-two .opening__st-b { display: block; padding-left: calc(8px + var(--s-2)); }
/* the opening's bottom distances from the scale */
.opening__foot { padding-top: var(--s-4); }
@media (min-width: 761px) { .opening__foot { row-gap: var(--s-3); } }

/* 6b one shape for every control: rectangles (the arrows of the workshop, the film, the zoom, the lightbox, the cabinet's
   numbers and points) — only the live dot of the status stays round */
.shop8__arrow { border-radius: 0; border-color: currentColor; }
.shop8__arrow:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
:is(.shop8__zoom, .lb8__btn, .shop9__film, .shop7__play, .cab5__whole, .cab7__close) { border-radius: 0 !important; }
:is(.cab__dot > span[aria-hidden], .cab5__list .cab5__n) { border-radius: 0 !important; }

/* 6c the cabinet's list: the small number stands on its name's baseline */
.cab5__list button { align-items: baseline; align-content: center; }

/* 6d « all solutions » under its lead, on its own line (two text sizes never share a line) */
@media (min-width: 601px) { .s5__lead p .link { display: flex; width: fit-content; margin-top: var(--s-4); } }

/* 6e the workshop: the captions measured to one height on laptops and monitors (home-v12.js), so the pictures share one
   height and the rules one line; on tablets the lead comes back, beside the arrows, on their row */
.shop8__list.is-capfree .shop8__cap { min-height: 0 !important; }
@media (min-width: 601px) and (max-aspect-ratio: 1/1), (min-width: 601px) and (max-width: 900px) {
  .s5-shop8 .s5__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gutter); align-items: center; }
  .s5-shop8 .s5__title { grid-column: 1 / -1; }
  .s5-shop8 .s5__lead { grid-column: 1; grid-row: 2; margin: 0; }
  .s5-shop8 .s5__lead p { display: block; margin: 0; }
  .s5-shop8 .shop9__nav { grid-column: 2; grid-row: 2; }
}

/* 6f the request without a hole. Tablets: the building takes the height beside the number and the form (the number at its
   top, the form at its bottom), the steps follow. Everywhere from tablets up, the form goes one field under the other
   where the window is tall enough for it (home-v12.js tries it and marks .is-stack when nothing moves or spills) */
@media (min-width: 601px) and (max-aspect-ratio: 1/1), (min-width: 601px) and (max-width: 900px) {
  .s5-fin .fin7 { grid-template-rows: minmax(0, 1fr) auto !important; padding-top: var(--s-2); }
  .s5-fin .fin7__main { display: flex; flex-direction: column; justify-content: space-between; }
  .s5-fin .fin7__steps { align-self: start; }
}
@media (min-width: 601px) {
  #devis.is-stack .fin5__form { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); }
  /* the messages come with the sending (home.js), after the tap: the one-under-the-other form keeps no empty line for them */
  html #devis.is-stack .fin5__form .field__err { min-height: 0 !important; }
}
@media (min-width: 901px) and (min-aspect-ratio: 1/1) { #devis.is-stack .fin5__form .btn { grid-column: 1; justify-self: start; } }

/* 6g the laptop footer's small distances from the scale */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  html main[data-screens] + .footer .footer__grid { row-gap: var(--s-1); }
  html main[data-screens] + .footer .footer__legal { margin-top: var(--s-1); padding-top: var(--s-2); }
}
/* laptops and monitors: the four steps take the height down to the building's foot — their two rows share it, each step's
   words at the top of its row, the last rule on the building's bottom line (no hole between the form and the steps) */
@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  .s5-fin .fin7__steps { align-self: stretch; grid-template-rows: auto minmax(0, 1fr); }
  .s5-fin .fin5__steps ol { grid-auto-rows: auto; align-content: stretch; }
}
/* the form's empty status line (it speaks after sending) takes no grid row, so the button is the form's last line — on the
   tablet its foot meets the building's */
.fin5__form .fin__done:empty { position: absolute; }
