/* ==========================================================================
   HEADER — one dark dock floating over the page: the logo with its framboise
   "o", the links with a framboise blob under the pointer, the time in Sion,
   the call to action; "Services" opens a panel of four coloured offers.
   Shared by the home page (after styles.css) and every other page (after chrome.css).
   ========================================================================== */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 90; display: block; padding: 14px var(--hdm, clamp(20px, 4vw, 64px)) 0;
  pointer-events: none; transition: transform .55s cubic-bezier(.2, .7, .2, 1), padding .4s cubic-bezier(.2, .7, .2, 1);
}
.hd > * { pointer-events: auto; }


.hd-bar {
  position: relative; display: flex; align-items: center; gap: 6px; max-width: none; height: 66px; margin: 0; padding: 0 8px 0 10px;
  border-radius: 999px; color: #F6F1E7; overflow: hidden;
  /* glass: the page shows through, blurred and lifted in colour, with a bright rim like Apple's */
  background: linear-gradient(180deg, rgba(34, 31, 36, .82), rgba(20, 18, 21, .88));
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);   /* light enough for Safari to redo on every scroll frame */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 6px rgba(20, 18, 21, .16), 0 14px 32px -10px rgba(20, 18, 21, .42), 0 30px 60px -24px rgba(20, 18, 21, .45);
  transition: height .4s cubic-bezier(.2, .7, .2, 1), background .4s, color .4s, box-shadow .4s;
}
.hd-bar::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(120% 140% at 12% -40%, rgba(255, 255, 255, .16), transparent 55%); }
.hd-bar > * { position: relative; z-index: 1; }
.hd-bar > .hd-prog { position: absolute; }

