/* Crostella : un rythme éditorial commun aux études de cas, dans ses propres couleurs. */
body[data-project="crostella"]{--case-gap:clamp(16px,2vw,28px);--case-radius:20px;--case-width:1280px}
body[data-project="crostella"] #project-story{min-width:0}
body[data-project="crostella"] #project-story>section{scroll-margin-top:24px}
body[data-project="crostella"] .section{padding:clamp(44px,6vw,84px) 5vw}
body[data-project="crostella"] .section-head,body[data-project="crostella"] .intro-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,72px);align-items:start;max-width:var(--case-width);margin:0 auto 30px;padding:0;border:0}
body[data-project="crostella"] .display{font-size:clamp(2.5rem,4.6vw,4.8rem);line-height:1.07;letter-spacing:-.025em;margin:12px 0 0;text-wrap:balance}
body[data-project="crostella"] .section-number{display:block;font-size:12px;line-height:1.5;letter-spacing:.12em}
body[data-project="crostella"] .process .section-number,body[data-project="crostella"] .intention .section-number,body[data-project="crostella"] .campaign .section-number,body[data-project="crostella"] .experience .section-number{color:inherit}
body[data-project="crostella"] .section-head>p,body[data-project="crostella"] .intro-top>p{font-size:17px;line-height:1.75;max-width:58ch;margin:0}
body[data-project="crostella"] :is(.process-grid,.identity-grid,.triad,.swatches,.archetypes,.app-grid){max-width:var(--case-width);margin-inline:auto;min-width:0}

/* Le sommaire et le résumé remplacent les grandes respirations du second hero. */
body[data-project="crostella"] main>.hero{display:flex;flex-direction:column;min-height:0;background:var(--universe-base)}
body[data-project="crostella"] main>.hero .hero-rail{order:-1;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:24px;padding:12px 5vw;overflow-x:auto;scrollbar-width:thin;scroll-padding-inline:5vw;border-top:0;border-bottom:1px solid var(--line);background:var(--universe-base)}
body[data-project="crostella"] main>.hero .hero-rail a{display:flex;align-items:center;min-height:40px;flex-shrink:0;font-size:12px;letter-spacing:.04em;text-transform:none}
body[data-project="crostella"] main>.hero .hero-rail a:hover{color:var(--terracotta)}
body[data-project="crostella"] main>.hero .hero-copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:36px;min-height:0;max-width:calc(var(--case-width) + 10vw);width:100%;margin:auto;padding:32px 5vw}
body[data-project="crostella"] .cr-overview-title,body[data-project="crostella"] .cr-overview-text{min-width:0}
body[data-project="crostella"] .hero-index{max-width:320px;margin:0 0 10px;font-size:11px;letter-spacing:.08em}
body[data-project="crostella"] main .legacy-title{display:inline-block;font-size:2.4rem;line-height:1.1;margin:0 14px 8px 0;color:var(--terracotta)}
body[data-project="crostella"] .hero .dds-project-offer{font-size:12px;padding:7px 12px;min-height:38px;margin:0;vertical-align:middle}
body[data-project="crostella"] .hero .tagline{font-size:1.65rem;line-height:1.2;margin:6px 0 0}
body[data-project="crostella"] .hero .lead{font-size:16px;line-height:1.7;margin:0;max-width:58ch}
body[data-project="crostella"] .hero .actions{margin-top:16px;gap:10px}
body[data-project="crostella"] .hero .btn{min-width:0;min-height:44px;border-radius:99px;padding:9px 15px;font-size:12px;letter-spacing:.03em}

