/*
 * HelaSpeed — style neumorphique des espaces d'agence (chargé seulement dans une agence, après helaspeed.css).
 * Fond et cartes de la même couleur ; le relief vient de deux ombres (claire en haut à gauche, grise en bas à droite).
 * La bande du haut garde le dégradé de l'agence ; la couleur de l'agence (--c1) sert d'accent.
 */
body.neo {
    --fond: #E4E8EE;
    --carte: #E4E8EE;
    --clair: #FFFFFF;
    --sombre: #C2C9D4;
    --texte: #2B3240;
    --doux: #626B7A;
    --bord: rgba(43, 50, 64, .08);
    --rayon: 22px;
    --relief: 8px 8px 18px var(--sombre), -8px -8px 18px var(--clair);
    --relief-petit: 4px 4px 10px var(--sombre), -4px -4px 10px var(--clair);
    --creux: inset 4px 4px 9px var(--sombre), inset -4px -4px 9px var(--clair);
    --ombre-accent: 0 8px 18px color-mix(in srgb, var(--c1) 35%, transparent);
    font-family: Poppins, "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 14.5px;
    background: var(--fond);
}
.neo h1, .neo h2, .neo h3 { letter-spacing: -.01em; }

/* ---------- cartes ---------- */
.neo .carte {
    background: var(--fond); border: 0; border-radius: var(--rayon); box-shadow: var(--relief); padding: 20px; margin-bottom: 22px;
}
.neo .deux, .neo .grille { gap: 22px; }

