/* Page « Signaler un incident » */
:root { --sg-green: #087a19; --sg-green-soft: #eaf6ee; --sg-ink: #17241a; --sg-muted: #5d6d63; --sg-line: #e3ebe6; --sg-red: #c8342b; --sg-orange: #ff5c00; }
body.sg-page { background: #f4f7f5; color: var(--sg-ink); }

/* Bandeau de réassurance qui chevauche le hero */
.sg-trust { margin-top: -46px; position: relative; z-index: 3; }
.sg-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sg-trust-item { background: #fff; border-radius: 16px; padding: 1.15rem 1.3rem; display: flex; gap: 1rem; align-items: center; box-shadow: 0 10px 30px rgba(23,36,26,.12); border: 1px solid var(--sg-line); }
.sg-trust-item .ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #0a9a20, #087a19); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.sg-trust-item b { display: block; font-size: 1rem; line-height: 1.25; }
.sg-trust-item span { font-size: .82rem; color: var(--sg-muted); line-height: 1.4; }
@media (max-width: 860px) { .sg-trust-grid { grid-template-columns: 1fr; gap: .6rem; } .sg-trust { margin-top: -30px; } }
@media (max-width: 576px) {
  .sg-trust-item { padding: .7rem .9rem; gap: .75rem; border-radius: 12px; box-shadow: 0 4px 14px rgba(23,36,26,.1); }
  .sg-trust-item .ic { width: 38px; height: 38px; border-radius: 10px; font-size: 1.05rem; }
  .sg-trust-item b { font-size: .92rem; }
  .sg-trust-item span { font-size: .75rem; }
  .sg-wrap { padding-top: 1.4rem; }
}

.sg-wrap { padding: 2.2rem 0 3rem; }
.sg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
@media (max-width: 992px) { .sg-grid { grid-template-columns: 1fr; } }

/* Formulaire */
.sg-card { background: #fff; border: 1px solid var(--sg-line); border-radius: 20px; box-shadow: 0 6px 24px rgba(23,36,26,.06); overflow: hidden; }
.sg-card-head { padding: 1.8rem 2rem 1.3rem; border-bottom: 1px solid var(--sg-line); background: linear-gradient(135deg, #f6fdf8 0%, #fff 70%); }
.sg-card-head h2 { font-size: 1.55rem; font-weight: 800; margin: 0 0 .5rem; letter-spacing: -.01em; }
.sg-card-head p { margin: 0; color: var(--sg-muted); line-height: 1.7; font-size: .95rem; }
.sg-form { padding: 0 2rem 2rem; }
@media (max-width: 576px) { .sg-card-head, .sg-form { padding-left: 1.2rem; padding-right: 1.2rem; } }

.sg-step { padding: 1.8rem 0 0; }
.sg-step + .sg-step { border-top: 1px dashed var(--sg-line); margin-top: 1.8rem; }
.sg-step-title { display: flex; align-items: center; gap: .85rem; font-size: 1.08rem; font-weight: 800; margin: 0 0 1.1rem; }
.sg-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--sg-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 800; }

/* Tuiles de catégorie */
.sg-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (max-width: 576px) { .sg-tiles { grid-template-columns: 1fr; } }
.sg-tile input { position: absolute; opacity: 0; pointer-events: none; }
.sg-tile label { display: flex; align-items: center; gap: .85rem; height: 100%; padding: .85rem 1rem; border: 1.5px solid var(--sg-line); border-radius: 14px; background: #fff; cursor: pointer; transition: all .18s ease; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.sg-tile label i { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: var(--sg-green-soft); color: var(--sg-green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; transition: all .18s ease; }
.sg-tile label:hover { border-color: #9fd2ac; background: #fbfefc; }
.sg-tile input:focus-visible + label { outline: 3px solid rgba(8,122,25,.35); outline-offset: 2px; }
.sg-tile input:checked + label { border-color: var(--sg-green); background: var(--sg-green-soft); box-shadow: 0 0 0 3px rgba(8,122,25,.12); }
.sg-tile input:checked + label i { background: var(--sg-green); color: #fff; }

/* Champs */
.sg-form .form-control, .sg-form .form-select { border-radius: 12px; border: 1.5px solid #d6e2db; padding: .75rem 1rem; }
.sg-form .form-control:focus { border-color: var(--sg-green); box-shadow: 0 0 0 .2rem rgba(8,122,25,.15); }
.sg-form label.fl { font-weight: 700; font-size: .85rem; margin-bottom: .4rem; }
.sg-count { text-align: right; font-size: .75rem; color: var(--sg-muted); margin-top: .3rem; }

/* Choix de l'anonymat */
.sg-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (max-width: 576px) { .sg-modes { grid-template-columns: 1fr; } }
.sg-mode input { position: absolute; opacity: 0; pointer-events: none; }
.sg-mode label { display: flex; gap: .9rem; align-items: flex-start; height: 100%; padding: 1rem 1.1rem; border: 1.5px solid var(--sg-line); border-radius: 14px; cursor: pointer; transition: all .18s ease; }
.sg-mode label i { font-size: 1.5rem; color: var(--sg-green); margin-top: .1rem; }
.sg-mode label b { display: block; font-size: .95rem; }
.sg-mode label span { font-size: .8rem; color: var(--sg-muted); line-height: 1.4; }
.sg-mode input:checked + label { border-color: var(--sg-green); background: var(--sg-green-soft); box-shadow: 0 0 0 3px rgba(8,122,25,.12); }
.sg-mode input:focus-visible + label { outline: 3px solid rgba(8,122,25,.35); outline-offset: 2px; }
#sg-contact-box { margin-top: 1rem; padding: 1.1rem 1.2rem; background: #f7faf8; border: 1px solid var(--sg-line); border-radius: 14px; }

.sg-danger { display: flex; gap: .8rem; background: #fff4ec; border: 1px solid #ffd9bf; border-radius: 14px; padding: .95rem 1.1rem; font-size: .86rem; line-height: 1.5; margin-top: 1.8rem; }
.sg-danger i { color: var(--sg-red); font-size: 1.2rem; }
.sg-submit { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.sg-submit .btn { background: var(--sg-green); border: none; border-radius: 12px; padding: .95rem 2.2rem; font-weight: 800; font-size: 1rem; color: #fff; box-shadow: 0 8px 20px rgba(8,122,25,.25); transition: transform .18s, box-shadow .18s; }
.sg-submit .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(8,122,25,.32); background: #066614; }
.sg-submit small { color: var(--sg-muted); font-size: .78rem; display: flex; align-items: center; gap: .4rem; flex: 1 1 220px; line-height: 1.4; }

/* Colonne latérale */
.sg-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 992px) { .sg-aside { position: static; } }
.sg-side { background: #fff; border: 1px solid var(--sg-line); border-radius: 18px; padding: 1.4rem 1.5rem; }
.sg-side h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sg-green); font-weight: 800; margin: 0 0 1.1rem; }
.sg-how { list-style: none; margin: 0; padding: 0; position: relative; }
.sg-how li { display: flex; gap: .9rem; position: relative; padding-bottom: 1.15rem; font-size: .88rem; line-height: 1.5; }
.sg-how li:last-child { padding-bottom: 0; }
.sg-how li::before { content: attr(data-n); flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--sg-green-soft); color: var(--sg-green); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; z-index: 1; }
.sg-how li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--sg-line); }
.sg-contact-line { display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; line-height: 1.5; }
.sg-contact-line + .sg-contact-line { margin-top: .95rem; padding-top: .95rem; border-top: 1px solid var(--sg-line); }
.sg-contact-line i { color: var(--sg-green); font-size: 1.15rem; margin-top: .1rem; }
.sg-contact-line a { color: var(--sg-green); font-weight: 700; word-break: break-all; }

/* Engagements */
.sg-commit { margin-top: 2.5rem; }
.sg-commit h2 { font-size: 1.25rem; font-weight: 800; text-align: center; margin-bottom: 1.2rem; }
.sg-commit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
@media (max-width: 860px) { .sg-commit-grid { grid-template-columns: 1fr; } }
.sg-commit-item { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--sg-line); border-radius: 14px; padding: .95rem 1.1rem; font-size: .88rem; font-weight: 600; line-height: 1.45; }
.sg-commit-item i { color: var(--sg-green); font-size: 1.15rem; }

/* Confirmation */
.sg-done { max-width: 720px; margin: 0 auto; text-align: center; padding: 3rem 2rem; }
.sg-done .big { width: 84px; height: 84px; border-radius: 50%; background: var(--sg-green-soft); color: var(--sg-green); display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem; margin-bottom: 1.2rem; }
.sg-refbox { display: inline-flex; align-items: center; gap: .9rem; background: #f7faf8; border: 1.5px dashed #9fd2ac; border-radius: 14px; padding: .8rem 1.2rem; margin: 1.1rem 0 .6rem; }
.sg-ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; letter-spacing: .06em; font-weight: 800; color: var(--sg-green); }
.sg-refbox button { border: 1px solid var(--sg-line); background: #fff; border-radius: 10px; padding: .45rem .8rem; font-weight: 700; font-size: .8rem; cursor: pointer; }
.sg-refbox button:hover { background: var(--sg-green-soft); }
