/* OliveSoft homepage — "Notre modèle de delivery" globe (v5, Dec 2026).
   A large globe rises under the heading and fades into the next section.
   By default only our three locations are named; a client market is named when the visitor points at it.
   Colours: mint = our locations and the links between our teams; pale blue = client markets and client reach. */
.dm-globe{--dm-mint:#73E49A;--dm-market:#BFE4FF;
  position:relative;height:clamp(780px,108vh,1080px);overflow:hidden;background:var(--bg,#00041f);color:#fff}
.dm-globe::after{content:"";position:absolute;left:0;right:0;bottom:0;height:20%;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,4,31,0),var(--bg,#00041f) 92%)}
.dm-head{position:relative;z-index:3;padding-top:112px;text-align:center;pointer-events:none}
.dm-head .eyebrow{text-align:center}
.dm-h2{max-width:21em;margin-inline:auto;font-size:clamp(30px,3.7vw,52px)}

/* ---------- stage ---------- */
.dm-stage{position:absolute;inset:0;z-index:1;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.dm-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1.4s var(--ease,ease)}
.dm-ready .dm-stage canvas{opacity:1}
/* still image of the globe: shown while the 3D globe loads, and instead of it when the browser has no WebGL */
.dm-poster{position:absolute;left:50%;top:300px;width:min(80vw,1120px);max-width:none;height:auto;aspect-ratio:1;transform:translateX(-50%);pointer-events:none;transition:opacity 1s var(--ease,ease)}
.dm-ready .dm-poster{opacity:0;transition-delay:.9s}
.dm-labels{position:absolute;inset:0;pointer-events:none}

/* ---------- names on the globe ----------
   Plain text, no box, no dot: the name in white, the role in soft mint underneath, both edges aligned. */
.dm-hq,.dm-mk{position:absolute;left:0;top:0;white-space:nowrap;will-change:transform,opacity}
.dm-hq{pointer-events:auto;cursor:default}
.dm-hq-in{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;transition:opacity .5s var(--ease,ease)}
.dm-hq.is-left .dm-hq-in{align-items:flex-end;text-align:right}
.dm-hq.is-center .dm-hq-in{align-items:center;text-align:center}
/* a soft shadow behind the text keeps it readable over lights and lines (no visible shape) */
.dm-hq-in::before{content:"";position:absolute;inset:-12px -18px;z-index:-1;border-radius:50%;
  background:radial-gradient(closest-side,rgba(0,4,31,.72),rgba(0,4,31,.4) 60%,rgba(0,4,31,0));opacity:0;transition:opacity .9s}
.dm-hq.is-in .dm-hq-in::before{opacity:1}
.dm-hq-name,.dm-hq-role{display:block;opacity:0;filter:blur(8px);transform:translateY(6px);
  text-shadow:0 0 14px rgba(0,4,31,.9),0 1px 2px rgba(0,4,31,.85);
  transition:opacity .9s cubic-bezier(.2,.7,.2,1),filter .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1),color .4s}
.dm-hq-name{font-size:16px;font-weight:600;line-height:1.2;letter-spacing:-.012em;color:#fff}
.dm-hq-role{font-size:12.5px;font-weight:500;line-height:1.3;letter-spacing:0;color:rgba(160,236,190,.82);transition-delay:.12s}
.dm-hq.is-in .dm-hq-name,.dm-hq.is-in .dm-hq-role{opacity:1;filter:none;transform:none}
.dm-hq.is-focus .dm-hq-role{color:#9EF0C0}
.dm-hq.is-dim .dm-hq-in{opacity:.38}

.dm-mk{font-size:13px;font-weight:500;line-height:1.2;letter-spacing:0;color:var(--dm-market);
  text-shadow:0 0 14px rgba(0,4,31,.95),0 1px 2px rgba(0,4,31,.95);
  opacity:0;filter:blur(6px);transition:opacity .4s var(--ease,ease),filter .4s var(--ease,ease)}
.dm-mk.is-in{opacity:1;filter:none}

/* ---------- tablet and phone ---------- */
@media (max-width:760px){
  .dm-globe{height:auto;display:flex;flex-direction:column}
  .dm-head{order:-1}
  .dm-head{padding-top:88px}
  .dm-stage{position:relative;inset:auto;height:clamp(420px,122vw,620px);margin-top:-8px}
  .dm-poster{top:12px;width:140vw}
  .dm-hq-name{font-size:14px}
  .dm-hq-role{font-size:11px}
  .dm-mk{font-size:12px}
}
@media (prefers-reduced-motion:reduce){
  .dm-stage canvas,.dm-poster,.dm-hq-in,.dm-hq-name,.dm-hq-role,.dm-mk{transition:none}
  .dm-hq-name,.dm-hq-role,.dm-mk{filter:none;transform:none}
}