/* ---------- champs creusés ---------- */
.neo input[type=text], .neo input[type=password], .neo input[type=tel], .neo input[type=number],
.neo input[type=email], .neo input[type=date], .neo select, .neo textarea {
    background: var(--fond); border: 0; border-radius: 14px; box-shadow: var(--creux);
    padding: 13px 15px; color: var(--texte); font-family: inherit; font-weight: 500;
}
.neo input::placeholder { color: #98A0AE; }
.neo input:focus, .neo select:focus, .neo textarea:focus {
    border: 0; box-shadow: var(--creux), 0 0 0 2px color-mix(in srgb, var(--c1) 55%, transparent);
}
.neo label { color: var(--doux); font-weight: 600; margin-left: 4px; }
.neo .case { color: var(--texte); margin-left: 0; }

/* ---------- boutons en relief ; l'action principale prend le dégradé ---------- */
.neo .bouton {
    background: var(--fond); color: var(--c1); border: 0; border-radius: 14px; box-shadow: var(--relief-petit);
    font-weight: 700; padding: 12px 20px; transition: background .2s, color .2s, box-shadow .2s, transform .1s;
}
.neo .bouton:hover { background: var(--degrade); color: #fff; box-shadow: var(--ombre-accent); filter: none; }
.neo .bouton:active { transform: translateY(1px); }
.neo .bouton.plein, .neo .chercher .bouton, .neo .titre-page .actions .bouton:not(.secondaire) {
    background: var(--degrade); color: #fff; box-shadow: var(--ombre-accent);
}
.neo .bouton.plein:hover, .neo .chercher .bouton:hover { filter: brightness(1.08); }
.neo .bouton.secondaire { background: var(--fond); color: var(--texte); border: 0; box-shadow: var(--relief-petit); }
.neo .bouton.secondaire:hover { background: var(--degrade); color: #fff; }
.neo .bouton.danger { background: var(--fond); color: var(--rouge); border: 0; box-shadow: var(--relief-petit); }
.neo .bouton.danger:hover { background: var(--rouge); color: #fff; box-shadow: 0 8px 18px rgba(200, 55, 45, .3); }
.neo .bouton.petit { padding: 7px 12px; border-radius: 11px; }

/* ---------- tuiles de l'accueil ---------- */
.neo .tuiles { gap: 20px; margin-bottom: 24px; }
.neo .tuile {
    background: var(--fond); color: var(--texte); box-shadow: var(--relief); border-radius: 20px;
    min-height: 0; gap: 10px; justify-content: flex-start; transition: box-shadow .2s;
}
.neo .tuile::after { display: none; }
.neo a.tuile:hover { box-shadow: var(--creux); }
.neo .tuile strong { font-size: 19px; font-weight: 800; line-height: 1.15; }
.neo .tuile span { color: var(--doux); opacity: 1; font-size: 12.5px; }
.neo .tuile .ico {
    width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--relief-petit); display: grid; place-items: center; color: var(--c1);
}
.neo .tuile .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.neo .tuile.grande {
    grid-column: 1 / -1; flex-direction: row; align-items: center; background: var(--degrade); color: #fff; box-shadow: var(--ombre-accent);
}
.neo .tuile.grande .ico { box-shadow: none; background: rgba(255,255,255,.18); color: #fff; }
.neo .tuile.grande span { color: rgba(255,255,255,.82); }
.neo .tuile.grande .fleche { margin-left: auto; font-size: 26px; opacity: .8; font-style: normal; }
.neo .tuile .ico { font-style: normal; }
.neo a.tuile.grande:hover { box-shadow: var(--ombre-accent); filter: brightness(1.08); }
.neo .tuile.alerte { background: linear-gradient(135deg, #C0392B, #7B1E14); color: #fff; box-shadow: 0 8px 18px rgba(192, 57, 43, .3); }
.neo .tuile.alerte span { color: rgba(255,255,255,.85); }
.neo .tuile.bientot { background: var(--fond); border: 0; box-shadow: var(--creux); }

/* ---------- listes, tableaux ---------- */
.neo .liste li { border-bottom: 1px solid var(--bord); }
.neo .tableau th { border-bottom: 1px solid rgba(43, 50, 64, .12); color: var(--doux); }
.neo .tableau td { border-bottom: 1px solid var(--bord); }
.neo .tableau tr:hover td { background: rgba(255, 255, 255, .35); }
.neo .tableau tfoot th { border-top: 1px solid rgba(43, 50, 64, .12); }

/* ---------- pastilles, étiquettes, onglets, pagination ---------- */
.neo .statut, .neo .etiquette { background: var(--fond); box-shadow: var(--relief-petit); }
.neo .etiquette { color: var(--doux); }
.neo .etiquette.on { color: var(--vert); background: var(--fond); }
.neo .etiquette.off { color: var(--rouge); background: var(--fond); }
.neo .onglets { gap: 10px; }
.neo .onglets a, .neo .pagination a, .neo .pagination span {
    background: var(--fond); border: 0; box-shadow: var(--relief-petit); color: var(--texte); border-radius: 99px;
}
.neo .pagination a, .neo .pagination span { border-radius: 12px; }
.neo .onglets a.actif, .neo .pagination .courant { background: var(--degrade); color: #fff; box-shadow: var(--ombre-accent); }

/* ---------- messages ---------- */
.neo .message { border-radius: 16px; box-shadow: var(--relief-petit); }
.neo .message.succes { background: #E2F2EA; }
.neo .message.erreur { background: #F6E4E2; }
.neo .erreurs { border-radius: 14px; background: #F6E4E2; }

/* ---------- blocs creusés ---------- */
.neo .calcul, .neo .resume-periode > div { background: var(--fond); border: 0; box-shadow: var(--creux); border-radius: 16px; }
.neo .separe { border-top-color: rgba(43, 50, 64, .15); }

/* ---------- fiche du transfert ---------- */
.neo .recu .tete-recu { margin: -20px -20px 18px; border-radius: var(--rayon) var(--rayon) 0 0; }
.neo .recu .tete-recu .statut { box-shadow: none; }

/* ---------- connexion de l'agence ---------- */
.neo .ecran-connexion { background: var(--fond); }
.neo .ecran-connexion::before { display: none; }
.neo .ecran-connexion .lisere { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--degrade); }
.neo .ecran-connexion .rond { position: absolute; border-radius: 50%; background: var(--fond); box-shadow: var(--relief); pointer-events: none; }
.neo .boite-connexion { background: var(--fond); box-shadow: var(--relief); border-radius: 26px; padding: 30px 26px 26px; max-width: 380px; z-index: 1; }
.neo .boite-connexion .tete img, .neo .boite-connexion .tete .pastille {
    width: 74px; height: 74px; border-radius: 50%; padding: 9px; background: var(--fond); box-shadow: var(--relief-petit);
    object-fit: contain; color: var(--c1); margin-bottom: 14px;
}
.neo .boite-connexion .tete h1 { font-size: 22px; }
.neo .boite-connexion .bouton.plein { background: var(--fond); color: var(--c1); box-shadow: var(--relief-petit); padding: 14px; }
.neo .boite-connexion .bouton.plein:hover { background: var(--degrade); color: #fff; box-shadow: var(--ombre-accent); filter: none; }
.neo .signature { color: var(--doux); }
.neo .mdp { position: relative; }
.neo .mdp input { padding-right: 46px; }
.neo .mdp .oeil {
    position: absolute; right: 8px; bottom: 7px; width: 34px; height: 34px; border: 0; background: none; cursor: pointer;
    color: var(--doux); display: grid; place-items: center; border-radius: 50%;
}
.neo .mdp .oeil:hover { color: var(--c1); }
.neo .mdp .oeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 560px) {
    .neo .carte { padding: 18px 16px; }
    .neo .tuiles { gap: 16px; }
    .neo .ecran-connexion .rond.grand { width: 110px !important; height: 110px !important; }
}
@media print {
    body.neo { background: #fff; }
    .neo .carte, .neo .tuile, .neo .statut { box-shadow: none; }
}
