/* =============================================================
   CRM Photobooth — Thème JOUR
   Se charge APRÈS app.css et n'écrase que les couleurs.
   Aucune structure, aucun espacement, aucune typo n'est touché.
   Pour revenir au thème nuit : retirer le <link> dans layout.php.

   Palette alignée sur la charte SocialBooth Party :
   Crème #FCF5EC (fond) · Encre #1A1222 (texte) · Flash pink (CTA)
   ============================================================= */

:root {
    /* Inversion des surfaces : le plus sombre devient le plus clair */
    --ink:        #fcf5ec;   /* Crème — fond de page */
    --ink-2:      #ffffff;   /* surfaces : cartes, panneaux, sidebar */
    --ink-3:      #f3e9db;   /* surfaces hautes : hover, badges neutres */
    --line:       #e4d9c9;   /* bordures */
    --paper:      #1a1222;   /* Encre — texte principal */
    --muted:      #6d6480;   /* texte secondaire (contraste 5.3:1 sur crème) */

    /* Accents redescendus en luminosité pour rester lisibles sur clair */
    --accent:     #c9235c;   /* Flash pink assombri — CTA + texte d'accent */
    --accent-2:   #f0a91b;   /* jaune projecteur — RÉSERVÉ aux remplissages */
    --accent-ink: #9a6a00;   /* équivalent lisible en texte (voir bloc plus bas) */
    --mint:       #0a7f58;   /* succès */
    --danger:     #c4271c;   /* erreur */

    --shadow:     0 14px 32px -16px rgba(26,18,34,.22);
}

/* ---------- Ombres & lueurs (pensées pour un fond noir) ---------- */
.auth-mark { filter: none; }
.brand-mark { filter: none; }
.btn-primary { box-shadow: 0 6px 16px -8px rgba(201,35,92,.55); }
.field-input:focus { box-shadow: 0 0 0 3px rgba(201,35,92,.16); }
.bell-panel { box-shadow: 0 10px 28px rgba(26,18,34,.14); }
.dc-tooltip { box-shadow: 0 6px 16px rgba(26,18,34,.16); }

/* ---------- Dégradés (le 2e stop était calibré pour le sombre) ---------- */
.btn-primary { background: linear-gradient(135deg, var(--accent), #e8457a); }
.planning-occ,
.legend-occ { background: linear-gradient(135deg, var(--accent), #e8457a); }

/* ---------- Champs ---------- */
.field-input::placeholder { color: #9b94a8; }
.field-input { background: #fffdf9; }

/* ---------- Tableaux : corps blanc sous l'en-tête blanc ---------- */
.table-wrap { background: var(--ink-2); }
.log-besoin-table td { border-bottom: 1px solid rgba(26,18,34,.07); }

/* ---------- Rouges : les variantes claires deviennent illisibles ---------- */
.alert-error,
.btn-danger,
.field-error,
.conflit-title,
.bc-badge-down { color: #8c1d18; }
.dc-complet,
.dc-badge-full,
.etat-ko,
.log-qte-crit,
.log-stock-crit { color: #b42318 !important; }

/* ---------- Verts ---------- */
.dc-libre { color: #067647; }
.etat-ok  { color: #067647; }
.btn-vert:hover { background: #096848 !important; }
.card-active,
.card-status,
.suivi-card.is-complete,
.roi-card.is-amortie,
.finance-kpi-ok,
.badge-principal,
.bc-badge-up,
.tl-log .tl-dot,
.log-besoin-ok { border-color: rgba(10,127,88,.32); }
.card-status    { background: rgba(10,127,88,.1); }
.badge-principal { background: rgba(10,127,88,.12); }
.bc-badge-up    { background: rgba(10,127,88,.12); }
.log-besoin-ok  { background: rgba(10,127,88,.07); }

/* ---------- Oranges / jaunes ---------- */
.dc-rare,
.dc-badge-rare { color: #b54708; }
.etat-warn,
.txt-warn { color: #b54708; }

/* Le jaune projecteur reste vif pour les barres et jauges,
   mais tout usage en TEXTE passe sur l'ambre foncé. */
.entreprise-block legend,
.card-status-soon,
.prefs-label,
.kanban-card-budget,
.suivi-card-pct,
.bar-value,
.todo-montant,
.evt-badge { color: var(--accent-ink); }

/* ---------- Roses / accent ---------- */
.kpi-box-accent,
.finance-kpi-solde { border-color: rgba(201,35,92,.35); }
.annexe-cat { background: rgba(201,35,92,.1); }
.bc-dot-a { background: #5b54a8; }
.bc-line-a { stroke: #5b54a8; }

/* ---------- Transparences blanches héritées du sombre ---------- */
.tc-badge { background: rgba(26,18,34,.08); }
.todo-list li { border-bottom: 1px solid rgba(26,18,34,.07); }
.planning-cell.is-weekend { background: rgba(26,18,34,.035); }

/* ---------- Page d'authentification ---------- */
.auth-body {
    background:
        radial-gradient(circle at 20% 20%, rgba(201,35,92,.10), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(240,169,27,.12), transparent 40%),
        var(--ink);
}

/* ---------- Focus clavier visible (le thème sombre s'appuyait
             sur les lueurs, qui ont disparu ici) ---------- */
.btn:focus-visible,
.nav-item:focus-visible,
.link:focus-visible,
.back-link:focus-visible,
.tache-check:focus-visible,
.bell-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
