/* EgaMaker Mire de Gravure Generator — egamaker.be (même style que le Générateur Laser) */

.ega-laser-generator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 880px;
    margin: 0 auto;
    color: #1a1a2e;
    position: relative;
}

/* ── Header ── */
.ega-laser-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 24px 32px 28px;
    border-radius: 12px 12px 0 0;
}
.ega-laser-header h2 {
    margin: 0 0 6px;
    font-size: 1.45em;
    font-weight: 700;
    color: #fff !important;
    border: none !important;
    padding: 0 !important;
}
.ega-laser-header p { margin: 0; opacity: 0.85; font-size: 0.93em; }

/* ── Sections ── */
.ega-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 22px 28px;
}
.ega-section h3 {
    margin: 0 0 14px;
    font-size: 1.02em;
    font-weight: 600;
    color: #2d3748;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.ega-hint {
    font-size: 0.81em;
    color: #718096;
    margin: -6px 0 14px;
    font-style: italic;
}

/* ── Layout ── */
.ega-row { display: flex; gap: 20px; flex-wrap: wrap; }
.ega-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 110px; }

/* ── Inputs ── */
.ega-laser-generator label {
    font-size: 0.8em;
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ega-laser-generator input[type="number"] {
    padding: 8px 11px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 0.93em;
    color: #2d3748;
    background: #f7fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.ega-laser-generator input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.13);
    background: #fff;
}

/* ── Preview ── */
.ega-preview {
    margin-top: 7px;
    min-height: 26px;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}
.ega-preview-label { color: #718096; font-style: italic; margin-right: 3px; }
.ega-step {
    background: #fff;
    border: 1px solid #c6f6d5;
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 600;
    color: #276749;
    font-size: 0.9em;
}

/* ── Bouton ── */
.ega-submit-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 22px 28px;
    text-align: center;
    border-radius: 0 0 12px 12px;
}
.ega-btn-generate {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    border: none;
    padding: 13px 34px;
    font-size: 1.03em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 15px rgba(229,62,62,0.32);
}
.ega-btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229,62,62,0.42);
}
.ega-btn-generate:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── Erreur ── */
.ega-error {
    margin-top: 10px;
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 9px 14px;
    border-radius: 7px;
    font-size: 0.88em;
}

/* ── Footer ── */
.ega-footer-note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.8em;
    color: #a0aec0;
}
.ega-footer-note a { color: #3182ce; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 580px) {
    .ega-laser-header { padding: 18px 16px 22px; }
    .ega-section { padding: 16px 14px; }
    .ega-row { flex-direction: column; gap: 14px; }
    .ega-btn-generate { width: 100%; }
}
