/* =========================================================
   DIGITAL GIRI — Page Applications (complément à realisations.css)
   ========================================================= */
.hero--apps { padding-bottom: 30px; }

/* ── Le dock : toutes les icônes, qui grossissent au survol ── */
.dock {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: 14px; max-width: 1060px; margin: 54px auto 0; padding: 18px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border-hi); border-radius: 28px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.08) inset;
  backdrop-filter: blur(14px);
}
.dock__it {
  position: relative; display: block; width: 64px; height: 64px;
  transition: transform .35s var(--ease-spring);
  transform-origin: 50% 100%;
  animation: dockIn .9s var(--ease-spring) backwards;
  animation-delay: calc(var(--i) * 45ms + 300ms);
}
.dock__it .aico { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); }
.dock__nm {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px);
  white-space: nowrap; font-size: 12px; font-weight: 600; color: #1a1200;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2)); padding: 5px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
@media (hover: hover) {
  .dock__it:hover { transform: translateY(-10px) scale(1.32); z-index: 2; }
  .dock__it:hover + .dock__it, .dock__it:has(+ .dock__it:hover) { transform: translateY(-4px) scale(1.12); }
  .dock__it:hover .dock__nm, .dock__it:focus-visible .dock__nm { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes dockIn { from { opacity: 0; transform: translateY(18px) scale(.7); } }

/* icônes */
.aico { display: block; object-fit: cover; border-radius: 22%; }
.aico--txt {
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  background: radial-gradient(circle at 35% 30%, #2a5a95, #0b2547); border: 1px solid rgba(212,175,55,.35);
}
.dock__it .aico--txt { width: 64px; height: 64px; border-radius: 15px; }

/* ── Vedettes ── */
.veds { padding: 70px 0 30px; }
.veds__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.veds__head .eyebrow { justify-content: center; }
.ved {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--border-soft);
}
.ved--inv .ved__txt { order: 2; }
.ved__orbe { width: 116px; height: 116px; margin-bottom: 18px; position: relative; }
.ved__orbe img { width: 100%; height: 100%; object-fit: contain; animation: orbe 6s ease-in-out infinite; filter: drop-shadow(0 18px 26px rgba(0,0,0,.55)); }
.ved__orbe::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -14px; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); animation: ombre 6s ease-in-out infinite;
}
@keyframes orbe { 50% { transform: translateY(-8px); } }
@keyframes ombre { 50% { transform: scaleX(.8); opacity: .6; } }
.ved__fam { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200); margin: 0 0 10px; }
.ved__nom { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; color: var(--text); }
.ved__ph { font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1.35; color: var(--gold-100); margin: 0 0 14px; }
.ved__de { color: var(--text-2); font-size: 15.5px; line-height: 1.65; margin: 0 0 26px; max-width: 46ch; }

/* éventail de trois écrans dans un cadre de navigateur */
.vfan { position: relative; display: block; aspect-ratio: 16 / 11; perspective: 1400px; }
.vfan__c {
  position: absolute; width: 74%; margin: 0; top: 12%; left: 13%;
  border-radius: 12px; overflow: hidden; background: #0b2547;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(212,175,55,.08);
  transition: transform .8s var(--ease-spring), box-shadow .5s var(--ease-out);
}
.vfan__bar { display: flex; gap: 5px; padding: 7px 10px; background: rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.08); }
.vfan__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.vfan__c img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.vfan__c--0 { transform: translate(-16%, 4%) rotate(-6deg) scale(.86); z-index: 1; filter: brightness(.82); }
.vfan__c--2 { transform: translate(16%, 4%) rotate(6deg) scale(.86); z-index: 1; filter: brightness(.82); }
.vfan__c--1 { z-index: 2; transform: translateY(-4%); }
@media (hover: hover) {
  .vfan:hover .vfan__c--0 { transform: translate(-24%, 2%) rotate(-9deg) scale(.88); filter: none; }
  .vfan:hover .vfan__c--2 { transform: translate(24%, 2%) rotate(9deg) scale(.88); filter: none; }
  .vfan:hover .vfan__c--1 { transform: translateY(-8%) scale(1.03); box-shadow: 0 50px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(212,175,55,.45); }
}

/* ── Collection ── */
.apps-page { padding-top: 70px; }
.apps-filters { text-align: center; margin: -18px 0 36px; }
.apps-filters .filters { margin-top: 0; }
.acard__id { display: flex; align-items: center; gap: 14px; margin: -48px 0 14px; position: relative; z-index: 3; }
.acard__ico { width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 12px 26px -10px rgba(0,0,0,.9), 0 0 0 3px var(--surface); flex-shrink: 0; }
.acard .aico--txt.acard__ico { font-size: 28px; }
.acard__id > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 40px; }
.acard__id strong { font-family: var(--font-serif); font-weight: 500; font-size: 21px; line-height: 1.15; letter-spacing: -.018em; color: var(--text); }
.acard__ph { font-family: var(--font-serif); font-style: italic; color: var(--gold-100); font-size: 15.5px; line-height: 1.4; margin: 0 0 10px; }
.acard:hover .acard__ico { transform: translateY(-3px) rotate(-3deg); }
.acard__ico { transition: transform .4s var(--ease-spring); }

@media (max-width: 920px) {
  .dock { gap: 10px; margin-top: 36px; padding: 14px; border-radius: 22px; }
  .dock__it, .dock__it .aico, .dock__it .aico--txt { width: 48px; height: 48px; border-radius: 12px; }
  .dock__it .aico--txt { font-size: 22px; }
  .ved, .ved--inv { grid-template-columns: 1fr; gap: 34px; padding: 44px 0; }
  .ved--inv .ved__txt { order: 0; }
  .ved__orbe { width: 92px; height: 92px; }
  .veds__head { margin-bottom: 30px; }
  .real-page__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dock { gap: 8px; padding: 12px 10px; }
  .dock__it, .dock__it .aico, .dock__it .aico--txt { width: 40px; height: 40px; border-radius: 10px; }
  .vfan__c { width: 80%; left: 10%; }
}
@media (prefers-reduced-motion: reduce) {
  .dock__it, .ved__orbe img, .ved__orbe::after { animation: none; }
}

/* Finitions : dock équilibré (10 + 9) et carte d’entrée en double largeur (19 cartes = grille pleine) */
@media (min-width: 921px) {
  .dock { max-width: 830px; }
  .apps-page .acard[href$="/univers-maha"] { grid-column: span 2; }
  .apps-page .acard[href$="/univers-maha"] .rcard__shot { aspect-ratio: auto; flex: 1; min-height: 240px; }
}
@media (min-width: 921px) {
  .apps-page .acard[href$="/themis"] { grid-column: span 2; }
  .apps-page .acard[href$="/themis"] .rcard__shot { aspect-ratio: auto; flex: 1; min-height: 240px; }
}
@media (max-width: 920px) { .dock { margin-left: 16px; margin-right: 16px; } }
