/* MODULE SUGGESTIONS — variables héritées de public.css */
[hidden] { display: none !important; }

.sg-intro { margin-bottom: 14px; padding: 14px; border-radius: 16px; background: var(--primary); color: #fff; border-bottom: 4px solid var(--secondary); }
.sg-intro p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--gold-light); }
.sg-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 600; }

.sg-list { display: grid; gap: 10px; margin-top: 4px; }
.sg-card { padding: 10px 12px; border-radius: 16px; background: var(--white); border: 1px solid var(--border); box-shadow: 0 5px 14px rgba(21,35,30,.05); }
.sg-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.sg-row + .sg-row { border-top: 1px dashed var(--border); }
.sg-state { flex: none; width: 20px; text-align: center; font-size: 14px; }
.sg-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--primary); overflow-wrap: anywhere; }
.sg-row-ex .sg-text { font-size: 13.5px; font-weight: 500; font-style: italic; color: var(--muted); }

.sg-listen, .sg-mic { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; font-size: 18px; cursor: pointer; }
.sg-listen { background: var(--primary); color: var(--secondary); }
.sg-listen.playing { background: var(--secondary); color: var(--primary); }
.sg-mic { background: var(--secondary); color: var(--primary); }
.sg-mic.full { opacity: .45; }
.sg-nb { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 700; background: var(--primary); color: var(--gold-light); border: 2px solid var(--white); }

.sg-overlay { position: fixed; inset: 0; z-index: 1500; background: rgba(21,35,30,.55); }
.sg-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; max-width: 560px; margin: 0 auto; padding: 12px 20px 26px; text-align: center; border-radius: 24px 24px 0 0; background: var(--white); border-top: 4px solid var(--secondary); box-shadow: 0 -10px 30px rgba(21,35,30,.25); }
.sg-handle { width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 5px; background: var(--border); }
.sg-sheet h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--primary); overflow-wrap: anywhere; }
.sg-hint { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.sg-timer { font-size: 34px; font-weight: 800; color: var(--primary); }
.sg-meter { height: 8px; margin: 8px 0 16px; border-radius: 8px; background: var(--border); overflow: hidden; }
.sg-meter div { height: 100%; width: 0; background: var(--secondary); }
.sg-rec { width: 78px; height: 78px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; font-size: 32px; cursor: pointer; background: var(--primary); color: var(--secondary); box-shadow: 0 8px 20px rgba(21,35,30,.3); }
.sg-rec.on { background: #b3402f; color: #fff; animation: sgPulse 1.1s infinite; }
@keyframes sgPulse { 0% { box-shadow: 0 0 0 0 rgba(179,64,47,.5); } 100% { box-shadow: 0 0 0 20px rgba(179,64,47,0); } }
#recPreview { width: 100%; margin-top: 4px; }
.sg-actions { display: flex; gap: 10px; margin-top: 14px; }
.sg-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; border: 0; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; background: var(--primary); color: var(--secondary); }
.sg-btn-light { background: var(--white); color: var(--primary); border: 1px solid var(--border); }
.sg-btn:disabled { opacity: .5; }
.sg-close { margin-top: 12px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }

/* Enregistrement direct : navigation et connexion */
.sg-nav { display: flex; gap: 8px; margin-top: 12px; }
.sg-nav a { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; text-decoration: none; background: var(--secondary); color: var(--primary); }
.sg-login-page { min-height: 100vh; display: grid; place-items: center; padding: 18px; background: var(--page-bg); }
.sg-login { width: 100%; max-width: 380px; padding: 26px 22px; text-align: center; border-radius: 22px; background: var(--white); border-top: 5px solid var(--secondary); box-shadow: 0 14px 30px rgba(21,35,30,.15); }
.sg-login-icon { width: 62px; height: 62px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 18px; font-size: 28px; background: var(--primary); color: var(--secondary); }
.sg-login h1 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--primary); }
.sg-login p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.sg-login input { width: 100%; margin-bottom: 12px; padding: 13px 14px; border: 2px solid var(--border); border-radius: 12px; font: inherit; }
.sg-login input:focus { outline: none; border-color: var(--secondary); }
.sg-login .sg-btn { width: 100%; }
.sg-login-error { margin-bottom: 12px; padding: 10px; border-radius: 10px; font-size: 13.5px; background: #fbeae7; color: #8c2f21; }
