/* public/v2/assets/inner.css · pages intérieures en DA « Voyage » : même nuit étoilée, même planète (statique, sans WebGL),
   mêmes tokens que l'accueil. On ne réécrit pas les composants de home-v2.css : on inverse ses tokens (papier -> encre)
   dans la portée .vy-inner, ils suivent. Chargé après voyage.css. */

.h2-page.vy-inner {
  --h2-paper: #0A0A0A;
  --h2-ink: #F7F5F2;
  --h2-card: rgb(247 245 242 / .06);
  --h2-teal-ink: #4FD8D8;
  --h2-muted: rgb(247 245 242 / .78);
  --h2-line: rgb(247 245 242 / .22);
  --h2-field: rgb(247 245 242 / .5);
  min-height: 70vh;
  color-scheme: dark;
}
.vy-inner ::selection { background: #19B4B4; color: #0A0A0A; }

/* planète décorative, fixe, en bas à droite ; assez sombre pour ne jamais gêner la lecture */
.vy-inner-planet { position: fixed; right: -12vw; bottom: -14vh; z-index: -1; width: min(60vw, 640px); height: auto; opacity: .42; pointer-events: none; }
.vy-inner-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(10 10 10 / .88) 0%, rgb(10 10 10 / .55) 55%, rgb(10 10 10 / .15) 100%); }

