/* comp_carre.css — styles for the completing-the-square widget
 * All rules are scoped to .comp_carre to avoid collisions with the host site.
 */

.comp_carre {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    max-width: 860px;
    margin: 28px auto;
    line-height: 1.5;
}

/* ── headings ────────────────────────────────────────────────── */

.comp_carre h2 {
    text-align: center;
    margin: 0 0 18px;
    font-size: 1.25rem;
}

/* ── info boxes ──────────────────────────────────────────────── */

.comp_carre .cc-box {
    background: #f4f7ff;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 14px;
    transition: background 0.2s;
}

.comp_carre .cc-box:hover {
    background: #eaf0ff;
}

/* ── formula display ─────────────────────────────────────────── */

.comp_carre .cc-formula {
    text-align: center;
    font-size: 1.15rem;
    line-height: 2.8;
    margin-top: 10px;
}

/* ── inputs ──────────────────────────────────────────────────── */

.comp_carre input {
    width: 60px;
    text-align: center;
    margin: 0 4px;
    padding: 4px 6px;
    border: 1px solid #bbc;
    border-radius: 5px;
    font-size: inherit;
    font-family: inherit;
    background: #f8f9fc;
    vertical-align: middle;
    transition: border-color 0.15s, background 0.15s;
}

.comp_carre input:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
}

/* ── select ──────────────────────────────────────────────────── */

.comp_carre select {
    padding: 4px 6px;
    border-radius: 5px;
    border: 1px solid #bbc;
    background: #fff;
    font-size: inherit;
    vertical-align: middle;
    cursor: pointer;
    margin: 0 4px;
}

/* ── buttons ─────────────────────────────────────────────────── */

.comp_carre button {
    padding: 9px 18px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    margin: 12px auto;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.comp_carre button:hover {
    background: #2980b9;
}
