/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: disc;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== COLOR UTILITIES ===== */
.c3 { color: #f83f42; }
.cD { color: #40b0e5; }

/* ===== LINEART DECORATIONS ===== */
.lineart {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.lineart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================ */
/* SECTION 1 - HERO                                             */
/* ============================================================ */
.section-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background: #070707;
  overflow: hidden;
}

/* Header */
header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header-pill {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 8px 40px;
  background: #1E1E1E;
  border-radius: 38px;
}

.logo-text {
  font-family: 'Azeret Mono', monospace;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

.logo-icon {
  width: 58px;
  height: 58px;
  border-radius: 35px;
  border: 1px solid #33496f;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

nav a {
  font-family: 'Azeret Mono', monospace;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

nav a:hover { opacity: 0.8; }

/* Hero Content — aplati pour que pill, triptyque et bouton se répartissent
   à parts égales dans .section-hero (justify-content: space-evenly) */
.hero-content {
  display: contents;
}

.hero-title {
  font-family: 'Geist Mono', monospace;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 4.2px;
  max-width: 788px;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}

/* ============================================================ */
/* SECTION 2 - FONCTIONNALITES                                  */
/* ============================================================ */
.section-features {
  position: relative;
  width: 100%;
  min-height: 1100px;
  background: #1E1E1E;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 80px; /* pas de marge haute : la bande vidéo est collée au hero noir */
  overflow: hidden;
}

.section-features .lineart-profile04 {
  right: 0;
  bottom: 0;
  width: 291px;
  height: 358px;
  opacity: 0.4;
}

.section-features .lineart-profile01 {
  left: 0;
  bottom: 0; /* ex-`top: 383px` = 1100 (min-height) − 717 (height) : ancrage bas déguisé,
                qui décrochait dès que la section grandit (bande vidéo plus haute que les têtes) */
  width: 397px;
  height: 717px;
  opacity: 0.2;
}

/* Triptyque des 3 têtes 3D — dans le hero (600px de haut) : doit toujours
   tenir sur une seule ligne, d'où une taille fluide bornée plutôt que des paliers. */
.models-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 10;
}

.model-img {
  width: clamp(96px, 28vw, 320px);
  aspect-ratio: 1;
  height: auto;
}

.model-img.flipped {
  transform: scaleX(-1);
}

.model-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bande vidéo pleine largeur (ex-fond du hero) */
.features-video {
  width: 100%;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* La vidéo garde ses proportions natives (16/9) : jamais de recadrage.
   Sa largeur est bornée pour que sa hauteur ne dépasse pas 80 % de la
   fenêtre — sinon en plein écran sur un 16/9 elle occuperait tout l'écran.
   L'aspect-ratio évite le saut de mise en page avant chargement. */
.features-video video {
  display: block;
  width: 100%;
  max-width: calc(80vh * 16 / 9);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.features-list {
  position: relative;
  z-index: 1;
  max-width: 770px;
  padding: 0 40px;
}

.features-list h3 {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 16px;
}

.features-list ul {
  padding-left: 24px;
}

.features-list li {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.8;
}

/* ============================================================ */
/* SECTION 3 - EXPLOREZ LA 3D                                   */
/* ============================================================ */
.section-explore {
  position: relative;
  width: 100%;
  min-height: min(1026px, 71.25vw); /* 1026px à 1440 de large, proportionnel en dessous */
  display: flex;
  overflow: hidden;
}

.explore-left {
  position: relative;
  width: 51.7%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: clamp(50px, 8vw, 115px) clamp(30px, 4.2vw, 60px) clamp(30px, 4.2vw, 60px) clamp(60px, 11.3vw, 163px);
  overflow: hidden;
}

.explore-text-top {
  max-width: 80%;
  margin-bottom: auto;
}

.explore-text-top p {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #131415;
  text-align: center;
  line-height: normal;
}

.explore-branding {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.explore-label {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(32px, 3.35vw, 56px);
  color: #131415;
}

.explore-logo {
  font-family: 'Azeret Mono', monospace;
  font-size: clamp(80px, 8.9vw, 144px);
  font-weight: 800;
  font-style: italic;
  color: #131415;
  line-height: 1;
}

.section-explore .lineart-profile02 {
  left: 0;
  bottom: 0;
  width: 224px;
  height: 434px;
  opacity: 0.2;
}

.explore-right {
  width: 48.3%;
  background: #1E1E1E;
  display: flex;
  flex-direction: column;
}

.explore-faces {
  display: flex;
}

.explore-banner {
  /* ratio intrinsèque conservé : les 3 visages restent visibles à toute largeur */
  width: 100%;
  height: auto;
  display: block;
}

.explore-right-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
}

.explore-right-text p {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  line-height: normal;
}

/* ============================================================ */
/* SECTION 4 - IMAGERIE                                         */
/* ============================================================ */
.section-imaging {
  position: relative;
  width: 100%;
  min-height: min(964px, 66.9vw); /* 964px à 1440 de large, proportionnel en dessous */
  display: flex;
  overflow: hidden;
}

.imaging-left {
  width: 51.7%;
  background: #1E1E1E;
  padding: clamp(50px, 6.6vw, 95px) clamp(30px, 4.2vw, 60px) clamp(30px, 4.2vw, 60px) clamp(60px, 7.85vw, 113px);
  display: flex;
  flex-direction: column;
}

.imaging-subtitle {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(18px, 1.67vw, 28px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
}

.imaging-description {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 1.67vw, 28px);
  font-weight: 400;
  color: #ffffff;
  text-align: justify;
  max-width: 90%;
  line-height: normal;
  margin-bottom: clamp(36px, 4.2vw, 60px);
}

.imaging-title {
  font-family: 'Azeret Mono', monospace;
  font-size: clamp(24px, 2.22vw, 38px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 30px;
}

.imaging-list {
  padding-left: 36px;
}

.imaging-list li {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(18px, 1.67vw, 28px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -1.2px;
  line-height: 2.4;
}

.imaging-right {
  width: 48.3%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.imaging-photo {
  height: 56%;
  overflow: hidden;
}

.imaging-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* garde les visages et le scanner dans le cadre */
}

.imaging-3d-models {
  flex: 1;
  display: flex;
}

.imaging-3d-models img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================ */
/* SECTION 5 - AVANTAGES                                        */
/* ============================================================ */
.section-advantages {
  position: relative;
  width: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.advantages-title {
  font-family: 'Azeret Mono', monospace;
  font-size: 32px;
  font-weight: 400;
  color: #131415;
  text-align: center;
  letter-spacing: -1.6px;
  padding: 40px 40px 30px;
}

.advantages-title .logo-inline {
  font-weight: 800;
  font-style: italic;
}

.advantages-cards {
  display: flex;
  width: 100%;
  max-width: 1200px;
  padding: 20px 40px 60px;
  gap: 0;
  align-items: stretch;
}

.adv-card {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.adv-card h4 {
  font-family: 'Azeret Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 16px;
  letter-spacing: -0.9px;
}

.adv-card p {
  font-family: 'Azeret Mono', monospace;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  line-height: normal;
}

.adv-divider {
  width: 1px;
  background: #cccccc;
  flex-shrink: 0;
}

/* ============================================================ */
/* SECTION 6 - SIMULATION                                       */
/* ============================================================ */
.section-simulation {
  position: relative;
  width: 100%;
  min-height: 900px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 40px 0;
  overflow: hidden;
}

.section-simulation .lineart-profile05 {
  right: 0;
  top: 275px;
  width: 366px;
  height: 587px;
  opacity: 0.21;
}

.simulation-heading {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.simulation-quote {
  font-family: 'Azeret Mono', monospace;
  font-size: 35px;
  font-weight: 400;
  color: #000000;
  line-height: normal;
}

.simulation-subtitle {
  font-family: 'Azeret Mono', monospace;
  font-size: 35px;
  font-weight: 700;
  color: #000000;
  line-height: normal;
}

.simulation-image {
  width: 55.84%;
  max-width: 805px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.simulation-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.simulation-tagline {
  font-family: 'Azeret Mono', monospace;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  text-align: center;
  letter-spacing: -0.18px;
  max-width: 1363px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */
footer {
  width: 100%;
  background: #d9d9d9;
  display: flex;
  flex-direction: column;
}

.footer-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  height: 124px;
  padding: 0 24px;
}

.back-to-top {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.back-to-top:hover {
  background: #333333;
  transform: translateY(-2px);
}

.footer-logo-text {
  font-family: 'Azeret Mono', monospace;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  white-space: nowrap;
}

.footer-logo-icon {
  width: 124px;
  height: 124px;
  flex-shrink: 0;
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.footer-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  text-align: center;
  white-space: nowrap;
}

.footer-nav a:hover { opacity: 0.7; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 16px 33px;
  border-top: 1px solid #c0c0c0;
}

.footer-infodev-logo {
  height: 29px;
  width: 25px;
  flex-shrink: 0;
}

.footer-infodev-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-bottom span {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
}

.footer-bottom a {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #000000;
  text-decoration: underline;
  white-space: nowrap;
}

.footer-bottom a:hover { opacity: 0.7; }

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */
@media (max-width: 900px) {
  /* Header */
  .header-pill {
    gap: 20px;
    padding: 8px 24px;
  }
  .logo-text { font-size: 22px; }
  .logo-icon { width: 42px; height: 42px; }
  nav a { font-size: 14px; }
  nav { gap: 24px; }

  /* Hero */
  .hero-title { font-size: 24px; letter-spacing: 2px; }

  /* Features */
  .features-list h3 { font-size: 24px; }
  .features-list li { font-size: 18px; }

  /* Explore */
  .section-explore { flex-direction: column; }
  .explore-left {
    width: 100%;
    padding: 60px 40px;
  }
  .explore-right { width: 100%; }
  .explore-logo { font-size: 64px; }
  .explore-label { font-size: 32px; }

  /* Imaging */
  .section-imaging { flex-direction: column; }
  .imaging-left {
    width: 100%;
    padding: 60px 40px;
  }
  .imaging-right { width: 100%; }

  /* Advantages */
  .advantages-cards { flex-wrap: wrap; gap: 20px; }
  .adv-card { flex: 1 1 45%; min-width: 250px; }
  .adv-divider { display: none; }

  /* Simulation */
  .simulation-quote,
  .simulation-subtitle { font-size: 24px; }
  .simulation-image { width: 80%; }

  /* Footer */
  .footer-top {
    flex-wrap: wrap;
    height: auto;
    padding: 20px 24px;
    gap: 20px;
  }
  .footer-logo-icon { width: 80px; height: 80px; }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
  }
}

/* ============================================================ */
/* SECTION VR - 3D IMMERSIF (partagée accueil + démo)           */
/* ============================================================ */
.section-vr {
  position: relative;
  width: 100%;
  background: #070707;
  padding: 90px 40px;
  overflow: hidden;
}

.vr-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.vr-header {
  text-align: center;
  margin-bottom: 60px;
}

.vr-eyebrow {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #40b0e5;
  margin-bottom: 18px;
}

.vr-title {
  font-family: 'Azeret Mono', monospace;
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 18px;
}

.vr-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #c9c9c9;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

.vr-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.vr-viewer-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vr-viewer {
  width: 100%;
  height: clamp(300px, 48vh, 500px);
  background: radial-gradient(circle at 50% 40%, #1b2330 0%, #0b0f16 70%);
  border: 1px solid #33496f;
  border-radius: 20px;
  --poster-color: transparent;
  --min-hotspot-opacity: 0; /* masque les points situés derrière le modèle */
}

/* Hotspots anatomiques */
.vr-hotspot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #f83f42;
  box-shadow: 0 0 0 4px rgba(248, 63, 66, 0.3);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.vr-hotspot:hover,
.vr-hotspot:focus {
  transform: scale(1.25);
  background: #40b0e5;
  box-shadow: 0 0 0 5px rgba(64, 176, 229, 0.35);
  outline: none;
}

.vr-hotspot-label {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 22, 0.95);
  border: 1px solid #40b0e5;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.vr-hotspot-label span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #c9c9c9;
  margin-top: 2px;
}

.vr-hotspot:hover .vr-hotspot-label,
.vr-hotspot:focus .vr-hotspot-label {
  opacity: 1;
}

.vr-ar-btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #f83f42;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-family: 'Azeret Mono', monospace;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.vr-hint {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  color: #8a8a8a;
  text-align: center;
}

.vr-info-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 18px;
}

.vr-info-title strong { color: #40b0e5; }

.vr-info-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #c9c9c9;
  line-height: 1.6;
  margin-bottom: 24px;
}

.vr-headset {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.vr-benefits {
  list-style: none;
  padding: 0;
}

.vr-benefits li {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: #ffffff;
  line-height: 1.5;
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}

.vr-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #40b0e5;
}

.vr-video {
  margin: 56px 0 0;
  text-align: center;
}

.vr-video video {
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  border: 1px solid #33496f;
  background: #0b0f16;
  display: block;
  margin: 0 auto;
}

.vr-video-caption {
  margin-top: 16px;
  font-family: 'Geist Mono', monospace;
  font-size: 15px;
  color: #8a8a8a;
}

/* Palier tablette : resserre la grille avant l'empilement */
@media (max-width: 1024px) {
  .vr-grid { gap: 32px; }
  .vr-title { font-size: 34px; }
  .section-vr { padding: 80px 32px; }
}

@media (max-width: 900px) {
  .vr-grid { grid-template-columns: 1fr; gap: 36px; }
  .vr-title { font-size: 30px; }
  .vr-header { margin-bottom: 40px; }
  /* Centrage des éléments une fois la grille empilée */
  .vr-info { text-align: center; }
  .vr-headset { margin-left: auto; margin-right: auto; }
  .vr-benefits { display: inline-block; text-align: left; }
}

@media (max-width: 600px) {
  .section-vr { padding: 60px 20px; }
  .vr-title { font-size: 24px; }
  .vr-subtitle { font-size: 16px; }
  .vr-eyebrow { font-size: 13px; }
  .vr-info-title { font-size: 22px; }
  .vr-info-text { font-size: 16px; }
  .vr-benefits li { font-size: 15px; }
  .vr-video-caption { font-size: 13px; }
}

/* Accessibilité : respecte la préférence "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  .vr-viewer { --auto-rotate: none; }
}

@media (max-width: 600px) {
  header { padding-top: 20px; }
  .header-pill {
    gap: 12px;
    padding: 6px 16px;
  }
  .logo-text { font-size: 18px; }
  .logo-icon { width: 34px; height: 34px; }
  nav a { font-size: 11px; }
  nav { gap: 16px; }

  .hero-title { font-size: 18px; }
  .features-list li { font-size: 16px; }

  .explore-text-top p { font-size: 18px; }
  .explore-label { font-size: 24px; }
  .explore-logo { font-size: 48px; }
  .explore-right-text p { font-size: 18px; }

  .imaging-description { font-size: 18px; }
  .imaging-title { font-size: 24px; }
  .imaging-list li { font-size: 18px; }

  .advantages-title { font-size: 22px; }
  .adv-card { flex: 1 1 100%; }

  .simulation-quote,
  .simulation-subtitle { font-size: 18px; }
  .simulation-image { width: 95%; }
  .simulation-tagline { font-size: 14px; }

  .footer-logo-text { font-size: 22px; }
  .footer-nav { flex-direction: column; gap: 12px; }
  .footer-bottom span { font-size: 14px; }
  .footer-bottom a { font-size: 12px; }
}
