/* What every page of the site shares, linked after the kit and the tokens: the name's mark, the
   footer's directory, and the column of a text page (the imprint, the terms). Colours, sizes,
   spacing and radii are the system's tokens. The homepage's own visuals are in home.css. */

/* ---------------------------------------------------------------- for a thumb
   every button 48px high; a link in the footer's directory or in the nav has a target that tall */
:root { --btn-h: 48px; }
.closing__links .footer__col ul { gap: 0; }
.closing__links .footer__col a, .footer__names a { display: inline-flex; align-items: center; min-height: 48px; }
.nav__link { min-height: 48px; }

/* ---------------------------------------------------------------- the language picker in the bar
   The page's language as its two letters, opening a short list of the three, each in its own words.
   It is the browser's own details element, with no script: it opens and closes on a press or on
   Enter, and its list is reached with the Tab key. The current language is plain words with a tick. */
.nav__actions:has(> .lang) { gap: var(--s-2); }
.lang { position: relative; flex: none; }
.lang > summary {
  display: inline-flex; align-items: center; gap: 6px; height: var(--btn-h); padding-inline: var(--s-3); border-radius: var(--r-btn);
  font: 500 15px/1 var(--font-text); letter-spacing: 0.02em; color: var(--ink); cursor: pointer; list-style: none; user-select: none;
}
.lang > summary::-webkit-details-marker { display: none; }
/* the chevron, drawn: two sides of a small box, turned; it points up while the list is open */
.lang > summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.lang[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.lang > summary:hover, .lang[open] > summary { background: var(--surface); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + var(--s-2)); z-index: 60; min-width: 176px; margin: 0; padding: var(--s-2); list-style: none;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 16px 40px -16px rgb(0 0 0 / .28);
}
.lang__list > li > * { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 48px; padding-inline: var(--s-3); border-radius: var(--r-sm); font: 400 var(--t-body)/1.2 var(--font-text); color: var(--ink); }
.lang__list a:hover { background: var(--surface); }
.lang__list [aria-current] { font-weight: 500; }
.lang__list [aria-current]::after { content: ""; flex: none; width: 6px; height: 11px; margin: 0 4px 3px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Under 1024 the kit keeps only the main button in the bar; the picker stays beside it, as high as
   the button is there. */
@media (max-width: 1023px) {
  header.nav:not(.is-open) .nav__actions > .lang { display: block; }
  header.nav:not(.is-open) .nav__actions > .lang > summary { height: 44px; }
}
/* the narrowest phones: the bar holds the name, the picker and the button; the two give up padding,
   the name gives up nothing */
@media (max-width: 359px) {
  header.nav:not(.is-open) .nav__actions { gap: 6px; }
  header.nav:not(.is-open) .nav__actions > .lang > summary { padding-inline: 6px; gap: 4px; }
  header.nav:not(.is-open) .nav__actions .btn { padding-inline: 10px; }
}
/* French has the longest button ("Commencer une vidéo"): on a 320px screen its picker is the two
   letters alone and its button a size smaller, so that the three still stand in one row */
@media (max-width: 339px) {
  :root:lang(fr) header.nav:not(.is-open) .nav__actions > .lang > summary::after { content: none; }
  :root:lang(fr) header.nav:not(.is-open) .nav__actions .btn { font-size: 13px; }
}
/* On a phone the list hangs from the bar's right line, not from the picker, which may stand in the
   middle of the bar: so the list is on the screen whatever the button's length. */
@media (max-width: 639px) {
  .lang { position: static; }
  .lang__list { right: var(--gut); top: calc(100% - var(--s-1)); }
}

/* ---------------------------------------------------------------- the name and its mark */
:root { --idot-y: 0.87em; }
.lockup { display: inline-flex; align-items: center; font-size: var(--lk, 1em); line-height: 1; color: inherit; }
.wm { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.wm__i { position: relative; display: inline-block; }
/* the piece: a small tilted square clear of the stem (a bar there reads as an accent on the i) */
.wm__i::after {
  content: ""; position: absolute; left: 40%; bottom: var(--idot-y); width: 0.19em; height: 0.19em;
  border-radius: 0.05em; background: var(--accent); transform: translateX(-50%) rotate(18deg);
}
.footer__mark { color: var(--ink); }

/* ---------------------------------------------------------------- a jump to a place on the page
   It is animated (the owner, 2026-11-14) for a pointer or a finger; not for a visitor who asks for
   less motion (the kit also forces it off there), and not while the keyboard holds the focus: the
   Tab key then brings its next stop on screen at once, never half-way through a glide. No scroll
   margin: the kit lands a section's top on the screen's top and the section's own padding (--padt)
   holds its heading clear of the fixed header. */
@media (prefers-reduced-motion: no-preference) { html:not(:has(:focus-visible)) { scroll-behavior: smooth; } }

/* ---------------------------------------------------------------- the footer's directory */
.closing__links .footer__col ul { font-size: var(--t-body); }
/* a short word (Terms) is narrower than the kit's 44px target: centred in it, the gaps between the three stay even */
.footer__names { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-4); }
.footer__names a { justify-content: center; }
/* a phone: the business's name on a line of its own, the three links on the next */
@media (max-width: 639px) { .footer__names > span { flex: 0 0 100%; } }
/* the same page in the other languages: a row of its own over the legal one, at the directory's own
   size, with its word before it; the page's own language stands as plain words, marked by a line */
.footer__lang { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-5); font-size: var(--t-body); }
.closing__links > .grid > .footer__lang { grid-column: 1 / -1; }
/* where the directory is one row, the languages stand under the mark, in the room the two columns
   leave beside them: the close keeps its height, and with it its button */
