/* ==========================================================================
   MOSS — styles propres à la page d'accueil et à la page À propos (v2)
   ========================================================================== */

/* --- À propos -------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-panel {
  background: linear-gradient(160deg, var(--bg-raised), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: 42px 34px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-panel::after {
  /* anneau blueprint tournant */
  content: "";
  position: absolute;
  top: -90px; left: 50%;
  width: 320px; height: 320px;
  translate: -50% 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(244, 80, 56, 0.28);
  animation: ring-spin 30s linear infinite;
  pointer-events: none;
}
.about-panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.about-panel .logo-mark { color: var(--accent); width: min(240px, 80%); height: auto; }

/* --- Logo MOSS 3D dynamique -------------------------------------------------- */
.logo3d-scene {
  perspective: 900px;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
}
.logo3d {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.12s linear;
  animation: logo3d-float 7s ease-in-out infinite;
  will-change: transform;
  width: min(260px, 85%);
}
.logo3d img {
  width: 100%; height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.5));
}
/* profondeur : copies empilées en translateZ (effet d'extrusion) */
.logo3d::before,
.logo3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0b1a24;
  transform: translateZ(-14px);
  opacity: 0.85;
}
.logo3d::after { transform: translateZ(-28px); opacity: 0.5; }
/* halo rouge derrière le logo au survol */
.logo3d-scene::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(244, 80, 56, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.logo3d-scene:hover::before { opacity: 1; }
/* lueur au sol qui respire avec la flottaison */
.logo3d-glow {
  position: relative;
  width: min(220px, 70%);
  height: 22px;
  margin-top: -6px;
  background: radial-gradient(ellipse at center, var(--red-soft), transparent 70%);
  filter: blur(6px);
  animation: logo3d-glow 7s ease-in-out infinite;
}
@keyframes logo3d-float {
  0%, 100% { transform: rotateX(4deg) rotateY(-7deg) translateY(0); }
  50%      { transform: rotateX(-3deg) rotateY(7deg) translateY(-12px); }
}
@keyframes logo3d-glow {
  0%, 100% { opacity: 0.9; transform: scaleX(1); }
  50%      { opacity: 0.45; transform: scaleX(0.72); }
}
/* au survol : la flottaison cède la place au suivi de la souris */
.logo3d-scene:hover .logo3d { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .logo3d { animation: none; transition: none; }
  .logo3d-glow { animation: none; }
}

.about-facts { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.about-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.about-facts div:last-child { border-bottom: none; padding-bottom: 0; }
.about-facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding-top: 3px;
}
.about-facts dd { font-size: 0.92rem; text-align: right; }
.about-facts a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s ease; }
.about-facts a:hover { color: var(--red); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
