/* ==========================================================================================
   Réalisations : le mur d'affichage (realisations.html) et les études de cas (realisation-*.html)
   ========================================================================================== */

/* les déchirures de papier, réutilisées d'une affiche à l'autre (trois variantes pour que rien ne se répète) */
.page-realisations {
  --dechire-1: polygon(0% 1.4%, 7% 0%, 15% 1.2%, 24% .2%, 33% 1.5%, 42% .3%, 51% 1.3%, 60% 0%, 69% 1.4%, 78% .4%, 87% 1.6%, 94% .2%, 100% 1.1%, 99.5% 18%, 100% 37%, 99.3% 56%, 100% 76%, 99.4% 98.7%, 92% 100%, 83% 98.6%, 74% 99.8%, 64% 98.5%, 55% 99.7%, 45% 98.4%, 36% 99.8%, 26% 98.6%, 17% 99.9%, 8% 98.5%, 0% 99.6%, .6% 79%, 0% 58%, .7% 37%, 0% 18%);
  --dechire-2: polygon(0% .4%, 9% 1.8%, 18% .2%, 28% 1.4%, 39% 0%, 50% 1.7%, 61% .5%, 72% 1.9%, 83% .3%, 91% 1.5%, 100% 0%, 99.2% 21%, 100% 44%, 99.4% 67%, 100% 88%, 99.6% 100%, 90% 98.4%, 80% 99.8%, 70% 98.2%, 59% 100%, 48% 98.6%, 37% 99.9%, 27% 98.3%, 16% 99.7%, 6% 98.4%, 0% 100%, .8% 81%, 0% 62%, .6% 40%, 0% 20%);
  --dechire-3: polygon(0% 2%, 5% .3%, 12% 1.6%, 22% 0%, 31% 1.2%, 44% .4%, 56% 1.8%, 66% .2%, 77% 1.3%, 88% 0%, 100% 1.6%, 99.4% 26%, 100% 49%, 99.1% 73%, 100% 98.2%, 94% 99.8%, 84% 98.5%, 73% 100%, 62% 98.3%, 50% 99.6%, 39% 98.2%, 28% 99.9%, 15% 98.6%, 4% 99.8%, 0% 98.4%, .7% 74%, 0% 51%, .9% 27%);
  --dymo-coupe: polygon(0 6%, 2% 0, 98% 4%, 100% 0, 100% 96%, 98% 100%, 2% 94%, 0 100%);
  --trame: radial-gradient(rgba(23, 23, 26, .09) 1.3px, transparent 1.7px) 0 0 / 11px 11px;
}
.page-realisations .mini, .page-realisations .mini * { pointer-events: none !important; user-select: none; -webkit-user-select: none; }
.page-realisations .navigateur__ecran { overflow-y: hidden; }

/* ------------------------------------------------------------------------------------------
   1. Le mur : en-tête. Au chargement, toutes les affiches du mur se font coller en tas à droite du titre ;
      au premier défilement, chacune s'envole vers sa place (realisations.js, en bureau seulement)
   ------------------------------------------------------------------------------------------ */
@font-face { font-family: 'Big Shoulders Stencil'; font-weight: 900; font-style: normal; font-display: swap; src: url(../../_commun/fonts/BigShouldersStencil-900.woff2) format('woff2'); }
.mur-tete { position: relative; z-index: 4; padding: 34px 0 calc(var(--biais) + 34px); }
.mur-tete__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 26px 40px; }
.mur-tete .titre { position: relative; z-index: 2; font-size: clamp(46px, 7vw, 118px); }
.mur-tete__intro { position: relative; z-index: 2; max-width: 40ch; margin: 26px 0 0; color: var(--gris); font: 400 clamp(17px, 1.3vw, 19px)/1.55 var(--titre); }
/* la zone où le tas se forme ; le colleur d'affiches reste là quand tout est parti */
.mur-tete__collage { position: relative; align-self: stretch; min-height: 400px; }
.gommette--colleur { right: 0; bottom: -24px; width: clamp(120px, 10vw, 170px); rotate: 5deg; }
.mur-tete__defiler { position: absolute; z-index: 5; left: 50%; bottom: calc(var(--biais) + 6px); display: flex; align-items: center; gap: 10px; margin: 0; translate: -50% 0;
  font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--jaune); opacity: 0; transition: opacity .4s; pointer-events: none; }
.mur-tete__defiler i { animation: blz-defiler 1.4s ease-in-out infinite; }
@keyframes blz-defiler { 50% { translate: 0 5px; } }
/* le temps du collage : le titre passe devant le tas (avec une ombre franche pour rester lisible) */
.est-collage .mur-tete__defiler { opacity: 1; }
.est-collage .mur-tete .titre { text-shadow: 5px 5px 0 var(--nuit); }
.est-collage .mur__affiches { pointer-events: none; }

/* ------------------------------------------------------------------------------------------
   2. Le mur lui-même : un pan de béton sombre, avec un grand mot peint au pochoir derrière chaque rangée
   ------------------------------------------------------------------------------------------ */
.mur { position: relative; z-index: 3; margin-top: calc(-1 * var(--biais)); padding: calc(var(--biais) + 36px) 0 calc(var(--biais) + 90px); overflow-x: clip; }
/* le béton est sur un calque à part : les affiches doivent pouvoir sortir du mur pendant le collage */
.mur::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(0 var(--biais), 100% 0, 100% 100%, 0 100%);
  background: radial-gradient(rgba(246, 246, 247, .05) 1.2px, transparent 1.6px) 0 0 / 14px 14px, var(--charbon); }
