/* Reach Adz v21.2 — css/sites21.css : « Rendus », rangés par projet (balisage : _outils/sites21.py ; gestes : js/sites21.js).
   Quatre cartes marine, une par projet : à gauche le numéro, l'état (« Réel » / « Concept »), le titre, une ligne et les
   étiquettes ; à droite la scène (une fenêtre sans adresse : un rendu, ou une interface VIVANTE mise à l'échelle). Accueil,
   ordinateur : les cartes s'empilent au défilement (sticky). Ailleurs : l'une sous l'autre. Téléphone : on glisse.
   1. Les cartes   2. La fenêtre   3. Le cockpit (.ck-)   4. L'école en 3D (.ed-)   5. Téléphone   6. Accueil, services */

/* ------------------------------------------------------------------------------------------------ 1. Les cartes */
.rd { position: relative; display: grid; gap: clamp(14px, 1.4vw, 20px); }
.pj-pile { display: grid; gap: clamp(20px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.pj {
  position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center;
  gap: clamp(24px, 3.4vw, 64px); padding: clamp(24px, 3vw, 52px); border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, #1A3F75 0%, #0F2647 46%, #0B1C36 100%); color: #fff;
  box-shadow: 0 0 0 1px rgb(128 242 255 / .08), 0 40px 90px -46px rgb(6 16 34 / .75);
}
.pj-pile--empile .pj:last-child, .rd--grand .pj, .rd--grille .pj { box-shadow: 0 0 0 1px rgb(128 242 255 / .08), 0 30px 60px -42px rgb(6 16 34 / .5); }
/* v22 : sur le papier (salles de jour), l'ombre de la dernière carte de la pile ne déborde plus en bande grise sur la note */
.pj::before { /* une lueur cyan, à peine, dans le coin de la scène */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(128 242 255 / .16), transparent); pointer-events: none;
}
.pj__texte { display: grid; gap: 14px; align-content: center; justify-items: start; min-width: 0; }
.pj__texte > p { margin: 0; }
.pj__haut { display: flex; align-items: center; gap: 14px; }
.pj__num { font: 700 13px/1 var(--corps); letter-spacing: .12em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.pj__num > span { color: rgb(255 255 255 / .38); }
.pj__etat { padding: 6px 10px 5px; border-radius: 999px; font: 750 11px/1 var(--corps); letter-spacing: .08em; text-transform: uppercase; }
.pj__etat--reel { background: var(--cyan); color: var(--encre); }
.pj__etat--concept { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); color: #fff; }
.pj__titre { font: 800 clamp(26px, 1rem + 1.7vw, 42px)/1.04 var(--titre); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.pj__ligne { max-width: 26rem; font: 400 var(--fs-corps)/1.5 var(--corps); color: var(--nuit-texte, #C9D5EA); text-wrap: pretty; }
.pj__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.pj__tags li { padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); font: 600 13px/1 var(--corps); color: #E8F1FF; }
.pj__scene { position: relative; min-width: 0; }
.pj__flottant {
  position: absolute; right: -3%; bottom: -10%; width: 40%; height: auto; border-radius: 14px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 60px -24px rgb(0 0 0 / .65);
}
.pj--2 .pj__scene { padding-bottom: 6%; }

/* l'empilement (accueil, ordinateur) : chaque carte se fige un cran plus bas que la précédente */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .pj-pile--empile { gap: 28px; }
  .pj-pile--empile .pj { position: sticky; top: calc(var(--tete-h, 64px) + 20px + var(--i) * 18px); min-height: min(68svh, 580px); }
}

/* ------------------------------------------------------------------------------------------------ 2. La fenêtre */
.fen {
  position: relative; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 34px 70px -30px rgb(0 0 0 / .7);
}
.fen__barre { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: #ECEEF3; }
.fen__barre i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.fen__barre i:nth-child(2) { background: #FEBC2E; }
.fen__barre i:nth-child(3) { background: #28C840; }
.fen__corps { position: relative; aspect-ratio: var(--ar); overflow: hidden; background: #F4F2EE; }
.fen__corps > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* une interface vivante, dessinée à 1200 px de large, mise à l'échelle de la fenêtre (--k : js/sites21.js) */
.fen__corps[data-fen-vivant] > * { position: absolute; left: 0; top: 0; transform: scale(var(--k, .5)); transform-origin: 0 0; }

/* ------------------------------------------------------------------------------------------------ 3. Le cockpit */
.ck {
  --ck-fond: #F5F4FF; --ck-ligne: #E9E7FA; --ck-encre: #18173A; --ck-doux: #7C7B9C; --ck-violet: #6E5BFF;
  --ck-menthe: #19C79A; --ck-ambre: #F5A524; --ck-rose: #FF6B8B;
  display: grid; grid-template-columns: 178px minmax(0, 1fr) 288px; width: 1200px; height: 750px;
  background: var(--ck-fond); color: var(--ck-encre); font: 500 13px/1.35 var(--corps); text-align: left;
}
.ck p { margin: 0; }
.ck ul { margin: 0; padding: 0; list-style: none; }
.ck-nav { display: grid; grid-template-rows: auto 1fr auto; gap: 22px; padding: 22px 14px; background: #fff; border-right: 1px solid var(--ck-ligne); }
.ck-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; font: 800 18px/1 var(--titre); letter-spacing: -.02em; }
.ck-logo i { width: 26px; height: 26px; border-radius: 8px; background: conic-gradient(from 210deg, var(--ck-violet), #9D8CFF, var(--ck-menthe), var(--ck-violet)); box-shadow: inset 0 0 0 6px #fff, 0 0 0 1px var(--ck-ligne); }
.ck-nav li { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--ck-doux); font-weight: 600; }
.ck-nav li.on { background: #EFECFF; color: var(--ck-violet); }
.ck-nav li b { margin-left: auto; padding: 3px 7px; border-radius: 999px; background: var(--ck-violet); color: #fff; font-size: 11px; }
.ck-i { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 2px currentColor; opacity: .9; }
.ck-i--clients { border-radius: 50%; }
.ck-i--pipe { border-radius: 3px; box-shadow: inset 0 0 0 2px currentColor, inset 6px 0 0 -3px currentColor; }
.ck-i--msg { border-radius: 8px 8px 8px 2px; }
.ck-i--stats { border-radius: 2px; box-shadow: inset 0 -2px 0 currentColor, inset 2px 0 0 currentColor; }
.ck-i--auto { border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor, inset 0 0 0 5px transparent, inset 0 0 0 7px currentColor; }
.ck-nav__bas { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--ck-fond); font-weight: 700; }
.ck-nav__bas small { display: block; font-weight: 500; color: var(--ck-doux); font-size: 11.5px; }
.ck-av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; font: 700 12.5px/1 var(--corps); background: var(--ck-violet); }
.ck-av--moi { background: linear-gradient(135deg, #FF8A65, var(--ck-rose)); }
.ck-av--0 { background: linear-gradient(135deg, #6E5BFF, #9D8CFF); }
.ck-av--1 { background: linear-gradient(135deg, #19C79A, #5BE3BE); }
.ck-av--2 { background: linear-gradient(135deg, #F5A524, #FFCB6B); }
.ck-av--3 { background: linear-gradient(135deg, #FF6B8B, #FF9DB2); }

.ck-main { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 16px; padding: 22px 22px 20px; min-width: 0; }
.ck-top { display: flex; align-items: center; gap: 16px; }
.ck-bonjour { font: 800 20px/1.1 var(--titre); letter-spacing: -.02em; }
.ck-date { color: var(--ck-doux); font-size: 12px; margin-top: 3px !important; }
.ck-recherche { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 360px; margin-left: auto; height: 38px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--ck-ligne); color: var(--ck-doux); }
.ck-recherche i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.ck-recherche kbd { margin-left: auto; padding: 3px 6px; border-radius: 6px; background: var(--ck-fond); font: 600 11px/1 var(--corps); }
.ck-periode { padding: 10px 14px; border-radius: 12px; background: var(--ck-encre); color: #fff; font-weight: 700; font-size: 12.5px; }
.ck-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ck-kpi, .ck-graph, .ck-leads { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--ck-ligne), 0 10px 24px -18px rgb(40 30 120 / .35); }
.ck-kpi { position: relative; display: grid; gap: 6px; padding: 14px 14px 12px; overflow: hidden; }
.ck-kpi > span { color: var(--ck-doux); font-size: 12px; font-weight: 600; }
.ck-kpi > b { font: 800 23px/1.05 var(--titre); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-kpi > em { justify-self: start; padding: 4px 8px; border-radius: 999px; font: 700 11px/1 var(--corps); font-style: normal; }
.ck-up { background: #E3F9F2; color: #0B9A75; }
.ck-kpi:has(.ck-warn) .ck-spark { display: none; }
.ck-warn { background: #FFF2DB; color: #B5720A; }
.ck-spark { position: absolute; right: 12px; bottom: 13px; width: 56px; height: 18px; fill: none; stroke: var(--ck-violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.ck-bas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-height: 0; }
.ck-graph, .ck-leads { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 14px 16px; min-height: 0; }
.ck-graph > header, .ck-leads > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ck-leads > header span { color: var(--ck-doux); font-size: 12px; font-weight: 600; }
.ck-leg { display: flex; align-items: center; gap: 6px; color: var(--ck-doux); font-size: 12px; font-weight: 600; }
.ck-leg i { width: 14px; height: 3px; border-radius: 2px; background: var(--ck-violet); margin-left: 8px; }
.ck-leg .ck-leg--prev { background: repeating-linear-gradient(90deg, var(--ck-menthe) 0 4px, transparent 4px 7px); }
.ck-svg { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.ck-grille line { stroke: var(--ck-ligne); stroke-width: 1; }
.ck-aire { fill: url(#ck-deg); }
.ck-ligne { fill: none; stroke: var(--ck-violet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ck-prev { fill: none; stroke: var(--ck-menthe); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.ck-auj { stroke: rgb(110 91 255 / .35); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.ck-pt { fill: #fff; stroke: var(--ck-violet); stroke-width: 3; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.ck-leads ul { display: grid; align-content: start; gap: 4px; }
.ck-leads li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 38px auto; align-items: center; gap: 9px; padding: 8px 2px; border-radius: 10px; }
.ck-nom { display: grid; gap: 2px; font-weight: 700; font-size: 13px; min-width: 0; white-space: nowrap; }
.ck-nom small { color: var(--ck-doux); font-weight: 500; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.ck-score { position: relative; display: grid; gap: 4px; font: 800 12px/1 var(--corps); color: var(--ck-violet); font-variant-numeric: tabular-nums; }
.ck-score i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--ck-violet) calc(var(--s) * 1%), #EDEBFB 0); }
.ck-etape { padding: 6px 9px; border-radius: 999px; font: 700 11px/1 var(--corps); white-space: nowrap; }
.ck-etape--devis { background: #EFECFF; color: var(--ck-violet); }
.ck-etape--relance { background: #FFF2DB; color: #B5720A; transition: background-color .4s, color .4s; }
.ck-etape--relance.ck-fait { background: #E3F9F2; color: #0B9A75; }
.ck-etape--nouveau { background: #E9F3FF; color: #2C6FD6; }
.ck-etape--gagne { background: #E3F9F2; color: #0B9A75; }

.ck-ia { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 12px; padding: 20px 16px 16px; background: linear-gradient(180deg, #FFFFFF 0%, #F2EFFF 100%); border-left: 1px solid var(--ck-ligne); min-width: 0; }
.ck-ia > header { display: flex; align-items: center; gap: 10px; font: 800 16px/1 var(--titre); }
.ck-ia > header small { padding: 4px 7px; border-radius: 6px; background: var(--ck-encre); color: #fff; font: 800 10.5px/1 var(--corps); letter-spacing: .06em; }
.ck-orbe {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ck-violet), #3DD6F5, var(--ck-menthe), #FF8AC8, var(--ck-violet));
  box-shadow: 0 0 18px rgb(110 91 255 / .55), inset 0 0 6px rgb(255 255 255 / .6);
}
.ck-orbe::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, rgb(255 255 255 / .2) 55%, transparent 70%); }
.ck-fil { display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; min-height: 0; overflow: hidden; }
.ck-msg { max-width: 92%; padding: 10px 12px; border-radius: 14px; font-size: 12.8px; line-height: 1.4; }
.ck-msg--ia { align-self: flex-start; background: #fff; box-shadow: 0 0 0 1px var(--ck-ligne), 0 8px 20px -14px rgb(40 30 120 / .4); border-top-left-radius: 4px; }
.ck-msg--moi { align-self: flex-end; background: var(--ck-violet); color: #fff; border-top-right-radius: 4px; font-weight: 600; }
.ck-relances { display: grid; gap: 6px; margin-top: 9px !important; }
.ck-relances li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: var(--ck-fond); font-weight: 700; font-size: 12px; }
.ck-relances li span { color: var(--ck-doux); font-weight: 600; font-size: 11.5px; }
.ck-relances li i { padding: 3px 7px; border-radius: 999px; background: #E3F9F2; color: #0B9A75; font: 800 10.5px/1 var(--corps); font-style: normal; }
.ck-valider { display: inline-block; margin-top: 9px; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--ck-ambre); color: #B5720A; font: 700 11.5px/1 var(--corps); }
.ck-ecrit { display: none; align-self: flex-start; gap: 4px; padding: 11px 13px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ck-ligne); }
.ck-ecrit.ck-vu { display: flex; }
.ck-ecrit i { width: 6px; height: 6px; border-radius: 50%; background: var(--ck-violet); opacity: .35; }
.ck-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-sugg span { padding: 7px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--ck-ligne); color: var(--ck-encre); font-weight: 600; font-size: 11.8px; }
.ck-saisie { display: flex; align-items: center; height: 42px; padding: 0 6px 0 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ck-ligne), 0 0 0 4px rgb(110 91 255 / .06); color: var(--ck-doux); }
.ck-micro { margin-left: auto; width: 30px; height: 30px; border-radius: 10px; background: var(--ck-violet); box-shadow: inset 0 0 0 9px var(--ck-violet), inset 0 0 0 30px #fff; }

/* le cockpit vit (js : .ck--vivant quand il est à l'écran ; les pas du copilote reçoivent .ck-vu un à un) */
.ck [data-ck-pas] { opacity: 0; translate: 0 8px; transition: opacity .35s ease, translate .45s cubic-bezier(.2, .9, .25, 1.1); }
.ck [data-ck-pas].ck-vu { opacity: 1; translate: 0 0; }
.ck--fige [data-ck-pas] { opacity: 1; translate: none; }
@media (prefers-reduced-motion: no-preference) {
  .ck--vivant .ck-orbe { animation: ck-orbe 6s linear infinite; }
  .ck--vivant .ck-prev { animation: ck-flux 1.4s linear infinite; }
  .ck--vivant .ck-pt { animation: ck-pouls 1.8s ease-in-out infinite; }
  .ck--vivant .ck-ecrit i { animation: ck-ecrit 1s ease-in-out infinite; }
  .ck--vivant .ck-ecrit i:nth-child(2) { animation-delay: .15s; }
  .ck--vivant .ck-ecrit i:nth-child(3) { animation-delay: .3s; }
  .ck--trace .ck-ligne { animation: ck-trace 1.6s cubic-bezier(.4, 0, .2, 1) both; }
  .ck--trace .ck-aire { animation: ck-aire 1.6s ease both; }
}
@keyframes ck-orbe { to { rotate: 1turn; } }
@keyframes ck-flux { to { stroke-dashoffset: -18; } }
@keyframes ck-pouls { 50% { transform: scale(1.35); } }
@keyframes ck-ecrit { 50% { opacity: 1; translate: 0 -2px; } }
@keyframes ck-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ck-aire { from { opacity: 0; } }

/* ------------------------------------------------------------------------------------------------ 4. L'école en 3D */
.ed {
  --ed-encre: #1E1B3A; --ed-corail: #FF7A59; --ed-sarcelle: #22BFAE; --ed-lilas: #8C7BFF; --ed-soleil: #FFC94D;
  display: grid; grid-template-rows: 76px minmax(0, 1fr); width: 1200px; height: 750px; overflow: hidden; color: var(--ed-encre);
  background: radial-gradient(60% 70% at 78% 52%, #EFE6FF 0%, transparent 70%), linear-gradient(160deg, #FFF6EC 0%, #F7F1FF 55%, #EAF6FF 100%);
  font: 500 16px/1.45 var(--corps); text-align: left;
}
.ed p { margin: 0; }
.ed-nav { display: flex; align-items: center; gap: 34px; padding: 0 52px; font-weight: 600; font-size: 15px; }
.ed-logo { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--titre); letter-spacing: -.02em; }
.ed-logo i { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--ed-corail), var(--ed-lilas)); box-shadow: 0 6px 14px -6px rgb(140 123 255 / .8); }
.ed-liens { display: flex; gap: 28px; margin-left: 24px; color: #5A5775; }
.ed-co { margin-left: auto; color: #5A5775; }
.ed-cta { padding: 12px 18px; border-radius: 999px; background: var(--ed-encre); color: #fff; font-weight: 700; }
.ed-hero { display: grid; grid-template-columns: 520px minmax(0, 1fr); align-items: center; padding: 0 0 20px 52px; }
.ed-texte { display: grid; gap: 22px; justify-items: start; }
.ed-k { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px -10px rgb(30 27 58 / .35); font-weight: 700; font-size: 13.5px; color: #5A5775; }
.ed-titre { font: 800 66px/1 var(--titre); letter-spacing: -.04em; }
.ed-titre em { font-style: normal; background: linear-gradient(90deg, var(--ed-corail), var(--ed-lilas)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ed-sous { max-width: 420px; font-size: 18px; color: #5A5775; }
.ed-btns { display: flex; gap: 12px; }
.ed-btn { padding: 16px 22px; border-radius: 16px; background: linear-gradient(135deg, var(--ed-corail), #FF9A6B); color: #fff; font-weight: 800; box-shadow: 0 14px 28px -14px rgb(255 122 89 / .9); }
.ed-btn--2 { background: #fff; color: var(--ed-encre); box-shadow: 0 0 0 1px #E6E0F5; }
.ed-cours { display: flex; gap: 12px; margin-top: 8px; }
.ed-cours__c { display: grid; grid-template-columns: 34px auto; column-gap: 10px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 16px; background: rgb(255 255 255 / .85); box-shadow: 0 12px 26px -18px rgb(30 27 58 / .45); }
.ed-cours__c b { font-size: 14px; }
.ed-cours__c small { grid-column: 2; color: #8A87A3; font-size: 12.5px; font-weight: 600; }
.ed-cours__i { grid-row: span 2; width: 34px; height: 34px; border-radius: 11px; background: var(--ed-corail); }
.ed-cours__i--1 { background: var(--ed-sarcelle); }
.ed-cours__i--2 { background: var(--ed-lilas); }

/* la scène 3D : un monde en perspective qui suit la souris (--rx, --ry : js) et se balance seul sinon */
.ed-scene { position: relative; height: 100%; perspective: 1100px; perspective-origin: 50% 40%; }
.ed-halo { position: absolute; left: 50%; top: 46%; width: 520px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / .95), rgb(239 230 255 / .6) 55%, transparent); }
.ed-sol { position: absolute; left: 50%; top: 80%; width: 360px; height: 46px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(60 40 120 / .22), transparent); filter: blur(2px); }
.ed-monde {
  position: absolute; left: 50%; top: 48%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, -14deg)) rotateY(var(--ry, -28deg)); transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.ed-flotte { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.ed-boite { position: absolute; left: calc(var(--x, 0px) - var(--w) / 2); top: calc(var(--y, 0px) - var(--h) / 2); width: var(--w); height: var(--h); transform-style: preserve-3d; transform: translateZ(var(--z, 0px)) rotateY(var(--ty, 0deg)) rotateX(var(--tx, 0deg)) rotateZ(var(--tz, 0deg)); }
.ed-f { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); border-radius: 4px; backface-visibility: hidden; }
.ed-f--av { background: var(--av, var(--c)); transform: translateZ(calc(var(--d) / 2)); }
.ed-f--ar { background: var(--ar, color-mix(in srgb, var(--c) 78%, #2A1F55)); transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.ed-f--dr { width: var(--d); left: calc((var(--w) - var(--d)) / 2); background: var(--dr, color-mix(in srgb, var(--c) 84%, #2A1F55)); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.ed-f--ga { width: var(--d); left: calc((var(--w) - var(--d)) / 2); background: var(--ga, color-mix(in srgb, var(--c) 70%, #2A1F55)); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.ed-f--ha { height: var(--d); top: calc((var(--h) - var(--d)) / 2); background: var(--ha, color-mix(in srgb, var(--c) 72%, #fff)); transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.ed-f--ba { height: var(--d); top: calc((var(--h) - var(--d)) / 2); background: var(--ba, color-mix(in srgb, var(--c) 60%, #2A1F55)); transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
/* les livres : couverture dessus, tranche des pages sur trois côtés, dos coloré */
.ed-livre { --pages: repeating-linear-gradient(180deg, #FFF9EE 0 3px, #EADFC8 3px 4px); --av: var(--pages); --ar: var(--pages); --dr: var(--pages); }
.ed-livre--1 { --c: var(--ed-corail); --w: 250px; --h: 38px; --d: 170px; --y: 118px; --x: -10px; --ty: -6deg; }
.ed-livre--2 { --c: var(--ed-sarcelle); --w: 226px; --h: 34px; --d: 156px; --y: 82px; --x: 4px; --ty: 8deg; }
.ed-livre--3 { --c: var(--ed-lilas); --w: 204px; --h: 30px; --d: 142px; --y: 50px; --x: -8px; --ty: -12deg; }
/* la toque : la calotte, puis le plateau tourné d'un quart, et le gland doré */
.ed-toque__calotte { --c: #2C2856; --w: 112px; --h: 44px; --d: 112px; --y: 13px; --x: -6px; --ty: 18deg; }
.ed-toque__plateau { --c: #34306A; --ha: #403B80; --w: 180px; --h: 10px; --d: 180px; --y: -14px; --x: -6px; --ty: 63deg; --tz: -4deg; }
.ed-toque__gland { position: absolute; left: 64px; top: -16px; width: 4px; height: 70px; border-radius: 2px; background: linear-gradient(var(--ed-soleil), #F2A93B); transform: translateZ(70px) rotateZ(-8deg); transform-origin: top; }
.ed-toque__gland i { position: absolute; left: 50%; bottom: -10px; width: 16px; height: 22px; translate: -50% 0; border-radius: 6px 6px 8px 8px; background: linear-gradient(var(--ed-soleil), #F29B2E); }
/* la tuile de lecture : une vidéo de cours */
.ed-lecture { --c: var(--ed-corail); --av: linear-gradient(135deg, #FF8A65, var(--ed-corail)); --w: 118px; --h: 118px; --d: 26px; --x: 176px; --y: -118px; --ty: -24deg; --tx: 8deg; }
.ed-lecture .ed-f--av { border-radius: 10px; }
.ed-lecture .ed-f--av::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; translate: -38% -50%; border-left: 34px solid #fff; border-top: 21px solid transparent; border-bottom: 21px solid transparent; filter: drop-shadow(0 4px 6px rgb(120 30 10 / .3)); }
.ed-lecture .ed-f--ar { border-radius: 10px; }
.ed-lecture .ed-f:is(.ed-f--dr, .ed-f--ga, .ed-f--ha, .ed-f--ba) { border-radius: 0; }
/* des bulles (sphères ombrées) et un anneau, posés dans l'espace */
.ed-bulle { position: absolute; width: var(--t); height: var(--t); margin: calc(var(--t) / -2) 0 0 calc(var(--t) / -2); border-radius: 50%; transform: translate3d(var(--x), var(--y), var(--z)); background: radial-gradient(circle at 32% 28%, #fff 0, var(--c) 34%, color-mix(in srgb, var(--c) 70%, #2A1F55) 100%); box-shadow: 0 18px 30px -16px rgb(40 30 90 / .5); }
.ed-bulle--1 { --t: 58px; --c: var(--ed-sarcelle); --x: -196px; --y: -132px; --z: 40px; }
.ed-bulle--2 { --t: 38px; --c: var(--ed-soleil); --x: 196px; --y: 96px; --z: 60px; }
.ed-bulle--3 { --t: 24px; --c: var(--ed-lilas); --x: -214px; --y: 150px; --z: -20px; }
.ed-anneau { position: absolute; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; transform: translate3d(186px, 4px, -60px) rotateX(64deg) rotateY(-18deg); background: conic-gradient(from 90deg, var(--ed-lilas), #B9A8FF, var(--ed-corail), var(--ed-lilas)); -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 60%); mask: radial-gradient(closest-side, transparent 58%, #000 60%); }
@media (prefers-reduced-motion: no-preference) {
  .ed--vivant .ed-flotte--livres { animation: ed-flotte 6s ease-in-out infinite; }
  .ed--vivant .ed-flotte--lecture { animation: ed-flotte 5s ease-in-out -1.5s infinite; }
  .ed--vivant .ed-bulle { animation: ed-bulle 4.6s ease-in-out infinite; }
  .ed--vivant .ed-bulle--2 { animation-duration: 5.4s; animation-delay: -2s; }
  .ed--vivant .ed-bulle--3 { animation-duration: 3.8s; animation-delay: -1s; }
  .ed--vivant .ed-toque__gland { animation: ed-gland 3.2s ease-in-out infinite; }
  .ed--vivant .ed-monde:not(.ed-suit) { animation: ed-balance 9s ease-in-out infinite; }
}
@keyframes ed-flotte { 50% { translate: 0 -14px; } }
@keyframes ed-bulle { 50% { translate: 0 -10px; } }
@keyframes ed-gland { 50% { rotate: 10deg; } }
@keyframes ed-balance { 0%, 100% { transform: rotateX(-14deg) rotateY(-28deg); } 50% { transform: rotateX(-10deg) rotateY(-10deg); } }

/* ------------------------------------------------------------------------------------------------ 5. Téléphone, tablette */
@media (max-width: 1023px) {
  .pj-pile {
    display: flex; gap: 14px; margin-inline: calc(-1 * var(--gout, 16px)); padding: 4px var(--gout, 16px) 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gout, 16px); scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .pj-pile::-webkit-scrollbar { display: none; }
  .pj { flex: 0 0 min(86vw, 560px); grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; padding: 22px 18px 24px; border-radius: 22px; scroll-snap-align: start; }
  .pj__titre { font-size: 25px; }
  .pj__ligne { font-size: 15.5px; }
  .pj__tags li { font-size: 12.5px; padding: 6px 10px; }
  .pj__flottant { width: 42%; right: -2%; bottom: -6%; }
  .fen { border-radius: 10px; }
  .fen__barre { height: 22px; gap: 5px; padding: 0 9px; }
  .fen__barre i { width: 7px; height: 7px; }
}

/* ------------------------------------------------------------------------------------------------ 6. Accueil, services */
.rd__note { margin: 0; max-width: 46rem; font-size: var(--fs-cartel, 14px); line-height: 1.5; color: var(--doux); text-wrap: pretty; }
.section--nuit .rd__note, .musee-salle:not(.musee-salle--jour) .rd__note { color: var(--nuit-doux, #9fb1cc); }
.ac-site__actions { display: grid; gap: 14px; justify-items: start; width: 100%; }
.ac-site__actions > .ac-index { margin-top: 0; }
.sr-piece > .sr-vignette { object-position: 50% 50%; }
.ac-site .ac-site__salle .rd { margin-top: 4px; }
.ac-site__actions--apres { margin-top: clamp(20px, 2.4vw, 36px); }
@media (min-width: 1024px) {
  .ac-site .ac-site__tete { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 24px 64px; }
  .ac-site .ac-site__texte { max-width: none; gap: 16px; }
  .ac-site .ac-site__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
  .ac-site .ac-site__actions > .ac-index { flex: 1 1 20rem; width: auto; }
}
@media (max-width: 767px) {
  .ac-site__actions { justify-items: stretch; }
}
.sv-sites-reels { display: grid; gap: clamp(14px, 1.6vw, 24px); scroll-margin-top: calc(var(--tete-h, 64px) + 16px); }
.sv-sites-reels > .sv-sites__intro { margin: 0; font-size: var(--fs-corps); color: var(--encre-2); }
.sv-sites-reels > .sv-sites__intro b { color: var(--encre); }
.sv-cas__reel { justify-self: start; margin: 0 0 10px; font: 700 var(--fs-cartel)/1 var(--corps); letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }

/* ------------------------------------------------------------------------------------------------ 7. La prise de vue (v21.3)
   L'utilisateur, 16/11 : « les meilleures prises, éblouissantes, en high-tech ». Chaque scène est posée en perspective :
   la fenêtre penche, un filet cyan l'éclaire, un reflet tombe au sol ; au survol de la carte, elle se redresse. Le 01 a
   un téléphone devant (la fiche d'une créatrice). Transform et opacity seulement. */
.pj__scene { perspective: 1800px; perspective-origin: 30% 40%; }
.pj .fen {
  transform: rotateY(-11deg) rotateX(5deg); transform-origin: 40% 50%;
  box-shadow: 0 0 0 1px rgb(128 242 255 / .3), 0 0 80px -16px rgb(128 242 255 / .45), 0 60px 100px -46px rgb(0 0 0 / .85);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
/* v22 : le reflet (-webkit-box-reflect) redessinait deux fois les interfaces vivantes (le cockpit, l'école en WebGL) à
   chaque image ; une lueur cyan au sol, peinte une fois, le remplace. */
.pj__scene::after {
  content: ""; position: absolute; z-index: -1; left: 6%; right: 10%; bottom: -26px; height: 52px; pointer-events: none;
  background: radial-gradient(closest-side, rgb(128 242 255 / .22), transparent);
}
.pj .fen__barre { background: linear-gradient(180deg, #F4F6FA, #E6E9F0); }
.pj--1 .fen { width: 74%; }
.pj__tel {
  position: absolute; z-index: 2; right: 2%; bottom: -6%; width: 30%; aspect-ratio: 1170 / 2532; padding: 2.4%;
  border-radius: 13% / 6%; background: #0A0F1C;
  box-shadow: inset 0 0 0 1.5px #3A4560, 0 0 0 1px rgb(128 242 255 / .35), 0 0 60px -14px rgb(128 242 255 / .5), 0 40px 70px -30px rgb(0 0 0 / .9);
  transform: translateZ(80px) rotateY(-11deg) rotateX(5deg); transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.pj__tel-ecran { position: relative; height: 100%; overflow: hidden; border-radius: 11% / 5%; background: #111; }
.pj__tel-ecran img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pj__tel-ilot { position: absolute; top: 3.6%; left: 50%; width: 30%; height: 2.6%; translate: -50% 0; border-radius: 99px; background: #000; }
.pj__flottant { transform: translateZ(70px) rotateY(-11deg) rotateX(5deg); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) and (pointer: fine) {
  .pj:hover .fen { transform: rotateY(-3deg) rotateX(2deg); }
  .pj:hover .pj__tel, .pj:hover .pj__flottant { transform: translateZ(60px) rotateY(-3deg) rotateX(2deg) translateY(-6px); }
}
@media (max-width: 1023px) {
  .pj .fen { transform: rotateY(-6deg) rotateX(3deg); }
  .pj--1 .fen { width: 76%; }
  .pj__tel { width: 34%; right: 0; bottom: -4%; transform: translateZ(40px) rotateY(-6deg) rotateX(3deg); }
  .pj__flottant { transform: translateZ(40px) rotateY(-6deg) rotateX(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pj .fen, .pj__tel, .pj__flottant { transition: none; }
}

/* v21.3 · L'esprit Gen Z : une note à la main en haut de la scène (le langage du site : Caveat, une flèche), en cyan sur le marine. */
.pj__main { position: absolute; z-index: 3; right: 6%; top: -50px; display: flex; align-items: flex-end; gap: 2px; margin: 0; pointer-events: none; }
.pj__main .main { color: var(--cyan); rotate: -3deg; max-width: none; white-space: nowrap; font-size: clamp(19px, 16px + .5vw, 24px); }
.pj__main .trait { width: 22px; height: 44px; color: var(--cyan); translate: 0 18px; }
@media (max-width: 1023px) { .pj__main { top: -12%; right: 2%; } .pj__main .main { font-size: 18px; } .pj__main .trait { display: none; } }

/* ------------------------------------------------------------------------------------------------ 8. Voir en grand (v21.6)
   Téléphone et tablette : « Voir en grand » sur chaque scène (ou un toucher sur la fenêtre) ouvre la visionneuse
   (js/sites21.js §4). La scène y est à plat, à la plus grande taille qui tient ; large et en portrait, elle se couche
   d'un quart : on tourne le téléphone, comme pour une vidéo (une aide le dit, 2 s). */
.pj__grand { display: none; }
@media (max-width: 1023px) {
  .pj__scene :is(.fen, .pj__tel, .pj__flottant) { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
  .pj__grand {
    position: absolute; z-index: 4; left: 2px; bottom: 2px; display: inline-flex; align-items: center; gap: 7px;
    min-height: 38px; margin: 0; padding: 0 14px 0 11px; border: 0; border-radius: 999px; cursor: pointer;
    background: rgb(7 19 38 / .84); color: #fff; font: 700 13px/1 var(--corps); letter-spacing: .01em;
    box-shadow: inset 0 0 0 1px rgb(128 242 255 / .55), 0 0 22px -6px rgb(128 242 255 / .6), 0 12px 24px -12px rgb(0 0 0 / .8);
    -webkit-tap-highlight-color: transparent; transition: scale 160ms var(--ease);
  }
  .pj__grand::before { content: ""; position: absolute; inset: -6px; }
  .pj__grand svg { width: 14px; height: 14px; color: var(--cyan); }
  .pj__grand:active { scale: .95; }
  .pj__grand:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
}

.vg {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  overflow: hidden; overscroll-behavior: contain; color: #fff; opacity: 0; transition: opacity 240ms var(--ease);
  background: radial-gradient(110% 70% at 50% 0%, #143566 0%, #081834 55%, #040B18 100%);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; /* un appui long ne sélectionne rien (sinon le toucher suivant ne sert qu'à le défaire) */
}
.vg::backdrop { background: #040B18; }
.vg.est-ouvert { opacity: 1; }
.vg__cadre {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); gap: 8px;
  width: 100vw; height: 100dvh;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
@media (orientation: portrait) {
  .vg--large .vg__cadre {
    width: 100dvh; height: 100vw; rotate: 90deg;
    padding: 8px max(18px, env(safe-area-inset-bottom)) 12px max(18px, env(safe-area-inset-top));
  }
  .vg--large .vg__aide { display: flex; }
}
.vg__haut { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.vg__titre { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; font: 750 16px/1.15 var(--titre); letter-spacing: -.01em; }
.vg__titre > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg__fermer {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 0 auto; padding: 0; border: 0;
  border-radius: 50%; cursor: pointer; background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22);
}
.vg__fermer svg { width: 16px; height: 16px; }
.vg__fermer:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.vg__zone { display: grid; place-items: center; min-width: 0; min-height: 0; }
.vg__scene { position: relative; flex: none; transition: scale 340ms var(--ease); }
.vg:not(.est-ouvert) .vg__scene { scale: .95; }
.vg .fen { box-shadow: 0 0 0 1px rgb(128 242 255 / .3), 0 0 70px -18px rgb(128 242 255 / .45), 0 40px 80px -40px rgb(0 0 0 / .9); }
.vg .fen__barre { height: 24px; }
.vg :is(.pj__tel, .pj__flottant) { transform: none; transition: none; }
.vg .pj__flottant { width: 34%; right: -2%; bottom: -8%; }
.vg__aide {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: none; align-items: center; gap: 12px;
  margin: 0; padding: 14px 18px; border-radius: 16px; pointer-events: none; white-space: nowrap; opacity: 0;
  background: rgb(4 11 24 / .9); box-shadow: inset 0 0 0 1px rgb(128 242 255 / .35), 0 20px 40px -20px rgb(0 0 0 / .9);
  font: 700 15px/1.2 var(--corps); color: #fff;
}
.vg.est-ouvert .vg__aide { animation: vg-aide 2.8s var(--ease) .35s both; }
.vg__aide-tel { flex: none; width: 17px; height: 28px; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--cyan); }
.vg.est-ouvert .vg__aide-tel { animation: vg-tourne 2.8s var(--ease) .35s both; }
@keyframes vg-aide { 0% { opacity: 0; } 10%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vg-tourne { 0%, 22% { rotate: 0deg; } 52%, 100% { rotate: -90deg; } }
@media (prefers-reduced-motion: reduce) {
  .vg, .vg__scene { transition: none; }
  .vg.est-ouvert .vg__aide-tel { animation: none; rotate: -90deg; }
}
/* une scène bornée par la hauteur (paysage) : le titre passe sur le côté, la scène prend toute la hauteur */
.vg--cote .vg__cadre { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 44px; gap: 14px; }
.vg--cote .vg__haut { display: contents; }
.vg--cote .vg__titre { grid-area: 1 / 1; align-self: start; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 4px; font-size: 15px; line-height: 1.2; }
.vg--cote .vg__titre > span:last-child { white-space: normal; overflow: visible; }
.vg--cote .vg__zone { grid-area: 1 / 2; }
.vg--cote .vg__fermer { grid-area: 1 / 3; align-self: start; margin: 0; }
/* la note de l'école : « bougez la souris » à la souris ; au doigt, ce qui est vrai au doigt (dans la visionneuse) */
.pj__main-doigt { display: none; }
@media (hover: none) { .pj__main-souris { display: none; } .pj__main-doigt { display: inline; } }
.vg .ed { touch-action: none; }

/* ------------------------------------------------------------------------------------------------ 9. L'école en vraie 3D (v21.7)
   js/ecole3d.js dessine la scène en WebGL dans .ed-3d et pose .ed--3d : la scène CSS (boîtes à faces plates) s'efface.
   Sans WebGL, sans réseau ou avant le chargement : la scène CSS reste (repli). */
.ed-3d { position: absolute; inset: 0 -2% 0 -6%; width: 108%; height: 100%; display: none; }
.ed--3d .ed-3d { display: block; }
.ed--3d :is(.ed-monde, .ed-sol) { display: none; }

/* v21.7 · Au téléphone, la note à la main ne chevauche plus les étiquettes : elle passe au-dessus de la scène, à droite. */
@media (max-width: 759.98px) {
  .pj__main { position: static; justify-content: flex-end; margin: -4px 0 8px; }
  .pj__main .main { font-size: 17px; }
}

/* ------------------------------------------------------------------------------------------------ 10. Finitions (v22) */
/* La légende des rendus, en image plutôt qu'en phrase : les mêmes pastilles que les cartes. */
.rd__note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.rd__note-k { flex: 1 1 100%; }
.rd__legende { display: inline-flex; align-items: center; gap: 8px; }
.rd__legende .pj__etat { font-size: 10.5px; }
.rd__note .pj__etat--concept { color: var(--encre); box-shadow: inset 0 0 0 1px rgb(13 32 63 / .55); }
:is(.section--nuit, .musee-salle:not(.musee-salle--jour)) .rd__note .pj__etat--concept { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); }

/* La pile (accueil, ordinateur) : seule la carte du dessus porte une ombre (les ombres empilées faisaient une bande grise) ;
   la carte qu'une autre vient recouvrir recule d'un rien et s'assombrit (js/sites21.js : .est-recouverte), au lieu de
   paraître coupée au milieu de son titre. Transform et opacity seulement. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .pj-pile--empile .pj:not(:last-child) { box-shadow: 0 0 0 1px rgb(128 242 255 / .08); }
  .pj-pile--empile .pj { transform-origin: 50% 0; transition: transform 500ms cubic-bezier(.2, .8, .2, 1); }
  .pj-pile--empile .pj::after {
    content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; background: #071326; opacity: 0; pointer-events: none;
    transition: opacity 500ms cubic-bezier(.2, .8, .2, 1);
  }
  .pj-pile--empile .pj.est-recouverte { transform: scale(.965); }
  .pj-pile--empile .pj.est-recouverte::after { opacity: .45; }
}

/* Le 02 : les trois écrans de l'application restent dans la carte (ils sortaient par le bord droit). */
.pj--2 .pj__flottant { right: 3%; width: 37%; }
@media (max-width: 1023px) { .pj--2 .pj__flottant { right: 2%; width: 40%; } }

/* ------------------------------------------------------------------------------------------------ 11. La grille (v23)
   Accueil, ordinateur : les quatre projets en grille, deux rangées de 7 + 5 colonnes, au lieu de la pile qui se figeait
   (v21.2–v22 : chaque carte restait deux écrans ; l'utilisateur, 17/11 : « trop long, comme si ça beuguait »). Chaque
   carte : le texte en haut, l'écran qui monte du bas, que le bord de la carte coupe, comme un produit qu'on dévoile.
   Au survol : l'écran se redresse et monte, la lueur suit le pointeur sur le bord (data-spot, site.js § 30.2). */
@media (min-width: 1024px) {
  .pj-pile--bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); }
  .pj-pile--bento .pj {
    grid-column: span 7; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start;
    gap: clamp(20px, 2.2vw, 30px); height: clamp(520px, 41vw, 600px); padding: clamp(26px, 2.5vw, 40px) clamp(26px, 2.5vw, 40px) 0;
    box-shadow: 0 0 0 1px rgb(128 242 255 / .1), 0 40px 80px -50px rgb(6 16 34 / .7);
  }
  .pj-pile--bento .pj:nth-child(even) { grid-column: span 5; }
  .pj-pile--bento .pj__texte { gap: 10px; align-content: start; }
  .pj-pile--bento .pj__titre { font-size: clamp(25px, 1rem + 1.05vw, 34px); }
  .pj-pile--bento .pj__ligne { max-width: 31rem; }
  .pj-pile--bento .pj__tags { margin-top: 2px; }
  .pj-pile--bento .pj__scene { align-self: stretch; height: 100%; perspective-origin: 50% 0; }
  .pj-pile--bento .pj__scene::after { display: none; }
  .pj-pile--bento .fen { width: 100%; transform: rotateX(14deg) scale(.96); transform-origin: 50% 0; }
  .pj-pile--bento .pj--1 .fen { width: 76%; }
  .pj-pile--bento .pj__tel { right: 1%; bottom: auto; top: 12%; width: 28%; transform: translateZ(60px) rotateX(14deg); }
  .pj-pile--bento .pj__flottant { right: -1%; bottom: auto; top: 44%; width: 60%; transform: translateZ(60px) rotateX(14deg); }   /* le 02 : les écrans de l'appli remplissent le bas de la carte */
  .pj-pile--bento .pj__main { top: -6px; right: 0; translate: 0 -100%; }
  .pj-pile--bento .pj__main .trait { display: none; }
  /* la lumière du bas : la carte s'éclaire là où l'écran sort */
  .pj-pile--bento .pj::before { right: auto; left: 50%; top: auto; bottom: -45%; width: 90%; translate: -50% 0; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .pj-pile--bento .pj:hover .fen { transform: rotateX(0deg) scale(1) translateY(-10px); }
  .pj-pile--bento .pj:hover :is(.pj__tel, .pj__flottant) { transform: translateZ(60px) rotateX(0deg) translateY(-18px); }
}
/* l'arrivée de la grille : les quatre cartes montent l'une après l'autre (data-reveal, js/site.js) */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html.js .pj-pile--bento .pj { transition: transform 900ms cubic-bezier(.2, .8, .2, 1), opacity 500ms linear; transition-delay: calc(var(--i) * 110ms); }
  html.js .pj-pile--bento:not(.est-vu) .pj { opacity: 0; transform: translate3d(0, 56px, 0) scale(.97); }
}
