/* ==========================================================================
   YAZAN AI — coquille du groupe
   Thème clair « ivoire » / sombre « encre », accents or ; chaque projet
   apporte sa couleur (--p) dans les détails seulement.
   ========================================================================== */

@property --p   { syntax: '<color>'; inherits: true; initial-value: #0E6E8C; }
@property --p-d { syntax: '<color>'; inherits: true; initial-value: #073B4C; }

:root {
  --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;

  --bg: #F4F1EA;
  --bg-2: #EEEAE1;
  --surface: #FFFFFF;
  --surface-2: #FAF8F4;
  --bar: rgba(250, 248, 244, .86);
  --bar-solid: #F7F5F0;
  --line: rgba(24, 22, 18, .09);
  --line-2: rgba(24, 22, 18, .14);
  --ink: #16171A;
  --ink-2: #4B4E55;
  --ink-3: #8B8D92;
  --hover: rgba(24, 22, 18, .045);
  --press: rgba(24, 22, 18, .08);
  --gold: #9A733A;
  --gold-2: #C9A25C;
  --gold-soft: rgba(201, 162, 92, .16);
  --glyph: url(#g-gold-ink);
  --scrim: rgba(18, 16, 12, .28);
  --shadow-1: 0 1px 2px rgba(24, 22, 18, .05), 0 4px 14px -6px rgba(24, 22, 18, .10);
  --shadow-2: 0 2px 6px rgba(24, 22, 18, .05), 0 24px 60px -22px rgba(24, 22, 18, .30);
  --shadow-3: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 80px -30px rgba(24, 22, 18, .45), 0 8px 24px -12px rgba(24, 22, 18, .18);
  --ring: 0 0 0 3px rgba(201, 162, 92, .45);
  --ok: #2F8F5B;

  --p: #0E6E8C;
  --p-d: #073B4C;
  --p-l: #E8D6B0;

  --bar-h: 58px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0C0F;
    --bg-2: #0E1115;
    --surface: #13161A;
    --surface-2: #171A1F;
    --bar: rgba(12, 14, 17, .84);
    --bar-solid: #0C0E11;
    --line: rgba(255, 250, 240, .075);
    --line-2: rgba(255, 250, 240, .13);
    --ink: #EEECE7;
    --ink-2: #B3B1AB;
    --ink-3: #7E7C77;
    --hover: rgba(255, 250, 240, .05);
    --press: rgba(255, 250, 240, .09);
    --gold: #DDBE7E;
    --gold-2: #C9A25C;
    --gold-soft: rgba(221, 190, 126, .12);
    --glyph: url(#g-gold);
    --scrim: rgba(0, 0, 0, .5);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px -8px rgba(0, 0, 0, .5);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 70px -24px rgba(0, 0, 0, .8);
    --shadow-3: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 34px 90px -30px rgba(0, 0, 0, .9), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --ok: #5CC28A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0C0F;
  --bg-2: #0E1115;
  --surface: #13161A;
  --surface-2: #171A1F;
  --bar: rgba(12, 14, 17, .84);
  --bar-solid: #0C0E11;
  --line: rgba(255, 250, 240, .075);
  --line-2: rgba(255, 250, 240, .13);
  --ink: #EEECE7;
  --ink-2: #B3B1AB;
  --ink-3: #7E7C77;
  --hover: rgba(255, 250, 240, .05);
  --press: rgba(255, 250, 240, .09);
  --gold: #DDBE7E;
  --gold-2: #C9A25C;
  --gold-soft: rgba(221, 190, 126, .12);
  --glyph: url(#g-gold);
  --scrim: rgba(0, 0, 0, .5);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px -8px rgba(0, 0, 0, .5);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 70px -24px rgba(0, 0, 0, .8);
  --shadow-3: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 34px 90px -30px rgba(0, 0, 0, .9), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --ok: #5CC28A;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html {
  background: var(--bar-solid);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 500 15px/1.5 var(--font-ui);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
button, input, a { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; margin: 0; }
a { text-decoration: none; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); }
kbd {
  font: 600 10.5px/1 var(--font-ui);
  letter-spacing: .02em;
  padding: 3px 6px 3px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  color: var(--ink-2);
  background: var(--surface-2);
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.eyebrow {
  margin: 0;
  font: 700 10.5px/1.2 var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.noscript { padding: 24px; text-align: center; }

/* entrée : rien ne s'affiche avant que l'appli soit prête */
html:not([data-ready]) .shell,
html:not([data-ready]) .welcome { opacity: 0; }
.shell, .welcome { transition: opacity .5s var(--ease); }

/* ==========================================================================
   Coquille : barre fine + scène
   ========================================================================== */
.shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bar-solid);
}

.bar {
  position: relative;
  z-index: 20;
  flex: none;
  height: calc(var(--bar-h) + var(--safe-t));
  padding: var(--safe-t) calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l));
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bar-solid);
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--p) 7%, transparent) 0%, transparent 46%);
  border-bottom: 1px solid var(--line);
  transition: --p .6s var(--ease), --p-d .6s var(--ease);
  user-select: none;
  -webkit-user-select: none;
}