/* Lecture en chapitres : textes et légendes ont la même hiérarchie. */
body[data-project="crostella"] .intro{background:var(--universe-base)}
body[data-project="crostella"] .intro-top blockquote{font-size:clamp(2.2rem,3.8vw,4rem);line-height:1.08;text-wrap:balance}
body[data-project="crostella"] .triad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--case-gap);margin-top:30px;border:0}
body[data-project="crostella"] .triad article{padding:22px;border:1px solid var(--line);border-radius:var(--case-radius);min-width:0}
body[data-project="crostella"] .triad h3{font-size:1.7rem;line-height:1.15;margin:12px 0}
body[data-project="crostella"] .triad p{font-size:15px;line-height:1.7}
body[data-project="crostella"] .process-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:var(--case-gap);align-items:start}
body[data-project="crostella"] .process-stack{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;min-width:0}
body[data-project="crostella"] .process-card{min-width:0}
body[data-project="crostella"] .cr-image-button{display:block;width:100%;padding:0;border:0;border-radius:var(--case-radius);background:var(--ivory);color:inherit;overflow:hidden;cursor:zoom-in}
body[data-project="crostella"] .process-card .cr-image-button{aspect-ratio:4/5}
body[data-project="crostella"] .process-grid>.process-card .cr-image-button{aspect-ratio:1}
body[data-project="crostella"] .process-card img,body[data-project="crostella"] .process-stack .portrait img{width:100%;height:100%;aspect-ratio:auto;min-height:0;object-fit:contain;padding:0}
body[data-project="crostella"] .process-stack .portrait .cr-image-button{background:var(--cream);padding:18px}
body[data-project="crostella"] #project-story figcaption{position:static;display:flex;flex-direction:column;gap:3px;padding:12px 2px 0;background:none;color:inherit;text-transform:none;letter-spacing:0;font-size:13px;line-height:1.45}
body[data-project="crostella"] #project-story figcaption>span:last-child{font-size:12px;opacity:.8}
body[data-project="crostella"] .intention{min-height:0;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);background:var(--olive)}
body[data-project="crostella"] .intention-media{min-height:0;display:flex;align-items:center;justify-content:center;padding:clamp(24px,4vw,56px)}
body[data-project="crostella"] .intention-media img{width:min(100%,440px);height:auto;object-fit:contain;border-radius:var(--case-radius)}
body[data-project="crostella"] .intention-copy{padding:clamp(28px,5vw,72px);min-width:0;min-height:0}
body[data-project="crostella"] .intention-copy p{font-size:17px;line-height:1.75;margin:20px 0 0}
body[data-project="crostella"] .hand{font-size:clamp(1.6rem,2.8vw,2.7rem);line-height:1.2;margin-top:24px;transform:none}
body[data-project="crostella"] .identity-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px)}
body[data-project="crostella"] .identity-visual{padding:14px;border-radius:var(--case-radius);min-width:0}
body[data-project="crostella"] .identity-comparison{border-radius:14px}
body[data-project="crostella"] .identity-comparison .before{object-fit:contain}
body[data-project="crostella"] .identity-comparison:focus-within{outline:3px solid var(--terracotta);outline-offset:4px}
body[data-project="crostella"] .identity-hint{font-size:11px;letter-spacing:.03em;flex-wrap:wrap}
body[data-project="crostella"] .identity-copy{min-width:0}
body[data-project="crostella"] .identity-copy h3{font-size:clamp(2.5rem,4vw,4rem);line-height:1.08;margin-bottom:18px}
body[data-project="crostella"] .identity-copy p{font-size:17px;line-height:1.75}
body[data-project="crostella"] .signature{font-size:clamp(1.9rem,3vw,3rem);line-height:1.2;margin-top:24px}
body[data-project="crostella"] .palette{padding-top:12px}
body[data-project="crostella"] .swatches{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;min-height:0}
body[data-project="crostella"] .swatch{min-height:160px;padding:16px;border-radius:14px;transform:none}
body[data-project="crostella"] .swatch b{font-size:1.35rem;line-height:1.15}
body[data-project="crostella"] .swatch span{font-size:12px;letter-spacing:0;margin-top:7px;text-transform:none}
body[data-project="crostella"] .swatch.s3{border:1px solid var(--line)}
body[data-project="crostella"] .archetypes{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--case-gap);background:none;border:0}
body[data-project="crostella"] .archetype{min-height:0;padding:24px;border:1px solid var(--line);border-radius:var(--case-radius)}
body[data-project="crostella"] .archetype strong{font-size:clamp(3rem,4vw,4rem);line-height:1.1}
body[data-project="crostella"] .archetype h3{font-size:1.9rem;line-height:1.2;margin:12px 0}
body[data-project="crostella"] .archetype p{font-size:15px;line-height:1.7;margin-bottom:0}

/* Les supports photographiques reprennent le format des cartes de Mash & Moum. */
body[data-project="crostella"] .app-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
body[data-project="crostella"] .app-grid .tile{grid-column:auto;grid-row:auto;overflow:visible;min-width:0;cursor:auto}
body[data-project="crostella"] .app-grid .cr-image-button{aspect-ratio:3/4}
body[data-project="crostella"] .app-grid .tile img{width:100%;height:100%;min-height:0;object-fit:cover;transform:none}
body[data-project="crostella"] .app-grid .tile.full .cr-image-button{background:var(--olive)}
body[data-project="crostella"] .app-grid .tile.full img{object-fit:contain}

