/* ========================= */
/* HERO */
/* ========================= */

.visite-hero {

  position: relative;

  height: var(--hero-height, 100vh);
  min-height: var(--hero-min-height, 600px);

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  overflow: hidden;

  background:
    url('../img/hero/hero-visite_virtuelle.png')
    center center / cover no-repeat;

  background-color: #2b211c;
}

.visite-overlay {

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.52),
      rgba(0, 0, 0, 0.38)
    );
}

.visite-hero-content {

  position: relative;
  z-index: 2;

  color: white;

  width: min(860px, 92%);

  padding: 20px;
}

.visite-hero-content .section-tag {

  display: inline-block;

  margin-bottom: 18px;
  margin-top: 60px;
}

.visite-hero-content h1 {

  font-size: clamp(2.6rem, 6vw, 5rem);

  font-weight: 300;

  line-height: 1.08;

  margin-bottom: 22px;

  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.45);
}

.visite-hero-content p {

  color: rgba(255, 255, 255, 0.78);

  font-size: 1.1rem;

  line-height: 1.85;
}


/* ========================= */
/* MAIN */
/* ========================= */

.visite-main {

  padding-bottom: 120px;
}


/* ========================= */
/* MOBILE NOTICE */
/* ========================= */

.mobile-notice {

  display: none;

  padding: 60px 20px;
}

.mobile-notice-inner {

  width: min(700px, 92%);
  margin: auto;

  background: white;

  border-radius: 28px;

  padding: 40px;

  display: flex;
  align-items: flex-start;
  gap: 24px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.notice-icon {

  flex-shrink: 0;

  width: 56px;
  height: 56px;

  background: #f5ede3;

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #c9915a;
}

.notice-text strong {

  display: block;

  font-size: 1.1rem;

  margin-bottom: 10px;

  color: #2e2621;
}

.notice-text p {

  color: #5d5148;

  line-height: 1.8;

  font-size: 0.97rem;
}


/* ========================= */
/* VIEWER SECTION */
/* ========================= */

.viewer-section {

  padding: 80px 20px 0;
}

.viewer-container {

  width: min(1200px, 92%);

  margin: auto;
}

/* En-tête du viewer */

.viewer-header {

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;

  margin-bottom: 36px;

  flex-wrap: wrap;
}

.viewer-info {

  flex: 1;

  min-width: 260px;
}

.viewer-info .section-tag {

  display: inline-block;

  margin-bottom: 14px;
}

.viewer-info p {

  color: #5d5148;

  line-height: 1.85;

  font-size: 0.97rem;

  max-width: 680px;
}

.viewer-info strong {

  color: #2e2621;

  font-weight: 600;
}

.viewer-controls {

  flex-shrink: 0;

  display: flex;
  gap: 12px;

  align-items: center;
}

/* Boutons du viewer */

.viewer-btn {

  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 13px 22px;

  border: none;
  border-radius: 999px;

  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;

  cursor: pointer;

  transition: 0.3s ease;
}

.btn-fullscreen {

  background: #c9915a;

  color: white;
}

.btn-fullscreen:hover {

  background: #dba36a;

  transform: translateY(-2px);

  box-shadow: 0 10px 30px rgba(201, 145, 90, 0.35);
}


/* ========================= */
/* IFRAME WRAPPER */
/* ========================= */

.iframe-wrapper {

  position: relative;

  border-radius: 28px;

  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);

  background: #1e1811;

  /* Hauteur fixe confortable */
  height: 680px;
}

/* Spinner de chargement */

.iframe-loading {

  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;

  color: rgba(255, 255, 255, 0.6);

  font-size: 0.95rem;

  z-index: 5;

  transition: opacity 0.4s ease;
}

.loading-spinner {

  width: 44px;
  height: 44px;

  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #c9915a;

  border-radius: 50%;

  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* L'iframe elle-même */

#sh3dviewer {

  width: 100%;
  height: 100%;

  border: none;

  display: block;

  opacity: 0;

  transition: opacity 0.5s ease;
}


/* ========================= */
/* LIENS RAPIDES */
/* ========================= */

.visite-links {

  padding: 80px 20px 0;
}

.visite-links-container {

  width: min(1200px, 92%);
  margin: auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

.visite-link-card {

  background: white;

  border-radius: 24px;

  padding: 28px 30px;

  text-decoration: none;

  color: #2e2621;

  display: flex;
  align-items: center;
  gap: 20px;

  transition: 0.3s ease;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.visite-link-card:hover {

  transform: translateY(-5px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

.link-card-icon {

  flex-shrink: 0;

  width: 48px;
  height: 48px;

  background: #f5ede3;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #c9915a;
}

.link-card-text {

  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-card-text strong {

  font-size: 0.97rem;

  font-weight: 600;

  color: #2e2621;
}

.link-card-text span {

  font-size: 0.83rem;

  color: #9d8d80;
}

.link-arrow {

  flex-shrink: 0;

  color: #c9915a;

  opacity: 0;

  transform: translateX(-4px);

  transition: 0.3s ease;
}

.visite-link-card:hover .link-arrow {

  opacity: 1;

  transform: translateX(0);
}


/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 980px) {

  .visite-links-container {

    grid-template-columns: 1fr;
  }

  .viewer-header {

    flex-direction: column;
    gap: 24px;
  }

  .viewer-controls {

    width: 100%;
    justify-content: flex-start;
  }

}

@media (max-width: 768px) {

  .visite-hero {

    height: 360px;
    min-height: unset;
  }

  .visite-hero-content .section-tag {

    margin-top: 20px;
  }

  .viewer-section {

    padding: 60px 20px 0;
  }

  .iframe-wrapper {

    height: 440px;

    border-radius: 20px;
  }

  .mobile-notice-inner {

    flex-direction: column;
    align-items: center;
    text-align: center;

    padding: 32px 28px;
  }

  .visite-links {

    padding: 60px 20px 0;
  }

}
