/* Formulaires EuKolos (pages /f/…, blocs de site, saisie interne) — couleur d'accent : --ef-accent (/f/<id>/style.css) */
[hidden] { display: none !important; }
:root { --ef-accent: #E95960; }
.ef-body { margin: 0; background: #F5F7FC; font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1D2433; line-height: 1.5; }
.ef-body.ef-embed { background: transparent; }
.ef-page { max-width: 760px; margin: 0 auto; padding: 28px 18px 40px; }
.ef-embed .ef-page { padding: 6px 4px 12px; }
.ef-page-head h1 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 32px); color: #003350; } .ef-by { margin: 0 0 18px; color: #6C7280; font-size: 14px; }
.ef-page-foot { margin-top: 22px; text-align: center; font-size: 12px; color: #6C7280; } .ef-page-foot a { color: inherit; }
.ef-form { background: #fff; border: 1px solid #E1E4F0; border-radius: 16px; padding: 24px; box-shadow: 0 14px 40px rgba(0, 30, 60, .06); display: flex; flex-direction: column; gap: 4px; text-align: left; color: #1D2433; }
.ef-form.ef-w-large { max-width: none; }
.ef-step { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 16px; min-width: 0; }
.ef-step > legend { font-weight: 700; font-size: 18px; color: #003350; margin-bottom: 10px; padding: 0; width: 100%; }
.ef-field { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ef-field.ef-half { flex: 1 1 calc(50% - 8px); }
.ef-label { font-weight: 600; font-size: 14px; } .ef-label abbr { color: var(--ef-accent); text-decoration: none; }
.ef-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .ef-form select, .ef-form textarea {
  font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #CDD3E1; border-radius: 10px; background: #fff; color: inherit; width: 100%; box-sizing: border-box; }
.ef-form input:focus, .ef-form select:focus, .ef-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--ef-accent) 25%, transparent); border-color: var(--ef-accent); }
.ef-form input[type=file] { font-size: 14px; }
.ef-help { color: #6C7280; font-size: 12.5px; }
.ef-opts { display: flex; flex-direction: column; gap: 6px; } .ef-opt { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.ef-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ef-accent); flex: none; }
.ef-check { font-size: 14px; }
.ef-heading { width: 100%; margin: 10px 0 0; font-size: 17px; color: #003350; } .ef-paragraph { width: 100%; color: #4a5263; font-size: 14px; } .ef-paragraph p { margin: 0 0 6px; }
.ef-sep { width: 100%; border: 0; border-top: 1px solid #E1E4F0; margin: 6px 0; }
.ef-desc { color: #4a5263; margin-bottom: 8px; } .ef-desc p { margin: 0 0 8px; }
.ef-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.ef-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; } .ef-rating span { font-size: 30px; color: #CDD3E1; cursor: pointer; transition: color .1s; }
.ef-rating label:hover span, .ef-rating label:hover ~ label span, .ef-rating input:checked ~ span, .ef-rating label:has(input:checked) ~ label span { color: #f5a623; }
.ef-rating input:focus-visible + span { outline: 2px solid var(--ef-accent); border-radius: 4px; }
.ef-sign { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ef-sign canvas { width: 100%; max-width: 600px; height: auto; aspect-ratio: 10 / 3; border: 1px dashed #9aa3b5; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.ef-clear { border: 0; background: none; color: #6C7280; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
.ef-err { color: #c0392b; font-size: 13px; font-weight: 600; } .ef-invalid input, .ef-invalid select, .ef-invalid textarea { border-color: #c0392b !important; }
.ef-errors { background: #fdecec; color: #8a1c1c; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 8px; }
.ef-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.ef-nav button { font: inherit; font-weight: 700; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--ef-accent); cursor: pointer; }
.ef-submit, .ef-next { background: var(--ef-accent); color: #fff; } .ef-prev { background: #fff; color: var(--ef-accent); margin-right: auto; }
.ef-nav button:disabled { opacity: .6; cursor: wait; }
.ef-progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; counter-reset: s; }
.ef-progress li { flex: 1; font-size: 12.5px; font-weight: 600; color: #8a92a3; border-top: 4px solid #E1E4F0; padding-top: 6px; counter-increment: s; }
.ef-progress li::before { content: counter(s) ". "; } .ef-progress li.on { color: #1D2433; border-color: var(--ef-accent); }
.ef-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ef-done { background: #e7f6ee; color: #12623d; border-radius: 14px; padding: 22px; font-weight: 600; text-align: center; }
.ef-done.ef-ko { background: #fdf2dc; color: #8a5a10; } .ef-done p { margin: 0; }
.ef-preview-banner { background: #F9D24D; color: #3d2f00; text-align: center; font-size: 13px; font-weight: 700; padding: 6px; border-radius: 8px; margin-bottom: 10px; }
@media (max-width: 600px) { .ef-field.ef-half { flex-basis: 100%; } .ef-form { padding: 18px; } }
