/*
 * Project page (project-page.mjs, /projet-apple/<slug>/), loaded after apple.css, the coherent layer
 * and apple-service.css, whose hero, rows on the « Fil conducteur », buttons and « Lire la suite » it
 * reuses. Only what the project page adds is here, in the same tokens: the night black, the white
 * and black alpha scales, the sand cards, the Biux blue, the 10 px radius.
 */

/* 1. The hero: the service pages'. The client's logo in white above the H1, whose words before its
   colon take a line of their own in the lighter white. It fills the whole screen, the facts coming
   just under it as the page scrolls (Kevin, 30 October 2026: « je veux que ça ne fasse pas partie de
   tout ce qui est bloqué par la taille de l'écran […] on laisse plus de place au texte et on voit
   plus le film »). */
.case-facts{--hero-gutter:clamp(2rem,3.25vw,3.75rem)}
.case-hero .service-hero-copy{max-width:66rem}
/* The vertical template's hero (project-page.mjs CaseHero): the first film in a phone's screen on
   the right, from under the breadcrumb to the words' foot and over the stage's shade, the words on
   its left; the film's still, blurred, colours the stage. A phone fills its screen with it (below). */
.case-hero--vertical{--phone-h:min(calc(var(--screen-h,100svh) - 9.5rem - clamp(2rem,6svh,4rem)),46rem)}
.case-hero--vertical .hero-poster{filter:blur(56px) brightness(.6) saturate(1.2);transform:scale(1.2)}
.case-hero--vertical .service-hero-copy{max-width:min(66rem,100% - var(--phone-h) * 9 / 16 - 3rem)}
.case-hero-screen{position:absolute;z-index:1;right:var(--hero-gutter);bottom:clamp(2rem,6svh,4rem);width:calc(var(--phone-h) * 9 / 16);height:var(--phone-h);overflow:hidden;border-radius:1.75rem;background:var(--night);box-shadow:var(--shadow-card);container-type:size}
.case-hero-screen>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* Vimeo's player covers the screen as the film would, 9:16 (as .hero-vimeo does in 16:9). */
/* A Vimeo player 2 px over each edge of its frame, which clips it: sized exactly, it left the frame's last
   pixel column uncovered when the frame's width falls between two pixels (Kevin, 15 November 2026:
   « on a une petite ligne blanche à droite »). */
.case-hero-film{inset:auto;top:50%;left:50%;width:calc(max(100cqw,56.25cqh) + 4px);height:calc(max(100cqh,177.78cqw) + 4px);border:0;transform:translate(-50%,-50%);pointer-events:none}
.case-client{display:block;width:auto;max-width:9rem;height:2.25rem;margin-bottom:1.75rem;object-fit:contain;object-position:left center;filter:brightness(0) invert(1)}
.case-title-lead{display:block;color:var(--white-72)}
/* Safari's balanced lines miscount the title's word spacing (apple-service.css .service-title): a short
   H1 broke in two (« Mozar – / VSL ») and Accor's in five lines, its colon alone on one (WebKit 18,
   31 October 2026). Without it they break as in Chrome; only Safari knows hanging-punctuation. */
@supports (hanging-punctuation:first){.case-title{word-spacing:normal}}
/* « Lire le film »: the hero's white button, a play mark before its words and the film's length after. */
.case-play{gap:.625rem}
.case-play .icon{width:1.125rem;height:1.125rem}
.case-play-length{padding-left:.625rem;border-left:1px solid var(--black-24);font-weight:500;color:var(--stone)}

/* 2. The project at a glance: on the hero's black, one line of facts in a frame of the 6 % white,
   parted by hairlines, each its name in small capitals over its value (Yalp's strip, in the site's
   materials). Two to a row on phones. */
