/* Mood Apps · refresh 2026-11-25
   Couche commune posée après les feuilles existantes.
   01 ambiance · 02 en-tête · 03 pages d'app · 04 accueil vitrine · 05 fiche · 06 mouvement réduit */

/* 01. Ambiance : halos colorés qui prennent la teinte de l'app (--app-tint) */
body { --mood: var(--app-tint, #cfe3d6); }
:root { --mood-2: #efe4d2; --spring: cubic-bezier(.34,1.56,.64,1); --ease-out: cubic-bezier(.2,.8,.2,1); }
html { background: var(--bg); }
body { background: transparent; position: relative; }
.mood-glow { position: fixed; inset: -25%; z-index: -1; pointer-events: none; filter: blur(80px); opacity: .55; }
.mood-glow i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; background: var(--mood);
  transition: background 1.2s var(--ease-out); animation: mood-drift 20s ease-in-out infinite alternate; }
.mood-glow i:nth-child(1) { left: 0; top: -5%; }
.mood-glow i:nth-child(2) { right: -5%; bottom: -10%; background: var(--mood-2); opacity: .8; animation-duration: 26s; animation-direction: alternate-reverse; }
@media (prefers-color-scheme: dark) { .mood-glow { opacity: .22; } }
@keyframes mood-drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* 02. En-tête flottant et translucide */
.header { position: sticky; top: 12px; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  animation: rf-fade .8s var(--ease-out) both; }
.header .mark { transition: transform .5s var(--spring); }
.header .wordmark:hover .mark { transform: rotate(-8deg) scale(1.08); }

/* 03. Pages d'app */
.app-identity img, .app-download > img { animation: rf-drop .9s var(--spring) both, rf-bob 6s 1s ease-in-out infinite;
  transform: perspective(500px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); box-shadow: 0 2px 3px rgba(0,0,0,.12), 0 18px 30px -16px rgba(0,0,0,.5);
  border-radius: 22.5%; transition: transform .5s var(--ease-out); }
.app-identity img { width: 76px; height: 76px; }
.app-hero h1 { animation: rf-rise .9s .12s var(--ease-out) both; }
.app-lead, .app-hero .actions, .app-facts { animation: rf-rise .9s .24s var(--ease-out) both; }
.app-hero > figure, .app-hero-visual { animation: rf-rise 1s .3s var(--ease-out) both; }
.app-hero .button, .app-download .button { position: relative; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s; }
.app-hero .button::after, .app-download .button::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); animation: rf-shine 4.5s 1.6s ease-in-out infinite; }
.app-hero .button:hover, .app-download .button:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(0,0,0,.55); text-decoration: none; }
.app-screen a { display: block; transition: transform .5s var(--ease-out); }
.app-screen a:hover { transform: translateY(-6px); }
.app-related-card { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.app-related-card img { border-radius: 22.5%; transition: transform .5s var(--spring); }
.app-related-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(0,0,0,.45); text-decoration: none; }
.app-related-card:hover img { transform: rotate(-6deg) scale(1.08); }
.app-overview, .app-download, .app-help-top, .contact-box { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* 03b. Pages d'app simplifiées : haut centré autour de l'icône, sans captures */
.app-simple .app-hero { display: block; max-width: 760px; margin: 0 auto; padding-top: 24px; padding-bottom: 24px; text-align: center; }
.app-simple .app-hero-copy { display: flex; flex-direction: column; align-items: center; }
.app-simple .app-breadcrumb { align-self: center; }
.app-simple .app-identity { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.app-simple .app-identity img { width: 116px; height: 116px; }
.app-simple .app-identity p { margin: 0; }
.app-simple .app-hero h1 { margin-left: auto; margin-right: auto; }
.app-simple .app-lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.app-simple .app-hero .actions, .app-simple .app-facts, .app-simple .app-platform-links { justify-content: center; }
.app-simple .app-overview { margin-top: 0; }
.rf-in { animation: rf-rise .8s var(--ease-out) both; }
.rf-wait { opacity: 0; }

/* 04. Accueil vitrine */
.home-v3 main { display: block; }
.shelf { min-height: calc(100svh - 96px); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 24px 16px 20px; }
.shelf-intro { text-align: center; animation: rf-fade .9s var(--ease-out) both; }
.shelf-intro p { margin: 0; font-size: 11px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--quiet); }
.shelf-intro h1 { margin: 10px 0 0; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.045em; line-height: 1.05; }
.board { --icon: clamp(66px, 16vw, 104px); align-self: center; list-style: none; margin: 0; padding: 36px 0;
  display: grid; grid-template-columns: repeat(4, var(--icon)); gap: clamp(30px,5vw,58px) clamp(20px,5vw,54px); }
@media (max-width: 380px) { .board { --icon: 60px; } }
.slot { position: relative; display: flex; flex-direction: column; align-items: center;
  animation: rf-drop .9s var(--spring) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
.float { animation: rf-bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); }
.app { position: relative; display: block; width: var(--icon); aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; background: var(--card);
  transform: perspective(500px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--lift,0px));
  box-shadow: 0 1px 1px rgba(0,0,0,.18), 0 10px 22px -12px rgba(0,0,0,.45); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.app img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.app::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,0%), rgba(255,255,255,.5), transparent 55%); }
