/* Même coque que l'espace client, avec un mur de vidéos à la place des listes. */
:root { --accent: #FF6A2B; --on-accent: #0A0A09; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #121212; }
.k-app { --k-bg: #121212; --k-card: #1c1c1c; --k-hover: #2a2a2a; --k-soft: #a9a9a9; position: fixed; inset: 0; overflow: hidden; background: var(--k-bg); color: #fff; color-scheme: dark; font-family: 'Golos Text', system-ui, sans-serif; font-size: 15px; line-height: 1.4; scrollbar-color: #444 transparent; }
.k-app h1, .k-app h2 { color: #fff; font-family: inherit; }
.k-app button { font: inherit; color: inherit; }
.k-app [hidden] { display: none !important; }
.k-left { position: relative; height: 100%; min-width: 0; overflow: hidden auto; }
.k-hero { height: clamp(84px, 14vh, 128px); background: #1e1e1e; }
.k-head { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 0 clamp(16px, 3vw, 40px); margin-top: -38px; }
.k-logo { display: grid; place-items: center; flex: none; width: 96px; height: 96px; padding: 14px; border: 3px solid var(--k-bg); border-radius: 18px; background: #000; }
.k-logo img { display: block; width: 100%; height: auto; }
.k-who { min-width: 0; padding: 46px 0 2px; }
.k-who h1 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.k-actions { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px clamp(16px, 3vw, 40px); background: var(--k-bg); }
.k-chips { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.k-chips::-webkit-scrollbar { display: none; }
.k-app button.k-chip { display: inline-flex; align-items: center; flex: none; height: 34px; padding: 0 13px; border: 0; border-radius: 17px; background: var(--k-card); color: #fff; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.k-chip:hover { background: var(--k-hover); }
.k-app button.k-chip.on { background: #fff; color: #111; }
.k-app button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.k-body { display: grid; gap: 40px; padding: 14px clamp(16px, 3vw, 40px) 60px; }
.k-sec { display: grid; gap: 10px; min-width: 0; }

.w { display: grid; gap: 10px; }
.w:not(:has(.t)) { display: none; }
.w-h { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.w-s { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.w-v { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.t { scroll-margin: 70px 0 12px; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.t-img { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 8px; background: #000; }
.t-name { display: block; margin-top: 6px; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3; }
.w-h .t-img { aspect-ratio: 16 / 9; }
.w-s .t-img { aspect-ratio: 1; }
.w-v .t-img { aspect-ratio: 9 / 16; }
button.t { cursor: pointer; }
.t.on .t-img { outline: 2px solid #fff; outline-offset: -2px; }
.t img, .t video { display: block; width: 100%; height: 100%; object-fit: contain; }
.t-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--accent); color: var(--on-accent); opacity: 0; transition: opacity .12s; }
.t-play svg { display: block; width: 24px; height: 24px; }
button.t:hover .t-play, button.t:focus-visible .t-play { opacity: 1; }
@media (hover: none) { .t-play { opacity: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px; } .t-play svg { width: 20px; height: 20px; } }
@media (max-width: 999px) {
  .k-head { gap: 12px; margin-top: -28px; }
  .k-logo { width: 72px; height: 72px; padding: 10px; border-radius: 14px; }
  .k-who { padding-top: 34px; }
  .k-chips { margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
  .k-body { gap: 32px; padding-top: 20px; }
}
@media (max-width: 599px) {
  .w-h { grid-template-columns: minmax(0, 1fr); }
  .w-s, .w-v { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .t-play { transition: none; } }
/* Études de cas en carrés, à la manière des cartes de la page Réalisations du site : genre, puis titre. */
.cs { display: grid; gap: 22px 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.c { display: grid; gap: 6px; align-content: start; min-width: 0; color: #fff; text-decoration: none; }
.c-img { display: block; aspect-ratio: 1; margin-bottom: 4px; overflow: hidden; border-radius: 8px; background: #000; }
.c-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
a.c:hover .c-img img { transform: scale(1.03); }
.c-tag { color: var(--k-soft); font-size: 12px; line-height: 1.3; }
.c strong { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
@media (max-width: 599px) { .cs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .c-img img { transition: none; } }
/* Lecteur à droite, comme dans l'espace client ; plein écran au téléphone. */
.k-app { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 33vw, 500px); }
.k-reader { display: flex; flex-direction: column; gap: 12px; min-height: 0; margin: 8px 8px 8px 0; padding: 12px; overflow: hidden auto; border-radius: 14px; background: #1b1b1b; scrollbar-width: thin; }
.k-app button.k-close { display: none; }
.k-app button.k-round { place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; }
.k-round svg { display: block; width: 20px; height: 20px; }
.k-screen { flex: none; display: grid; place-items: center; width: 100%; max-height: 68vh; overflow: hidden; border-radius: 10px; background: #000; }
.k-screen > video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.k-nowrow { flex: none; display: flex; align-items: center; gap: 10px; }
.k-now { flex: 1; min-width: 0; }
.k-now p { margin: 1px 0 0; color: var(--k-soft); font-size: 13px; }
.k-now h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.k-keys { display: flex; flex: none; gap: 2px; }
.k-app button.k-ctl { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #d8d8d8; cursor: pointer; }
.k-app button.k-ctl:hover { background: var(--k-hover); color: #fff; }
.k-ctl svg { display: block; width: 22px; height: 22px; }
.k-next { flex: none; display: grid; gap: 8px; }
.k-next[hidden] { display: none; }
.k-next h3 { margin: 6px 0 0; color: var(--k-soft); font-size: 13px; font-weight: 600; }
.k-queue { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-app button.k-q { aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; border-radius: 6px; background: #000; cursor: pointer; }
.k-q img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .12s; }
.k-q:hover img { opacity: .75; }
@media (max-width: 999px) {
  .k-app { display: block; }
  .k-reader { display: none; }
  .k-reading .k-reader { position: fixed; inset: 0; z-index: 4; display: flex; margin: 0; padding: calc(10px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)); border-radius: 0; background: #0f0f0f; }
  .k-app button.k-close { display: grid; }
  .k-screen { max-height: 66vh; }
  .k-direct .k-reader { display: flex; margin: 8px; }
  .k-direct .k-next { display: none; }
  .k-app.k-direct button.k-close { display: none; }
}
.k-sec { scroll-margin-top: 66px; }
/* Rubriques repliables sur « Tout » : une rangée, puis un + dessous. */
.k-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 4px; min-width: 0; }
.k-sec-head h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.k-app button.k-fold { display: grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transition: transform .12s; }
.k-fold svg { display: block; width: 24px; height: 24px; }
.k-app button.k-fold-bottom { justify-self: center; width: 48px; height: 48px; margin-top: 6px; background: var(--accent); color: var(--on-accent); }
.k-app button.k-fold-bottom:hover { transform: scale(1.08); }
.k-app button.k-fold-bottom.is-open { background: var(--k-hover); color: #fff; }
.k-app button.k-fold-top { width: 32px; height: 32px; background: var(--k-hover); color: #fff; }
.k-fold-top svg { width: 18px; height: 18px; }
.k-app .k-off { display: none !important; }
.rg-wall:has(+ .k-off) { display: none; }
@media (prefers-reduced-motion: reduce) { .k-app button.k-fold { transition: none; } }
/* Notre sélection : un bandeau de vidéos de même taille, qui défile de côté. */
.k-sec[data-sec="notre-selection"] .k-sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.k-band { --k-pad: clamp(16px, 3vw, 40px); }
.k-band .w-h { display: flex; gap: 14px; margin: 0 calc(-1 * var(--k-pad)); padding: 3px var(--k-pad); overflow: auto hidden; scroll-padding-inline: var(--k-pad); scroll-snap-type: x proximity; scrollbar-width: none; }
.k-band .w-h::-webkit-scrollbar { display: none; }
.k-band .w-h > .t { flex: 0 0 clamp(200px, 30%, 380px); scroll-snap-align: start; }
.k-band-nav { display: flex; flex: none; gap: 6px; margin-left: auto; }
.k-band-nav[hidden] { display: none; }
.k-app .k-band-nav button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--k-hover); color: #fff; cursor: pointer; }
.k-app .k-band-nav button:disabled { opacity: .35; cursor: default; }
.k-band-nav svg { display: block; width: 18px; height: 18px; }
/* Une couleur par genre, pour les reconnaître d'un coup d'œil. */
.k-sec[data-sec="etudes-de-cas"] { --k-genre: #E13300; }
.k-sec[data-sec="film"] { --k-genre: #0D72EA; }
.k-sec[data-sec="motion-design"] { --k-genre: #8400E7; }
.k-sec[data-sec="social-media"] { --k-genre: #148A08; }
.k-cols { display: contents; }
.k-cols .k-sec-head h2 { display: flex; align-items: baseline; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 8px; background: var(--k-genre); color: #fff; font-size: 16px; }
.k-cnt { font-size: 13px; font-weight: 600; opacity: .8; }
@media (max-width: 999px) {
  .k-band-nav { display: none; }
  .k-band .w-h > .t { flex-basis: 78%; }
}