.case-facts{padding:0 var(--hero-gutter) clamp(2.5rem,5vw,3.5rem);background:var(--night);color:var(--white)}
.case-facts-list{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);margin:0;border-radius:var(--radius);background:var(--white-6);box-shadow:var(--glass-edge)}
.case-fact{display:grid;align-content:start;gap:.5rem;padding:1.25rem 1.5rem}
.case-fact+.case-fact{border-left:1px solid var(--white-12)}
.case-fact dt{font-size:.75rem;line-height:1.3;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--white-72)}
.case-fact dd{margin:0;font-size:1.0625rem;line-height:1.35;color:var(--white)}
.case-fact a{text-decoration:underline;text-decoration-color:var(--white-48);text-underline-offset:.2em;transition:text-decoration-color .2s var(--ease-standard)}
.case-fact a:hover{text-decoration-color:var(--white)}
.case-fact-logo{width:auto;max-width:7rem;height:1.5rem;object-fit:contain;object-position:left center;filter:brightness(0) invert(1)}
/* A logo drawn for dark grounds keeps its colours (film-card.mjs keepsOwnColours: Klyra Design's « design »
   knocked out of its blue box, which the white would fill in). */
.case-client[data-own-colours],.case-fact-logo[data-own-colours]{filter:none}

/* A vertical series (project-page.mjs CaseFilms): its films side by side in phones (the 9:16 cut's
   .case-phone, filling its 9:16 tile), on the facts' black; on phones, a row that slides. */
.case-films{--hero-gutter:clamp(2rem,3.25vw,3.75rem);padding:0 var(--hero-gutter) clamp(3rem,6vw,4.5rem);background:var(--night)}
.case-films-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2.5vw,2rem);width:min(100%,56rem);margin:0 auto;padding:0;list-style:none}
.case-films-item{position:relative}
.case-films-item::before{content:"";display:block;padding-top:177.78%}
.case-films-item .case-phone{height:100%}

/* 3. The figures: large numbers in the regular weight, each over its line, side by side on a hairline. */
.case-figures-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:2.5rem clamp(1.5rem,3vw,3rem);width:min(100% - 2 * var(--gutter),var(--content));margin:0 auto}
.case-figure{display:grid;align-content:start;gap:.625rem;padding-top:1.5rem;border-top:1px solid var(--separator);container-type:inline-size}
/* A number never breaks (« 60 677 » read as two numbers on a phone, 31 October 2026): the list's
   numbers take the size at which its widest fits its column (--figure-em, its width in em,
   project-page.mjs CaseFigures), never above the usual one. */
.case-figure-value{font-size:clamp(3.5rem,2.25rem + 4vw,6rem);font-size:min(clamp(3.5rem,2.25rem + 4vw,6rem),100cqi / var(--figure-em,1));white-space:nowrap;line-height:1;letter-spacing:-.045em;font-weight:400;font-variant-numeric:tabular-nums;color:var(--label)}
.case-figure-label{max-width:15rem;font-size:1.0625rem;line-height:1.4;color:var(--label-2)}

/* 4. The story: the service pages' rows (apple-service.css), one per chapter. The picture has a box
   of its own, framed by the viewfinder corners; while a chapter is open, it stays in view beside
   the words being read instead of stretching down the whole card. */
