/* Socle des écrans adhérents (connexion, séance d'essai, espace) : typographie, mise en page et composants
   de la maquette absents de la boîte à outils, limités à .issy-app. */
.issy-app { font-family: var(--f-texte); font-size: var(--fs-base); line-height: 1.6; color: var(--c-encre); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.issy-app *, .issy-app *::before, .issy-app *::after { box-sizing: border-box; }
.issy-app [hidden] { display: none !important; }
.issy-app img, .issy-app svg, .issy-app video { display: block; max-width: 100%; }
.issy-app img { height: auto; }
.issy-app input, .issy-app button, .issy-app textarea, .issy-app select { font: inherit; color: inherit; }
.issy-app button { cursor: pointer; background: none; border: 0; padding: 0; }
.issy-app a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.issy-app :where(p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd) { margin: 0; }
.issy-app :where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }
.issy-app hr { border: 0; border-top: 1px solid var(--c-ligne); margin: var(--sp-6) 0; }
.issy-app :where(h1, h2, h3, h4) { font-family: var(--f-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; color: var(--c-abysse); text-wrap: balance; }
.issy-app :where(h1) { font-size: var(--fs-3xl); font-stretch: 108%; }
.issy-app :where(h2) { font-size: var(--fs-2xl); font-stretch: 104%; }
.issy-app :where(h3) { font-size: var(--fs-lg); font-weight: 750; }
.issy-app :where(h4) { font-size: var(--fs-md); font-weight: 700; }
.issy-app :where(p) { text-wrap: pretty; }
.issy-app :focus-visible { outline: 3px solid var(--c-issy); outline-offset: 3px; border-radius: 6px; }
.issy-app .is-dark :focus-visible { outline-color: var(--c-chlore); }
.issy-app .is-dark { background: var(--c-abysse); color: #dbe6fb; }
.issy-app .is-dark h1, .issy-app .is-dark h2, .issy-app .is-dark h3, .issy-app .is-dark h4 { color: #fff; }
.issy-app [data-act="samedi"] { --act: var(--c-marine); }

.issy-app .container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.issy-app .cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, var(--sp-3)); align-items: center; }

.issy-app .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-chrono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-issy); }
.issy-app .eyebrow::before { content: ""; width: 30px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) right center / 3px 12px no-repeat, linear-gradient(currentColor, currentColor) left center / 100% 3px no-repeat; border-radius: 2px; }
.issy-app .eyebrow__dist { color: var(--c-brume); white-space: nowrap; }
.issy-app .is-dark .eyebrow { color: var(--c-chlore); }
.issy-app .is-dark .eyebrow__dist { color: #6f86b3; }

.issy-app .icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--c-abysse); text-decoration: none; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.issy-app .icon-btn:hover { background: var(--c-ecume); color: var(--c-issy); }
.issy-app .icon-btn:active { transform: scale(0.94); }

.issy-app .waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(60px, 9vw, 130px); pointer-events: none; overflow: hidden; }
.issy-app .waves svg { width: 200%; max-width: none; height: 100%; }
.issy-app .waves path { animation: issy-wave-drift var(--d, 18s) linear infinite; }
.issy-app .waves .w1 { --d: 26s; fill: var(--c-bassin); opacity: 0.45; }
.issy-app .waves .w2 { --d: 18s; fill: var(--c-issy); opacity: 0.8; animation-direction: reverse; }
.issy-app .waves .w3 { --d: 13s; fill: var(--wave-fill, var(--c-carrelage)); }
@keyframes issy-wave-drift { to { transform: translateX(-1440px); } }

.issy-app .duo { position: relative; overflow: hidden; background: var(--c-abysse); isolation: isolate; }
.issy-app .duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(1.08); mix-blend-mode: screen; opacity: 0.92; }
.issy-app .duo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(160deg, #c8f4ff, #74d3f6 40%, #3f86ee 100%); mix-blend-mode: multiply; }

/* Barre d'application mobile (même dessin que la barre d'onglets du site) */
.issy-app .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: none; grid-template-columns: repeat(5, 1fr); background: rgb(255 255 255 / 0.94); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border-top: 1px solid var(--c-ligne); box-shadow: 0 -8px 24px -12px rgb(6 26 58 / 0.18); }
.issy-app .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 0.68rem; font-weight: 650; color: var(--c-ardoise); text-decoration: none; position: relative; min-width: 0; }
.issy-app .tabbar a > span:last-of-type { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 2px; }
.issy-app .tabbar a .icon { width: 22px; height: 22px; }
.issy-app .tabbar a[aria-current="page"] { color: var(--c-issy); }
.issy-app .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-issy); }
.issy-app .tabbar__cta { margin-top: -22px; }
.issy-app .tabbar__cta span:first-child { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--c-bassin), var(--c-issy) 60%); box-shadow: var(--sh-issy), 0 0 0 5px #fff; }
.issy-app .tabbar .tabbar__cta { color: var(--c-issy); }
@media (max-width: 1023px) { .issy-app .tabbar { display: grid; } }

/* Action d'un créneau du planning (essai ou présence) */
.issy-app .issy-slot-action { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.issy-app .issy-slot-action small { font-size: 0.74rem; color: var(--c-ardoise); }
.issy-app .issy-slot-action { max-width: 100%; }
.issy-app .issy-slot-action .btn { max-width: 100%; min-height: 30px; padding: 4px 10px; white-space: normal; text-align: left; line-height: 1.15; }
.issy-app .issy-slot-action .btn.is-done { --btn-bg: var(--c-succes-bg); --btn-fg: var(--c-succes); }

/* Pot de miel des formulaires publics */
.issy-app .es-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .issy-app *, .issy-app *::before, .issy-app *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