/* sélecteur de projet */
.switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  max-width: 100%;
  height: 46px;
  padding: 0 10px 0 6px;
  margin-left: -2px;
  border-radius: 14px;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
  touch-action: pan-y;
}
.switch:hover { background: var(--hover); }
.switch:active { background: var(--press); transform: scale(.985); }
.switch__tile {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--p);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 12px -4px color-mix(in srgb, var(--p) 70%, transparent);
  transition: box-shadow .6s var(--ease);
}
.switch__tile img { width: 100%; height: 100%; object-fit: cover; }
.switch__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  pointer-events: none;
}
.switch__txt { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.switch__eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 700 9.5px/1 var(--font-ui);
  letter-spacing: .24em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.glyph { width: 12px; height: 12px; stroke: var(--glyph); fill: var(--glyph); flex: none; margin-left: -1px; }
.switch__name {
  font: 700 16px/1.1 var(--font-ui);
  letter-spacing: -.012em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.switch__chev {
  flex: none;
  width: 17px;
  height: 17px;
  margin-left: -2px;
  color: var(--ink-3);
  transition: transform .35s var(--ease-out), color .2s;
}
.switch[aria-expanded="true"] .switch__chev { transform: rotate(180deg); color: var(--ink); }

.bar__where {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(var(--safe-t) + var(--bar-h) / 2);
  transform: translate(-50%, -50%);
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--ink-3);
  font: 600 12px/1 var(--font-ui);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar__where svg { width: 13px; height: 13px; }
.bar__where #curHost { color: var(--ink-2); }
.bar__mode {
  margin-left: 3px;
  padding-left: 9px;
  border-left: 1px solid var(--line-2);
  color: var(--ink-3);
  font-weight: 600;
}

.bar__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }
.ibtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s, transform .2s var(--ease);
}
.ibtn svg { width: 20px; height: 20px; }
.ibtn:hover { background: var(--hover); color: var(--ink); }
.ibtn:active { background: var(--press); transform: scale(.94); }
.ibtn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.ibtn.is-spin svg { animation: spin .7s var(--ease-out); }
@keyframes spin { to { transform: rotate(360deg); } }

/* fil de progression */
.bar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.bar__progress i {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, color-mix(in srgb, var(--p) 40%, transparent), var(--p) 60%, var(--gold-2));
  border-radius: 0 2px 2px 0;
}
.bar__progress.is-on { opacity: 1; }
.bar__progress.is-on i { animation: prog 9s cubic-bezier(.08, .7, .2, 1) forwards; }
.bar__progress.is-done { opacity: 0; transition-delay: .25s; }
.bar__progress.is-done i { animation: none; transform: scaleX(1); transition: transform .3s var(--ease); }
@keyframes prog { 0% { transform: scaleX(0); } 12% { transform: scaleX(.35); } 100% { transform: scaleX(.9); } }

/* scène */
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--bg);
  padding-bottom: var(--safe-b);
  overflow: hidden;
}
.view {
  position: absolute;
  inset: 0 0 var(--safe-b) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.995);
  transition: opacity .32s var(--ease), transform .45s var(--ease-out), visibility 0s linear .32s;
}
.view.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .38s var(--ease), transform .5s var(--ease-out), visibility 0s;
}
.view iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
  color-scheme: normal;
}

