/* --- STYLES GLOBAUX --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FA;
}
.mono {
    font-family: 'Roboto Mono', monospace;
}

/* --- PAGE D'ACCUEIL --- */
.tool-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #E5E7EB;
    position: relative;
    margin-top: 1rem;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.filter-button {
    transition: background-color 0.2s ease, color 0.2s ease;
}
.new-badge {
    position: absolute;
    top: -14px;
    left: 16px;
    z-index: 10;
}

/* --- OUTIL KARNAUGH --- */
.k-map-grid { font-family: 'Roboto Mono', monospace; }
.output-cell.is-one { background-color: #dbeafe; color: #1e3a8a; }
.output-cell.is-zero { background-color: #fee2e2; color: #991b1b; }
.overline { text-decoration: overline; }
#formatted-equation, #simplified-equation {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1e3a8a;
    min-height: 2rem;
}
.k-map-container {
    display: grid;
    grid-template-areas: ". col-labels" "row-labels grid";
    gap: 4px;
    align-items: center;
    justify-content: center;
}
.k-map-col-labels { grid-area: col-labels; display: flex; }
.k-map-row-labels { 
    grid-area: row-labels; 
    display: flex;
    flex-direction: column;
}
.k-map-grid { grid-area: grid; position: relative; border: 1px solid #94a3b8; }
.k-map-cell {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid #e2e8f0;
}
.k-map-label {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #475569;
}
.k-map-group {
    position: absolute;
    border-radius: 10px;
    pointer-events: none;
    border-width: 3px;
    opacity: 0.7;
    box-sizing: border-box;
}

/* --- OUTIL COMPENSATION --- */
.equation-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}
@media (min-width: 768px) {
    .equation-box {
        font-size: 1rem;
    }
}

/* --- OUTIL CONVERTISSEUR --- */
.input-group:focus-within label, .input-group:focus-within .copy-btn {
    color: #DB2777;
}
.input-group input:focus {
    border-color: #DB2777;
    box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.2);
}

/* --- OUTIL RESISTANCES --- */
.resistor-body {
    background-color: #fde68a;
    border: 2px solid #ca8a04;
    height: 80px;
    width: 250px;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.resistor-lead {
    width: 50px;
    height: 4px;
    background-color: #a1a1aa;
}
.resistor-band {
    width: 12px;
    height: 100%;
    position: absolute;
}
.color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}
