/* ─────────────────────────────────────────────────────────────
   Secousse, the phone version: what every page shares.
   Loaded on all 21 pages right after the page's own <style> (so it wins at equal specificity), with js/mobile.js.
   1. Menu (full screen)   2. Grain   3. « Autres projets » slider   4. Contact band and footer
   5. The « read large » viewer   6. Type on a phone
   ───────────────────────────────────────────────────────────── */

/* ---------- 1. Menu ---------- */
.menu-btn { display: none; }
.menu-mob { display: none; }

@media (max-width: 760px) {
  .nav .cta { display: none; }
  .menu-btn { grid-column: 3; display: flex; align-items: center; gap: 14px; min-width: 128px; justify-content: space-between; padding: 0 var(--gr) 0 20px; border: 0; background: var(--ink); color: var(--white); font: 400 16px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-btn .traits { position: relative; width: 22px; height: 12px; flex: none; }
  .menu-btn .traits i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--open), top .45s var(--open); }
  .menu-btn .traits i:first-child { top: 1px; }
  .menu-btn .traits i:last-child { top: 9.5px; }
  .menu-btn[aria-expanded="true"] .traits i:first-child { top: 5.25px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .traits i:last-child { top: 5.25px; transform: rotate(-45deg); }

  html.menu-ouvert, html.menu-ouvert body { overflow: hidden; }
  html.menu-ouvert .nav { z-index: 91; }
  .menu-mob { position: fixed; left: 0; right: 0; bottom: 0; top: 0; height: 100dvh; z-index: 300; display: flex; flex-direction: column; padding: 0 var(--gr) calc(env(safe-area-inset-bottom, 0px) + 20px) var(--g); padding-top: env(safe-area-inset-top, 0px); overflow-y: auto; overscroll-behavior: contain; background: var(--white); color: var(--ink); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--close), visibility 0s .6s; }
  .menu-mob.on { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--open), visibility 0s; }
  .menu-mob .menu-haut { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; min-height: 60px; margin: 0 calc(var(--gr) * -1) 8px calc(var(--g) * -1); padding: 0 var(--gr) 0 var(--g); background: var(--white); border-bottom: 1px solid var(--ink); }
  .menu-mob .menu-haut .logo { display: block; width: 104px; }
  .menu-mob .menu-haut .logo svg { display: block; width: 100%; height: auto; fill: var(--ink); }
  .menu-mob .menu-fermer { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); }
  .menu-mob .menu-fermer svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  .menu-mob ul { margin: 0; padding: 0; list-style: none; }
  .menu-mob .menu-pages li { border-bottom: 1px solid var(--ink); opacity: 0; transform: translateY(18px); transition: opacity .5s var(--open), transform .7s var(--open); }
  .menu-mob.on .menu-pages li { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i) * 55ms); }
  .menu-mob .menu-pages a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 18px; font: 400 clamp(40px, 12vw, 52px)/.95 var(--display); letter-spacing: -.045em; color: var(--ink); }
  .menu-mob .menu-pages a .ar { font: 300 26px/1 var(--display); letter-spacing: 0; transition: transform .35s var(--open); }
  .menu-mob .menu-pages a:active .ar { transform: translateX(6px); }
  .menu-mob .bas-menu { margin-top: auto; padding-top: 36px; display: grid; gap: 18px; opacity: 0; transition: opacity .5s var(--open); }
  .menu-mob.on .bas-menu { opacity: 1; transition-delay: .4s; }
  .menu-mob .menu-cta { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 14px 20px; background: var(--ink); color: var(--white); font: 400 17px/1.2 var(--sans); }
  .menu-mob .menu-cta .ar { font-size: 1.2em; line-height: 1; }
  .menu-mob .coords { display: grid; gap: 4px; font: 400 18px/1.3 var(--display); letter-spacing: -.01em; }
}

/* ---------- 2. Grain: much lighter on a phone ---------- */
/* Finer on a phone (Léa, 17/11/2026): stretched to 260 px the specks looked like small pixelated stains. */
@media (max-width: 760px) {
  .grain, .nav::after { opacity: .06; background-size: 110px; }
}
/* No crackle on thumbnails when they are touched: a tap sets the hover state and left the photo flickering. */
@media (max-width: 760px), (hover: none) {
  .card .media::after, .B .team figure::after, .carte figure::after, .frise figure::after { animation: none !important; opacity: 0 !important; }
}