/* voile de chargement */
.veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(60% 45% at 50% 42%, color-mix(in srgb, var(--vp, var(--p)) 10%, transparent), transparent 70%),
    var(--bg);
  transition: opacity .55s var(--ease), visibility 0s linear .55s;
}
.veil.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.veil__tile {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
}
.veil__tile img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--vp, var(--p)) 80%, transparent), 0 0 0 1px rgba(255, 255, 255, .1) inset;
  animation: breathe 2.6s var(--ease) infinite;
}
.veil__tile::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 29px;
  padding: 1.5px;
  background: conic-gradient(from 0deg, transparent 0 55%, color-mix(in srgb, var(--vp, var(--p)) 70%, transparent) 75%, var(--gold-2) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: orbit 1.6s linear infinite;
}
.veil__tile::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 29px;
  border: 1px solid var(--line);
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.965); } }
.veil__name {
  margin: 0;
  font: 600 30px/1.1 var(--font-display);
  letter-spacing: .005em;
  color: var(--ink);
}
.veil__sub {
  margin: 6px 0 0;
  font: 600 10.5px/1.2 var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.veil__slow {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--ink-2);
  animation: rise .5s var(--ease-out) both;
}
.veil__slow a { color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--gold-2); padding-bottom: 1px; }

/* carte de repli (application non intégrable, injoignable, hors ligne) */
.fallback {
  position: absolute;
  inset: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 28px 18px 36px;
  background:
    radial-gradient(70% 55% at 50% 20%, color-mix(in srgb, var(--vp, var(--p)) 9%, transparent), transparent 70%),
    var(--bg);
}
.fb {
  width: 100%;
  max-width: 440px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: rise .6s var(--ease-out) both;
}
.fb__art { position: relative; height: 168px; display: grid; place-items: center; }
.fb__art .art__tile { width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.fb__body { padding: 24px 26px 26px; }
.fb__title {
  margin: 8px 0 10px;
  font: 600 36px/1.02 var(--font-display);
  letter-spacing: -.005em;
}
.fb__text { margin: 0 0 22px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.fb__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 15px;
  font: 700 15px/1 var(--font-ui);
  letter-spacing: -.005em;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, filter .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--p {
  flex: 1 1 auto;
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vp, var(--p)) 88%, #fff), var(--vp, var(--p)) 55%, color-mix(in srgb, var(--vp, var(--p)) 85%, #000));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 28px -14px color-mix(in srgb, var(--vp, var(--p)) 90%, transparent);
}
.btn--p:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 34px -14px color-mix(in srgb, var(--vp, var(--p)) 95%, transparent); }
.btn--p:active { transform: scale(.98); }
.btn--g { color: var(--ink); background: var(--hover); }
.btn--g:hover { background: var(--press); }
.why { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.why summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13px/1.4 var(--font-ui);
  color: var(--ink-3);
  border-radius: 8px;
}
.why summary::-webkit-details-marker { display: none; }
.why summary svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.why[open] summary svg { transform: rotate(180deg); }
.why p { margin: 10px 0 8px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.why code, .why pre {
  font: 600 12px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink);
}
.why code { padding: 1px 5px; border-radius: 5px; background: var(--hover); }
.why pre {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--hover);
  white-space: pre-wrap;
  word-break: break-word;
}
.linkbtn {
  font: 700 13px/1.4 var(--font-ui);
  color: var(--ink);
  border-bottom: 1px solid var(--gold-2);
  padding-bottom: 1px;
}

/* ==========================================================================
   Liste des projets (panneau)
   ========================================================================== */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--scrim);
  opacity: 0;
  transition: opacity .3s var(--ease);
  -webkit-backdrop-filter: blur(3px) saturate(.9);
  backdrop-filter: blur(3px) saturate(.9);
}
.scrim.is-open { opacity: 1; }
.scrim:not(.is-open), .panel:not(.is-open) { pointer-events: none; }

