/* SBG Comparatif LAMal — reprend le style actuel du site (thème Total, Source Sans Pro, bleu SBG) */
.sbgl {
  --sbgl-blue: #244c91;
  --sbgl-blue-dark: #1b3a70;
  --sbgl-blue-light: #eef3fb;
  --sbgl-green: #1f8a4c;
  --sbgl-green-light: #e8f6ee;
  --sbgl-cta: #e8742a;
  --sbgl-cta-dark: #cf6120;
  --sbgl-text: #555;
  --sbgl-dark: #222;
  --sbgl-border: #e0e0e0;
  --sbgl-bg: #f7f7f7;
  color: var(--sbgl-text);
  margin: 40px 0 20px;
  font-size: 16px;
  line-height: 1.5;
}
.sbgl *, .sbgl *::before, .sbgl *::after { box-sizing: border-box; }
.sbgl [hidden] { display: none !important; }

.sbgl-hero { border-top: 3px solid var(--sbgl-blue); padding-top: 24px; margin-bottom: 20px; }
.sbgl-title { color: var(--sbgl-dark); font-size: 1.6em; margin: 0 0 8px; line-height: 1.25; }
.sbgl-annee { color: var(--sbgl-blue); }
.sbgl-lead { margin: 0 0 12px; font-size: 1.05em; }
.sbgl-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .95em; }
.sbgl-trust li { padding-left: 22px; position: relative; color: var(--sbgl-dark); }
.sbgl-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--sbgl-green); font-weight: 700; }

