/* v114 — Page de connexion, page d'accueil « Bonjour », sablage. */

/* ── Connexion ── */
.cx-page { position: relative; min-height: 80vh; }
.cx-fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cx-trait { position: absolute; height: 46px; border-radius: 30px; opacity: .14; filter: blur(1px);
            animation: cx-glisse 14s ease-in-out infinite alternate; }
.cx-trait-1 { width: 70vw; top: 12vh; left: -10vw; background: #c0392b; transform: rotate(-8deg); }
.cx-trait-2 { width: 60vw; top: 58vh; right: -12vw; background: #2f7fb5; transform: rotate(6deg); animation-delay: -5s; }
.cx-trait-3 { width: 45vw; top: 82vh; left: 8vw; background: #e0a800; transform: rotate(-3deg); animation-delay: -9s; }
@keyframes cx-glisse { to { translate: 6vw 2vh; } }
.cx-carte { position: relative; }
.cx-salut { text-align: center; margin: 0 0 4px; font-weight: 600; color: var(--texte-2, #6b7280); min-height: 1.3em; }
.cx-titre { cursor: default; user-select: none; transition: transform .6s; }
.cx-sous-titre { text-align: center; margin: -8px 0 16px; color: var(--texte-2, #6b7280); }
.cx-logo { cursor: pointer; transition: filter .6s; }
.cx-secoue { animation: cx-secoue .25s; }
@keyframes cx-secoue { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.cx-sable-logo { filter: grayscale(1) brightness(1.6) contrast(.6); }
.cx-coule { animation: cx-coule 2.4s ease-in forwards; }
@keyframes cx-coule { 60% { transform: skewY(4deg) scaleY(1.15); filter: blur(.6px); } 100% { transform: none; } }
.cx-fait { display: block; width: 100%; margin-top: 14px; padding: 10px 14px; text-align: left; border: 0;
           border-radius: 14px; background: var(--carte, #fff); color: var(--texte, #1b2430);
           box-shadow: 0 2px 10px rgba(0,0,0,.06); font: inherit; font-size: .88rem; cursor: pointer; }
.cx-fait:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.cx-maj { margin: 4px 0 0; color: #b07a1e; }
.cx-bulle { position: fixed; left: 50%; bottom: 8vh; translate: -50% 0; z-index: 90; padding: 10px 18px;
            border-radius: 30px; background: #1b2430; color: #fff; font-weight: 600; box-shadow: 0 8px 26px rgba(0,0,0,.3);
            animation: cx-monte .35s ease-out; transition: opacity .5s; max-width: 90vw; text-align: center; }
.cx-bulle-fin { opacity: 0; }
@keyframes cx-monte { from { translate: -50% 30px; opacity: 0; } }
.cx-goutte { position: fixed; top: -30px; z-index: 80; pointer-events: none; animation: cx-tombe linear forwards; }
.cx-sable { color: #c8a978; }
.cx-neige { color: #9fc3e6; }
@keyframes cx-tombe { to { transform: translateY(110vh) rotate(160deg); } }
.cx-tache { position: fixed; z-index: 85; pointer-events: none; border-radius: 47% 53% 41% 59% / 52% 44% 56% 48%;
            opacity: .85; transform: scale(0); animation: cx-tache 4.2s ease-out forwards; }
@keyframes cx-tache { 8% { transform: scale(1.1); } 14% { transform: scale(1); } 80% { opacity: .85; } 100% { transform: scale(1); opacity: 0; } }

/* ── Accueil ── */
.bj-tete { margin: 6px 0 16px; }
.bj-tete h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; letter-spacing: -.02em; }
.bj-date { margin: 0; color: var(--texte-2, #6b7280); font-weight: 600; text-transform: none; }
.bj-message { margin: 6px 0 0; font-size: 1.05rem; }
.bj-raccourcis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bj-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bj-tuile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px;
            background: var(--carte, #fff); box-shadow: 0 2px 10px rgba(0,0,0,.06); color: inherit;
            text-decoration: none; transition: transform .15s, box-shadow .15s; min-width: 0; }
a.bj-tuile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.bj-icone { font-size: 1.3rem; }
.bj-valeur { font-size: 1.9rem; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.bj-sous { font-size: .8rem; color: var(--texte-2, #6b7280); }
.bj-actu { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--trait, #dcdfe6); }
.bj-actu:first-of-type { border-top: 0; }
.bj-actu h3 { margin: 0 0 4px; font-size: 1.02rem; }
.bj-actu p { margin: 0 0 4px; white-space: pre-line; }
.bj-actu-icone { font-size: 1.6rem; line-height: 1; }
.bj-epinglee { background: linear-gradient(90deg, rgba(224,168,0,.08), transparent); border-radius: 10px; padding-left: 8px; }
.bj-actu-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.bj-actu-form input, .bj-actu-form textarea { margin: 0; }
.bj-pour { border: 1px solid var(--trait, #dcdfe6); border-radius: 10px; padding: 6px 10px; margin: 0; }
.bj-actu-dates { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bj-actu-dates input[type=date] { width: auto; margin: 0; }
.ac-matrice td, .ac-matrice th { padding: 4px 8px; }
.ac-actu { border-top: 1px solid var(--trait, #dcdfe6); padding: 8px 0; }
.ac-inactive { opacity: .55; }
@media (max-width: 760px) {
  .bj-tuiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bj-tuile { padding: 10px 12px; border-radius: 14px; }
  .bj-valeur { font-size: 1.4rem; }
  .bj-raccourcis .btn { flex: 1 1 45%; text-align: center; }
}

/* ── Le sablage ── */
.sablage { position: fixed; inset: 0; z-index: 9999; cursor: pointer; transition: opacity .45s; }
.sablage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sablage-fin { opacity: 0; }
