/* Un portrait lisible jusqu'au short, avec de l'espace pour les gants levés. */
body.oaa-geode { --oaa-nav: 152px; }
.nav-app { padding-top: 8px; }
.nav-app .onglets { flex: none; width: calc(100% - 20px); }
.nav-app .onglets [role="tab"] {
  width: 100%; min-height: 46px; flex-direction: row;
  justify-content: flex-start; gap: 10px; padding: 10px 14px;
  font-size: 12px; border-radius: 14px;
}
.rocky-logo {
  --rocky-largeur: 144px;
  --rocky-hauteur: 184px;
  position: relative;
  display: block;
  flex: 0 0 var(--rocky-hauteur);
  width: var(--rocky-largeur);
  height: var(--rocky-hauteur);
  margin: 0 0 12px;
  isolation: isolate;
}
.rocky-logo::before {
  content: ""; position: absolute; inset: 16% 0 0;
  background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--oaa-accent, #a58ee6) 12%, transparent), transparent 72%);
  pointer-events: none;
}
.rocky-logo canvas,
.rocky-repos {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: var(--rocky-hauteur);
  object-fit: contain;
  pointer-events: none;
  /* Le bas devient transparent pour épouser le fond réel des deux thèmes. */
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, rgba(0, 0, 0, .8) 84%, rgba(0, 0, 0, .35) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 76%, rgba(0, 0, 0, .8) 84%, rgba(0, 0, 0, .35) 92%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.rocky-logo canvas { visibility: hidden; }
.rocky-logo[data-rendu="3d"] canvas { visibility: visible; }
.rocky-logo[data-rendu="3d"] .rocky-repos { visibility: hidden; }
/* Le portrait élargit le rail : les services passent en icônes avant de déborder. */
@container barre (max-width: 1240px) {
  .panel-support, .panel-groupe { width: 40px; padding: 0; }
  .panel-support > span, .panel-groupe > span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-height: 560px) {
  body.oaa-geode { --oaa-nav: 128px; }
  .rocky-logo { --rocky-largeur: 116px; --rocky-hauteur: 148px; margin-bottom: 5px; }
  .nav-app .onglets [role="tab"] { gap: 7px; padding: 9px; }
}
@media (max-width: 620px) {
  /* Les vues intégrées ont besoin de toute la largeur d'un téléphone. */
  body.oaa-geode { --oaa-nav: 0px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .nav-app { grid-column: 1; grid-row: 1; height: auto; min-width: 0; flex-direction: row; gap: 4px; padding: 4px 6px; background: var(--oaa-fond); z-index: 3; overflow: visible; }
  .rocky-logo { --rocky-largeur: 44px; --rocky-hauteur: 56px; flex: 0 0 44px; margin: 0; }
  .nav-app .onglets { flex: 1; flex-direction: row; width: auto; min-width: 0; gap: 4px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
  .nav-app .onglets [role="tab"] { flex: 1 0 58px; width: auto; min-height: 54px; flex-direction: column; justify-content: center; gap: 3px; padding: 6px; font-size: 11px; }
  body.oaa-geode > .page { grid-column: 1; grid-row: 2; min-height: calc(100vh - 66px); min-height: calc(100dvh - 66px); }
  .vue-integree { height: calc(100vh - var(--oaa-barre) - 66px); height: calc(100dvh - var(--oaa-barre) - 66px); min-height: 240px; }
  .conv-vide { min-width: 0; padding: 24px 12px; }
  .conv-vide-icone { --oaa-taille-symbole: min(160px, 34vh); }
}

/* Téléphone : adaptation ciblée, sans changement du poste ordinateur. */
@media (max-width: 620px) {
  .nav-app .rocky-logo { display: none; }
  body.oaa-geode { min-height: 100svh; min-height: 100dvh; grid-template-rows: auto minmax(0, 1fr); }
  body.oaa-geode > .page { height: auto; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom); }
  body.oaa-geode .nav-app { height: auto; padding: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left)); }
  .nav-app .onglets { overscroll-behavior-inline: contain; scroll-padding-inline: 8px; }
  .nav-app .onglets [role="tab"] { scroll-margin-inline: 8px; }
  body.oaa-geode .barre-etat { height: auto; min-height: 0; grid-template-rows: auto 44px; align-content: start; }
  .barre-etat .panel-actions { justify-self: stretch; justify-content: flex-start; }
  .barre-etat .barre-liste, .barre-etat.serree-2 .barre-liste { min-width: 0; height: 44px; }
  .barre-etat .barre-liste select { height: 44px; font-size: 16px; }
  .barre-etat .transport .segment { min-height: 44px; }
  .vue-integree { height: auto; min-height: 0; }
  body.oaa-geode.vue-large { height: 100svh; height: 100dvh; overflow: hidden; }
  body.oaa-geode.vue-large > .page { height: 100%; min-height: 0; overflow: hidden; }
  body.vue-large .vue-integree { align-self: stretch; min-height: 0; overflow: hidden; }
  body.vue-large .vue-integree iframe { height: 100%; min-height: 0; }
}
@media (max-width: 960px) and (max-height: 500px) and (pointer: coarse) {
  .nav-app .rocky-logo { display: none; }
}