/* titres de page : même voix que l'accueil */
.vy-inner .h2-title, .vy-inner .h2a__title, .vy-inner .h2r__title { font-family: var(--h2-ff-display); letter-spacing: var(--vy-track, -.01em); color: #F7F5F2; }
.vy-inner .h2r__kicker { color: #4FD8D8; }

/* lignes (agenda, trimestres, profils) : filets clairs, affiches sans cadre blanc */
.vy-inner .h2-rows, .vy-inner .h2r__list { border-color: rgb(247 245 242 / .6); }
.vy-inner .h2-row, .vy-inner .h2r__row, .vy-inner .h2-term { border-color: rgb(247 245 242 / .2); }
.vy-inner .h2-row__img { border: 2px solid #19B4B4; }
.vy-inner a.h2-row__link:hover, .vy-inner .h2r__row:hover .h2r__name { text-decoration-color: #19B4B4; color: #F7F5F2; }

/* champs de formulaire (filtres de l'agenda) */
.vy-inner select, .vy-inner input, .vy-inner textarea { color: #F7F5F2; background: #121212; border-color: rgb(247 245 242 / .5); }
.vy-inner select option { color: #F7F5F2; background: #121212; }
.vy-inner label { color: rgb(247 245 242 / .86); }

/* boutons secondaires sur fond sombre */
.vy-inner .h2-btn--ghost { color: #F7F5F2; border-color: #F7F5F2; }
.vy-inner .h2-btn--ghost:hover { background: rgb(247 245 242 / .12); }
.vy-inner .h2-btn--primary { color: #0A0A0A; }
.vy-inner .h2-desc__full { color: rgb(247 245 242 / .86); }
.vy-inner .h2-flag { color: #FF8A80; }

@media (max-width: 768px) {
  .vy-inner-planet { right: -34vw; bottom: -6vh; width: 96vw; opacity: .38; }
}
@media (prefers-reduced-motion: reduce) { .vy-inner-planet { opacity: .4; } }

/* rangées sans date (à propos) : pas de colonne vide à gauche */
.vy-inner .h2-row--plain { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "main img"; }
.vy-inner .h2-row--plain.no-img { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
@media (max-width: 768px) {
  .vy-inner .h2-row--plain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "img"; }
}

/* quand la vraie planète 3D tourne (voyage.js), le décor fixe de repli s'efface */
.vy-inner.is-gl .vy-inner-planet, .vy-inner.is-gl .vy-inner-scrim { display: none; }

/* ---------- listes en cartes (plus de rangées filetées) : affiche en haut, relief et lueur teal au survol, comme l'orbite de l'accueil ---------- */
.vy-inner a { text-decoration: none; }
.vy-inner .h2-rows, .vy-inner .h2-terms, .vy-inner .h2r__list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; border: 0;
}
.vy-inner .h2-row, .vy-inner .h2-term, .vy-inner .h2r__row {
  position: relative; display: flex; flex-direction: column; gap: 0; height: 100%; padding: 0; overflow: hidden;
  background: #0A0A0A; border: 2px solid #19B4B4; border-radius: 6px; box-shadow: 0 10px 30px rgb(0 0 0 / .45);
  transition: transform .28s var(--h2-ease-out, ease), box-shadow .28s ease;
}
@media (hover: hover) and (pointer: fine) {
  .vy-inner .h2-row:hover, .vy-inner .h2-term:hover, .vy-inner .h2r__row:hover { transform: translateY(-8px) rotate(-.7deg); box-shadow: 0 0 0 5px rgb(25 180 180 / .3), 0 26px 60px rgb(0 0 0 / .6); }
  .vy-inner .h2-row:nth-child(even):hover, .vy-inner .h2-term:nth-child(even):hover { transform: translateY(-8px) rotate(.7deg); }
}
.vy-inner .h2-row__img, .vy-inner .h2-term__poster { order: -1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 0; border-radius: 0; }
.vy-inner .h2-row__date { position: absolute; top: 10px; left: 10px; z-index: 2; align-items: center; padding: 6px 10px; background: #0A0A0A; border-radius: 4px; }
.vy-inner .h2-row.no-img .h2-row__date { position: static; align-items: flex-start; padding: 18px 20px 0; background: none; }
.vy-inner .h2-row__main, .vy-inner .h2-term__main { flex: 1; padding: 16px 20px 6px; }
.vy-inner .h2-row__cta { padding: 4px 20px 20px; }
.vy-inner .h2-term > .h2-btn { margin: 4px 20px 20px; align-self: flex-start; }
.vy-inner .h2-row--plain { padding-bottom: 14px; }
.vy-inner .h2-row__title, .vy-inner .h2-term__name { font-size: 1.35rem; text-decoration: none; }
.vy-inner a.h2-row__link:hover { text-decoration: none; color: #4FD8D8; }

/* « Join us » : une grande carte profil avec un numéro-étoile */
.vy-inner .h2r__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 520px)); }
.vy-inner .h2r__row { display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 26px; color: #F7F5F2; }
.vy-inner .h2r__row * { text-decoration: none; }
.vy-inner .h2r__num { display: grid; place-items: center; width: 56px; height: 56px; font-size: 1.9rem; color: #0A0A0A; background: #19B4B4; border-radius: 6px; transform: rotate(-6deg); }
.vy-inner .h2r__name { font: 700 1.9rem/1.1 var(--h2-ff-display); }
.vy-inner .h2r__facts { color: #4FD8D8; font-weight: 700; }
.vy-inner .h2r__row .h2-pro__action { align-self: flex-start; margin-top: 6px; padding: 12px 20px; color: #0A0A0A; background: #19B4B4; border-radius: 6px; font-weight: 700; }
.vy-inner .h2r__row:hover .h2-pro__action { background: #61E6FF; }
.vy-inner .h2r__hero, .vy-inner .h2-section, .vy-inner .h2-page > section { background: transparent; }
.vy-inner .h2r__num { align-self: flex-start; }
.vy-inner .h2r__body { display: flex; flex-direction: column; gap: 10px; }
.vy-inner .h2-row__cta .h2-btn, .vy-inner .h2-row__cta a { width: 100%; justify-content: center; text-align: center; }

/* Grilles des pages intérieures : une colonne ne s'élargit jamais pour un mot long (le titre s'ajuste, voir _inner.php) */
.vy-inner .h2s__grid > * { min-width: 0; }
