
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .result-value.good {
    color: #28a745; /* vert */
}

.result-value.bad {
    color: #dc3545; /* rouge */
}


        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 20px;
            line-height: 1.6;
        }

        header {
            text-align: center;
        }

        h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
        }

        .subtitle {
            font-size: 1.1em;
            opacity: 0.9;
        }

        .main-content {
            padding: 40px 30px;
        }

        .calculator-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .input-section {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 15px;
        }

        .input-group {
            margin-bottom: 25px;
        }

        label {
            display: block;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
            font-size: 1.1em;
        }

        .slider-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        input[type="range"] {
            flex: 1;
            height: 8px;
            border-radius: 5px;
            background: #ddd;
            outline: none;
            -webkit-appearance: none;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
        }

        input[type="range"]::-moz-range-thumb {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
        }

        .value-display {
            min-width: 80px;
            padding: 10px 15px;
            background: white;
            border: 2px solid #ff8c42;
            border-radius: 8px;
            text-align: center;
            font-weight: 700;
            color: #ff6b35;
            font-size: 1.1em;
        }

        .schema-section {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .schema-title {
            color: #ff6b35;
            font-size: 1.2em;
            font-weight: 700;
            margin-bottom: 20px;
            text-align: center;
        }

        .schemas-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .schema-box {
            padding: 15px;
            border-radius: 10px;
        }

        .schema-box svg {
    width: 100%;
    height: auto;
    overflow: visible; /* ajoute ceci */
}


        .schema-macro {
            width: 280px;
        }

        .schema-marche {
            width: 180px;
        }

        .multiplication {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5em;
            font-weight: 700;
            color: #ff6b35;
            padding: 15px 60px;
        }

        svg {
            width: 100%;
            height: auto;
        }

        .draggable {
            cursor: move;
        }

        .draggable:hover {
            filter: brightness(1.2);
        }

        .results-section {
            margin-bottom: 30px;
        }

        .results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .result-card {
            background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
            padding: 20px;
            border-radius: 15px;
            border-left: 5px solid #ff8c42;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        }

        .result-label {
            font-size: 0.85em;
            color: #666;
            margin-bottom: 5px;
        }

        .result-value {
            font-size: 1.6em;
            font-weight: 700;
            color: #ff6b35;
        }

        .result-unit {
            font-size: 0.8em;
            color: #999;
        }

        .calculation-details {
            background: #fff8f0;
            padding: 25px;
            border-radius: 15px;
            border: 2px solid #ff8c42;
            margin-bottom: 30px;
        }

        .calculation-details h3 {
            color: #ff6b35;
            margin-bottom: 15px;
            font-size: 1.4em;
        }

        .formula {
            background: white;
            padding: 15px;
            border-radius: 8px;
            margin: 10px 0;
            font-family: 'Courier New', monospace;
            border-left: 4px solid #ff8c42;
        }

        .validation {
            padding: 15px;
            border-radius: 10px;
            margin-top: 15px;
            font-weight: 600;
        }

        .validation.success {
            background: #d4edda;
            color: #155724;
            border: 2px solid #c3e6cb;
        }

        .validation.warning {
            background: #fff3cd;
            color: #856404;
            border: 2px solid #ffeaa7;
        }

        .educational-section {
            padding: 40px 30px;
            margin-top: 40px;
        }

        .educational-section h2 {
            color: #ff6b35;
            font-size: 2em;
            margin-bottom: 20px;
            text-align: center;
        }

        .educational-content {
            margin: 0 auto;
        }

        .educational-content h3 {
            color: #ff8c42;
            margin-top: 30px;
            margin-bottom: 15px;
            font-size: 1.5em;
        }

        .educational-content p {
            margin-bottom: 15px;
            color: #555;
            text-align: justify;
        }

        .educational-content ul {
            margin: 15px 0 15px 30px;
            color: #555;
        }

        .educational-content li {
            margin-bottom: 10px;
        }

        .highlight-box {
            background: #fff8f0;
            border-left: 5px solid #ff8c42;
            padding: 20px;
            margin: 20px 0;
            border-radius: 5px;
        }

        .info-box {
            background: #e3f2fd;
            border-left: 5px solid #2196f3;
            padding: 15px;
            margin: 20px 0;
            border-radius: 5px;
        }

        @media (max-width: 1024px) {
            .calculator-grid {
                grid-template-columns: 1fr;
            }

            .schemas-container {
                flex-direction: column;
            }
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 1.8em;
            }

            .main-content {
                padding: 20px 15px;
            }

            .results-grid {
                grid-template-columns: 1fr;
            }

            .result-value {
                font-size: 1.4em;
            }

            .slider-container {
                flex-direction: column;
                align-items: stretch;
            }

            .value-display {
                text-align: center;
            }

            .schema-macro {
                width: 100%;
                max-width: 280px;
            }

            .schema-marche {
                width: 100%;
                max-width: 180px;
            }
        }