.panel {
  position: fixed;
  z-index: 50;
  top: calc(var(--safe-t) + var(--bar-h) + 8px);
  left: calc(10px + var(--safe-l));
  right: calc(10px + var(--safe-r));
  max-height: calc(100dvh - var(--safe-t) - var(--bar-h) - 24px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  transform-origin: 28px -10px;
  opacity: 0;
  transform: translateY(-10px) scale(.97);
  transition: opacity .22s var(--ease), transform .3s var(--ease-out);
  overflow: hidden;
  touch-action: pan-y;
}
.panel.is-open { opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .45s var(--ease-out); }
.panel.is-drag { transition: none; }
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 8px;
}
.panel__hint { display: none; font-size: 12px; color: var(--ink-3); }
.panel__hint kbd { margin-right: 4px; }
.plist { list-style: none; margin: 0; padding: 4px 8px 8px; overflow: auto; overscroll-behavior: contain; }
.plist li + li { margin-top: 2px; }
.prow {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 12px 10px 10px;
  border-radius: 16px;
  text-align: left;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.prow:hover { background: var(--hover); }
.prow:active { background: var(--press); transform: scale(.99); }
.prow[aria-current="true"] { background: color-mix(in srgb, var(--rp) 9%, transparent); }
.prow__tile { position: relative; width: 46px; height: 46px; }
.prow__tile img { width: 100%; height: 100%; border-radius: 13px; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--rp) 90%, transparent), inset 0 0 0 1px rgba(255,255,255,.1); }
.prow__live {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ok);
  border: 2.5px solid var(--surface);
  transform: scale(0);
  transition: transform .35s var(--ease-out);
}
.prow.is-live .prow__live { transform: scale(1); }
.prow__txt { min-width: 0; }
.prow__name { display: block; font: 700 15.5px/1.25 var(--font-ui); letter-spacing: -.01em; color: var(--ink); }
.prow__desc {
  display: block;
  margin-top: 2px;
  font-size: 12.8px;
  line-height: 1.35;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prow__end { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.prow__end svg { width: 18px; height: 18px; }
.prow__check { color: var(--rp); display: none; }
.prow[aria-current="true"] .prow__check { display: block; }
.prow__ext { display: none; }
.prow.is-tab .prow__ext { display: block; }
.prow[aria-current="true"] .prow__ext { display: none; }
.prow__kbd { display: none; }

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 8px;
  padding: 12px 6px 14px;
  border-top: 1px solid var(--line);
}
.tbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 11px;
  border-radius: 12px;
  font: 700 13.5px/1 var(--font-ui);
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.tbtn svg { width: 18px; height: 18px; }
.tbtn:hover { background: var(--hover); color: var(--ink); }
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 13px;
  background: var(--hover);
}
.seg button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 10px;
  color: var(--ink-3);
  transition: background-color .25s var(--ease), color .2s, box-shadow .25s;
}
.seg button svg { width: 17px; height: 17px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.panel__grip { display: flex; justify-content: center; padding: 0 0 10px; margin-top: -4px; touch-action: none; cursor: grab; }
.panel__grip i { width: 38px; height: 4px; border-radius: 4px; background: var(--line-2); }

/* ==========================================================================
   Accueil
   ========================================================================== */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background:
    radial-gradient(900px 560px at 92% -12%, color-mix(in srgb, var(--gold-2) 20%, transparent), transparent 62%),
    radial-gradient(760px 520px at -12% 108%, rgba(14, 110, 140, .10), transparent 62%),
    var(--bg);
  transition: opacity .45s var(--ease), transform .55s var(--ease-out), visibility 0s;
}
.welcome.is-out { opacity: 0; transform: scale(1.015); visibility: hidden; pointer-events: none; transition: opacity .38s var(--ease), transform .5s var(--ease-out), visibility 0s linear .5s; }
.welcome__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.welcome__mark {
  position: absolute;
  right: -118px;
  top: -64px;
  width: 330px;
  height: 330px;
  stroke: var(--glyph);
  fill: var(--glyph);
  opacity: .085;
}
.welcome__inner {
  position: relative;
  max-width: 1240px;
  min-height: 100%;
  margin: 0 auto;
  padding: calc(14px + var(--safe-t)) calc(18px + var(--safe-r)) calc(24px + var(--safe-b)) calc(18px + var(--safe-l));
  display: flex;
  flex-direction: column;
}
.wtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: radial-gradient(120% 120% at 28% 18%, #1D232B, #090C10 70%);
  box-shadow: 0 8px 20px -10px rgba(9, 12, 16, .7), inset 0 0 0 1px rgba(255, 240, 210, .08);
}
.brand__tile svg { width: 30px; height: 30px; stroke: url(#g-gold); fill: url(#g-gold); }
.brand__word {
  font: 800 13px/1 var(--font-ui);
  letter-spacing: .34em;
  color: var(--ink);
}
.brand__word b { font-weight: 600; color: var(--gold); margin-left: .5em; }
.wtop__tools { display: flex; align-items: center; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 700 13px/1 var(--font-ui);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.chip svg { width: 16px; height: 16px; color: var(--gold); }

.hero { margin-top: clamp(30px, 8.5vh, 104px); max-width: 720px; }
.hero__date { color: var(--gold); }
.hero__title {
  margin: 12px 0 0;
  font: 500 clamp(54px, 7.4vw, 96px)/.95 var(--font-display);
  letter-spacing: -.018em;
  color: var(--ink);
}
.hero__dot { color: var(--gold-2); }
.hero__lead {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 500;
}

.cards {
  list-style: none;
  margin: clamp(26px, 5vh, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.card {
  --cp: #0E6E8C;
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px 14px 14px;
  border-radius: 22px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), border-color .3s;
  animation: rise .7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
.card:active { transform: scale(.985); }
.card__art { position: relative; width: 64px; height: 64px; }
.card__art .art__bg { display: none; }
.art__tile {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--cp, var(--vp)) 95%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.card__body { min-width: 0; }
.card__name {
  display: block;
  font: 600 25px/1.05 var(--font-display);
  letter-spacing: -.004em;
  color: var(--ink);
}
.card__desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.42;
  color: var(--ink-2);
}
.card__meta { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 21px;
  padding: 0 9px;
  border-radius: 999px;
  font: 700 9.5px/1 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--hover);
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.tag--in { color: color-mix(in srgb, var(--cp) 58%, var(--ink)); background: color-mix(in srgb, var(--cp) 10%, transparent); }
.tag--live::before { background: var(--ok); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.tag--soon { color: var(--gold); background: var(--gold-soft); }
.card__kbd { display: none; }
.card__go {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  transition: transform .35s var(--ease-out), color .2s, background-color .3s;
}
.card__go svg { width: 20px; height: 20px; }

.wfoot {
  margin-top: auto;
  padding-top: 30px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.wfoot p { margin: 0; }
.wfoot kbd { font-size: 10px; padding: 2px 5px; }
.wfoot__ios { margin-top: 6px !important; color: var(--ink-2); }
.wfoot__ver { margin-top: 10px !important; font-weight: 700; letter-spacing: .2em; font-size: 10px; text-transform: uppercase; color: var(--ink-3); opacity: .8; }
.only-desk { display: none; }
.only-touch { display: none; }
@media (hover: none) { .only-touch { display: inline; } }

/* habillage de marque des projets (cartes, replis) */
.art__bg { position: absolute; inset: 0; overflow: hidden; }
.art__bg::before, .art__bg::after { content: ""; position: absolute; inset: 0; }
.art--yazan {
  background:
    radial-gradient(120% 70% at 50% 118%, rgba(236, 216, 174, .75), transparent 58%),
    linear-gradient(165deg, #083F54 0%, #0C6582 52%, #1484A2 100%);
}
.art--yazan::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c10 0 10-6 20-6s10 6 20 6 10-6 20-6 10 6 20 6 10-6 20-6 10 6 20 6' fill='none' stroke='white' stroke-opacity='.12' stroke-width='1.2'/%3E%3C/svg%3E") 0 70%/120px 24px repeat-x;
  -webkit-mask: linear-gradient(180deg, transparent 35%, #000 70%, transparent 100%);
  mask: linear-gradient(180deg, transparent 35%, #000 70%, transparent 100%);
}
.art--dilayt { background: linear-gradient(150deg, #0B2840 0%, #154C78 55%, #2A78D6 120%); }
.art--dilayt::before {
  background: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px) 0 0/16px 16px;
  -webkit-mask: radial-gradient(80% 90% at 70% 30%, #000, transparent 75%);
  mask: radial-gradient(80% 90% at 70% 30%, #000, transparent 75%);
}
.art--asvs { background: linear-gradient(150deg, #9E0C17 0%, #D81A28 50%, #F0414D 110%); }
.art--asvs::before {
  background: repeating-linear-gradient(125deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 12px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%, transparent);
  mask: linear-gradient(90deg, transparent, #000 40%, transparent);
}
.art--hills { background: radial-gradient(90% 90% at 30% 10%, #0E8A90, #07646B 45%, #043E43 100%); }
.art--hills::before { inset: 12px; border: 1px solid rgba(226, 188, 98, .42); border-radius: 12px; }
.art--hills::after { inset: 16px; border: 1px solid rgba(226, 188, 98, .16); border-radius: 9px; }
.art__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 40%), radial-gradient(70% 60% at 50% 50%, transparent 55%, rgba(0, 0, 0, .22));
  pointer-events: none;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Grands écrans
   ========================================================================== */
@media (min-width: 720px) {
  :root { --bar-h: 60px; }
  .bar { padding-left: calc(14px + var(--safe-l)); padding-right: calc(14px + var(--safe-r)); }
  .panel {
    right: auto;
    left: calc(12px + var(--safe-l));
    width: 420px;
  }
  .panel__grip { display: none; }
  .panel .plist { padding-bottom: 10px; }
  .scrim { background: rgba(10, 10, 10, .08); -webkit-backdrop-filter: none; backdrop-filter: none; }

  .welcome__inner { padding: calc(28px + var(--safe-t)) 48px 32px; }
  .welcome__mark { width: 720px; height: 720px; right: -120px; top: -60px; opacity: .07; }
  .brand__tile { width: 42px; height: 42px; border-radius: 12px; }
  .brand__tile svg { width: 34px; height: 34px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
  }
  .card__art { width: auto; height: 150px; display: grid; place-items: center; }
  .card__art .art__bg { display: block; }
  .card__art .art__tile { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .16); }
  .card__body { padding: 20px 22px 18px; display: flex; flex-direction: column; }
  .card__name { font-size: 29px; }
  .card__desc { font-size: 13.8px; margin-top: 6px; min-height: 2.84em; }
  .card__meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    flex-wrap: nowrap;
  }
  .card__go {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
    opacity: 0;
    transform: translateX(-6px);
  }
  .card__go svg { width: 18px; height: 18px; }
  .fb__art { height: 188px; }
  .fb__body { padding: 28px 32px 30px; }
  .fb__title { font-size: 42px; }
}

@media (min-width: 900px) {
  .bar__where { display: inline-flex; }
}

/* indices clavier : seulement avec une souris */
@media (min-width: 720px) and (hover: hover) and (pointer: fine) {
  .panel__hint { display: inline; }
  .prow__kbd { display: inline-block; }
  .prow[aria-current="true"] .prow__kbd { display: none; }
  .only-desk { display: inline; }
  .card__kbd { display: inline-block; margin-left: auto; opacity: .8; }
}

@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .card__art { height: 172px; }
  .hero__lead { font-size: 18px; }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: var(--line-2);
  }
  .card:hover .card__go { opacity: 1; transform: none; }
  .card:hover .art__tile { transform: scale(1.04); }
  .card .art__tile { transition: transform .6s var(--ease-out); }
}

@media (max-width: 380px) {
  .switch__name { font-size: 15px; }
  .switch { gap: 9px; }
  .ibtn { width: 38px; }
  .card { grid-template-columns: 56px minmax(0, 1fr) 18px; gap: 13px; padding: 12px 14px 12px 12px; }
  .card__art { width: 56px; height: 56px; }
  .art__tile { border-radius: 16px; }
  .card__name { font-size: 23px; }
  .hero__title { font-size: 50px; }
}

@media (max-height: 560px) and (min-width: 720px) {
  .hero { margin-top: 18px; }
  .cards { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