/* logo: always expressive, the "o" framboise */
.hd-logo {
  display: flex; align-items: center; height: 50px; padding: 0 16px; border-radius: 999px; color: inherit; background: none; box-shadow: none;
  transition: background-color .3s;
}
.hd-logo:hover { background: rgba(246, 241, 231, .08); }
.hd-logo-svg { display: block; width: 58px; height: 34px; --o: #FF4D7E; transition: width .4s cubic-bezier(.2, .7, .2, 1), height .4s cubic-bezier(.2, .7, .2, 1); }
/* hovering the logo: the letters jump one after the other, and the "o" rolls a full turn */
.hd-logo-svg { overflow: visible; fill: currentColor; }
.hd-logo-svg .lg { transform-box: fill-box; transform-origin: 50% 100%; }
.hd-logo-svg .lg-o { transform-origin: 50% 50%; fill: var(--o); }
.hd-logo:hover .lg, .hd-logo:focus-visible .lg { animation: lg-jump .62s cubic-bezier(.3, .7, .3, 1) calc(var(--i) * 55ms) both; }
.hd-logo:hover .lg-o, .hd-logo:focus-visible .lg-o { animation: lg-roll .9s cubic-bezier(.6, 0, .2, 1) 110ms both; }
@keyframes lg-jump {
  0% { transform: none; }
  30% { transform: translateY(-16%) scale(.96, 1.1); }
  55% { transform: translateY(3%) scale(1.08, .9); }
  78% { transform: translateY(-4%) scale(.98, 1.03); }
  100% { transform: none; }
}
@keyframes lg-roll {
  0% { transform: none; }
  35% { transform: translateY(-18%) rotate(180deg) scale(1.12); }
  65% { transform: translateY(2%) rotate(320deg) scale(.94); }
  100% { transform: rotate(360deg); }
}

/* links: a framboise blob slides under the one being pointed at */
.hd-nav { position: relative; display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; background: none; box-shadow: none; }
.hd-nav a, .hd-svc {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: 999px;
  background: none; color: inherit; font: 600 15px/1 var(--text, "Archivo", sans-serif); text-decoration: none; cursor: pointer; transition: color .25s;
}
.hd-nav a:hover, .hd-svc:hover { color: inherit; }
.hd-nav .is-lit { color: #141215; }
/* the blob is a drop of framboise glass: it stretches as it travels from one link to the next, then settles */
.hd-blob {
  position: absolute; z-index: 0; left: 0; top: 50%; width: 0; height: 46px; margin-top: -23px; border-radius: 999px; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 112, 150, .95), rgba(255, 77, 126, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(160, 20, 70, .25), 0 6px 16px -6px rgba(255, 77, 126, .7);
  transform-origin: 50% 50%;
  transition: transform .55s cubic-bezier(.3, 1.5, .5, 1), width .55s cubic-bezier(.3, 1.5, .5, 1), height .4s cubic-bezier(.3, 1.6, .5, 1), margin-top .4s cubic-bezier(.3, 1.6, .5, 1), opacity .25s;
}
.hd-blob.is-moving { transition-duration: .16s, .16s, .16s, .16s, .25s; transition-timing-function: ease-out; }
.hd-svc i { position: relative; width: 10px; height: 10px; }
.hd-svc i::before, .hd-svc i::after { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s cubic-bezier(.34, 1.4, .64, 1); }
.hd-svc i::after { transform: rotate(90deg); }
.hd-svc[aria-expanded="true"] i::before { transform: rotate(135deg); }
.hd-svc[aria-expanded="true"] i::after { transform: rotate(225deg); }
.hd-dot { position: absolute; left: 0; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #FF4D7E; opacity: 0; transition: left .5s cubic-bezier(.34, 1.4, .64, 1), opacity .3s; }

/* the time in Sion: someone is there */
.hd-live { display: flex; align-items: center; gap: 9px; margin: 0 10px 0 0; font: 500 13px/1 var(--text, "Archivo", sans-serif); color: rgba(246, 241, 231, .62); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hd-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #BFE36B; }
.hd-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #BFE36B; animation: hd-ping 2.4s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes hd-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* call to action: a cube; under the pointer it tips forward and shows its pistache face, "C’est parti !" */
.hd-cta { position: relative; display: inline-flex; align-items: center; height: 50px; margin-right: 2px; padding: 0 26px; color: inherit; text-decoration: none; font: 700 15px/1 var(--text, "Archivo", sans-serif); font-variation-settings: "wdth" 112; white-space: nowrap; }
.hd-cta svg { position: absolute; inset: 1.5px; width: calc(100% - 3px); height: calc(100% - 3px); overflow: visible; pointer-events: none; }
.hd-cta rect { fill: none; stroke-width: 2; }
.hd-cta .o1 { stroke: currentColor; opacity: .28; }
.hd-cta .o2 { stroke: #BFE36B; stroke-width: 2.5; stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset .8s cubic-bezier(.6, 0, .2, 1); }
.hd-cta:hover .o2, .hd-cta:focus-visible .o2 { stroke-dashoffset: 0; }
.hd-cta:active { transform: scale(.97); }
.hd.is-dark .hd-cta .o2 { stroke: #FF4D7E; }

/* reading progress, along the bottom of the dock */
.hd-prog { position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; border-radius: 2px; background: #FF4D7E; transform: scaleX(0); transform-origin: 0 50%; }

.hd-burger { display: none; }

/* over the dark sections and the footer: the dock turns cream */
.hd.is-dark .hd-bar { background: linear-gradient(180deg, rgba(255, 252, 246, .62), rgba(246, 241, 231, .7)); color: #141215; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .2), 0 14px 32px -10px rgba(0, 0, 0, .5), 0 30px 60px -24px rgba(0, 0, 0, .55); }
.hd.is-dark .hd-logo:hover { background: rgba(20, 18, 21, .06); }
.hd.is-dark .hd-live { color: rgba(20, 18, 21, .6); }
.hd.is-dark .hd-live i, .hd.is-dark .hd-live i::after { background: #5fb030; }
.hd.is-dark .hd-nav .is-lit { color: #141215; }

/* ---------------------------------------------------------------- the Services panel */
.hd-mega {
  position: relative; max-width: none; margin: 10px 0 0; padding: 10px; border-radius: 32px; color: #F6F1E7;
  /* the same dark glass as the header bar */
  background: linear-gradient(180deg, rgba(34, 31, 36, .84), rgba(20, 18, 21, .9));
  -webkit-backdrop-filter: blur(26px) saturate(185%) brightness(.95); backdrop-filter: blur(26px) saturate(185%) brightness(.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .09), 0 2px 6px rgba(20, 18, 21, .16), 0 40px 90px -30px rgba(20, 18, 21, .6);
  clip-path: inset(0 0 100% 0 round 32px); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: 50% 0;
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), opacity .3s, transform .55s cubic-bezier(.7, 0, .2, 1), visibility 0s .55s;
}
.hd-mega.is-open { clip-path: inset(0 0 0 0 round 32px); opacity: 1; visibility: visible; transform: none; transition: clip-path .75s cubic-bezier(.16, 1, .3, 1), opacity .2s, transform .75s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
.mm { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 10px; min-height: 400px; }

/* the list: four big rows, a coloured pill slides behind the one being pointed at */
.mm-list { position: relative; display: flex; flex-direction: column; margin: 0; padding: 6px; list-style: none; }
.mm-list > li:not(.mm-pill) { flex: 1; display: flex; }
.mm-pill { position: absolute; left: 6px; right: 6px; top: 0; height: 0; border-radius: 22px; background: var(--pc, #E1D0B3); transition: transform .6s cubic-bezier(.3, 1.3, .5, 1), height .6s cubic-bezier(.3, 1.3, .5, 1), background-color .45s; }
.mm-row {
  position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 44px 1fr auto 34px; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 22px;
  color: #F6F1E7; text-decoration: none; opacity: 0; transform: translateX(-24px);
  transition: color .35s, opacity .5s calc(var(--i) * 60ms + 150ms), transform .7s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 60ms + 150ms);
}
.hd-mega.is-open .mm-row { opacity: 1; transform: none; }
.mm-row > i { font: 600 13px/1 "IBM Plex Mono", ui-monospace, monospace; font-style: normal; opacity: .45; }
.mm-tx b { display: block; font: 800 clamp(22px, 2vw, 32px)/1 var(--text, "Archivo", sans-serif); font-variation-settings: "wdth" 125; letter-spacing: -.045em; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.mm-tx span { display: block; margin-top: 7px; font-size: 14px; line-height: 1.35; opacity: .62; }
.mm-row em { font: 700 12px/1 var(--text, "Archivo", sans-serif); font-style: normal; white-space: nowrap; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }
.mm-row u { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #141215; color: #F6F1E7; text-decoration: none; font-weight: 700; transform: scale(0) rotate(-90deg); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.mm-row.is-on { color: var(--t); }
.mm-row.is-on .mm-tx b { transform: translateX(6px); }
.mm-row.is-on u { transform: none; background: var(--t); color: var(--c); }
.mm-row > i { position: relative; }
.mm-row[aria-current] > i::after { content: ""; position: absolute; left: 0; top: calc(100% + 6px); width: 6px; height: 6px; border-radius: 50%; background: #FF4D7E; }

/* the view: the pointed offer in big, its colour, its work */
.mm-view { position: relative; overflow: hidden; border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); background: var(--vc, #E1D0B3); transition: background-color .5s cubic-bezier(.2, .7, .2, 1); }
.mm-pane { position: absolute; inset: 0; padding: 28px 30px; color: var(--t); visibility: hidden; }
.mm-pane.is-on { visibility: visible; }
.mm-cap { position: relative; z-index: 2; margin: 0; }
.mm-cap small { display: block; font: 700 12px/1 var(--text, "Archivo", sans-serif); letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.mm-cap b { display: block; margin-top: 12px; font: 800 clamp(28px, 2.6vw, 42px)/.95 var(--text, "Archivo", sans-serif); font-variation-settings: "wdth" 125; letter-spacing: -.05em; }
.mm-cap, .mm-go { opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .6s cubic-bezier(.16, 1, .3, 1); }
.mm-pane.is-on .mm-cap, .mm-pane.is-on .mm-go { opacity: 1; transform: none; transition-delay: .08s; }
.mm-go { position: absolute; z-index: 2; left: 30px; bottom: 26px; display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--text, "Archivo", sans-serif); }
.mm-go i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--t); color: var(--c); font-style: normal; }
.mm-shots { position: absolute; inset: 0; }
/* big Arobaz rings behind the work, in a colour that fights the background */
.mm-r1, .mm-r2 { position: absolute; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s, transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.mm-r1 { right: -14%; bottom: -46%; width: 82%; aspect-ratio: 1; transform: scale(.6) rotate(-60deg); }
.mm-r2 { right: 44%; top: 46%; width: 22%; aspect-ratio: 1; transform: scale(.4) rotate(60deg); }
.mm-pane.is-on .mm-r1 { opacity: 1; transform: none; animation: mm-spin 40s linear 1.1s infinite; }
.mm-pane.is-on .mm-r2 { opacity: 1; transform: none; transition-delay: .1s; }
@keyframes mm-spin { to { transform: rotate(360deg); } }
.mm-shots, .mm-cap, .mm-go { z-index: 1; }
.mm-shots img { position: absolute; display: block; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: 0 30px 50px -18px rgba(20, 18, 21, .55), 0 0 0 1px rgba(20, 18, 21, .08);
  opacity: 0; transition: opacity .4s, transform .9s cubic-bezier(.16, 1, .3, 1); }
.mm-shots .mm-s0 { right: -6%; bottom: -14%; width: 72%; aspect-ratio: 16 / 10; transform: translate(14%, 18%) rotate(4deg); }
.mm-pane.is-on .mm-s0 { opacity: 1; transform: rotate(-4deg); }
.mm-n3 .mm-s0 { right: 26%; bottom: -16%; width: 52%; z-index: 3; }
.mm-n3 .mm-s1, .mm-n3 .mm-s2 { width: 46%; aspect-ratio: 16 / 10; bottom: -6%; transform: translateY(30%); }
.mm-n3 .mm-s1 { right: 4%; z-index: 2; } .mm-n3 .mm-s2 { right: -20%; bottom: 6%; z-index: 1; }
.mm-pane.is-on .mm-n3 .mm-s0 { transform: rotate(-6deg); transition-delay: .05s; }
.mm-pane.is-on .mm-n3 .mm-s1 { opacity: 1; transform: rotate(5deg); transition-delay: .12s; }
.mm-pane.is-on .mm-n3 .mm-s2 { opacity: 1; transform: rotate(-2deg); transition-delay: .18s; }
.mm-ph { position: absolute; z-index: 3; right: 6%; bottom: -10%; width: 21%; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 20px; border: 5px solid #141215;
  box-shadow: 0 30px 50px -14px rgba(20, 18, 21, .6); opacity: 0; transform: translateY(40%) rotate(12deg); transition: opacity .4s .1s, transform 1s cubic-bezier(.16, 1, .3, 1) .1s; }
.mm-pane.is-on .mm-ph { opacity: 1; transform: rotate(6deg); }
.mm-pane[style*="#141215"] .mm-shots img { box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(246, 241, 231, .1); }

/* the foot: the two of us, and ways to reach us */
.hd-mega-foot { display: flex; align-items: center; gap: 18px; margin: 10px 0 0; padding: 12px 14px 12px 16px; border-radius: 22px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); font-size: 14px; }
.hd-mega-foot p { margin: 0 auto 0 0; } .hd-mega-foot p b { display: block; font-size: 15px; } .hd-mega-foot p span { color: rgba(246, 241, 231, .6); }
.mm-av { position: relative; display: flex; } .mm-av img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2.5px solid #2A272C; } .mm-av img + img { margin-left: -12px; }
.mm-av i { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #BFE36B; border: 2.5px solid #2A272C; }
.mm-l { color: inherit; font-weight: 650; text-decoration: none; padding: 10px 14px; border-radius: 999px; transition: background-color .25s; } .mm-l:hover { background: rgba(255, 255, 255, .08); }
/* the foot's call to action: plain pistache, it lifts and its arrow steps forward */
.mm-cta { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; background: #BFE36B; color: #141215; text-decoration: none;
  font: 700 15px/1 var(--text, "Archivo", sans-serif); font-variation-settings: "wdth" 112; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(191, 227, 107, .8); transition: transform .3s cubic-bezier(.34, 1.5, .64, 1), box-shadow .3s; }
.mm-cta i { display: block; }
.mm-cta svg { display: block; width: 18px; height: 18px; transition: transform .4s cubic-bezier(.34, 1.5, .64, 1); }
.mm-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(191, 227, 107, .9); }
.mm-cta:hover svg { transform: translateX(4px); }
.mm-cta:active { transform: scale(.96); }

/* ---------------------------------------------------------------- mobile */
.menu-links a { font-size: min(9.4vw, 46px); }
@media (max-width: 1080px) { .hd-live { display: none; } }
@media (max-width: 899px) {
  .hd { padding: 10px 12px 0; }
  .hd-bar { height: 58px; padding: 0 6px 0 4px; }
  .hd-nav, .hd-cta, .hd-live, .hd-mega { display: none; }
  .hd-logo-svg { width: 50px; height: 29px; }
  .hd-burger {
    display: inline-flex; align-items: center; gap: 10px; height: 46px; margin-left: auto; padding: 0 20px; border: 0; border-radius: 999px;
    background: #FF4D7E; color: #141215; font: 700 15px/1 var(--text, "Archivo", sans-serif); cursor: pointer;
  }
  .hd.is-dark .hd-burger { background: #141215; color: #F6F1E7; }
  .hd-prog { left: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-logo .lg { animation: none !important; }
  .hd, .hd-bar, .hd-blob, .hd-mega, .mm-row, .mm-pill, .mm-pane *, .hd-cta .o2, .mm-cta, .mm-cta svg { transition: none !important; }
  .mm-pane.is-on .mm-r1 { animation: none; }
  .hd-live i::after { animation: none; }
}

/* scrolling down, the dock folds to the left until only the logo is left; scrolling back up, or pointing at
   the logo, unfolds it to the right again (desktop; hd.js sets .is-mini and .is-peek) */
@media (min-width: 900px) {
  .hd-bar { width: 100%; transition: width .7s cubic-bezier(.7, 0, .2, 1), height .4s cubic-bezier(.2, .7, .2, 1), background .4s, color .4s, box-shadow .4s; }
  .hd-bar > :not(.hd-logo):not(.hd-prog) { flex-shrink: 0; transition: opacity .35s .25s; }
  .hd.is-mini:not(.is-peek) .hd-bar { width: 106px; }
  .hd.is-mini:not(.is-peek) .hd-bar > :not(.hd-logo):not(.hd-prog) { opacity: 0; pointer-events: none; transition: opacity .2s; }
  .hd.is-mini:not(.is-peek) .hd-prog { opacity: 0; }
  .hd-logo { flex-shrink: 0; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) { .hd-bar, .hd-bar > * { transition: none; } }

/* MOBILE HEADER · the bar at the top of the page; reading down, the bar melts away and only the logo (its own dark pill)
   and the pink Menu button stay; scrolling back up brings the bar back (hd.js sets .is-mini) */
@media (max-width: 899px) {
  .hd .hd-bar { transition: background .45s, box-shadow .45s, -webkit-backdrop-filter .45s, backdrop-filter .45s; overflow: visible; }
  .hd .hd-logo, .hd .hd-burger { transition: background .45s, box-shadow .45s, padding .45s; }
  .hd .hd-burger { height: 46px; }
  .hd.is-mini .hd-bar { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hd.is-mini .hd-bar::before, .hd.is-mini .hd-prog { opacity: 0; }
  .hd.is-mini .hd-logo { height: 52px; padding: 0 16px; border-radius: 999px; color: var(--creme, #F6F1E7); background: linear-gradient(180deg, rgba(34, 31, 36, .9), rgba(20, 18, 21, .94));
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -10px rgba(20, 18, 21, .5); }
  .hd.is-mini .hd-burger { height: 52px; padding: 0 22px; box-shadow: 0 10px 24px -10px rgba(255, 77, 126, .6); }
}