.mur__fond { position: absolute; inset: 0; overflow: hidden; pointer-events: none; clip-path: polygon(0 var(--biais), 100% 0, 100% 100%, 0 100%); }
/* les mots au pochoir : peints en bombe (un peu de brume autour), ils glissent moins vite que les affiches
   et coulent quand la souris passe tout près (les coulisses sont ajoutées en JS) */
.pochoir { --c: var(--rouge); position: absolute; left: -1.5vw; top: calc((var(--k) + .3) * 100% / 7); margin: 0; color: var(--c); opacity: .26; rotate: -2.5deg;
  font: 900 clamp(120px, 15.5vw, 290px)/.78 'Big Shoulders Stencil', var(--titre); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
.pochoir:nth-child(2n) { left: auto; right: -1.5vw; rotate: 2deg; }
.pochoir:nth-child(3n + 2) { --c: var(--jaune); opacity: .2; }
.pochoir:nth-child(3n) { --c: var(--papier); opacity: .14; }
.pochoir__coule { position: absolute; top: 74%; width: var(--e, 6px); height: calc(var(--l, 0) * 1px); border-radius: 0 0 99px 99px; background: currentColor; transition: height 1.2s cubic-bezier(.2, .7, .3, 1); }
.pochoir__coule::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: calc(var(--e, 6px) * 1.5); aspect-ratio: 1; border-radius: 50%; background: currentColor; translate: -50% 0; }

/* le tri : un menu déroulant à cases à cocher (les secteurs), un interrupteur pour ne garder que les études de cas */
.tri { position: relative; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-bottom: 34px; }
.tri__menu { position: relative; }
.tri__bouton { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px 0 20px; border: 0; background: var(--papier); color: var(--nuit); cursor: pointer;
  font: 800 15px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; clip-path: var(--dymo-coupe); rotate: -1deg; transition: background .15s; }
