/* Charte Covestro : dégradé bleu → cyan → vert (identité colorée vive). */

:root {
    --cov-bleu: #0072ce;
    --cov-cyan: #00b8ec;
    --cov-vert: #8dc63f;
    --cov-degrade: linear-gradient(90deg, var(--cov-bleu), var(--cov-cyan), var(--cov-vert));
}

body {
    background: #f5f8fb;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Fine bande dégradée en haut de chaque page (signature Covestro). */
.bandeau-covestro {
    height: 6px;
    background: var(--cov-degrade);
}

.marque {
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

/* Titre en dégradé (utilisé si le logo n'est pas disponible). */
.texte-degrade {
    background: var(--cov-degrade);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.navbar .nav-link.active {
    color: var(--cov-bleu);
    font-weight: 600;
    border-bottom: 3px solid var(--cov-cyan);
}

/* Cartes compteurs du tableau de bord */
.carte-compteur {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 40, 80, 0.08);
    transition: transform .15s;
}
.carte-compteur:hover { transform: translateY(-2px); }
.carte-compteur .chiffre { font-size: 2.2rem; font-weight: 700; }
.carte-compteur .liseret {
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--cov-degrade);
}

/* Badges d'état des factures */
.badge-traitee   { background: #2e9e5b; }
.badge-a-traiter { background: #8b97a3; }
.badge-ref       { background: #d64545; }

/* Boutons principaux au dégradé Covestro */
.btn-covestro {
    background: var(--cov-degrade);
    color: white;
    border: none;
    font-weight: 600;
}
.btn-covestro:hover { color: white; filter: brightness(1.06); }

/* Tableaux */
.table-factures th { white-space: nowrap; font-size: .85rem; }
.table-factures td { font-size: .9rem; vertical-align: middle; }
.montant { text-align: right; font-variant-numeric: tabular-nums; }

/* Page de connexion */
.page-connexion {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #003a70 0%, var(--cov-bleu) 45%, var(--cov-cyan) 80%, var(--cov-vert) 100%);
}
.carte-connexion {
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    width: 100%;
    max-width: 430px;
    overflow: hidden;
}
.carte-connexion .entete {
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid transparent;
    border-image: var(--cov-degrade) 1;
}
.btn-google {
    background: white;
    border: 1px solid #ddd;
    color: #444;
    font-weight: 500;
    transition: box-shadow .2s;
}
.btn-google:hover { box-shadow: 0 2px 8px rgba(0,0,0,.15); }
