/* STMGusto — Gusto en 3D sur l'accueil (gusto/site.js) */
html.gusto-joue, html.gusto-joue body { overflow: hidden; }
.gusto-voile { position: fixed; inset: 0; background: #2A1409; opacity: 0; pointer-events: none; z-index: 2147482000; }
.gusto-feuille { position: fixed; inset: 0; z-index: 2147482100; transform: translate3d(0, -110%, 0); visibility: hidden; pointer-events: none; will-change: transform; }
.gusto-feuille.visible { visibility: visible; }
.gusto-feuille iframe { display: block; width: 100%; height: 100%; border: 0; background: #FFF1DC; }
.gusto-rouleau { position: absolute; left: -2%; right: -2%; bottom: -15px; height: 24px; border-radius: 12px;
  background: linear-gradient(180deg, #fffaf3 0%, #f1dcc6 38%, #c99f7c 72%, #ead2bb 100%); box-shadow: 0 10px 18px rgba(42,20,9, .38), inset 0 -2px 0 rgba(42,20,9, .18); }
.gusto-toile { position: fixed; left: 0; top: 0; z-index: 2147482200; pointer-events: none; opacity: 0; transition: opacity .2s; }
.gusto-bulle { position: fixed; left: 0; top: 0; z-index: 2147482300; opacity: 0; pointer-events: none; white-space: nowrap; transform-origin: 50% 100%;
  font: 400 clamp(20px, 5.2vw, 30px)/1 Deacon, Figtree, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #2A1409;
  background: #FFF6E5; border: 3px solid #2A1409; border-radius: 18px; padding: 12px 18px 10px; box-shadow: 0 6px 0 #2A1409; }
.gusto-bulle::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 22px; height: 22px; margin-left: -11px; background: #FFF6E5;
  border-right: 3px solid #2A1409; border-bottom: 3px solid #2A1409; transform: rotate(45deg); }

/* la fin de l'accueil */
.gusto-fin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #FFF6E5;
  background: radial-gradient(ellipse 80% 55% at 50% 88%, #7a3413 0%, #3d1808 50%, #1c0a03 100%); }
.gusto-fin-scene { position: absolute; inset: 0; }
.gusto-fin-toile { position: absolute; left: 0; top: 0; }
.gusto-fin-texte { position: absolute; left: 0; right: 0; top: max(14%, 96px); z-index: 2; padding: 0 16px; text-align: center; opacity: 0; pointer-events: none; }
.gusto-fin-ouverte .gusto-fin-texte { animation: gustoTape .6s cubic-bezier(.2, 1.5, .4, 1) .05s forwards; }
@keyframes gustoTape { 0% { opacity: 0; transform: scale(1.7) rotate(-5deg); } 55% { opacity: 1; transform: scale(.95) rotate(1.2deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.gusto-fin-sur { margin: 0 0 .6em; font: 600 clamp(13px, 3.2vw, 16px)/1 Figtree, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #F7B27A; }
.gusto-fin-titre { margin: 0; font: 400 clamp(52px, 12.5vw, 150px)/.86 Deacon, Figtree, sans-serif; text-transform: uppercase; letter-spacing: .01em; color: #FFF6E5; text-shadow: 0 .06em 0 rgba(0, 0, 0, .28); }
.gusto-fin-quand { margin: .45em 0 0; font: 400 clamp(24px, 5.6vw, 56px)/1 Deacon, Figtree, sans-serif; text-transform: uppercase; color: #FF8A3D; }
.gusto-fin-ou { margin: .7em auto 0; max-width: 30em; font: 500 clamp(15px, 3.6vw, 20px)/1.35 Figtree, sans-serif; color: rgba(255,246,229, .85); }
.gusto-verre { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 2147483000; transition: opacity .6s; }
.gusto-verre.cache { opacity: 0; }
.gusto-flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 2147483001; }
.gusto-flash.go { animation: gustoFlash .24s ease-out; }
@keyframes gustoFlash { 0% { opacity: .8; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gusto-fin-texte { opacity: 1; animation: none !important; } }
.gusto-depoli { position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; opacity: 0; -webkit-backdrop-filter: blur(2px) brightness(1.12) saturate(.7); backdrop-filter: blur(2px) brightness(1.12) saturate(.7); transition: opacity .6s; }
.gusto-depoli.go { opacity: 1; }
.gusto-depoli.go.cache { opacity: 0; }
.gusto-glitch { animation: gustoGlitch .32s steps(2, end); }
@keyframes gustoGlitch { 0% { filter: contrast(1.8) saturate(2.2) hue-rotate(-25deg); } 30% { filter: contrast(1.3) saturate(1.6) hue-rotate(20deg) invert(.08); } 60% { filter: contrast(1.6) brightness(1.3); } 100% { filter: none; } }
@media (min-aspect-ratio: 11/10) {
  .gusto-fin-texte { top: 0; bottom: 0; left: 6%; right: auto; width: 50%; display: flex; flex-direction: column; justify-content: center; text-align: left; transform-origin: 25% 50%; }
  .gusto-fin-titre { font-size: clamp(56px, 7.4vw, 140px); }
  .gusto-fin-quand { font-size: clamp(24px, 3.1vw, 54px); }
  .gusto-fin-ou { margin-left: 0; }
}
.gusto-feuille.attend { transform: translate3d(0, calc(-100% + 22px), 0); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.gusto-feuille.attend .gusto-rouleau { animation: gustoRoule 0.9s ease-in-out infinite; }
@keyframes gustoRoule { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.gusto-voile { transition: opacity .3s; }

/* Gusto te présente la carte (coucou.js) */
.elementor-element-0e032e3 { position: relative; overflow: visible !important; }
.gusto-coucou { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .25s; }
.gusto-coucou-bulle { --q: 50%; position: absolute; left: 0; top: 0; z-index: 5; opacity: 0; pointer-events: none; white-space: nowrap; transform-origin: var(--q) 100%;
  font: 400 clamp(15px, 3.9vw, 21px)/1 Deacon, Figtree, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #2A1409;
  background: #FFF6E5; border: 3px solid #2A1409; border-radius: 16px; padding: 10px 14px 8px; box-shadow: 0 5px 0 #2A1409; }
.gusto-coucou-bulle::after { content: ""; position: absolute; left: var(--q); bottom: -12px; width: 18px; height: 18px; margin-left: -9px; background: #FFF6E5;
  border-right: 3px solid #2A1409; border-bottom: 3px solid #2A1409; transform: rotate(45deg); }
.gusto-joue .gusto-coucou, .gusto-joue .gusto-coucou-bulle { opacity: 0 !important; transition: none; }
/* retour immédiat au tap vers la carte, le temps que Gusto arrive */
html.g-patiente:not(.gusto-joue) body::after { content: ""; position: fixed; left: 0; top: 0; z-index: 2147483001; width: 100%; height: 4px;
  background: linear-gradient(90deg, #FF4A1F, #FFC233); transform-origin: 0 50%; animation: gustoCharge 2.6s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes gustoCharge { from { transform: scaleX(0); } to { transform: scaleX(.9); } }
/* la carte posée (pas de rechargement) : la feuille devient la page, on peut la faire défiler et cliquer dedans */
.gusto-feuille.posee { transform: none !important; pointer-events: auto; visibility: visible; }
.gusto-feuille.posee .gusto-rouleau { opacity: 0; transition: opacity .3s; }
.gusto-feuille.remonte { transition: transform .65s cubic-bezier(.65, 0, .35, 1) !important; }
html.g-sur-carte, html.g-sur-carte body { overflow: hidden !important; }
html.g-sur-carte .gusto-coucou, html.g-sur-carte .gusto-coucou-bulle { visibility: hidden; }
/* l'écran cassé du bas ne reste pas par-dessus la carte qui descend (ni par-dessus la carte posée) */
html.gusto-joue .gusto-verre, html.gusto-joue .gusto-depoli, html.gusto-joue .gusto-flash,
html.g-sur-carte .gusto-verre, html.g-sur-carte .gusto-depoli, html.g-sur-carte .gusto-flash { visibility: hidden !important; }
html.gusto-joue .gusto-fin-toile, html.g-sur-carte .gusto-fin-toile { visibility: hidden; }