.tri__libelle { font: 600 11px/1 var(--mono); letter-spacing: .14em; color: #5a5a62; }
.tri__choix { min-width: 4ch; }
.tri__bouton i { font-size: 16px; transition: rotate .3s var(--claque); }
.tri__bouton[aria-expanded="true"] { background: var(--jaune); }
@media (hover: hover) { .tri__bouton:hover { background: var(--jaune); } }
.tri__bouton[aria-expanded="true"] i { rotate: 180deg; }
.tri__menu:has(.tri__bouton:focus-visible) { outline: 3px solid var(--jaune); outline-offset: 4px; }
.tri__bouton:focus-visible { outline: none; }
/* le panneau : une fiche de papier collée sous le bouton */
.tri__panneau { position: absolute; z-index: 10; top: calc(100% + 16px); left: -4px; width: min(370px, calc(100vw - 2 * var(--gouttiere))); padding: 26px 22px 16px;
  background: var(--trame), var(--papier); color: var(--nuit); box-shadow: 10px 10px 0 var(--rouge); rotate: .8deg; transform-origin: 30px 0; }
.tri__panneau::before { content: ""; position: absolute; top: -17px; left: 38%; width: 112px; height: 36px; rotate: -5deg; background: url(../../_commun/img/decoupes/ruban-jaune.webp) no-repeat center / contain; }
.tri__cases { display: grid; margin: 0; padding: 0; border: 0; }
.tri__legende { margin-bottom: 8px; padding: 0; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5a5a62; }
.tri__case { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 42px; cursor: pointer; font: 700 16px/1.2 var(--titre); }
.tri__case + .tri__case { border-top: 1px dashed rgba(23, 23, 26, .22); }
.tri__case input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tri__boite { position: relative; width: 22px; height: 22px; border: 2.5px solid var(--nuit); background: #fff; transition: background .12s; }
/* le crochet, tracé à main levée, déborde un peu de la case */
.tri__boite::after { content: ""; position: absolute; left: -2px; top: -9px; width: 28px; height: 26px; scale: 0; transform-origin: 30% 80%; transition: scale .22s var(--claque);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 26'%3E%3Cpath d='M4 14.5c2.6 1.6 4.4 3.6 6 6.5C13.6 12.6 18.6 6.4 25 2.5' fill='none' stroke='%2317171A' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 14.5c2.6 1.6 4.4 3.6 6 6.5C13.6 12.6 18.6 6.4 25 2.5' fill='none' stroke='%23FAEF5D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.tri__case input:checked + .tri__boite { background: var(--rouge); }
.tri__case input:checked + .tri__boite::after { scale: 1; }
.tri__case input:focus-visible + .tri__boite { outline: 3px solid var(--rouge); outline-offset: 3px; }
@media (hover: hover) { .tri__case:hover .tri__nom { color: var(--rouge); } }
.tri__compte { min-width: 26px; padding: 4px 6px 3px; background: var(--nuit); color: #fff; font: 600 11px/1 var(--mono); text-align: center; }
.tri__effacer { margin-top: 10px; padding: 8px 0 4px; border: 0; background: none; color: var(--nuit); cursor: pointer; font: 700 15px/1 var(--bouton); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: underline 2px var(--rouge); text-underline-offset: 5px; }
@media (hover: hover) { .tri__effacer:hover { color: var(--rouge); } }
.tri__effacer:disabled { opacity: .35; cursor: default; }
/* l'interrupteur */
.tri__interrupteur { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0; border: 0; background: none; color: var(--blanc); cursor: pointer;
  font: 700 17px/1 var(--bouton); letter-spacing: .06em; text-transform: uppercase; transition: color .15s; }
.tri__glissiere { position: relative; flex: none; width: 54px; height: 30px; border: 2px solid var(--charbon-2); border-radius: 99px; background: var(--nuit); transition: background .2s, border-color .2s; }
.tri__glissiere i { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gris); transition: translate .32s var(--claque), background .2s; }
@media (hover: hover) { .tri__interrupteur:hover { color: var(--jaune); } }
.tri__interrupteur[aria-checked="true"] .tri__glissiere { background: var(--rouge); border-color: var(--rouge); }
.tri__interrupteur[aria-checked="true"] .tri__glissiere i { translate: 24px 0; background: var(--jaune); }
.tri__interrupteur:focus-visible { outline: 3px solid var(--jaune); outline-offset: 6px; }
.tri__etat { order: 2; margin: 0 0 0 auto; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
/* la main qui pointe vers le tri */
.tri .gommette--main { position: relative; order: 1; margin: -18px 0 -24px -6px; }
.gommette--main { width: clamp(96px, 7.4vw, 124px); scale: -1 1; rotate: -6deg; }

/* les gommettes : des gravures découpées, collées ici et là. On peut les décoller et les déplacer.
   En JS, chacune passe sur un calque au-dessus de tout le contenu (sous le menu du site) et suit sa place d'origine,
   restée vide (.gommette--ancre), tant qu'on ne l'a pas déplacée */
.gommettes { position: absolute; z-index: 45; top: 0; left: 0; width: 100%; height: 0; }
.gommette--ancre { visibility: hidden; pointer-events: none; animation: none !important; }
.gommettes .gommette { top: 0; right: auto; bottom: auto; left: 0; margin: 0; }
.gommette { position: absolute; z-index: 7; height: auto; filter: drop-shadow(5px 5px 0 var(--nuit)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.gommette.est-tenue { cursor: grabbing; }
/* jamais de gommette sur un bouton ou un appel à l'action : elles vont dans un coin d'affiche, hors du contenu */
.gommette--ciseaux { right: -34px; bottom: -40px; width: clamp(92px, 7.4vw, 124px); rotate: -10deg; }
.gommette--colle { right: -30px; bottom: -30px; width: clamp(70px, 5.4vw, 92px); rotate: -7deg; }
.gommette--bombe { right: -46px; top: 30%; width: clamp(100px, 8vw, 138px); rotate: 8deg; }

/* les affiches : rangée par rangée, une grande et une pile de petites, qui changent de côté.
   Rien n'est au cordeau : chaque affiche a son angle et son décalage, mais elles se touchent à peine */
.mur__affiches { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; column-gap: 3%; padding-top: 30px; }
.affiche { position: relative; rotate: var(--r, 0deg); }
.affiche--vedette { flex: none; width: 56%; margin: var(--y, 0px) 0 80px; z-index: 2; }
.pile { flex: none; width: 37%; margin: 0 0 70px; display: flex; flex-direction: column; }
.pile .affiche { width: 84%; }
.pile .affiche + .affiche { align-self: flex-end; margin-top: 34px; }
.pile .affiche--ecran, .pile .affiche--site { width: 90%; }
.pile .affiche--carre { width: 76%; }
.pile .affiche--ici { width: 78%; margin-left: 8%; }
/* une pile dont aucune affiche ne reste après le tri disparaît avec elles */
.pile:not(:has(> .affiche:not([hidden]))) { display: none; }
.pile .affiche:only-child, .pile .affiche[hidden] + .affiche { margin-top: 0; }
/* quand il ne reste que des grandes affiches, elles se décalent une fois à gauche, une fois à droite */
.mur__affiches.est-zigzag .affiche--vedette[data-cote="g"] { margin-right: 24%; }
.mur__affiches.est-zigzag .affiche--vedette[data-cote="d"] { margin-left: 24%; }
/* le corps pivote sur son ruban du haut : c'est lui qui se balance quand la souris le frôle */
.affiche__corps { position: relative; display: block; transform-origin: 50% 0; }
.affiche__cadre { position: relative; filter: drop-shadow(9px 9px 0 rgba(0, 0, 0, .6)); }
.affiche--vedette .affiche__cadre { filter: drop-shadow(12px 12px 0 var(--rouge)); }
.affiche__papier { --fond: var(--papier); position: relative; padding: 5.5% 5.5% 6%; background: var(--trame), var(--fond); color: var(--nuit); clip-path: var(--dechire-1); }
.affiche:nth-child(3n + 1) .affiche__papier { clip-path: var(--dechire-2); }
.affiche:nth-child(3n + 2) .affiche__papier { clip-path: var(--dechire-3); }
.affiche:nth-child(4n + 2):not(.affiche--vedette) .affiche__papier { --fond: var(--jaune); }
.affiche:nth-child(5n):not(.affiche--vedette) .affiche__papier { --fond: #fff; }
.affiche--vedette .affiche__papier { padding: 3.2% 3.2% 3.6%; }

.affiche__ruban, .cas-ecran__ruban, .defi__ruban, .suivant__ruban { position: absolute; z-index: 5; height: auto; pointer-events: none; }
.affiche__ruban { width: clamp(70px, 6.4vw, 118px); }
.affiche__ruban--a { top: -8px; left: -26px; rotate: -36deg; }
.affiche__ruban--b { top: -8px; right: -26px; rotate: 36deg; }
.affiche--vedette .affiche__ruban--b { top: auto; bottom: -6px; right: -24px; rotate: -36deg; }
.pile .affiche + .affiche .affiche__ruban--a { left: 34%; top: -16px; rotate: -6deg; }
.affiche:not(.affiche--vedette) .affiche__ruban--a:only-of-type { left: 50%; translate: -50% 0; rotate: -4deg; }

/* une grande affiche : les étiquettes, le site recréé, puis le nom et la phrase (pas de numéro : l'ordre du mur change à chaque chargement) */
.affiche__haut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.affiche .dymo { font-size: 11.5px; }
.affiche--vedette .navigateur, .affiche__site { height: auto; }
.affiche--vedette .navigateur__ecran { flex: none; aspect-ratio: 16 / 10; }
.affiche__nom { margin: 18px 0 0; font: 900 clamp(26px, 2.5vw, 42px)/.95 var(--titre); text-transform: uppercase; letter-spacing: .005em; }
.affiche__lien { color: inherit; text-decoration: none; }
/* tout le papier est cliquable */
.affiche__lien::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.affiche__lien:focus-visible { outline: none; }
.affiche:has(.affiche__lien:focus-visible) .affiche__cadre { outline: 3px solid var(--jaune); outline-offset: 8px; }
.affiche__phrase { max-width: 44ch; margin: 8px 0 0; font: 500 clamp(15px, 1.1vw, 17px)/1.4 var(--titre); color: #3a3a40; }
.affiche__voir { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font: 700 16px/1 var(--bouton); letter-spacing: .06em; text-transform: uppercase; }
.affiche__voir span { padding: 7px 10px 6px; background: var(--nuit); color: #fff; clip-path: var(--dymo-coupe); transition: background .15s; }
.affiche__voir i { font-size: 18px; transition: translate .25s var(--claque); }
.affiche--vedette:has(:focus-visible) .affiche__voir span { background: var(--rouge); }
@media (hover: hover) { .affiche--vedette:hover .affiche__voir span { background: var(--rouge); } }
@media (hover: hover) { .affiche--vedette:hover .affiche__voir i { translate: 6px 0; } }

/* une petite affiche : le site dans un petit navigateur (sa capture défile au survol), ou le visuel du projet */
.affiche__visuel { width: 100%; height: auto; border: 2px solid var(--nuit); background: var(--nuit); }
.affiche__ecran { position: relative; flex: none; aspect-ratio: 16 / 11; overflow: hidden; background: #fff; }
.affiche__capture { display: block; width: 100%; height: auto; max-width: none; will-change: transform; }
.affiche__site .navigateur__barre span { font-size: 10px; }
.affiche__bas { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 12px; }
.affiche__bas .affiche__nom { margin: 0; font-size: clamp(17px, 1.35vw, 22px); }
.affiche__bas .dymo { rotate: -1.5deg; }

/* « Votre projet ici » : l'affiche de petites annonces, avec ses languettes à arracher */
.ici { --fond: var(--jaune) !important; display: flex; flex-direction: column; align-items: flex-start; padding-top: 10% !important; padding-bottom: 0 !important;
  --lang: 128px; background: linear-gradient(var(--jaune), var(--jaune)) 0 0 / 100% calc(100% - var(--lang)) no-repeat !important; }
.ici__sur { margin: 4px 0 10px; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ici__titre { margin: 0; font: 900 clamp(34px, 3.3vw, 58px)/.88 var(--titre); text-transform: uppercase; }
.ici__titre em { display: block; color: var(--rouge); font-style: normal; font-size: 1.32em; }
.ici__texte { margin: 14px 0 18px; font: 500 15.5px/1.45 var(--titre); }
.ici__btn { font-size: 17px; padding: 12px 18px; }
.ici__note { align-self: flex-end; margin: 16px 0 8px; font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; rotate: -3deg; }
.ici__languettes { align-self: stretch; display: flex; margin: 0 -5.5%; border-top: 2px dashed rgba(23, 23, 26, .5); }
.ici__languette { flex: 1 1 0; display: flex; justify-content: center; align-items: center; gap: 3px; height: var(--lang); padding: 12px 0 16px; border-left: 2px dashed rgba(23, 23, 26, .4);
  background: var(--jaune); color: var(--nuit); text-decoration: none; transform-origin: 50% 0; transition: rotate .2s var(--claque); }
.ici__languette:first-child { border-left: 0; }
.ici__languette span { writing-mode: vertical-rl; rotate: 180deg; font: 800 12.5px/1 var(--titre); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ici__languette span + span { font: 600 11px/1 var(--mono); letter-spacing: 0; text-transform: none; }
@media (hover: hover) { .ici__languette:hover { rotate: -4deg; } }
/* une languette déjà prise : il ne reste qu'un bout de papier déchiré */
.ici__languette.est-arrachee { visibility: hidden; position: relative; }
.ici__languette.est-arrachee::before { content: ""; visibility: visible; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--jaune);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 82% 100%, 64% 45%, 46% 90%, 28% 40%, 12% 85%, 0 55%); }

/* les petits gestes des gommettes, en boucle : la bombe crache, les ciseaux coupent, la main insiste */
@media (prefers-reduced-motion: no-preference) {
  .gommette--bombe { animation: blz-bombe 3.6s ease-in-out infinite; }
  .gommette--ciseaux { animation: blz-ciseaux 4.2s ease-in-out infinite; }
  .gommette--main { animation: blz-main 2.4s ease-in-out infinite; }
}
@keyframes blz-bombe { 0%, 70%, 100% { translate: 0 0; } 74% { translate: -2px 1px; } 78% { translate: 2px -1px; } 82% { translate: -2px 0; } 86% { translate: 1px 1px; } }
@keyframes blz-ciseaux { 0%, 60%, 100% { rotate: -10deg; } 66% { rotate: -16deg; } 72% { rotate: -8deg; } 78% { rotate: -15deg; } 84% { rotate: -10deg; } }
@keyframes blz-main { 0%, 100% { translate: 0 0; } 50% { translate: -8px 0; } }

/* ------------------------------------------------------------------------------------------
   3. Les études de cas : les couleurs de chaque client
   ------------------------------------------------------------------------------------------ */
.cas--egconseils, .cas-suivant--egconseils { --client: #43c29f; --client-fond: #262726; --client-encre: #f3f4f2; --client-ombre: #43c29f; }
.cas--conseiller, .cas-suivant--conseiller { --client: #c8825f; --client-fond: #173142; --client-encre: #f4f3ef; --client-ombre: #b56f4d; }
.cas--moninspect, .cas-suivant--moninspect { --client: #caa661; --client-fond: #0a1420; --client-encre: #eef3f8; --client-ombre: #caa661; }
.cas--optimum, .cas-suivant--optimum { --client: #e0a33e; --client-fond: #f2ede3; --client-encre: #14181e; --client-ombre: #14181e; }
.cas--repere, .cas-suivant--repere { --client: #d0594c; --client-fond: #9c392e; --client-encre: #f2eee6; --client-ombre: #212226; }
.cas--kiwanis, .cas-suivant--kiwanis { --client: #99caea; --client-fond: #99caea; --client-encre: #0e2f58; --client-ombre: #003874; }
.cas--fjord, .cas-suivant--fjord { --client: #dee0da; --client-fond: #dee0da; --client-encre: #181714; --client-ombre: #181714; }
.cas--festival, .cas-suivant--festival { --client: #e4572e; --client-fond: #141b28; --client-encre: #f5f1ea; --client-ombre: #e4572e; }

.cas-h2 { margin: 0; font: 900 clamp(34px, 4.2vw, 64px)/.92 var(--titre); text-transform: uppercase; letter-spacing: .005em; }

/* l'en-tête : le nom en grand, et le numéro du projet dans la couleur du client */
.cas-tete { position: relative; z-index: 2; padding: 34px 0 calc(var(--biais) + 60px); overflow-x: clip; }
.cas-tete__grille { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px 60px; }
.cas-tete__titre { font-size: clamp(46px, 7vw, 116px); overflow-wrap: anywhere; hyphens: none; }
.cas-tete__qui { max-width: 46ch; margin-top: 18px; color: var(--gris); font: 400 clamp(17px, 1.35vw, 20px)/1.5 var(--titre); }
.cas-tete__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cas-tete__tags .dymo:first-child { rotate: -1.5deg; }
.cas-tete__tags .dymo + .dymo { rotate: 1.2deg; }
.cas-tete__cote { display: flex; flex-direction: column; align-items: flex-end; gap: 34px; padding-bottom: 6px; }
/* le logo du client sur un bout de papier collé, et le numéro du projet qui déborde par-dessus */
.logo-carte { position: relative; width: clamp(260px, 24vw, 360px); margin-top: 40px; rotate: 2.5deg; }
.logo-carte__cadre { filter: drop-shadow(10px 10px 0 var(--client)); }
.logo-carte__papier { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 12% 14%; background: var(--logo-fond, #fff); clip-path: var(--dechire-2); }
.logo-carte__papier img { width: auto; max-width: 100%; max-height: 100%; height: auto; }
.logo-carte__ruban { position: absolute; z-index: 2; width: 110px; height: auto; top: -14px; right: -28px; rotate: 34deg; pointer-events: none; }
.cas-tete__num { position: absolute; z-index: 3; left: -.42em; top: -.5em; margin: 0; font: 900 italic clamp(90px, 9vw, 150px)/.78 var(--titre); color: var(--jaune); text-shadow: 6px 6px 0 #000; rotate: -8deg; pointer-events: none; }
.cas--conseiller { --logo-fond: #f4f3ef; }
.cas--moninspect { --logo-fond: #0a1420; }
.cas--optimum { --logo-fond: #f2ede3; }
.cas--repere { --logo-fond: #9c392e; }
.cas--kiwanis, .cas--fjord, .cas--egconseils { --logo-fond: #fff; }
.cas--festival { --logo-fond: #141b28; }

/* le making-of : une bande à la couleur du client, l'écran collé au mur et la régie en dessous */
.cas-ecran { position: relative; z-index: 3; margin: calc(-1 * var(--biais)) 0; padding: calc(var(--biais) + 44px) 0 calc(var(--biais) + 64px); color: var(--client-encre);
  clip-path: polygon(0 var(--biais), 100% 0, 100% calc(100% - var(--biais)), 0 100%);
  background: radial-gradient(color-mix(in srgb, var(--client-encre) 10%, transparent) 1.2px, transparent 1.6px) 0 0 / 13px 13px, var(--client-fond); }
.cas-ecran__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; }
.cas-ecran__tete p { max-width: 42ch; margin: 0; font: 500 17px/1.45 var(--titre); }
.cas-ecran__affiche { position: relative; margin-top: 40px; rotate: -.6deg; }
.cas-ecran__cadre { filter: drop-shadow(14px 14px 0 var(--client-ombre)); }
.cas-ecran__papier { padding: 14px; background: var(--trame), var(--papier); clip-path: var(--dechire-1); }
.cas-ecran .navigateur { height: auto; }
.cas-ecran .navigateur__barre { height: 30px; }
.cas-ecran .navigateur__ecran { flex: none; height: clamp(360px, 64vh, 700px); cursor: pointer; scroll-behavior: auto; }
.cas-ecran__affiche.est-explore .navigateur__ecran { overflow-y: auto; cursor: default; }
.cas-ecran__affiche.est-explore .cas-ecran__cadre { filter: drop-shadow(14px 14px 0 var(--jaune)); }
.cas-ecran__ruban { width: clamp(96px, 9vw, 150px); }
.cas-ecran__ruban--a { top: -12px; left: -34px; rotate: -34deg; }
.cas-ecran__ruban--b { right: -34px; bottom: -10px; rotate: -34deg; }
.cas-ecran__indice { position: absolute; z-index: 6; right: 0; top: -42px; margin: 0; padding: 8px 12px 7px; background: var(--nuit); color: #fff; font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; opacity: 0; translate: 0 -6px; transition: opacity .2s, translate .25s var(--claque); pointer-events: none; }
.cas-ecran__affiche.est-explore .cas-ecran__indice { opacity: 1; translate: 0 0; }
@media (hover: hover) { .cas-ecran__affiche:hover .cas-ecran__indice { opacity: 1; translate: 0 0; } }
.cas-ecran__affiche.est-explore .cas-ecran__indice { background: var(--jaune); color: var(--nuit); }

/* la régie : un bouton lecture, une bande d'étiqueteuse qu'on fait glisser, et ses étapes */
.regie { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 26px; margin-top: 44px; }
.regie__jouer { display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 3px solid var(--nuit); border-radius: 50%; background: var(--jaune); color: var(--nuit); font-size: 24px; cursor: pointer; transition: background .15s, color .15s; }
@media (hover: hover) { .regie__jouer:hover { background: var(--rouge); color: #fff; } }
.regie__jouer:focus-visible { outline: 3px solid var(--client-encre); outline-offset: 3px; }
.regie__piste { position: relative; padding: 34px 0; }
.regie__curseur { --p: 100; display: block; width: 100%; height: 40px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.regie__curseur:focus-visible { outline: 3px solid var(--client-encre); outline-offset: 6px; }
.regie__curseur::-webkit-slider-runnable-track { height: 28px; clip-path: var(--dymo-coupe);
  background: linear-gradient(90deg, var(--rouge) calc(var(--p) * 1%), transparent 0), repeating-linear-gradient(90deg, transparent 0 13px, rgba(246, 246, 247, .2) 13px 14px), var(--nuit); }
.regie__curseur::-moz-range-track { height: 28px; clip-path: var(--dymo-coupe);
  background: linear-gradient(90deg, var(--rouge) calc(var(--p) * 1%), transparent 0), repeating-linear-gradient(90deg, transparent 0 13px, rgba(246, 246, 247, .2) 13px 14px), var(--nuit); }
.regie__curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 40px; margin-top: -6px; border: 3px solid var(--nuit); border-radius: 3px; background: var(--jaune); cursor: grab; }
.regie__curseur::-moz-range-thumb { width: 18px; height: 34px; border: 3px solid var(--nuit); border-radius: 3px; background: var(--jaune); cursor: grab; }
.regie__curseur:active::-webkit-slider-thumb { cursor: grabbing; }
.regie__etapes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.regie__etapes li { position: absolute; bottom: 0; left: var(--x); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: .72; transition: opacity .15s; }
.regie__etapes li::before { content: ""; width: 2px; height: 7px; background: currentColor; }
.regie__etapes li.est-haut { top: 0; bottom: auto; flex-direction: column-reverse; }
.regie__etapes li:first-child { translate: 0 0; align-items: flex-start; }
.regie__etapes li:last-child { translate: -100% 0; align-items: flex-end; }
.regie__etapes li span { padding: 3px 5px 2px; }
.regie__etapes li.est-actif { opacity: 1; }
.regie__etapes li.est-actif span { background: var(--nuit); color: var(--jaune); }
.regie__explorer { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--nuit); color: #fff;
  font: 700 17px/1 var(--bouton); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
@media (hover: hover) { .regie__explorer:hover { background: var(--rouge); } }
.regie__explorer[aria-pressed="true"] { background: var(--jaune); color: var(--nuit); }
.regie__explorer:focus-visible { outline: 3px solid var(--client-encre); outline-offset: 3px; }

/* le récit : le défi sur une feuille déchirée, puis ce qu'on a fait, point par point */
.cas-recit { position: relative; z-index: 2; padding: calc(var(--biais) + 80px) 0 calc(var(--biais) + 90px); }
.cas-recit__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 50px clamp(40px, 6vw, 100px); align-items: start; }
.defi { position: relative; rotate: -1.6deg; margin-top: 10px; }
.defi__papier { padding: clamp(28px, 3vw, 44px); background: var(--trame), var(--papier); color: var(--nuit); clip-path: var(--dechire-2); filter: none; }
.defi { filter: drop-shadow(12px 12px 0 var(--rouge)); }
.defi__sur { color: var(--rouge-fonce); }
.defi__titre { margin: 0; font: 900 clamp(28px, 2.7vw, 42px)/.95 var(--titre); text-transform: uppercase; }
.defi__texte { margin-top: 18px; font: 400 18px/1.55 var(--titre); }
.defi__ruban { width: clamp(100px, 9vw, 140px); top: -16px; left: 50%; translate: -50% 0; rotate: 3deg; }
.faits__titre { margin-bottom: 26px; }
.faits__liste { margin: 0; padding: 0; list-style: none; }
.fait { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-top: 2px solid var(--ligne); }
.fait__num { margin: 0; font: 900 italic 46px/.85 var(--titre); color: var(--jaune); rotate: -6deg; }
.fait__titre { margin: 0 0 8px; font: 800 clamp(20px, 1.7vw, 25px)/1.1 var(--titre); text-transform: uppercase; }
.fait__corps p { max-width: 54ch; color: #cfcfd6; font: 400 17px/1.55 var(--titre); }
.fait__voir { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--jaune); cursor: pointer;
  font: 600 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.fait__voir span, .fait__voir { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: transparent; transition: text-decoration-color .15s, color .15s; }
@media (hover: hover) { .fait__voir:hover { color: #fff; text-decoration-color: var(--rouge); } }

/* le résultat : sur papier, avec la phrase clé qui claque dans une bulle rouge */
.cas-resultat { position: relative; z-index: 3; margin-top: calc(-1 * var(--biais)); padding: calc(var(--biais) + 80px) 0 calc(var(--biais) + 100px); color: var(--nuit); overflow-x: clip;
  clip-path: polygon(0 var(--biais), 100% 0, 100% calc(100% - var(--biais)), 0 100%); background: var(--trame), var(--papier); }
.cas-resultat__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 50px clamp(40px, 6vw, 110px); align-items: center; }
.cas-resultat__texte p { max-width: 46ch; margin: 22px 0 26px; font: 400 clamp(18px, 1.4vw, 21px)/1.55 var(--titre); }
.lien-site { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--nuit); font-size: 22px; text-decoration: none; }
.lien-site .dymo { font-size: 15px; letter-spacing: .1em; text-transform: none; transition: background .15s; }
.lien-site i { transition: translate .25s var(--claque); }
@media (hover: hover) { .lien-site:hover .dymo { background: var(--rouge); } }
@media (hover: hover) { .lien-site:hover i { translate: 4px -4px; } }
.citation { position: relative; margin: 0; padding: 40px 20px; }
.citation__boum { position: absolute; left: 50%; top: 50%; width: min(120%, 720px); max-width: none; translate: -50% -50%; rotate: 8deg; pointer-events: none; }
.citation__bulle { position: relative; margin: 0 auto; max-width: 560px; padding: 30px 32px 32px; background: var(--rouge); color: #fff; rotate: -3deg; box-shadow: 10px 10px 0 var(--nuit); }
.citation__bulle::before { content: "“"; display: block; height: .46em; font: 900 96px/.9 var(--titre); color: var(--jaune); }
.citation__bulle p { font: 900 clamp(24px, 2.6vw, 40px)/1.02 var(--titre); text-transform: uppercase; letter-spacing: .005em; }

/* le projet suivant : une grande affiche à la couleur de ce client-là */
.cas-suivant { position: relative; z-index: 2; padding: calc(var(--biais) + 70px) 0 calc(var(--biais) + 80px); overflow-x: clip; }
.suivant { position: relative; display: block; max-width: 1400px; margin: 0 auto; color: var(--client-encre); text-decoration: none; rotate: -1.2deg; }
.suivant__cadre { display: block; filter: drop-shadow(14px 14px 0 var(--rouge)); }
.suivant__papier { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 30px; padding: clamp(34px, 4.4vw, 60px) clamp(26px, 4.4vw, 64px);
  background: radial-gradient(color-mix(in srgb, var(--client-encre) 12%, transparent) 1.2px, transparent 1.6px) 0 0 / 12px 12px, var(--client-fond); clip-path: var(--dechire-3); }
.suivant__sur { grid-column: 1 / -1; font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.suivant__nom { grid-column: 1; display: block; margin-top: 10px; font: 900 clamp(40px, 6.4vw, 100px)/.9 var(--titre); text-transform: uppercase; overflow-wrap: anywhere; }
.suivant__phrase { grid-column: 1; display: block; max-width: 46ch; margin-top: 12px; font: 500 clamp(16px, 1.3vw, 20px)/1.4 var(--titre); }
.suivant__fleche { grid-column: 2; grid-row: 2 / span 2; display: grid; place-items: center; width: 84px; height: 84px; border: 3px solid var(--nuit); border-radius: 50%; background: var(--jaune); color: var(--nuit); font-size: 34px; transition: background .15s, color .15s; }
.suivant__fleche i { transition: translate .25s var(--claque); }
@media (hover: hover) { .suivant:hover .suivant__fleche { background: var(--rouge); color: #fff; } }
@media (hover: hover) { .suivant:hover .suivant__fleche i { translate: 6px 0; } }
.suivant:focus-visible { outline: none; }
.suivant:focus-visible .suivant__cadre { outline: 3px solid var(--jaune); outline-offset: 8px; }
.suivant__ruban { width: clamp(110px, 10vw, 160px); top: -20px; left: 42%; rotate: -4deg; }
.cas-suivant__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 30px; max-width: 1400px; margin: 60px auto 0; }
.retour { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--blanc); font: 600 14px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .15s, text-decoration-color .15s; }
@media (hover: hover) { .retour:hover { color: var(--jaune); text-decoration-color: var(--jaune); } }
.cas-suivant__jaser { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 0; font: 600 18px/1.3 var(--titre); }

/* ------------------------------------------------------------------------------------------
   4. Tablette et mobile
   ------------------------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .affiche--vedette { width: 58%; }
  .pile { width: 38%; }
  .pile .affiche, .pile .affiche--ecran, .pile .affiche--carre, .pile .affiche--site, .pile .affiche--ici { width: 96%; }
  .mur__affiches { column-gap: 2%; }
  .regie { grid-template-columns: auto minmax(0, 1fr); }
  .regie__explorer { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .mur-tete__grille, .cas-recit__grille, .cas-resultat__grille { grid-template-columns: minmax(0, 1fr); }
  .mur-tete__collage { min-height: 0; height: 0; }
  .gommette--colleur { bottom: auto; top: -150px; width: 110px; }
  .mur-tete__defiler { display: none; }
  .citation { padding: 20px 0 10px; }
}
@media (max-width: 640px) {
  .mur-tete { padding-top: 22px; }
  .mur-tete__intro { padding-bottom: 0; }
  .tri { gap: 10px 18px; }
  .tri__menu, .tri__bouton { width: 100%; }
  .tri__bouton { justify-content: flex-start; }
  .tri__bouton i { margin-left: auto; }
  .tri__panneau { left: 0; width: 100%; }
  .tri__etat { order: 0; margin-left: 0; }
  .gommette--main { display: none; }
  .gommette--colleur { display: none; }
  .gommette--bombe, .gommette--ciseaux, .gommette--colle { display: none; }
  .pochoir { font-size: 96px; top: calc((var(--k) + .2) * 100% / 7); }
  .mur__affiches { padding-top: 20px; }
  .pile { display: contents; }
  .mur__affiches { column-gap: 0; }
  .tri__libelle { font-size: 12px; }
  .ici__sur, .ici__note { font-size: 13px; }
  .mur__affiches.est-zigzag .affiche--vedette { margin-left: 0 !important; margin-right: 0 !important; }
  .affiche { rotate: calc(var(--r, 0deg) * .55); }
  .affiche--vedette { width: 100%; margin: 0 0 44px; }
  .pile .affiche, .pile .affiche--ecran, .pile .affiche--carre, .pile .affiche--site { width: 47%; margin: 0 1.5% 36px !important; align-self: flex-start; }
  .pile .affiche--ici { width: 100%; margin: 6px 0 40px !important; }
  .affiche--vedette .affiche__cadre { filter: drop-shadow(8px 8px 0 var(--rouge)); }
  .affiche__cadre { filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .6)); }
  .affiche__ruban { width: 74px; }
  .affiche__bas .dymo { font-size: 11px; letter-spacing: .05em; white-space: normal; }
  .affiche__papier { padding: 6% 6% 7%; }
  .affiche--vedette .affiche__papier { padding: 16px 14px 18px; }
  .affiche__nom { font-size: 26px; }
  .affiche__bas .affiche__nom { font-size: 15px; }
  .ici__titre { font-size: 44px; }
  .ici__languettes { margin: 0 -6%; }
  .ici { --lang: 120px; }

  .cas-tete__grille { grid-template-columns: minmax(0, 1fr); }
  .cas-tete__cote { align-items: flex-start; padding-left: 34px; }
  .logo-carte { width: min(250px, 70vw); margin-top: 30px; }
  .logo-carte__ruban { width: 84px; right: -18px; }
  .cas-tete__num { font-size: 76px; text-shadow: 4px 4px 0 #000; }
  .cas-tete__titre { font-size: clamp(40px, 12vw, 56px); }
  .cas-ecran__papier { padding: 8px; }
  .cas-ecran .navigateur__ecran { height: min(560px, 118vw); }
  .cas-ecran__ruban { width: 90px; }
  .cas-ecran__indice { display: none; }
  .regie { gap: 14px 16px; margin-top: 34px; }
  .regie__jouer { width: 52px; height: 52px; font-size: 20px; }
  .regie__etapes li { opacity: 0; }
  .regie__etapes li.est-actif { opacity: 1; }
  .fait { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .fait__num { font-size: 36px; }
  .citation__bulle { padding: 24px 22px 26px; }
  .citation__bulle::before { font-size: 72px; }
  .citation__boum { width: 120%; }
  .suivant__papier { grid-template-columns: minmax(0, 1fr); }
  .suivant__fleche { grid-column: 1; grid-row: auto; justify-self: end; width: 64px; height: 64px; font-size: 26px; margin-top: 10px; }
  .suivant__nom { font-size: clamp(36px, 11vw, 52px); }
  .cas-suivant__bas { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ici__languette, .affiche__voir i, .suivant__fleche i { transition: none; }
}