.case-story .split-row--picture::after{content:none}
.case-story .case-visual{position:relative;grid-row:1;grid-column:1;min-height:clamp(22rem,32vw,30rem);overflow:hidden;border-radius:var(--radius);background:var(--bg-alt)}
.case-story .split-row--flip>.case-visual{grid-column:2}
.case-visual>:is(img,video){position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* A chapter's film appears over its poster once it plays (project-film.mjs), as the hero's. */
.case-visual>video{opacity:0;transition:opacity .8s var(--ease-standard)}
.case-visual>video.is-playing{opacity:1}
.case-visual:has(>img)::after{--corner:clamp(1.25rem,2vw,1.75rem);--line:linear-gradient(var(--white),var(--white));content:"";position:absolute;inset:clamp(.875rem,1.6vw,1.375rem);background:var(--line) 0 0/var(--corner) 2px,var(--line) 0 0/2px var(--corner),var(--line) 100% 0/var(--corner) 2px,var(--line) 100% 0/2px var(--corner),var(--line) 0 100%/var(--corner) 2px,var(--line) 0 100%/2px var(--corner),var(--line) 100% 100%/var(--corner) 2px,var(--line) 100% 100%/2px var(--corner);background-repeat:no-repeat;opacity:.85;pointer-events:none}
.case-story .split-row--picture:has(.case-more[open])>.case-visual{position:sticky;top:calc(var(--nav-height) + 1.5rem);align-self:start;height:min(34rem,calc(100svh - var(--nav-height) - 3rem))}
/* The chapters' H2 are long sentences: the card's whole width, justified to its right edge as the
   words under them (Kevin, 30 October 2026: « je veux que les titres aussi aillent jusqu'au bout à
   droite »), their last line at the start and no word cut; a size smaller than the service rows'
   titles, so a justified line holds enough words not to open wide gaps between them. */
/* As specific as apple-service.css's size for the rows' titles (its :is(h2,h3:first-child) counts as
   a pseudo-class), which this sheet follows. */
.case-story .split-row--picture .split-row-text>h2:first-child{max-width:none;font-size:clamp(1.5rem,1.1rem + .9vw,2rem);text-wrap:wrap;text-align:justify;text-align-last:start;-webkit-hyphens:manual;hyphens:manual}
/* A hyphenated word of a title never splits at its hyphen (project-page.mjs wholeHyphenated). */
.case-whole{white-space:nowrap}
/* The story's words and the review's justified, their last line at the start and long words cut
   at the line's end, as the project pages' and the blog's articles online (Kevin, 30 October 2026:
   « je veux que les textes soient justifiés »); titles, labels and buttons stay as they are. */
.case-story .split-row-text :is(p,li,blockquote),.case-review-quote{text-align:justify;text-align-last:start;-webkit-hyphens:auto;hyphens:auto}
/* « Lire la suite » inside the card: the white of the page on the sand, the service pages' chevron. */
.case-more{width:100%}
.case-more summary{display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:0 1.125rem;border-radius:var(--radius);background:var(--white);box-shadow:0 1px 2px var(--black-12);font-size:.9375rem;font-weight:500;color:var(--label);list-style:none;transition:box-shadow .2s var(--ease-standard)}
.case-more summary::-webkit-details-marker{display:none}
.case-more summary::after{content:"";width:.5rem;height:.5rem;margin-top:-.25rem;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s var(--ease-standard)}
.case-more[open] summary::after{margin-top:.25rem;transform:rotate(-135deg)}
.case-more summary:hover{box-shadow:0 1px 2px var(--black-12),0 .375rem 1rem var(--black-6)}
.case-more-text{display:grid;gap:1rem;margin-top:1.5rem}

/* What the site does not have yet, in the preview only: a slot on the sand, its edge dashed, its mark
   in the Biux blue, « À fournir » in a blue chip, then what to provide and how. */
.case-slot{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:.625rem;padding:1.5rem;border:1.5px dashed var(--black-24);border-radius:var(--radius);background:var(--bg-alt);text-align:center}
.case-slot .icon{width:2rem;height:2rem;margin-bottom:.25rem;color:var(--button)}
.case-slot-tag{padding:.25rem .625rem;border-radius:999px;background:var(--button);font-size:.6875rem;line-height:1.3;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--white)}
.case-slot-title{max-width:20rem;font-size:1.0625rem;line-height:1.3;font-weight:600;color:var(--label)}
.case-slot-hint{max-width:20rem;font-size:.875rem;line-height:1.45;color:var(--label-2)}
/* The vertical film and the storyboard stand on the page itself, without their box's colour around
   them (Kevin, 31 October 2026: « enlève les encadrés noirs derrière la version verticale et derrière
   le storyboard. Ça ne sert à rien »), on computers and phones; the box keeps its size. */
