/* ============================================================
   PATCH ACCESSIBILITÉ - DALTONISME
   Remplace toutes les teintes vertes (#f5a030, #e8820c cyan-vert)
   par du bleu électrique (#e8820c) lisible par tous.
   ============================================================ */

/* ---- REMPLACEMENT DES VARIABLES GLOBALES ---- */
:root {
    --magnus-green:      #e8820c;          /* Était #e8820c (cyan-vert) → bleu électrique */
    --magnus-green-dark: #c06a08;
    --magnus-green-glow: rgba(201, 162, 39, 0.4);
    --magnus-green-soft: rgba(201, 162, 39, 0.1);
    --magnus-green-border: rgba(201, 162, 39, 0.25);
}

/* ---- PORTAIL / INDEX ---- */
.portal-container h1 {
    color: #e8820c !important;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.4) !important;
}

.portal-subtitle {
    color: #e8820c !important;
}

.portal-logo {
    filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.5)) !important;
}

.menu-card:hover:not(.locked) {
    border-color: #e8820c !important;
    box-shadow: 0 15px 30px rgba(232, 130, 12, 0.15) !important;
}

/* ---- LIENS RETOUR & NAVIGATION ---- */
.back-link,
.back-btn {
    color: #e8820c !important;
}

/* ---- BORDURES & CADRES ---- */
.sheet-container,
.popup-content {
    border-color: #e8820c !important;
}

/* ---- INPUTS FOCUS ---- */
input:focus,
textarea:focus,
select:focus {
    border-color: #e8820c !important;
    outline-color: #e8820c !important;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(232, 130, 12, 0.15) !important;
}

/* ---- AUTOCOMPLETE HOVER ---- */
.autocomplete-item:hover {
    background: #0284c7 !important; /* Bleu plus profond */
    color: white !important;
}

/* ---- CONSTAT - focus border ---- */
input:focus, textarea:focus {
    border-color: #e8820c !important;
}

/* ---- TOUTES LES OCCURRENCES HARD-CODÉES de #f5a030 ---- */

/* Titres de sections cyan */
[style*="color: #f5a030"],
[style*="color:#f5a030"] {
    color: #e8820c !important;
}

/* Bordures cyan */
[style*="border-color: #f5a030"],
[style*="border-color:#f5a030"],
[style*="border: 4px solid #f5a030"],
[style*="border: 2px solid #f5a030"] {
    border-color: #e8820c !important;
}

/* Texte dans les h3/labels qui était cyan */
.mode-btn.active {
    border-color: #e8820c !important;
    color: #e8820c !important;
    background: rgba(201, 162, 39, 0.1) !important;
}

/* Boutons principaux (générer, copier, etc.) */
.btn-generate,
.btn-copy,
.btn-primary {
    background: #e8820c !important;
    color: #071525 !important;
}

.btn-generate:hover,
.btn-copy:hover,
.btn-primary:hover {
    background: var(--magnus-green-dark) !important;
}

/* ---- APTITUDE - cadre iframe ---- */
.sheet-container {
    border-color: #e8820c !important;
    box-shadow: 0 10px 40px rgba(232, 130, 12, 0.3) !important;
}

/* ---- DIAGNOSTICS & CALCULATRICE ---- */
.time-badge {
    background: rgba(201, 162, 39, 0.08) !important;
    border-color: rgba(201, 162, 39, 0.2) !important;
    color: #e8820c !important;
}

.check-yes {
    color: #e8820c !important;
}

.total-amount {
    color: #e8820c !important;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.4) !important;
}

.total-band {
    border-color: #e8820c !important;
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.1) !important;
}


.calc-card-header.soins {
    background: rgba(201, 162, 39, 0.07) !important;
    color: #e8820c !important;
    border-bottom-color: rgba(201, 162, 39, 0.2) !important;
}

.calc-item:has(input:checked) .item-price {
    color: #e8820c !important;
}

.summary-header {
    color: #e8820c !important;
}

.summary-tag b {
    color: #e8820c !important;
}

.summary-tag {
    background: rgba(201, 162, 39, 0.08) !important;
    border-color: rgba(201, 162, 39, 0.2) !important;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #e8820c !important;
    color: #e8820c !important;
    background: rgba(201, 162, 39, 0.05) !important;
}

.result-count b {
    color: #e8820c !important;
}

.search-input:focus {
    border-color: #e8820c !important;
}

mark {
    background: rgba(201, 162, 39, 0.2) !important;
    color: #e8820c !important;
}

.card-subtotal {
    color: #e8820c !important;
}