/* Les véritables affiches passent au premier plan, sans rotation ni recadrage. */
body[data-project="crostella"] .campaign-grid.campaign-cards{--card-width:min(440px,66vw);max-width:1100px;margin:0 auto;padding:22px max(0px,calc((100% - var(--card-width))/2)) 26px;align-items:start}
body[data-project="crostella"] .campaign-cards figure{background:var(--ivory);color:var(--hazelnut);border-radius:var(--case-radius);overflow:hidden;cursor:auto}
body[data-project="crostella"] .campaign-cards .cr-image-button{aspect-ratio:3/4;border-radius:0;background:var(--ivory)}
body[data-project="crostella"] .campaign-cards img{width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;border-radius:0}
body[data-project="crostella"] #project-story .campaign-cards figcaption{padding:15px 18px 17px;min-height:72px}
body[data-project="crostella"] .campaign-cards.is-stacked{display:block;position:relative;width:100%;height:var(--cr-stage-height,700px);padding:0;overflow:hidden;scroll-snap-type:none;touch-action:pan-y;isolation:isolate}
body[data-project="crostella"] .campaign-cards.is-stacked figure{position:absolute;top:24px;left:50%;width:min(62%,440px);margin:0;transform:translateX(calc(-50% + var(--cr-x,0%))) scale(var(--cr-scale,1));transform-origin:center 45%;opacity:var(--cr-opacity,1);filter:blur(var(--cr-blur,0px));z-index:var(--cr-z,1);box-shadow:0 12px 30px #2b211926;transition:transform .4s ease,filter .4s ease,opacity .4s ease;will-change:transform}
body[data-project="crostella"] .cr-campaign-navigation{display:none;align-items:center;justify-content:space-between;gap:18px;max-width:820px;margin:12px auto 0}
body[data-project="crostella"] .cr-campaign-navigation.is-ready{display:flex}
body[data-project="crostella"] .cr-stack-status{font-size:13px;line-height:1.5;margin:0}
body[data-project="crostella"] .cr-stack-arrows{display:flex;gap:10px}
body[data-project="crostella"] .cr-stack-arrows button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;font-size:1.8rem;cursor:pointer}
body[data-project="crostella"] .cr-stack-arrows button:hover{background:var(--ivory);color:var(--terracotta)}
body[data-project="crostella"] .campaign-controls{margin-top:10px}
body[data-project="crostella"] .campaign-note{font-size:clamp(1.7rem,3vw,3rem);line-height:1.15;max-width:24ch;margin-top:24px}

body[data-project="crostella"] .experience{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(28px,6vw,80px);min-height:0;padding:clamp(40px,6vw,80px) 5vw;background:var(--hazelnut)}
body[data-project="crostella"] .experience>img{position:static;inset:auto;width:100%;max-width:480px;justify-self:end;height:auto;object-fit:contain;border-radius:var(--case-radius)}
body[data-project="crostella"] .experience:after{display:none}
body[data-project="crostella"] .experience-copy{padding:0;min-width:0;max-width:620px}
body[data-project="crostella"] .experience-copy .display{max-width:18ch}
body[data-project="crostella"] .experience-copy p{font-size:17px;line-height:1.75;margin-top:24px}
body[data-project="crostella"] .closing h2{max-width:24ch}