/* ---------- 3. « Autres projets »: a row that slides under the thumb, the client's name only ---------- */
.next .points, .work .points { display: none; }
@media (max-width: 760px) {
  .next { display: grid; grid-template-columns: 1fr auto; align-items: center; padding-block: 72px 56px; }
  .next .head { display: contents; }
  .next .head h2 { grid-column: 1 / -1; padding-bottom: 20px; font-size: 30px; }
  .next .autres { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 12px; margin-inline: calc(var(--g) * -1) calc(var(--gr) * -1); padding-inline: var(--g) var(--gr); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); overscroll-behavior-x: contain; scrollbar-width: none; }
  .next .autres::-webkit-scrollbar { display: none; }
  .next .autres .card { flex: 0 0 74%; scroll-snap-align: start; }
  .next .autres .card .media { aspect-ratio: auto; overflow: visible; background: none; }
  .next .autres .card .media img { aspect-ratio: 4 / 5; transform: none; }
  .next .autres .card .media::after { display: none; }
  .next .autres .card .tag { position: static; display: flex; padding: 12px 0 0; background: none !important; clip-path: none; }
  .next .autres .card .tag .top, .next .autres .card .tag .plus { display: none; }
  .next .autres .card .tag .bot { display: flex; justify-content: space-between; align-items: baseline; }
  .next .autres .card .tag b { font: 400 21px/1.15 var(--display); letter-spacing: -.02em; white-space: normal; margin: 0; }
  .next .points { grid-row: 3; grid-column: 1; display: flex; gap: 7px; padding-top: 22px; }
  .work .points { display: flex; gap: 7px; padding-top: 20px; }
  .next .points i, .work .points i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .2; transition: opacity .3s var(--open), transform .3s var(--open); }
  .next .points i.on, .work .points i.on { opacity: 1; transform: scale(1.15); }
  .next .head .tous { grid-row: 3; grid-column: 2; padding-top: 22px; color: var(--ink); background: none; }
}

