/* Blitz · études de cas « identité visuelle » et affiches d'identité du mur (ajout wpforall, 2026-11-25 ; voir inc/identites.php).
   Reprend les composants des études de cas de sites (realisations.css) ; les couleurs du client arrivent en variables
   (--id-fond, --id-accent, --id-encre, et --client* pour les composants repris). */

/* ---------- le mur : l'affiche d'une identité */
.pile .affiche--identite { width: 90%; }
.affiche--identite .affiche__papier { --fond: #fff; }
.affiche--identite .affiche__haut { margin-bottom: 12px; }
.id-affiche__visuel { overflow: hidden; aspect-ratio: 16 / 10; background: var(--id-fond); }
.id-affiche__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--claque, ease); }
@media (hover: hover) { .affiche--identite:hover .id-affiche__visuel img { scale: 1.04; } }
.affiche--identite .affiche__nom { font-size: clamp(24px, 2vw, 34px); }
.affiche--identite .affiche__phrase { font-size: 15px; }
.affiche--identite .affiche__voir { font-size: 14px; }

/* le tri : deux menus (secteur, type) qui se filtrent l'un l'autre ; un choix sans projet est grisé */
.tri__case.est-vide { opacity: .38; cursor: not-allowed; }
.tri__case.est-vide .tri__compte { background: #8a8a92; }
@media (hover: hover) { .tri__case.est-vide:hover .tri__nom { color: inherit; } }
.tri__menu--type .tri__panneau { width: min(300px, calc(100vw - 2 * var(--gouttiere))); }

/* ---------- la page d'une étude */
.page-identite .cas-tete__qui { color: #cfcfd6; }
.id-carte { background: var(--id-fond); }
.id-carte img { max-height: 150px; object-fit: contain; }

/* le dévoilement : le logo en grand sur la couleur du client, ou l'avant/après */
.id-devoile { position: relative; z-index: 3; margin: calc(-1 * var(--biais)) 0; padding: calc(var(--biais) + 50px) 0 calc(var(--biais) + 70px);
  background: var(--trame), var(--id-fond); color: var(--id-encre); clip-path: polygon(0 var(--biais), 100% 0, 100% calc(100% - var(--biais)), 0 100%); }
.id-devoile__tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 40px; margin-bottom: 34px; }
.id-devoile__tete p { max-width: 40ch; margin: 0; font: 600 16px/1.45 var(--titre); }
.id-devoile__affiche, .id-compare { position: relative; overflow: hidden; border: 4px solid var(--nuit); box-shadow: 14px 14px 0 var(--id-accent); rotate: -.6deg; }
.id-devoile__affiche img, .id-compare img { display: block; width: 100%; height: auto; }
.id-compare__avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.id-compare__avant img { width: 100%; height: 100%; object-fit: cover; }
.id-compare__ligne { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; translate: -50% 0; background: var(--jaune); pointer-events: none; }
.id-compare__ligne i { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; translate: -50% -50%;
  border: 3px solid var(--nuit); border-radius: 50%; background: var(--jaune); color: var(--nuit); font-size: 24px; }
.id-compare__curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.id-compare__curseur:focus-visible + * , .id-compare:has(.id-compare__curseur:focus-visible) { outline: 3px solid var(--jaune); outline-offset: 6px; }
.id-compare__etiquette { position: absolute; top: 16px; padding: 7px 10px 6px; background: var(--nuit); color: #fff; font: 700 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.id-compare__etiquette--avant { left: 16px; }
.id-compare__etiquette--apres { right: 16px; background: var(--rouge); }
.id-devoile__note { max-width: 60ch; margin: 26px 0 0; font: 500 15px/1.5 var(--titre); opacity: .85; }

/* le concept : un texte d'amorce et, s'il y en a une, l'image qui l'explique */
.id-concept__texte { max-width: 56ch; margin: -6px 0 18px; color: #cfcfd6; font: 400 18px/1.55 var(--titre); }
.id-concept__image { margin: 30px 0 0; padding: 14px; background: #fff; rotate: .8deg; box-shadow: 10px 10px 0 var(--id-accent); }
.id-concept__image img { display: block; width: 100%; height: auto; }
.id-concept__image figcaption { margin-top: 10px; color: var(--nuit); font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* la palette : des pastilles de couleur, comme des échantillons de peinture */
.id-couleurs { position: relative; z-index: 2; padding: 90px 0 100px; background: var(--trame), var(--papier); color: var(--nuit); }
.id-nuancier { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px 26px; margin: 40px 0 0; padding: 0; list-style: none; }
.id-pastille { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 16px; background: #fff; box-shadow: 8px 8px 0 var(--nuit); rotate: var(--r); }
.id-pastille__couleur { display: block; aspect-ratio: 4 / 3; margin-bottom: 10px; background: var(--c); border: 1px solid rgba(23, 23, 26, .12); }
.id-pastille__nom { font: 900 19px/1.05 var(--titre); text-transform: uppercase; }
.id-pastille__hex { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--nuit);
  font: 600 14px/1 var(--mono); letter-spacing: .06em; cursor: pointer; }
.id-pastille__hex i { opacity: .5; }
.id-pastille__hex.est-copie::after { content: "Copié"; padding: 3px 6px; background: var(--jaune); font-size: 11px; }
@media (hover: hover) { .id-pastille__hex:hover { color: var(--rouge); } }
.id-pastille__role { color: #5a5a62; font: 500 14px/1.35 var(--titre); }
.id-typos { margin-top: 60px; }
.id-typos__titre { margin: 0 0 18px; font: 900 clamp(24px, 2.4vw, 34px)/1 var(--titre); text-transform: uppercase; }
.id-typos ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.id-typos li { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 6px 30px; padding: 18px 0; border-top: 2px solid var(--nuit); }
.id-typos b { font: 900 clamp(22px, 2vw, 30px)/1.05 var(--titre); text-transform: uppercase; }
.id-typos span { font: 400 17px/1.5 var(--titre); }

/* l'univers : les motifs et éléments graphiques, collés au mur */
.id-univers { position: relative; z-index: 2; padding: 100px 0 110px; }
.id-univers__tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 40px; margin-bottom: 50px; }
.id-univers__tete p { max-width: 52ch; margin: 0; color: #cfcfd6; font: 400 18px/1.55 var(--titre); }
.id-univers__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 40px; align-items: start; }
.id-piece { position: relative; margin: 0; padding: 12px 12px 14px; background: #fff; rotate: var(--r); box-shadow: 10px 10px 0 var(--id-accent); }
.id-piece:nth-child(even) { margin-top: 40px; }
.id-piece img:not(.id-piece__ruban) { display: block; width: 100%; height: auto; }
.id-piece figcaption, .id-scene figcaption { margin-top: 10px; color: var(--nuit); font: 600 12px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.id-piece__ruban { position: absolute; z-index: 2; top: -16px; left: 50%; width: clamp(90px, 8vw, 130px); height: auto; translate: -50% 0; rotate: -3deg; pointer-events: none; }

/* en situation : la première en grand, les autres en grille */
.id-situations { position: relative; z-index: 2; padding: 90px 0 100px; background: var(--trame), var(--id-fond); color: var(--id-encre); }
.id-situations__note { max-width: 60ch; margin: 14px 0 0; font: 500 15px/1.5 var(--titre); opacity: .85; }
.id-situations__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 40px; align-items: start; }
.id-scene { margin: 0; padding: 10px 10px 12px; background: #fff; box-shadow: 10px 10px 0 var(--nuit); }
.id-scene--grande { grid-column: 1 / -1; }
/* une image plus petite que sa case reste à sa taille (pas de flou), centrée */
.id-scene img { display: block; width: auto; max-width: 100%; height: auto; max-height: 760px; margin: 0 auto; object-fit: contain; }

/* la trousse : ce qui a été remis */
.id-trousse { position: relative; z-index: 2; padding: 100px 0 calc(var(--biais) + 100px); }
.id-trousse__grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 30px 60px; align-items: start; }
.id-trousse__chapo { margin: 18px 0 0; color: #cfcfd6; font: 400 18px/1.5 var(--titre); }
.id-trousse__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 0; padding: 0; list-style: none; }
.id-trousse__liste li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 2px solid var(--ligne); font: 600 17px/1.35 var(--titre); }
.id-trousse__liste i { color: var(--jaune); font-size: 20px; }


@media (max-width: 1060px) {
  .id-trousse__grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .id-devoile__affiche, .id-compare { border-width: 3px; box-shadow: 8px 8px 0 var(--id-accent); }
  .id-compare__ligne i { width: 44px; height: 44px; font-size: 20px; }
  .id-nuancier { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .id-pastille { box-shadow: 6px 6px 0 var(--nuit); }
  .id-pastille__nom { font-size: 16px; }
  .id-typos li { grid-template-columns: minmax(0, 1fr); }
  .id-univers__grille, .id-situations__grille, .id-trousse__liste { grid-template-columns: minmax(0, 1fr); }
  .id-piece:nth-child(even) { margin-top: 0; }
  .id-univers, .id-couleurs, .id-situations { padding: 70px 0; }
}

/* le tri sur téléphone : les deux menus côte à côte, leur panneau s'ouvre sous la rangée, pleine largeur
   (empilés, le panneau du premier couvrait le bouton du second) */
@media (max-width: 640px) {
  .tri__menu { position: static; width: calc(50% - 9px); }
  .tri__menu .tri__panneau { left: 0; right: 0; top: 70px; width: auto; }
  .tri__bouton { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; width: 100%; min-height: 58px; padding: 8px 12px 8px 14px; text-align: left; }
  .tri__libelle { grid-column: 1; }
  .tri__choix { grid-column: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tri__bouton i { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