@media (min-width: 1024px) {
  .closing__links > .grid > .footer__col { grid-row: 1 / span 2; }
  .closing__links > .grid > .footer__lang { grid-column: 1 / span 6; grid-row: 2; align-self: end; }
}
.footer__lang > * { display: inline-flex; align-items: center; min-height: 48px; }
.footer__lang-word { color: var(--muted); }
.footer__lang > [aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 639px) {
  /* a phone's header scrolls away with the page, so the close needs no room for it at its top; that
     room goes to the row of languages at its foot */
  footer.closing { --padt: var(--s-7); }
  footer.closing > .wrap { row-gap: var(--s-5); }
  footer.closing .closing__links { gap: var(--s-5); }
  footer.closing .closing__links > .grid { row-gap: var(--s-5); }
  footer.closing .closing__cta { gap: var(--s-5); }
  footer.closing .footer__legal { gap: var(--s-3); padding-top: var(--s-4); }
}

/* ---------------------------------------------------------------- a text page
   one column under the fixed header, on the page's left line; no section of the kit's (those are
   one screen tall), so the page is as long as its words */
.text { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-10); }
.text__col { max-width: 62ch; }
/* a translated page's last sentence: the English page is the text of record */
.text__record { margin-top: var(--s-7); font-size: var(--t-small); color: var(--muted); }
.text h1 { font-size: var(--t-h2); line-height: 1.1; }
.text h2 { margin-top: var(--s-8); font-size: var(--t-h3); line-height: 1.2; }
.text p, .text address { margin-top: var(--s-4); line-height: 1.625; }
.text h1 + p { margin-top: var(--s-5); font-size: var(--t-lead); line-height: 1.5; }
.text address { font-style: normal; }
.text address > span { display: block; }
.text a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.text a:hover { text-decoration-color: currentColor; }
/* the footer of a text page: the directory alone, on the dark ground, as long as it is */
.footer.footer--dark:not(.closing) { padding-block: var(--s-9) var(--s-6); }
@media (max-width: 639px) { .text { padding: calc(var(--nav) + var(--s-7)) 0 var(--s-9); } }