.case-story .case-visual:has(.case-phone,.case-prints){background:none}
/* A vertical film (Accor's 9:16 cut): a phone's screen in the middle of the box, on the night black
   at the 10 px radius's larger cousin, lifted as the prints; its film over its poster once it plays
   (project-film.mjs), « Lire avec le son » over its foot in the bar's dark glass. */
.case-phone{position:absolute;top:50%;left:50%;height:88%;aspect-ratio:9/16;overflow:hidden;border-radius:1.5rem;background:var(--night);box-shadow:var(--shadow-card);transform:translate(-50%,-50%)}
.case-phone>:is(img,video){position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.case-phone>video{opacity:0;transition:opacity .8s var(--ease-standard)}
.case-phone>video.is-playing{opacity:1}
.case-phone-play{position:absolute;left:50%;bottom:1rem;display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;padding:0 1.125rem;border-radius:var(--radius);background:var(--glass-dark);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);box-shadow:var(--glass-edge);font-size:.875rem;font-weight:600;white-space:nowrap;color:var(--white);transform:translateX(-50%);transition:background-color .2s var(--ease-standard)}
.case-phone-play:hover{background:var(--black-48)}
.case-phone-play .icon{width:1rem;height:1rem}
/* A document's pages (Accor's storyboard) as prints on the sand: white-edged and lifted as the home's
   formats (apple.css .format-card--print), fanned with small tilts, the first page in front. */
/* Each print sized by its box's width AND height (container units), so the whole fan — about 1.7
   print heights tall and 1.2 print widths wide with its offsets and tilts — stays inside the box
   on every screen, the wide and low box of a large screen included (Kevin, 30 October 2026: « le
   storyboard sur mon écran est crop en haut et en bas »). */
.case-prints{position:absolute;inset:0;container-type:size}
.case-print{position:absolute;top:50%;left:50%;width:min(72cqw,88cqh);aspect-ratio:16/9;box-sizing:border-box;padding:.4375rem;border-radius:var(--radius);background:var(--white);object-fit:cover;box-shadow:var(--shadow-card);transform:translate(-50%,-50%) translate(var(--dx),var(--dy)) rotate(var(--r))}
.case-print:nth-child(1){--dx:-7%;--dy:-30%;--r:-5deg}
.case-print:nth-child(2){--dx:8%;--dy:-4%;--r:3.5deg}
.case-print:nth-child(3){--dx:-3%;--dy:24%;--r:-1.5deg}
/* A vertical film's slot: the dashed edge draws a phone's screen (9:16) in the middle of the box. */
.case-slot--vertical{border:0}
.case-slot--vertical::before{content:"";position:absolute;top:50%;left:50%;height:86%;aspect-ratio:9/16;border:1.5px dashed var(--black-24);border-radius:1.25rem;background:var(--white);transform:translate(-50%,-50%)}
.case-slot--vertical>*{position:relative;max-width:11rem}

/* 5. The client's review (Yalp's « Le résultat »): one sand card, the stars, the words large, then
   the author, the client's logo and the link to Biux's Google reviews. */
.case-review-card{display:grid;justify-items:start;gap:clamp(1.25rem,2.5vw,2rem);width:min(100% - 2 * var(--gutter),var(--content));margin:0 auto;padding:clamp(2rem,5vw,4.5rem);border-radius:var(--radius);background:var(--bg-alt)}
.case-review-card .review-rating{font-size:1.125rem}
/* The words across the card's whole width, to the end of the line under them (Kevin, 30 October 2026:
   « je veux que l'avis client aille jusqu'au bout à droite à la fin de la ligne horizontale »). */
.case-review-quote{width:100%;font-size:clamp(1.375rem,1rem + 1.3vw,2.125rem);line-height:1.3;letter-spacing:-.018em;color:var(--label);text-wrap:pretty}
.case-review-author{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.25rem;width:100%;padding-top:clamp(1.25rem,2.5vw,1.75rem);border-top:1px solid var(--separator)}
.case-review-author .review-portrait{width:3.5rem;height:3.5rem}
.case-review-who{display:grid;gap:.125rem;margin-right:auto}
.case-review-name{font-size:1rem;line-height:1.3;font-weight:600;color:var(--label)}
.case-review-role{font-size:.875rem;line-height:1.4;color:var(--label-2)}
/* The client's logo in its own colours, always (Kevin, 30 October 2026: « ici met le logo tjrs en
   couleur »), where the reviews' running columns keep theirs quiet (apple.css --logo-filter). */
