/* ==================================================
   F4MAG – Calculateur de dipôle V inversé
   Intégration MH Magazine Lite
   ================================================== */

.f4mag-dipole {
    font-family: inherit;
    margin: 1.5em 0;
}

/* ---------- FORMULAIRE ---------- */

.f4mag-dipole-form {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.f4mag-dipole .form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.f4mag-dipole label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.f4mag-dipole input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.f4mag-dipole .form-radio {
    margin-top: 15px;
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.f4mag-dipole .form-buttons {
    margin-top: 15px;
    text-align: center;
}

.f4mag-dipole button {
    background: #1565c0;
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 3px;
    cursor: pointer;
}

.f4mag-dipole button:hover {
    background: #0d47a1;
}

/* ---------- RÉSULTATS ---------- */

.f4mag-dipole-results {
    background: #f9fafb;
    border-left: 4px solid #1565c0;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 14px;
}

.f4mag-dipole-results p {
    margin: 6px 0;
}

/* ---------- SVG ---------- */

.f4mag-dipole-svg {
    width: 100%;
    height: auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
}


.f4mag-svg-fullscreen {
    margin-bottom: 10px;
    background: #444;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
}




.f4mag-dipole-svg.fullscreen {
    position: fixed;
    top: 3%;
    left: 3%;
    width: 94%;
    height: 94%;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
    cursor: zoom-out;
}

.f4mag-dipole-svg.fullscreen:hover {
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}


.f4mag-dipole-svg.fullscreen {
    cursor: zoom-out;
}

.f4mag-dipole-svg.fullscreen::after {
    content: "Cliquer pour fermer (ESC)";
    position: fixed;
    bottom: 20px;
    right: 30px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 10000;
}




/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
    .f4mag-dipole .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .f4mag-dipole .form-row {
        grid-template-columns: 1fr;
    }

    .f4mag-dipole .form-radio {
        flex-direction: column;
        gap: 10px;
    }
}
.f4mag-svg-pdf i {
    margin-right: 12px;
}
.f4mag-export-mmanna i {
    margin-right: 6px;
	margin-left: 6px;
}
.f4mag-svg-pdf {
    margin-left: 10px;
	margin-right: 10px;
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
}

.f4mag-svg-pdf:hover {
    background: #1b5e20;
}
