/* =========================
   EC@RT — ZONE CORE.CSS
   Fullscreen immersif / effet app
   ========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000;
  --fg: #fff;

  --fg-soft: rgba(255,255,255,0.42);
  --fg-mid: rgba(255,255,255,0.72);

  --line: rgba(255,255,255,0.10);
  --panel: rgba(255,255,255,0.025);
  --panel-border: rgba(255,255,255,0.08);
  --panel-glow: rgba(255,255,255,0.035);
}

/* =========================
   BASE FULLSCREEN
   ========================= */

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;

  margin: 0 !important;
  padding: 0 !important;

  background: #000;
  color: var(--fg);

  font-family: Arial, Helvetica, sans-serif;

  overflow: hidden !important;
  overscroll-behavior: none;
}

html {
  scroll-behavior: auto;
}

body {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100dvh;

  background:
    radial-gradient(
      circle at center,
      rgba(255,255,255,0.018),
      rgba(255,255,255,0.004) 42%,
      transparent 72%
    ),
    #000;

  -webkit-text-size-adjust: 100%;
}

/* =========================
   PAGE
   ========================= */

.page {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;

  margin: 0 !important;
  padding: 0 !important;

  display: block;
  overflow: hidden;

  background: #000;
}

/* =========================
   FULLSCREEN ZONES
   ========================= */

.zone-main,
.zone-content-unity,
.zone-content-image,
.zone-glb-content,
.bad-zone,
.viewer,
.image-viewer,
.unity-container,
#unity-container {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden;
  background: #000;
}

#unity-canvas,
.unity-canvas,
canvas {
  display: block;

  width: 100vw !important;
  height: 100dvh !important;

  margin: 0 !important;
  padding: 0 !important;

  background: #000;
  border: none;
  outline: none;
}

/* =========================
   CONTENUS ÉDITORIAUX
   ========================= */

.zone-content {
  position: relative;
  z-index: 1;

  width: min(1180px, calc(100vw - 40px));
  max-height: 100dvh;

  margin: 0 auto;
  padding: 24px;

  overflow-y: auto;
  overscroll-behavior: contain;
}

.zone-frame {
  position: relative;

  width: 100%;
  min-height: 72dvh;

  padding: 32px;

  border: 1px solid var(--panel-border);
  background: var(--panel);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 0 34px var(--panel-glow);
}

/* =========================
   TYPOGRAPHIE
   ========================= */

.zone-heading {
  margin-bottom: 18px;

  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zone-text {
  max-width: 760px;

  color: var(--fg-mid);
  line-height: 1.62;
  font-size: 1rem;
}

.zone-text p + p {
  margin-top: 1em;
}

/* =========================
   MÉDIAS
   ========================= */

img {
  max-width: 100%;
}

.zoom-image,
.fullscreen-image {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* =========================
   INTERACTIONS GLOBALES
   ========================= */

a {
  color: inherit;
}

button {
  font-family: inherit;
}

button,
a,
.sidebar,
.sidebar *,
.zones-nav,
.zones-nav *,
.sections,
.sections * {
  -webkit-tap-highlight-color: transparent;
}

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

@media (max-width: 980px) {
  .zone-content {
    width: min(100%, calc(100vw - 28px));
    padding: 18px;
  }

  .zone-frame {
    padding: 20px;
    min-height: auto;
  }
}

/* =========================
   PETITS ÉCRANS
   ========================= */

@media (max-width: 540px) {
  .zone-heading {
    font-size: 1.1rem;
  }

  .zone-text {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .zone-frame {
    padding: 16px;
  }
}

/* =========================
   SAFE AREA iOS
   utile pour interface app / iPad
   ========================= */

@supports (padding: env(safe-area-inset-top)) {
  body {
    padding:
      env(safe-area-inset-top)
      env(safe-area-inset-right)
      env(safe-area-inset-bottom)
      env(safe-area-inset-left);
  }
}