.case-review-card .review-logo{height:1.75rem;max-width:8.5rem;filter:none;opacity:1}
.case-review-google{display:inline-flex;align-items:center;gap:.375rem;min-height:2.75rem;font-size:.9375rem;font-weight:500;color:var(--tint)}
.case-review-google .icon{width:1rem;height:1rem;transition:transform .25s var(--ease)}
.case-review-google:hover span{text-decoration:underline;text-underline-offset:.2em}
.case-review-google:hover .icon{transform:translateX(.125rem)}

/* 6. The pictures of the shoot: a mosaic of four columns, the first picture two by two. */
.case-gallery-grid{display:grid;grid-template-columns:repeat(var(--columns,4),minmax(0,1fr));grid-auto-rows:clamp(11rem,16vw,15rem);gap:clamp(.75rem,1.5vw,1.25rem);width:min(100% - 2 * var(--gutter),var(--content));margin:0 auto;padding:0;list-style:none}
.case-gallery-grid>li{position:relative;overflow:hidden;border-radius:var(--radius);background:var(--bg-alt)}
/* Each tile as wide as project-page.mjs gallerySpans says (--span), so the mosaic has no hole; the
   first two by two. */
.case-gallery-grid>li{grid-column:span var(--span,1)}
.case-gallery-grid>.is-large{grid-column:span 2;grid-row:span 2}
.case-gallery-grid>li>:is(img,video){position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* A piece's caption, what it shows: its words straight on the picture, white, over a black vignette
   that starts at the tile's edge and fades out (Kevin, 30 October 2026: « une espèce de vignette
   noire qui commence à la bordure et qui s'arrête en dégradé », in place of grey boxes), as the
   service heroes' fade (apple-service.css). At the foot, or at the top where the piece's subject
   is at its foot (the timeline's line). */
.case-gallery-grid>li:has(>.case-caption)::after{content:"";position:absolute;left:0;right:0;bottom:0;z-index:1;height:clamp(5rem,48%,10rem);background:linear-gradient(to top,rgb(17 16 14 / 78%),rgb(17 16 14 / 42%) 45%,rgb(17 16 14 / 0%));pointer-events:none}
.case-gallery-grid>li:has(>.case-caption--top)::after{top:0;bottom:auto;background:linear-gradient(to bottom,rgb(17 16 14 / 78%),rgb(17 16 14 / 42%) 45%,rgb(17 16 14 / 0%))}
.case-caption{position:absolute;left:1rem;right:1rem;bottom:.875rem;z-index:2;margin:0;font-size:.9375rem;line-height:1.3;font-weight:500;letter-spacing:-.005em;color:var(--white);text-shadow:0 1px 2px rgb(17 16 14 / 48%);pointer-events:none}
.case-caption--top{top:.875rem;bottom:auto}
/* The photos' slideshow (project-film.mjs): a track of photos each as wide as the tile, slid one to
   the left at a time with the page's ease; the first photo, still, where motion is unwelcome. */
/* The speakers' mosaic (project-page.mjs peopleVisual): two by two, the tile's own ground between the
   shots. Each shot carries its title at its edge, so the tile keeps the film's 16:9 (centred beside the
   text, open or not) instead of the row's height, which would crop the titles' sides. */
.case-story .case-visual:has(.case-people){align-self:center;min-height:0;aspect-ratio:16/9}
.case-story .case-visual:has(.case-people)::before{content:"";display:block;padding-top:56.25%}
.case-story .split-row--picture:has(.case-more[open])>.case-visual:has(.case-people){height:auto}
.case-people{position:absolute;inset:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:.375rem;margin:0;padding:0;list-style:none}
.case-people>li{position:relative;overflow:hidden;border-radius:calc(var(--radius) * .6)}
.case-people img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.case-slides{position:absolute;inset:0;overflow:hidden}
.case-slides-track{display:flex;height:100%;transition:transform .9s var(--ease)}
.case-slides-track>img{flex:0 0 100%;width:100%;height:100%;object-fit:cover}
/* A film of the shoot (Accor's insert shots) appears over its poster once it plays (project-film.mjs). */
.case-gallery-grid video{opacity:0;transition:opacity .8s var(--ease-standard)}
.case-gallery-grid video.is-playing{opacity:1}

/* 8. The similar projects: the projects page's film cards, three across. They follow the call to
   action, a night band without a space of its own below (render.mjs FinalCTA), which the shared rule
   still takes for a light section and so removes their top space (apple.css: a light section after
   another starts at 0). They keep it (Kevin, 30 October 2026: « je ne veux pas que le texte soit
   collé au-dessus »). */
.section.cta+.section.case-similar:not(.section--dark):not(.section--agency){padding-top:var(--section-space)}
.case-similar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5rem 1.25rem;width:min(100% - 2 * var(--gutter),var(--content));margin:0 auto;padding:0;list-style:none}

/* « Lire le film »: the film, whole and with its sound, over the page darkened and frosted as under
   the brochure; the close button in the bar's glass at the screen's top right. */
.case-film{width:min(100vw - 2 * var(--gutter),(100dvh - 8rem) * 16 / 9,90rem);max-width:none;max-height:none;margin:auto;padding:0;border:0;background:none;overflow:visible}
.case-film::backdrop{background:var(--black-72);-webkit-backdrop-filter:blur(var(--blur));backdrop-filter:blur(var(--blur))}
/* Opening, the film and its veil come in together; closing, they go back the same way (project-film.mjs
   plays them back from where they are, play-back.mjs; they hold their start until the dialog closes). The dialog only fades and its
   frame grows: a transform on the dialog itself would hold its close button, fixed to the screen's
   corner, in the dialog's corner instead (it jumped there at each opening). */
.case-film[open]{animation:case-film-in .45s var(--ease) both}
.case-film[open] .case-film-frame{animation:case-film-grow .45s var(--ease) both}
.case-film[open]::backdrop{animation:case-film-veil-in .45s var(--ease) both}
.case-film-frame{aspect-ratio:16/9;overflow:hidden;border-radius:var(--radius);background:#000;box-shadow:var(--shadow-float)}
.case-film-frame>*{display:block;width:100%;height:100%;border:0}
/* A vertical film stands upright: as wide as 9:16 allows within the screen's height. */
.case-film.is-vertical{width:min(100vw - 2 * var(--gutter),(100dvh - 6rem) * 9 / 16)}
.case-film.is-vertical .case-film-frame{aspect-ratio:9/16}
.case-film-close{position:fixed;top:max(1rem,env(safe-area-inset-top));right:max(1rem,env(safe-area-inset-right));display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:var(--radius);background:var(--glass-dark);-webkit-backdrop-filter:var(--glass-filter);backdrop-filter:var(--glass-filter);box-shadow:var(--glass-edge);color:var(--white);transition:background-color .2s var(--ease-standard),transform .1s ease-out}
.case-film-close:hover{background:var(--black-48)}
.case-film-close:active{transform:scale(.94)}
.case-film-close .icon{width:1.125rem;height:1.125rem}
@keyframes case-film-in{from{opacity:0}}
@keyframes case-film-grow{from{transform:scale(.96)}}
@keyframes case-film-veil-in{from{opacity:0}}

@media (max-width:74.9375rem){
  .case-facts{--hero-gutter:1.875rem}
}
@media (max-width:52rem){
  /* Phones: the facts two to a row under the hero. */
  .case-facts-list{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
  .case-fact+.case-fact{border-left:0}
  .case-fact:nth-child(even){border-left:1px solid var(--white-12)}
  .case-fact:nth-child(n+3){border-top:1px solid var(--white-12)}
  /* An odd last fact takes the whole row, so its words keep to a line and the line above it runs to
     the edge (Kevin, 30 October 2026, for « Tournage »: « tu peux mettre sur toute la ligne, même si
     ça prend deux cases »). */
  .case-fact:last-child:nth-child(odd){grid-column:1 / -1}
  .case-fact{padding:1rem 1.125rem}
  /* The rows in one column (apple-service.css): the picture above its card, never held. Holding only
     absolutely placed pictures, its box takes its height from a spacer in its flow alone, in its
     ratio (4:3; 4:5 for a vertical film, so its phone screen stays readable; square for the prints,
     so the fan keeps clear of its edges; 16:9 for the speakers), not from aspect-ratio, and its row
     does not stretch it. On Kevin's iPhone the first chapter's box, the only one already set so (its
     speakers, align-self:center), was the only one Safari showed (30 and 31 October 2026: « je ne
     vois que les blocs de texte », then « Il n'y a que la première étape qui a des photos »). */
  .case-story .case-visual,.case-story .split-row--flip>.case-visual{grid-column:1;align-self:start;min-height:0;aspect-ratio:auto}
  .case-story .split-row--picture:has(.case-more[open])>.case-visual{position:relative;top:auto;height:auto}
  .case-story .case-visual::before{content:"";display:block;padding-top:75%}
  .case-story .case-visual:has(.case-phone)::before{padding-top:125%}
  .case-story .case-visual:has(.case-prints)::before{padding-top:100%}
  .case-story .case-visual:has(.case-people)::before{padding-top:56.25%}
  /* A chapter without a picture: its card on the row's first line, where a picture's card goes on
     the second (apple-service.css). */
  .case-story .split-row--text .split-row-text{grid-row:1}
  .case-figures-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1.25rem}
  /* A number too wide for half the screen at its size takes the whole row (CaseFigures). */
  .case-figures-list--long{grid-template-columns:minmax(0,1fr)}
  /* A phone's screen is upright: the vertical film fills the hero, shaded from its middle down so
     its burned-in subtitles never meet the title (SMASH Group's « Il faisait du chiffre, » on its
     logo), and under the bar as the stage is. */
  .case-hero-screen{inset:0;z-index:0;width:auto;height:auto;border-radius:0;box-shadow:none}
  .case-hero--vertical .service-hero-copy{max-width:none}
  .case-hero--vertical::after{height:100%;background:linear-gradient(rgb(0 0 0 / 24%),transparent 8.75rem),linear-gradient(180deg,rgb(17 16 14 / 0%) 28%,rgb(17 16 14 / 62%) 42%,rgb(17 16 14 / 96%) 53%,var(--night) 60%)}
  /* The pictures one under the other, each in 3:2 by its spacer alone (as the chapters' boxes), so
     a slot's words always fit. */
  .case-gallery-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}
  .case-gallery-grid>li,.case-gallery-grid>.is-large{grid-column:auto;grid-row:auto;align-self:start;aspect-ratio:auto}
  .case-gallery-grid>li::before{content:"";display:block;padding-top:66.6667%}
  .case-similar-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:37.5rem){
  .case-facts,.case-films{--hero-gutter:1.125rem}
  /* A vertical series slides across a phone, one phone and the next one's edge in view; a tablet
     keeps the three side by side, as a computer (each one 550 px wide there, 31 October 2026). */
  .case-films-list{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:72%;width:auto;margin:0 calc(-1 * var(--hero-gutter));padding:0 var(--hero-gutter);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  .case-films-item{scroll-snap-align:center}
  .case-client{height:1.75rem;margin-bottom:1.25rem}
}
@media (prefers-contrast:more){
  .case-fact dt,.case-title-lead{color:var(--white)}
  .case-figure-label,.case-slot-hint,.case-review-role{color:var(--label)}
}