.sbgl-card { background: #fff; border: 1px solid var(--sbgl-border); border-radius: 3px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* Étapes */
.sbgl-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 8px; counter-reset: none; }
.sbgl-steps li { flex: 1; font-size: .9em; color: #999; padding-bottom: 8px; border-bottom: 3px solid var(--sbgl-border); margin: 0; }
.sbgl-steps li span { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--sbgl-border); color: #fff; font-size: .8em; align-items: center; justify-content: center; margin-right: 4px; font-weight: 700; }
.sbgl-steps li.is-active { color: var(--sbgl-blue); border-color: var(--sbgl-blue); font-weight: 600; }
.sbgl-steps li.is-active span { background: var(--sbgl-blue); }
.sbgl-steps li.is-done { color: var(--sbgl-green); border-color: var(--sbgl-green); }
.sbgl-steps li.is-done span { background: var(--sbgl-green); }

.sbgl-step { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.sbgl-step legend { font-size: 1.15em; font-weight: 600; color: var(--sbgl-dark); margin-bottom: 12px; padding: 0; }

/* Champs (même rendu que Contact Form 7 du site) */
.sbgl-field { margin-bottom: 14px; position: relative; flex: 1; min-width: 0; }
.sbgl-field label, .sbgl-label { display: block; font-weight: 600; color: var(--sbgl-dark); margin-bottom: 4px; font-size: .95em; }
.sbgl .req, .sbgl .opt { font-weight: 400; color: #888; }
.sbgl input[type=text], .sbgl input[type=email], .sbgl input[type=tel], .sbgl select, .sbgl textarea {
  width: 100%; max-width: 100%; font: inherit; font-size: 16px; color: #616161; background: #fff;
  border: 1px solid var(--sbgl-border); border-radius: 3px; padding: 8px 10px; height: auto; line-height: 1.4; margin: 0;
}
.sbgl input:focus, .sbgl select:focus, .sbgl textarea:focus { outline: none; border-color: var(--sbgl-blue); box-shadow: 0 0 0 2px rgba(36,76,145,.15); }
.sbgl input.is-valid { border-color: var(--sbgl-green); background: var(--sbgl-green-light); }
.sbgl-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sbgl-row > .sbgl-field { flex: 1 1 200px; }
.sbgl-row > .sbgl-small { flex: 0 0 130px; }
.sbgl-hint { font-size: .88em; color: #888; margin: 4px 0 0; }
.sbgl-loc-info { color: var(--sbgl-green); font-weight: 600; }
.sbgl-center { text-align: center; }
.sbgl-npa input { font-size: 18px; padding: 12px 14px; }

/* Suggestions NPA */
.sbgl-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--sbgl-border); border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 280px; overflow-y: auto; }
.sbgl-suggest li { padding: 8px 12px; cursor: pointer; margin: 0; border-bottom: 1px solid #f2f2f2; }
.sbgl-suggest li span { color: #999; font-size: .9em; }
.sbgl-suggest li.is-active, .sbgl-suggest li:hover { background: var(--sbgl-blue-light); }
.sbgl-suggest .sbgl-empty { color: #999; cursor: default; }

/* Personnes */
.sbgl-person { background: var(--sbgl-bg); border: 1px solid #eee; border-radius: 3px; padding: 14px 16px 2px; margin-bottom: 12px; }
.sbgl-person-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--sbgl-dark); }
.sbgl-badge { font-size: .8em; background: var(--sbgl-blue-light); color: var(--sbgl-blue); border-radius: 20px; padding: 1px 10px; }
.sbgl-badge:empty { display: none; }
.sbgl-remove { margin-left: auto; background: none; border: 0; color: #999; cursor: pointer; font: inherit; font-size: .9em; text-decoration: underline; padding: 0; }
.sbgl-remove:hover { color: #c00; }
.sbgl-toggle { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sbgl-toggle label { font-weight: 400; display: flex; align-items: baseline; gap: 6px; margin: 0; cursor: pointer; }
.sbgl-toggle small { color: #888; }
.sbgl-add { background: none; border: 1px dashed var(--sbgl-blue); color: var(--sbgl-blue); border-radius: 3px; padding: 10px 14px; width: 100%; cursor: pointer; font: inherit; font-weight: 600; }
.sbgl-add:hover { background: var(--sbgl-blue-light); }

/* Modèles */
.sbgl-models { display: flex; flex-wrap: wrap; gap: 8px; }
.sbgl-chip { font-weight: 400 !important; display: inline-flex !important; align-items: center; gap: 6px; border: 1px solid var(--sbgl-border); border-radius: 20px; padding: 5px 12px; cursor: pointer; margin: 0 !important; background: #fff; }
.sbgl-chip:has(input:checked) { border-color: var(--sbgl-blue); background: var(--sbgl-blue-light); color: var(--sbgl-blue); }
.sbgl-check { display: flex !important; gap: 8px; align-items: baseline; font-weight: 400 !important; margin: 10px 0 !important; cursor: pointer; }

/* Boutons (bleu du site + bouton d'appel à l'action) */
.sbgl-btn { display: inline-block; border: 0; border-radius: 3px; cursor: pointer; font: inherit; font-weight: 600; color: #fff; text-align: center; transition: background .15s; }
.sbgl-btn:disabled { opacity: .6; cursor: wait; }
.sbgl-btn-main { background: var(--sbgl-blue); padding: 14px 28px; font-size: 1.1em; width: 100%; }
.sbgl-btn-main:hover { background: var(--sbgl-blue-dark); }
.sbgl-btn-cta { background: var(--sbgl-cta); padding: 13px 26px; font-size: 1.05em; }
.sbgl-btn-cta:hover { background: var(--sbgl-cta-dark); }
.sbgl-btn-small { background: var(--sbgl-blue); padding: 8px 14px; font-size: .92em; white-space: nowrap; }
.sbgl-btn-small:hover { background: var(--sbgl-blue-dark); }
.sbgl-error { color: #b3261e; background: #fdecea; border-radius: 3px; padding: 8px 12px; margin: 0 0 12px; }

/* Résultats */
.sbgl-results { scroll-margin-top: 120px; }
.sbgl-summary { border-top: 3px solid var(--sbgl-blue); }
.sbgl-sum-loc { margin: 0 0 16px; font-size: .92em; color: #777; }
.sbgl-sum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 18px; }
.sbgl-sum-grid > div { display: flex; flex-direction: column; }
.sbgl-sum-label { font-size: .82em; text-transform: uppercase; letter-spacing: .04em; color: #888; }
.sbgl-sum-big { font-size: 1.7em; font-weight: 700; color: var(--sbgl-blue); line-height: 1.2; }
.sbgl-sum-big.sbgl-muted { color: #777; }
.sbgl-sum-sub { font-size: .92em; }
.sbgl-eco { background: var(--sbgl-green-light); border-radius: 3px; padding: 10px 12px; }
.sbgl-eco .sbgl-sum-big { color: var(--sbgl-green); }
.sbgl-summary > .sbgl-btn-cta { width: 100%; }
.sbgl-deadline { margin: 14px 0 0; font-size: .9em; background: #fff7ed; border-left: 3px solid var(--sbgl-cta); padding: 8px 12px; }

.sbgl-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: .95em; }
.sbgl-toolbar .sbgl-check { margin: 0 !important; }

.sbgl-list { list-style: none; margin: 0; padding: 0; }
.sbgl-offer { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--sbgl-border); border-radius: 3px; padding: 12px 14px; margin: 0 0 8px; }
.sbgl-offer.is-top { border-left: 4px solid var(--sbgl-blue); }
.sbgl-offer:first-child { border-color: var(--sbgl-green); border-left-width: 4px; background: #fbfefc; }
.sbgl-offer.is-current { background: #fafafa; }
.sbgl-rank { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--sbgl-bg); color: #777; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9em; }
.sbgl-offer.is-top .sbgl-rank { background: var(--sbgl-blue); color: #fff; }
.sbgl-offer:first-child .sbgl-rank { background: var(--sbgl-green); }
.sbgl-offer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sbgl-offer-name { font-weight: 700; color: var(--sbgl-dark); font-size: 1.05em; }
.sbgl-offer-model, .sbgl-offer-detail { font-size: .9em; color: #777; }
.sbgl-tag { font-style: normal; font-size: .72em; font-weight: 600; background: var(--sbgl-green); color: #fff; border-radius: 20px; padding: 1px 8px; vertical-align: middle; margin-left: 4px; white-space: nowrap; }
.sbgl-tag-grey { background: #999; }
.sbgl-offer-price { text-align: right; display: flex; flex-direction: column; min-width: 120px; }
.sbgl-price { font-size: 1.25em; font-weight: 700; color: var(--sbgl-dark); white-space: nowrap; }
.sbgl-per { font-size: .82em; color: #888; white-space: nowrap; }
.sbgl-save { font-size: .85em; font-weight: 700; color: var(--sbgl-green); }

.sbgl-cta-band { display: flex; align-items: center; gap: 16px; background: var(--sbgl-blue); color: #fff; border-radius: 3px; padding: 16px 18px; margin: 14px 0; }
.sbgl-cta-band strong { color: #fff; }
.sbgl-cta-band .sbgl-btn { white-space: nowrap; }
.sbgl-more { display: block; width: 100%; background: #fff; border: 1px solid var(--sbgl-border); border-radius: 3px; padding: 10px; color: var(--sbgl-blue); font: inherit; font-weight: 600; cursor: pointer; margin-top: 4px; }
.sbgl-more:hover { background: var(--sbgl-blue-light); }
.sbgl-foot { font-size: .82em; color: #999; margin-top: 18px; }

/* Fenêtre de demande d'offre */
.sbgl-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(20,30,50,.55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.sbgl-modal-box { background: #fff; border-radius: 4px; max-width: 620px; width: 100%; padding: 28px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.sbgl-modal-box h3 { margin: 0 0 14px; color: var(--sbgl-dark); font-size: 1.35em; }
.sbgl-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 30px; line-height: 1; color: #999; cursor: pointer; padding: 4px; }
.sbgl-choice-box { background: var(--sbgl-blue-light); border-radius: 3px; padding: 12px 14px; margin-bottom: 18px; color: var(--sbgl-dark); }
.sbgl-choice-box .sbgl-sum-label { display: block; }
.sbgl-choice-who { display: block; font-size: .85em; color: #777; margin-top: 4px; }
.sbgl-lead-form .sbgl-btn-cta { width: 100%; margin-top: 6px; }
.sbgl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sbgl-thanks { text-align: center; padding: 20px 0; }
.sbgl-thanks-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--sbgl-green); color: #fff; font-size: 32px; line-height: 60px; margin: 0 auto 12px; }
body.sbgl-noscroll { overflow: hidden; }

@media (max-width: 640px) {
  .sbgl-card { padding: 16px; }
  .sbgl-steps li { font-size: .78em; }
  .sbgl-offer { flex-wrap: wrap; gap: 8px 12px; }
  .sbgl-offer-main { flex: 1 1 calc(100% - 50px); }
  .sbgl-offer-price { text-align: left; margin-left: 40px; flex: 1; }
  .sbgl-btn-small { flex: 0 0 auto; }
  .sbgl-cta-band { flex-direction: column; align-items: stretch; text-align: center; }
  .sbgl-modal { padding: 0; }
  .sbgl-modal-box { border-radius: 0; min-height: 100%; padding: 20px 16px; }
}
