/* ════════════════════════════════════════════════════════════════════════════
   Socle commun des animations de la page d'accueil (sauf le planning, qui a le sien).
   Scène 1280×720 (format vidéo) mise à l'échelle du cadre par anim-kit.js.
   - .web-* : habillage des pages du site (ruban coloré, fond bleuté, cartes blanches, tableaux)
   - .ph-*  : habillage de l'application mobile (thème sombre)
   ════════════════════════════════════════════════════════════════════════════ */
@import url('/styles/font-inter.css');

:root {
    --f: "Inter", "Segoe UI", system-ui, sans-serif;
    --ink: #263238;
    --muted: #78909c;
    --line: #e3e8ee;
    --blue: #1e88e5;
    --green: #2e7d32;
    --orange: #ef6c00;
    --red: #e53935;
    --accent: #1e88e5;
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #e9edf2; color: var(--ink); font-family: var(--f); }

.vp { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
html:not(.embed) .vp { background: #fff; }
/* Intégrée : fond transparent, sinon un liseré blanc d'un demi-pixel apparaît autour de la scène mise à l'échelle */
html.embed, html.embed body { background: transparent; overflow: hidden; }
html:not(.embed) .vp { max-width: 1280px; margin: 24px auto; border-radius: 12px; box-shadow: 0 18px 50px rgba(20, 40, 60, .25); }
.stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; }
.abs { position: absolute; }
.hide { display: none !important; }

/* ── Curseur, clic, légende, pause, revoir, titre d'ouverture ── */
#cursor { position: absolute; width: 22px; height: 22px; z-index: 90; left: 640px; top: 760px; pointer-events: none; transition-property: left, top; transition-timing-function: cubic-bezier(.45, .05, .3, 1); }
#cursor svg { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: transform .12s; }
#cursor.press svg { transform: scale(.82); }
.ripple { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 3px solid var(--accent); z-index: 89; pointer-events: none; animation: ak-rip .45s ease-out forwards; }
@keyframes ak-rip { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

#caption { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(10px); max-width: 1100px; background: rgba(22, 34, 46, .92); color: #fff; font-size: 20px; font-weight: 600; padding: 12px 26px; border-radius: 999px; z-index: 80; opacity: 0; transition: opacity .35s, transform .35s; white-space: nowrap; }
#caption.on { opacity: 1; transform: translateX(-50%); }

#paused { position: absolute; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; background: rgba(15, 25, 35, .35); color: #fff; font-size: 90px; pointer-events: none; }
#paused.on { display: flex; }
#replay { position: absolute; inset: 0; z-index: 96; display: none; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: rgba(15, 25, 35, .5); color: #fff; font: 700 34px var(--f); cursor: pointer; }
#replay.on { display: flex; }
#replay span { width: 150px; height: 150px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 80px; padding-left: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.cover { position: absolute; inset: 0; z-index: 85; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: #fff; background: linear-gradient(135deg, #1b3446, #2f6f8f); opacity: 0; pointer-events: none; transition: opacity .45s; }
.cover.on { opacity: 1; }
.cover .k { font-size: 18px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #ffca28; }
.cover .big { font-size: 56px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.cover .sub { font-size: 24px; color: rgba(255, 255, 255, .85); max-width: 900px; }
.cover .go { display: none; margin-top: 18px; padding: 16px 34px; border-radius: 999px; background: linear-gradient(135deg, #ffca28, #ffa000); color: #1b3446; font-size: 24px; font-weight: 800; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); animation: ak-go 1.8s ease-in-out infinite; }
.cover.wait { pointer-events: auto; cursor: pointer; }
.cover.wait .go { display: inline-block; }
@keyframes ak-go { 50% { transform: scale(1.05); } }
.cover .ico { width: 92px; height: 92px; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 50px; background: rgba(255, 255, 255, .12); }

.vp.nomouse, .vp.nomouse * { cursor: none !important; }
.vp { cursor: pointer; }

/* Onglets cliquables (option tabs d'AnimKit.start) : en haut de la scène, au-dessus du titre d'ouverture */
.ak-tabs { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 92; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(15, 22, 32, .78); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .3s; }
.ak-tabs.on { opacity: 1; pointer-events: auto; }
.ak-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: 16px; cursor: pointer; transition: background-color .2s, color .2s; white-space: nowrap; }
.ak-tab i { font-style: normal; }
.ak-tab:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ak-tab.on { background: #fff; color: #18212c; }
.ak-tab:not(.on) { animation: ak-tabhint 2.4s ease-in-out infinite; }
@keyframes ak-tabhint { 50% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); } }
.ak-tabs-hint { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 4px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); white-space: nowrap; }
/* La main pointe vers les onglets, à sa gauche */
.ak-tabs-hint i { display: inline-block; font-style: normal; transform: rotate(-90deg); }

/* Apparitions */
.fx { opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.fx.in { opacity: 1; transform: none; }
@keyframes ak-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ak-flash { 0% { background: #fff59d; } 100% { background: transparent; } }
.flash { animation: ak-flash 1.4s ease-out; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: currentColor; animation: ak-blink 1s steps(1) infinite; }
@keyframes ak-blink { 50% { opacity: 0; } }

/* ════════ Habillage « site web » ════════ */
.web { position: absolute; inset: 0; background: linear-gradient(120deg, #e3ecf1 0%, #a9c6d4 45%, #5f93ae 100%); font-size: 14px; }
.web-rib { position: absolute; left: 0; right: 0; top: 0; height: 34px; display: flex; align-items: stretch; background: var(--rib, #37474f); color: var(--rib-ink, #fff); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); z-index: 5; }
.web-rib .menu { width: 42px; display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: .85; }
.web-rib .ttl { display: flex; align-items: center; padding: 0 16px 0 4px; font-weight: 800; font-size: 14px; border-right: 1px solid rgba(255, 255, 255, .25); }
.web-rib .t { display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; opacity: .92; }
.web-rib .t.on { background: #fff; color: #263238; opacity: 1; border-radius: 4px 4px 0 0; margin-top: 3px; }
.web-rib .sp { flex: 1; }
.web-rib .url { display: flex; align-items: center; padding: 0 16px; font-size: 11.5px; font-weight: 700; opacity: .8; }
.web-rib .badge { background: #ff7043; color: #fff; border-radius: 4px; padding: 2px 8px; margin-left: 4px; font-size: 11px; }

.web-h1 { position: absolute; display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 800; color: #263238; }
.web-h1 small { display: block; font-size: 14px; font-weight: 500; color: #546e7a; margin-top: 2px; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(20, 40, 60, .12); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: 14px; background: #eef2f6; color: #263238; white-space: nowrap; }
.btn.blue { background: var(--blue); color: #fff; box-shadow: 0 4px 10px rgba(30, 136, 229, .35); }
.btn.green { background: #43a047; color: #fff; }
.btn.ghost { background: #fff; border: 1px solid var(--line); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.seg { display: inline-flex; background: #eef2f6; border-radius: 10px; padding: 4px; gap: 2px; }
.seg span { padding: 6px 14px; border-radius: 7px; font-weight: 600; font-size: 13px; color: #546e7a; }
.seg span.on { background: #fff; color: #1a237e; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.srch { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid #cfd8dc; border-radius: 8px; color: #90a4ae; background: #fff; font-size: 14px; }
.srch .tx { color: #263238; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #607d8b; background: #f6f8fb; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
.tbl tr { transition: opacity .3s, background-color .3s; }
.tbl tr.out { display: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { background: #f6f8fb; font-weight: 700; color: #546e7a; border-bottom: 0; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.red { background: #ffebee; color: #c62828; }
.pill.orange { background: #fff3e0; color: #e65100; }
.pill.green { background: #e8f5e9; color: #2e7d32; }
.pill.blue { background: #e3f2fd; color: #1565c0; }
.pill.grey { background: #eceff1; color: #546e7a; }
.pill.solid-red { background: #e53935; color: #fff; }
.pill.solid-orange { background: #fb8c00; color: #fff; }
.pill.solid-green { background: #43a047; color: #fff; }

.kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.kpi .ic { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #eef2f6; }
.kpi small { display: block; font-size: 12.5px; color: #546e7a; font-weight: 600; }
.kpi b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Fenêtre modale du site */
.modal-bg { position: absolute; inset: 0; background: rgba(20, 30, 40, .45); z-index: 30; opacity: 0; transition: opacity .3s; pointer-events: none; }
.modal-bg.on { opacity: 1; }
.modal { position: absolute; z-index: 31; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); padding: 22px 26px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .3s, transform .3s; }
.modal.on { opacity: 1; transform: none; }
.modal h3 { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.fld { margin-bottom: 14px; }
.fld label { display: block; font-size: 12px; font-weight: 700; color: #607d8b; margin-bottom: 5px; }
.fld .in { min-height: 38px; padding: 9px 12px; border: 1px solid #cfd8dc; border-radius: 8px; font-size: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.fld .in.focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 136, 229, .18); }
.fld .in .ph { color: #b0bec5; }

/* Notification (toast) */
.toast { position: absolute; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px; background: #263238; color: #fff; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.toast.on { opacity: 1; transform: none; }
.toast .ic { font-size: 22px; }

/* ════════ Habillage « application mobile » (thème sombre) ════════ */
.phone { position: absolute; width: 330px; height: 676px; border-radius: 44px; background: #0b0f14; padding: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 2px #2b3440; }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #111821; color: #e8edf3; font-size: 13px; }
.ph-status { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 12px; font-weight: 700; color: #fff; }
.ph-status::before { content: ""; position: absolute; left: 50%; top: 9px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #000; }
.ph-head { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-weight: 700; font-size: 14.5px; color: #fff; }
.ph-head .back { opacity: .8; }
.ph-head .sp { flex: 1; }
.ph-head .av { width: 22px; height: 22px; border-radius: 50%; background: #3b82f6; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ph-body { position: absolute; left: 0; right: 0; top: 74px; bottom: 0; padding: 4px 12px 16px; overflow: hidden; }
.ph-card { background: #18212c; border: 1px solid #253141; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.ph-card.accent { border-left: 3px solid var(--c, #ef5350); }
.ph-card .row { display: flex; align-items: center; gap: 10px; }
.ph-card b { color: #fff; font-weight: 700; }
.ph-card small { display: block; color: #93a1b3; font-size: 11.5px; margin-top: 2px; }
.ph-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: #242f3d; flex-shrink: 0; }
.ph-chev { margin-left: auto; color: #6b7a8d; font-size: 16px; }
.ph-tabs { display: flex; gap: 6px; padding: 4px 12px 10px; font-size: 12px; color: #93a1b3; white-space: nowrap; }
.ph-tabs span { padding: 6px 10px; border-radius: 999px; }
.ph-tabs span.on { background: #2563eb; color: #fff; font-weight: 700; }
.ph-tabs i { font-style: normal; display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 4px; border-radius: 8px; background: rgba(255, 255, 255, .25); font-size: 10.5px; text-align: center; }
.ph-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 10px; background: #2f7cf6; color: #fff; font-weight: 700; font-size: 13.5px; }
.ph-btn.green { background: #22a35a; }
.ph-chip { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; border: 1px solid #2c3949; color: #dbe3ec; font-size: 12.5px; margin: 0 6px 8px 0; transition: background-color .2s, border-color .2s; }
.ph-chip.on { background: #2f7cf6; border-color: #2f7cf6; color: #fff; font-weight: 700; }
.ph-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; background: #1b2532; border-radius: 20px 20px 0 0; padding: 10px 16px 18px; box-shadow: 0 -12px 30px rgba(0, 0, 0, .5); transform: translateY(105%); transition: transform .4s cubic-bezier(.3, .7, .3, 1); }
.ph-sheet.on { transform: none; }
.ph-sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: #3a4757; margin: 0 auto 12px; }
.ph-dim { position: absolute; inset: 0; z-index: 9; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ph-dim.on { opacity: 1; }
.ph-line { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: #111821; border: 1px solid #253141; margin-bottom: 8px; }
.ph-line small { color: #93a1b3; }
.ph-notif { position: absolute; left: 10px; right: 10px; top: 36px; z-index: 20; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(40, 50, 64, .97); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); transform: translateY(-140%); transition: transform .45s cubic-bezier(.3, .7, .3, 1); font-size: 12px; }
.ph-notif.on { transform: none; }
.ph-notif img { width: 30px; height: 30px; border-radius: 8px; }
.ph-notif b { display: block; font-size: 12.5px; }