/* ---------- 4. Contact band and footer, compact ---------- */
@media (max-width: 760px) {
  .band-bleu > .wrap.contact { padding-block: 48px 28px; gap: 18px; }
  .band-bleu > .wrap.contact h2 { font-size: 40px; line-height: .95; max-width: none; }
  .band-bleu > .wrap.contact .mail { font-size: 20px; }
  .band-bleu > .wrap.contact .bar { min-height: 56px; }

  .pied { padding-top: 28px; }
  .pied-haut { row-gap: 22px; padding-bottom: 8px; }
  .pied-marque { gap: 12px; }
  .pied-logo { width: 92px; }
  .pied-marque p { max-width: none; font-size: 17px; line-height: 1.3; }
  .pied-liens { gap: 0; }
  .pied-col { gap: 0; border-top: 1px solid rgba(0, 0, 0, .14); }
  .pied-col > p { display: flex; justify-content: space-between; align-items: center; padding: 15px 0 14px; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .pied-col > p::after { content: "+"; font: 300 22px/1 var(--display); transition: transform .4s var(--open); }
  .pied-col.ouvert > p::after { transform: rotate(45deg); }
  .pied-col ul { display: none; padding-bottom: 16px; font-size: 17px; gap: 8px; }
  .pied-col.ouvert ul { display: grid; grid-template-columns: 1fr !important; }
  .pied-bas { padding-block: 14px calc(env(safe-area-inset-bottom, 0px) + 22px); row-gap: 8px; font-size: 12px; }
  .pied-bas .reseaux { gap: 4px 16px; }
}

/* ---------- 5. The « read large » viewer ---------- */
.zoom .zoom-x, .lire-grand, .zoom .tourner { display: none; }
/* never a « Tourner le téléphone » hint (Léa, 17/11/2026) */
.zoom .tourner, .vue-mob .tourner { display: none !important; }
@media (max-width: 760px) {
  html.zoom-ouvert, html.zoom-ouvert body { overflow: hidden; }
  .zoom { padding: 0 !important; background: #0b0b0b !important; place-items: center; touch-action: pan-y; }
  .zoom img, .zoom.large img, .zoom.lb img, .zoom.large.lb img { width: 100%; height: auto; max-width: 100% !important; max-height: calc(100svh - 200px) !important; object-fit: contain; }
  .zoom .zoom-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font: 300 24px/1 var(--display); cursor: pointer; }
  /* arrows and counter right under the page, not at the bottom of the screen */
  .lb .lb-fl { top: calc(var(--bas, 70svh) + 18px) !important; bottom: auto !important; margin-top: 0 !important; width: 46px; height: 46px; }
  .lb .lb-prev { left: var(--g) !important; } .lb .lb-next { right: var(--gr) !important; }
  .lb .lb-n { top: calc(var(--bas, 70svh) + 33px); bottom: auto !important; }
  .zoom .tourner { position: absolute; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90vw; margin: 0; top: calc(var(--bas, 70svh) + 84px); display: block; text-align: center; color: rgba(255, 255, 255, .6); font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
  /* the « read large » button under every flip-through block */
  .lire-grand { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 12px 8px; border: 0; background: var(--ink); color: var(--white); font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; }
  .lire-grand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .deckb .barre { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
  .deckb .vignettes .tout { display: none; }
}
/* a phone turned sideways: the page fills the screen, arrows on the sides */
@media (max-height: 500px) and (orientation: landscape) {
  html.zoom-ouvert, html.zoom-ouvert body { overflow: hidden; }
  .zoom { background: #0b0b0b !important; padding: 0 !important; }
  .zoom.lb img, .zoom.large.lb img { max-height: calc(100svh - 24px) !important; max-width: calc(100vw - 150px) !important; }
  .zoom .tourner { display: none; }
  .zoom .zoom-x { display: grid; position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font: 300 22px/1 var(--display); }
  .lb .lb-n { bottom: 8px !important; }
}

/* ---------- 5b. Screenshots too small to read (img[data-agrandir], js/mobile.js): a tap opens them full screen ---------- */
.vue-mob { display: none; }
@media (max-width: 760px) {
  .a-agrandir::after { content: ""; position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; pointer-events: none;
    background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
  img[data-agrandir] { cursor: zoom-in; }
  .vue-mob { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #0b0b0b; opacity: 0; transition: opacity .35s var(--open); }
  .vue-mob[hidden] { display: none; }
  .vue-mob.on { opacity: 1; }
  .vue-mob .vue-defil { width: 100%; max-height: 100svh; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .vue-mob .vue-defil::-webkit-scrollbar { display: none; }
  .vue-mob .vue-defil img { display: block; max-width: 100%; max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; }
  /* wide pictures: as tall as the screen allows, then slide sideways */
  .vue-mob.large .vue-defil { place-items: center start; padding-inline: 12px; }
  .vue-mob.large .vue-defil img { max-width: none; height: calc(100svh - 190px); max-height: none; }
  .vue-mob .vue-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font: 300 24px/1 var(--display); cursor: pointer; }
  .vue-mob .tourner { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%); width: max-content; max-width: 90vw; margin: 0; color: rgba(255, 255, 255, .6); font: 400 12px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .02em; text-align: center; }
  .vue-mob .tourner[hidden] { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .vue-mob { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #0b0b0b; }
  .vue-mob[hidden] { display: none; }
  .vue-mob .vue-defil img { display: block; max-width: calc(100vw - 120px); max-height: calc(100svh - 24px); }
  .vue-mob .vue-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font: 300 22px/1 var(--display); }
  .vue-mob .tourner { display: none; }
}

/* ---------- 6. Type on a phone: no justified text in a narrow column ---------- */
@media (max-width: 760px) {
  body :is(p, blockquote, li) { text-align: left !important; hyphens: manual !important; -webkit-hyphens: manual !important; text-wrap: pretty; }
  .avis blockquote, .B .avis blockquote { width: auto !important; max-width: none !important; justify-self: stretch !important; font-size: 23px !important; line-height: 1.22 !important; }
  .avis .chiffre, .B .avis .chiffre { font-size: 88px !important; }
  /* the score sits close to its stars and « N avis sur Google »; the quote steps away from them (Léa, 2026-11-16) */
  .avis .score .mono, .B .avis .score .mono { margin-top: 12px !important; }
  .avis, .B .avis { row-gap: 0 !important; }
  .avis .une, .B .avis .une { margin-top: 44px !important; }
}

/* ---------- 7. Project pages ---------- */
@media (max-width: 760px) {
  /* a photo credit sits bottom right on some heroes: the scroll cue moves left so the two don't touch */
  .hero .frame:has(.credit) > .defiler { left: var(--g); translate: none; }
}

/* ---------- 8. Heroes on a phone (Léa, 2026-11-16) ----------
   The hero pictures are landscape: on a phone they keep their own shape (no full-screen portrait crop),
   so the title and the start of the page show at once. No scroll cue on a phone. */
@media (max-width: 760px) {
  /* edge to edge, on every page (Léa: like Jacquie Club and the outil de pilotage) */
  main .hero[data-hero], main .film[data-hero] { padding-inline: 0 !important; margin-inline: 0 !important; width: auto !important; max-width: none !important; }
  main .hero[data-hero] .frame, main .film[data-hero] .screen { width: 100% !important; margin-inline: 0 !important; border-radius: 0 !important; }
  main .hero[data-hero] { height: auto !important; min-height: 0 !important; }
  main .hero[data-hero] .frame { flex: none !important; height: auto !important; }
  /* the slow zoom of the computer comes back (Léa): it ends at scale 1, so the picture ends whole */
  main .hero[data-hero] .frame > img { display: block; height: auto !important; aspect-ratio: auto; transform: none !important; }
  main .hero .defiler, main [data-hero] .defiler { display: none !important; }
  /* the two film heroes (Merci Martin, outil de pilotage) are 16:9 films */
  main .film[data-hero] { height: auto !important; min-height: 0 !important; }
  main .film[data-hero] .screen { flex: none !important; aspect-ratio: 16 / 9; }
  /* « Pause » and « Activer le son » shrink to two small squares with their sign; the words stay for screen readers */
  main .film .btns { left: var(--g); bottom: 22px; gap: 6px; }
  main .film .btns .bar { min-height: 36px !important; width: 36px !important; padding: 0 !important; gap: 0 !important; justify-content: center; font-size: 15px !important; }
  main .film .btns .bar > span:not(.ar) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- 9. Merci Martin on a phone (Léa, 2026-11-16) ----------
   The entrance stays stacked like the computer: the transformation film whole (4:3), then the logo and Martin side by side.
   Martin is a transparent animated picture on a phone (the transparent films showed a white square on iPhones). */
@media (max-width: 760px) {
  .entree { display: grid !important; grid-template-columns: 1fr 1fr !important; grid-template-rows: none !important; gap: 10px !important; }
  .entree > .transfo { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3 !important; }
  .entree > .logo-o, .entree > .masc { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 1 !important; }
  /* one gap between all the pictures of the brand, 10 px, as in the entrance (Léa) */
  div.marque { margin-top: -10px !important; row-gap: 10px !important; }
  div.marque .palette { gap: 10px !important; }
  /* the monogram: an app icon in a yellow band, as on the computer, not a giant icon */
  div.marque .mono-j { aspect-ratio: 16 / 10 !important; }
  div.marque .mono-j img { width: 34% !important; height: auto !important; }
}
/* (the rest of § 9) 
   iPhones showed a white square behind the transparent Martin films: on a phone Martin is a still cut-out picture.
   The graphic system scene (disc, pill, card, tick) is left out on a phone. */
.martin-tel { display: none; }
@media (max-width: 760px) {
  .entree .masc video, .ton-m .dit-b video { display: none !important; }
  .martin-tel { display: block; }
  .entree .masc .martin-tel { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: 96%; width: auto; aspect-ratio: 1; }
  .ton-m .dit-b .martin-tel { position: absolute; left: -8%; bottom: -10%; width: 66%; height: auto; aspect-ratio: 1; }
  .systeme { display: none !important; }
}

/* ---------- 10. Rows that slide, anywhere (Léa, 2026-11-16) ----------
   Put data-glisse on a block: on a phone it becomes a row that slides under the thumb, like « Autres projets », with dots.
   Léa's rule: on a phone nothing is cropped. Every picture shows whole, at its own shape (portrait or landscape),
   no wider than the screen and no taller than 60 % of it. Blocks without a picture (colour cards, text) take 80 % of the width.
   Logo on paper (.papier), sign on black (.noir) and pictogram on green (.vt) stay in a 4:5 frame, shown whole inside it.
   data-glisse="carre" (Merci Martin): designed square tiles.  data-glisse="duo": postcards, recto and verso together.
   A child with the class stack (pictures stacked on a computer) gives each picture its own slide. */
.glisse-points { display: none; }
@media (max-width: 760px) {
  body [data-glisse] { --glisse-max-l: calc(100vw - var(--g) - var(--gr) - 28px); --glisse-max-h: 60svh; display: flex !important; flex-wrap: nowrap !important; align-items: flex-start; gap: 12px !important; margin-inline: calc(var(--g) * -1) calc(var(--gr) * -1) !important; padding-inline: var(--g) var(--gr) !important; padding-block: 4px !important; width: auto !important; height: auto !important; min-height: 0 !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: var(--g); overscroll-behavior-x: contain; scrollbar-width: none; grid-template-columns: none !important; grid-template-rows: none !important; }
  body [data-glisse]::-webkit-scrollbar { display: none; }
  body [data-glisse] > .stack { display: contents !important; }
  /* every slide */
  body [data-glisse] > :not(.stack), body [data-glisse] > .stack > * { position: relative; flex: 0 0 auto !important; width: auto !important; max-width: var(--glisse-max-l) !important; height: auto !important; min-height: 0 !important; margin: 0 !important; grid-column: auto !important; grid-row: auto !important; aspect-ratio: auto !important; scroll-snap-align: start; transform: none !important; translate: none !important; rotate: none !important; overflow: visible; }
  /* a slide that holds a picture or a film: the picture at its own shape, whole */
  body [data-glisse] > :not(.stack) > :is(img, video):not(.pic):not(.martin-tel),
  body [data-glisse] > :not(.stack) > .cadre > :is(img, video),
  body [data-glisse] > .stack > * > img,
  body [data-glisse] > :not(.stack) > div:not(.cadre) > :is(img, video) { position: static !important; display: block; width: auto !important; height: auto !important; max-width: var(--glisse-max-l) !important; max-height: var(--glisse-max-h) !important; aspect-ratio: auto !important; object-fit: contain !important; transform: none !important; inset: auto !important; translate: none !important; }
  body [data-glisse] > :not(.stack) > .cadre { aspect-ratio: auto !important; height: auto !important; width: auto !important; overflow: visible !important; }
  /* a slide without a picture (colour cards, text): 80 % of the width */
  body [data-glisse] > :not(.stack):not(:has(img, video)), body [data-glisse] > .stack > :not(:has(img, video)):not(img) { flex-basis: 80% !important; width: 80% !important; max-width: none !important; }
  body [data-glisse][data-glisse] > .palette.palette:not(.stack) { flex-basis: 92% !important; width: 92% !important; }
  /* logo on paper, sign on black, pictogram on green: a 4:5 frame, the piece whole inside */
  body [data-glisse] > :is(.papier, .noir, .vt) { flex-basis: 80% !important; width: 80% !important; max-width: none !important; aspect-ratio: 4 / 5 !important; display: grid !important; place-items: center; overflow: hidden; }
  body [data-glisse] > :is(.papier, .noir) > img { transform: none !important; translate: none !important; position: static !important; }
  body [data-glisse][data-glisse] > .papier > img:not(.pic):not(.martin-tel) { max-width: none !important; max-height: none !important; width: 62% !important; height: auto !important; max-height: none !important; }
  body [data-glisse][data-glisse] > .noir > img:not(.pic):not(.martin-tel) { max-width: none !important; max-height: none !important; width: 92% !important; height: auto !important; max-height: none !important; }
  body [data-glisse] > .vt > img.pic { position: static !important; width: 80% !important; height: auto !important; max-height: 90% !important; object-fit: contain; transform: none !important; inset: auto !important; }
  /* Merci Martin: designed square tiles */
  body [data-glisse="carre"][data-glisse] > :not(.stack):not(:has(img, video)), body [data-glisse="carre"][data-glisse] > :not(.stack) { flex: 0 0 84% !important; width: 84% !important; min-width: 0 !important; max-width: 84% !important; aspect-ratio: 1 !important; overflow: hidden; }
  body [data-glisse="carre"] > :not(.stack) > :is(img, video):not(.pic):not(.martin-tel) { max-width: none !important; max-height: none !important; }
  body [data-glisse="carre"][data-glisse] > .transfo > video:not(.pic):not(.martin-tel) { width: 100% !important; height: 100% !important; object-fit: contain !important; }
  /* postcards: recto and verso together, 86 % wide */
  body [data-glisse="duo"] { padding-block: 8px 12px !important; align-items: flex-start; }
  body [data-glisse="duo"] > :not(.stack) { flex-basis: 86% !important; width: 86% !important; max-width: none !important; }
  body [data-glisse="duo"] .cp img { max-width: 100% !important; max-height: none !important; width: 100% !important; }
  /* reels: two-thirds of the screen wide, the film whole */
  body .clips[data-glisse] > :not(.stack) { flex-basis: 64% !important; width: 64% !important; max-width: none !important; }
  body .clips[data-glisse] .screen { aspect-ratio: auto !important; height: auto !important; }
  body .clips[data-glisse][data-glisse] > :not(.stack) video:not(.pic) { width: 100% !important; max-width: 100% !important; max-height: none !important; }
  /* DefInSpace posters: poster, mock-up, poster, mock-up (Léa) */
  body .affiches[data-glisse] > :nth-child(3) { order: 4; }
  body .affiches[data-glisse] > :nth-child(4) { order: 3; }
  /* DefInSpace posters: the plain posters in a 4:5 grey frame */
  body .affiches[data-glisse] > .plate { flex-basis: 80% !important; width: 80% !important; max-width: none !important; aspect-ratio: 4 / 5 !important; }
  body .affiches[data-glisse][data-glisse] > .plate > img:not(.pic):not(.martin-tel) { position: absolute !important; max-width: 80% !important; max-height: 80% !important; inset: 50% auto auto 50% !important; translate: -50% -50% !important; }
  /* home: the expertise cards */
  body [data-glisse="texte"] { align-items: stretch; }
  .glisse-points { display: flex; gap: 7px; padding-top: 16px; }
  body [data-glisse].glisse-nu { margin-inline: 0 !important; }
  .glisse-points.glisse-nu, .glisse-apres.glisse-nu { padding-inline: var(--g) var(--gr); }
  /* text cards taken out of a row (colour chart, credits, caption): whole, right under the dots */
  .glisse-apres { display: grid; gap: 12px; margin-top: 20px; }
  .glisse-apres > * { grid-column: auto !important; grid-row: auto !important; width: auto !important; max-width: none !important; margin: 0 !important; transform: none !important; aspect-ratio: auto !important; }
  .glisse-points i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .2; transition: opacity .3s var(--open), transform .3s var(--open); }
  .glisse-points i.on { opacity: 1; transform: scale(1.15); }
}

/* ---------- 10b. Pictures outside the rows, on a phone: whole, never cropped (Léa, 2026-11-16) ---------- */
@media (max-width: 760px) {
  body main figure:not(:is(.vt, .papier, .noir, .plate, .hero, .film, .logo-o, .masc, .dit-b, .mots-m, .notifs, .transfo, .mono-j)):not([data-hero]):not(:is([data-glisse], .defile, .collection, .deck, .vignettes, .livret, .stage, .navig, .ecran, .scene-s) *):has(> img:not(.pic), > .cadre > img),
  body main figure:not(:is([data-glisse], .defile, .collection, .deck, .vignettes, .livret, .stage, .navig, .ecran, .scene-s) *) > .cadre { flex: none !important; aspect-ratio: auto !important; height: auto !important; }
  body main figure:not(:is(.vt, .papier, .noir, .plate, .hero, .film, .logo-o, .masc, .dit-b, .mots-m, .notifs, .transfo, .mono-j)):not([data-hero]):not(:is([data-glisse], .defile, .collection, .deck, .vignettes, .livret, .stage, .navig, .ecran, .scene-s) *) > img:not(.pic):not(.martin-tel),
  body main figure:not([data-hero]):not(:is([data-glisse], .defile, .collection, .deck, .vignettes, .livret, .stage, .navig, .ecran, .scene-s) *) > .cadre > img { position: static !important; width: 100% !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; inset: auto !important; transform: none !important; }
  /* Martin stays inside his yellow tile; the studio photos without their drift zoom; films whole in their screens */
  .ton-m .dit-b .martin-tel { left: 0 !important; bottom: 0 !important; width: 62% !important; }
  .photo-duo img { transform: none !important; }
  .photo-duo { aspect-ratio: auto !important; max-height: none !important; }
  .photo-duo img { height: auto !important; object-fit: contain !important; }
  .ecran .vitre video { object-fit: contain !important; }
  .ig-media img { object-fit: contain !important; background: #fff; }
  .deck .post > img { object-fit: contain !important; }
  .et, .cp img { object-fit: contain !important; }
}

/* ---------- 11. Projets gallery on a phone (Léa, 2026-11-16): two columns of small cards, each with its colour card
   under the picture: what the client is, then the name, each on one line, cut with « … » when too long ---------- */
@media (max-width: 760px) {
  main #grid { grid-template-columns: 1fr 1fr !important; column-gap: 10px !important; row-gap: 14px !important; }
  main #grid > .card { grid-column: auto !important; min-width: 0; }
  main #grid .card .media img { aspect-ratio: 4 / 5 !important; }
  main #grid .card .tag { gap: 6px !important; padding: 9px 10px 10px !important; }
  main #grid .card .tag .top { display: block !important; min-width: 0; }
  main #grid .card .tag .top .mono + .mono, main #grid .card .tag .plus { display: none !important; }
  main #grid .card .tag .top .mono { display: block; font-size: 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  main #grid .card .tag .bot { min-width: 0; }
  main #grid .card .tag b { display: block; font: 500 16px/1.2 var(--display) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; margin: 0 !important; }
}

/* ---------- 12. Instagram carousels on a phone (Léa, 2026-11-16) ----------
   The carousel clipped the posts' soft shadow at its bottom edge, which drew a darker box under the phone: clip the sides only. */
@media (max-width: 760px) {
  .carrousel { overflow-x: clip !important; overflow-y: visible !important; }
}

/* ---------- 13. Page by page, on a phone (Léa's review, 2026-11-16) ---------- */
@media (max-width: 760px) {
  /* Jacquie Club: on a touch the colour floods the whole card */
  .teinte.vu:active .rond { transform: translate(-50%, -50%) scale(7) !important; }
@media (hover: hover) { .teinte.vu:hover:not([data-clic]) .rond { transform: translate(-50%, -50%) scale(7) !important; } }
  /* MA3: the two reels side by side in a row, two-thirds of the screen wide each */
  body .clips.deux[data-glisse] > :not(.stack) { flex-basis: 64% !important; width: 64% !important; max-width: none !important; }
  body .clips.deux[data-glisse] .screen { aspect-ratio: 9 / 16 !important; height: auto !important; }
  body .clips.deux[data-glisse] video { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover !important; }
  /* 51 Degrés: a taller frame and a smaller animated logo, so it breathes */
  body main figure.logo-panneau > .cadre { aspect-ratio: 1 / 1 !important; height: auto !important; display: grid !important; place-items: center; }
  .logo-panneau .logo51 { width: 40% !important; }
  /* Ferme de Lyon: the postcards one after the other, a little smaller */
  .cps { row-gap: 72px !important; }
  .cps .cp-duo { grid-column: 1 / -1 !important; width: 86%; justify-self: center; margin-top: 0 !important; padding-inline: 0 !important; }
  /* L2A: the pages that scroll by, a little smaller */
  .defile figure { height: 120px !important; }
  .defile img { height: 100% !important; width: auto !important; }
  /* Éros: the white postcard on a dark ground, so it shows */
  body main .cartes figure.verso > .cadre { aspect-ratio: 3 / 2 !important; display: grid !important; place-items: center; background: #1f1d1b !important; }
  body main .cartes figure.verso > .cadre > img { width: 72% !important; height: auto !important; }
  /* --- repasse mobile du 17/11/2026 --- */
  /* video buttons: the icon stays beside its word (it dropped under « Pause » and « Son » on L2A) */
  .btns button, button.lire, button.son { white-space: nowrap; }
  /* reels side by side: the caption keeps two lines of room, so the buttons line up from one reel to the next */
  .reel figcaption > .mono:first-child { min-height: 2.7em; }
  /* Ferme de Lyon: the postcard captions centred under their card (the general left alignment had moved them) */
  .cp-duo .mono { text-align: center !important; }
  /* L2A: less empty navy above the pages that scroll by */
  .defile { margin-top: 24px !important; }
  /* Jacquie Club, DefInSpace: the booklet stays in place on a phone (rising into place, it covered its caption) */
  .feuille { --k: 1 !important; }
  /* ERCO: the post caption scrolls like on Instagram; it fades at the bottom instead of a line cut in half */
  .post .legende { -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent); mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }
  /* ERCO: room under the feed, so it does not stop flush on the edge of the stone band */
  .salle:has(.fil) { padding-bottom: 48px !important; }
  /* the selected thumbnail of a document viewer: its frame inside, so it stays on the page margin */
  .vignettes button[aria-current="true"] { outline-offset: -2px !important; }
  /* Oden shooting: the photo credits in white over the dark wood, so they can be read */
  .hero .frame:has(img[src*="serum-rouge"]) .credit { color: #fff !important; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
}
.tel .vue video { background: transparent; }

/* ---------- 14. Home on a phone (Léa, 2026-11-16) ---------- */
@media (max-width: 760px) {
  /* recent projects: smaller cards, the colour card with what the client is and its name, one line each */
  .B .cards > .card { flex: 0 0 62% !important; }
  .B .cards .card .tag { gap: 4px !important; padding: 9px 10px 10px !important; }
  .B .cards .card .tag .top { display: block !important; min-width: 0; }
  .B .cards .card .tag .top .mono + .mono, .B .cards .card .tag .plus { display: none !important; }
  .B .cards .card .tag .top .mono { display: block; font-size: 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .B .cards .card .tag b { display: block; font: 500 16px/1.2 var(--display) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; margin: 0 !important; }
  /* the two of us: the same 4:5 frame, as on the computer */
  .B .team figure { aspect-ratio: 4 / 5 !important; }
  .B .team figure img { width: 100% !important; height: 100% !important; object-fit: cover !important; transform: none !important; }
  .B .about { padding-bottom: 64px !important; }
}

/* ---------- 15. One rhythm on a phone: no big empty gaps (Léa, 2026-11-16) ---------- */
@media (max-width: 760px) {
  main section.chap { padding-block: 48px !important; }
  .avis { padding-bottom: 56px !important; }
  .band-bleu { margin-top: 56px !important; }
  .clients-band { padding-top: 56px !important; }
  main .next { padding-top: 48px !important; }
  main .gallery { padding-bottom: 48px !important; }
  /* Expertises: the opening starts right under the header instead of waiting at the bottom of a full screen */
  .pagehead:has(> h1) { min-height: 0 !important; padding-top: 56px !important; }
}

/* ---------- 16. The way back to the gallery on project pages (phone only) ---------- */
.retour-projets { display: none; }
@media (max-width: 760px) {
  .retour-projets { display: inline-flex; gap: 8px; align-items: center; justify-self: start; width: fit-content; margin: 0 0 18px; padding: 6px 0; color: var(--ink); text-decoration: none; }
}

/* ---------- 17. No « Le studio » label over the studio text, on a phone (Léa, 2026-11-18) ----------
   Home (.about .story) and Studio (.manifeste): the heading stays for screen readers and search engines,
   it is only taken off the screen. */
@media (max-width: 760px) {
  .about .story > h2.lab, .manifeste > h2.lab#studio {
    position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
    overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
  }
}

/* ---------- 18. TEST (Léa, 2026-11-18): the four expertise boxes run edge to edge on a phone ----------
   Home (under the opening text) and Studio (« Nos expertises »). The words keep to the page margin. */
@media (max-width: 760px) {
  .B .chips, .exps .chips { margin-left: calc(-1 * var(--g)) !important; margin-right: calc(-1 * var(--gr)) !important; }
  .B .chips .chip, .exps .chips .chip { padding-left: var(--g) !important; padding-right: var(--gr) !important; }
}
/* the four expertise cards of the home row (Léa, 2026-11-18, TEST): one card the width of the screen, edge to edge,
   no gap; the words on the page margin */
@media (max-width: 760px) {
  body .B .blocks[data-glisse="texte"] { gap: 0 !important; padding-inline: 0 !important; scroll-padding-inline: 0; scroll-snap-type: x mandatory; }
  body .B .blocks[data-glisse="texte"] > .block { flex-basis: 100% !important; width: 100% !important; padding-left: var(--g) !important; padding-right: var(--gr) !important; }
  body .B .blocks[data-glisse="texte"] ~ .glisse-points { padding-left: var(--g); }
}
