/* PORTFOLIO CNED — HERO CARD 3D */

/* Section Hero - Hauteur fixe 100vh */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Container principal */
.hero-card-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  position: relative;
}

/* Container Three.js */
.hero-card-container {
  width: 1200px;
  height: 698px;
  cursor: pointer;
  position: relative;
  background: transparent;
  box-shadow: none;
}

/* Canvas centré */
.hero-card-container > canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

/* Indicateur de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.scroll-indicator:hover {
  opacity: 0.7;
}

.scroll-indicator svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-text-sombre);
  stroke-width: 2;
  fill: none;
}

/* Responsive Design */

/* Mobile */
@media (max-width: 700px) {
  .hero-card-container {
    width: calc(100vw - 40px);
    max-width: 320px;
    height: clamp(140px, 26vh, 180px);
  }
  
  .scroll-indicator {
    bottom: 1.5rem;
  }
  
  .scroll-indicator svg {
    width: 28px;
    height: 28px;
  }
}

/* Tablette */
@media (min-width: 701px) and (max-width: 1024px) {
  .hero-card-container {
    width: 90vw;
    max-width: 800px;
    height: auto;
    aspect-ratio: 1200 / 698;
  }
}