/* Dialogue natif : fermeture clavier, focus contenu et restitution au déclencheur. */
body[data-project="crostella"] dialog.lightbox{inset:0;width:min(96vw,1320px);height:auto;max-width:none;max-height:94svh;margin:auto;padding:20px;border:0;border-radius:18px;background:var(--ivory);color:var(--hazelnut);overflow:auto}
body[data-project="crostella"] dialog.lightbox[open]{display:flex;flex-direction:column;align-items:center;gap:12px}
body[data-project="crostella"] dialog.lightbox::backdrop{background:#1e150fe8}
body[data-project="crostella"] dialog.lightbox>button{position:static;align-self:flex-end;flex-shrink:0;border-color:var(--hazelnut);color:var(--hazelnut);min-height:44px}
body[data-project="crostella"] dialog.lightbox>img{width:auto;height:auto;max-width:100%;max-height:78svh;object-fit:contain}

@media(max-width:980px){
 body[data-project="crostella"] .section-head,body[data-project="crostella"] .intro-top{gap:24px;grid-template-columns:1fr}
 body[data-project="crostella"] .process-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}
 body[data-project="crostella"] .app-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px}
 body[data-project="crostella"] .intention-copy{padding:30px}
 body[data-project="crostella"] .swatches{grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-project="crostella"] .archetype{padding:20px}
}
@media(max-width:700px){
 body[data-project="crostella"]{--case-radius:15px}
 body[data-project="crostella"] .section{padding:40px 5vw}
 body[data-project="crostella"] .display{font-size:clamp(2.35rem,9.5vw,3.5rem);line-height:1.08}
 body[data-project="crostella"] .section-head{margin-bottom:24px}
 body[data-project="crostella"] .section-head>p,body[data-project="crostella"] .intro-top>p{font-size:16px;line-height:1.7}
 body[data-project="crostella"] main>.hero .hero-copy{grid-template-columns:1fr;gap:18px;padding:24px 5vw}
 body[data-project="crostella"] main>.hero .hero-rail{gap:22px;padding-block:8px}
 body[data-project="crostella"] .triad{grid-template-columns:1fr;gap:12px;margin-top:24px}
 body[data-project="crostella"] .triad article{padding:20px}
 body[data-project="crostella"] .triad h3{margin:8px 0}
 body[data-project="crostella"] .process-grid{grid-template-columns:1fr;gap:24px}
 body[data-project="crostella"] .process-grid>.process-card{max-width:460px;width:100%;margin-inline:auto}
 body[data-project="crostella"] .process-stack{gap:20px 12px}
 body[data-project="crostella"] .process-stack .portrait .cr-image-button{padding:10px}
 body[data-project="crostella"] #project-story figcaption{font-size:12px;padding-top:10px}
 body[data-project="crostella"] #project-story figcaption>span:last-child{font-size:11px}
 body[data-project="crostella"] .intention{grid-template-columns:1fr}
 body[data-project="crostella"] .intention-media{padding:30px 5vw 0}
 body[data-project="crostella"] .intention-media img{max-width:380px}
 body[data-project="crostella"] .intention-copy{padding:28px 5vw 36px;min-height:0}
 body[data-project="crostella"] .intention-copy p,body[data-project="crostella"] .identity-copy p,body[data-project="crostella"] .experience-copy p{font-size:16px}
 body[data-project="crostella"] .identity-grid{grid-template-columns:1fr;gap:26px}
 body[data-project="crostella"] .identity-visual{padding:10px}
 body[data-project="crostella"] .identity-hint{gap:8px;font-size:10px}
 body[data-project="crostella"] .identity-label{top:10px;padding:6px 9px;font-size:10px}
 body[data-project="crostella"] .identity-label.before-label{left:10px}
 body[data-project="crostella"] .identity-label.after-label{right:10px}
 body[data-project="crostella"] .palette{padding-top:4px}
 body[data-project="crostella"] .swatches{gap:10px}
 body[data-project="crostella"] .swatch{min-height:132px;padding:12px}
 body[data-project="crostella"] .swatch b{font-size:1.15rem}
 body[data-project="crostella"] .swatch span{font-size:11px}
 body[data-project="crostella"] .archetypes{grid-template-columns:1fr;gap:12px}
 body[data-project="crostella"] .archetype{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px 16px;padding:20px}
 body[data-project="crostella"] .archetype strong{grid-column:1;grid-row:1/3;font-size:3rem}
 body[data-project="crostella"] .archetype h3{grid-column:2;margin:0;font-size:1.7rem}
 body[data-project="crostella"] .archetype p{grid-column:2;margin:0;font-size:14px}
 body[data-project="crostella"] .app-grid{gap:24px 14px}
 body[data-project="crostella"] .campaign-grid.campaign-cards{margin-inline:0;--card-width:78vw}
 body[data-project="crostella"] .campaign-cards.is-stacked figure{width:78%;max-width:400px;top:20px}
 body[data-project="crostella"] #project-story .campaign-cards figcaption{padding:12px 14px 14px;min-height:70px}
 body[data-project="crostella"] .cr-campaign-navigation{margin-top:8px}
 body[data-project="crostella"] .experience{grid-template-columns:1fr;padding:36px 5vw;gap:28px}
 body[data-project="crostella"] .experience>img{max-width:400px;justify-self:center}
 body[data-project="crostella"] .closing .actions{margin-top:24px}
 body[data-project="crostella"] dialog.lightbox{padding:12px;border-radius:14px}
}
/* Tracés vectoriels : Safari ne peut plus les convertir en emoji colorés. */
body[data-project="crostella"] .cr-action-arrow{display:block;width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
body[data-project="crostella"] .campaign-controls button{color:var(--universe-light);appearance:none;-webkit-appearance:none}
body[data-project="crostella"] .campaign-controls span{background:transparent;border:1px solid currentColor;opacity:.7}
body[data-project="crostella"] .campaign-controls button[aria-pressed="true"] span{background:currentColor;opacity:1}
@media(prefers-reduced-motion:reduce){body[data-project="crostella"] .campaign-cards.is-stacked figure{transition:none;will-change:auto}}