.slot-shadow { width: calc(var(--icon) * .8); height: 10px; margin-top: 4px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.26), transparent); transition: transform .5s var(--ease-out), opacity .5s; }
.slot-name { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .3s, transform .35s var(--ease-out); }
@media (hover: hover) {
  .slot:hover .app, .app:focus-visible { --lift: -12px; box-shadow: 0 2px 4px rgba(0,0,0,.15), 0 30px 34px -20px rgba(0,0,0,.6); }
  .slot:hover .app::after { opacity: 1; }
  .slot:hover .slot-shadow { transform: scale(.7); opacity: .6; }
  .slot:hover .slot-name { color: var(--fg); transform: translateY(2px); }
}
.app:hover { text-decoration: none; }
.app:active { transform: scale(.94); transition-duration: .12s; }
.app:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.shelf-hint { font-size: 12.5px; color: var(--quiet); animation: rf-fade 1s 1.1s var(--ease-out) both; }
.shelf-hint a { color: inherit; }

.home-section { max-width: 980px; margin: 0 auto; padding: 72px 16px; }
.home-section .eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--quiet); }
.home-section h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.05em; line-height: 1.04; margin: 10px 0 16px; }
.home-section > p { max-width: 620px; color: var(--muted); font-size: 17px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillars article { padding: 22px; border-radius: 22px; background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .45s var(--ease-out); }
.pillars article:hover { transform: translateY(-4px); }
.pillars span { font-size: 12px; font-weight: 650; color: var(--quiet); }
.pillars h3 { margin: 8px 0 6px; font-size: 19px; letter-spacing: -.02em; }
.pillars p { margin: 0; color: var(--muted); font-size: 15px; }
.idea { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; padding: 13px 20px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 650; }
.idea:hover { text-decoration: none; transform: translateY(-2px); }

/* 05. Fiche d'une app (accueil) */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; border: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: rgba(10,14,11,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out); }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet-card { position: relative; width: min(360px, 100%); padding: 26px 22px 20px; border-radius: 28px; background: var(--card); color: var(--fg); text-align: center;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); transform: translateY(24px) scale(.96); transition: transform .5s var(--spring); }
.sheet.open .sheet-card { transform: none; }
.sheet-card img { width: 92px; height: 92px; margin: -62px auto 0; border-radius: 22.5%; box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.sheet-card h2 { margin: 14px 0 2px; font-size: 22px; letter-spacing: -.02em; }
.sheet-cat { font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--quiet); }
.sheet-card p { margin: 12px 0 20px; color: var(--muted); }
.sheet-store { display: block; padding: 13px; border-radius: 15px; background: var(--fg); color: var(--bg); font-weight: 650; }
.sheet-store:hover { text-decoration: none; opacity: .9; }
.sheet-page { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--muted); }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 18px; line-height: 1; }

@keyframes rf-drop { 0% { opacity: 0; transform: translateY(-60px) scale(.85); } }
@keyframes rf-bob { 50% { translate: 0 -6px; } }
@keyframes rf-fade { 0% { opacity: 0; } }
@keyframes rf-rise { 0% { opacity: 0; transform: translateY(18px); } }
@keyframes rf-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* 06. Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .rf-wait { opacity: 1; }
}
