/* SG Formations : tout est préfixé .sgf pour ne pas toucher au reste du site */
.sgf {
  --red: #b92b2f;
  --red-bright: #d62d2d;
  --text: #111;
  --muted: #5c5c5c;
  --radius: 14px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}
.sgf *, .sgf *::before, .sgf *::after { box-sizing: border-box; }
.sgf h1, .sgf h2, .sgf h3, .sgf h4, .sgf p, .sgf ul { font-family: inherit; }
.sgf-icon { width: 20px; height: 20px; fill: currentColor; display: block; flex: none; }
.sgf-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête (pleine largeur, même dans un thème à largeur fixe) ---------- */
.sgf-hero {
  position: relative; overflow: hidden; color: #fff;
  left: 50%; width: 100vw; margin-left: -50vw;
  padding: 96px 24px 88px;
  background: radial-gradient(120% 140% at 85% 0%, #3a1214 0%, #181818 55%, #101010 100%);
}
.sgf-hero.has-img {
  background-image: var(--sgf-hero-img);
  background-size: cover; background-position: center;
}
.sgf-hero.has-img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.15) 100%);
}
.sgf-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--red) 0%, var(--red) 30%, transparent 100%); }
.sgf-hero__inner { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.sgf-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sgf-eyebrow::before { content: ""; width: 42px; height: 3px; background: var(--red-bright); border-radius: 2px; }
.sgf-hero h1 { margin: 0 0 20px; max-width: 760px; color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.sgf-hero h1 span { color: var(--red-bright); }
.sgf-hero p { margin: 0 0 34px; max-width: 600px; color: rgba(255,255,255,.88); font-size: 1.12rem; line-height: 1.6; }
.sgf-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.sgf-actions--center { justify-content: center; }

.sgf-btn {
  display: inline-block; padding: 15px 28px; border-radius: 4px; border: 2px solid var(--red);
  background: var(--red); color: #fff !important; font-weight: 700; font-size: .88rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none !important; text-shadow: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.sgf-btn:hover { background: #8f1f23; border-color: #8f1f23; transform: translateY(-2px); }
.sgf-btn--ghost { background: transparent; border-color: rgba(255,255,255,.85); }
.sgf-btn--ghost:hover { background: transparent; border-color: var(--red-bright); }

/* ---------- Bandeau infos clés ---------- */
.sgf-facts { margin-top: -44px; position: relative; z-index: 2; }
.sgf-facts__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: #fff; border: 1.5px solid var(--red); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.14); overflow: hidden;
}
.sgf-fact { display: flex; align-items: center; gap: 16px; padding: 26px 24px; }
.sgf-fact + .sgf-fact { border-left: 1px solid #ecd0d0; }
.sgf-dot { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.sgf-fact__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sgf-fact__value { display: block; margin-top: 2px; font-size: 1.05rem; font-weight: 800; }

/* ---------- Sections ---------- */
.sgf-block { padding: 80px 0 0; }
.sgf-title { margin: 0 0 12px; color: var(--text); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; }
.sgf-title span { color: var(--red); }
.sgf-lead { margin: 0 0 36px; max-width: 700px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }

.sgf-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.sgf-two.is-single { grid-template-columns: 1fr; max-width: 640px; }
.sgf-panel { padding: 30px 30px 26px; border: 1.5px solid var(--red); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.sgf-panel:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(185,43,47,.15); }
.sgf-panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sgf-panel__head .sgf-dot { width: 52px; height: 52px; }
.sgf-panel h3 { margin: 0; color: var(--text); font-size: 1.3rem; font-weight: 800; }
.sgf-panel h4 { margin: 20px 0 8px; color: var(--red); font-size: .95rem; font-weight: 800; }
.sgf-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sgf-panel li { position: relative; margin: 0; padding-left: 26px; font-size: .96rem; line-height: 1.5; font-weight: 500; }
.sgf-panel li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--red-bright); }

.sgf-case { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 28px 30px; border-radius: var(--radius); background: #fdeaea; }
.sgf-case .sgf-dot { width: 60px; height: 60px; }
.sgf-case h3 { margin: 0 0 6px; color: var(--text); font-size: 1.2rem; font-weight: 800; }
.sgf-case p { margin: 0; color: #3d3d3d; line-height: 1.6; }

.sgf-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.sgf-info__card { padding: 26px; border-radius: var(--radius); background: #f6f6f6; }
.sgf-info__card h3 { margin: 0 0 10px; color: var(--text); font-size: 1.05rem; font-weight: 800; }
.sgf-info__card h3::after { content: ""; display: block; width: 38px; height: 3px; margin-top: 8px; background: var(--red-bright); border-radius: 2px; }
.sgf-info__card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ---------- Appel à l'action ---------- */
.sgf-cta {
  position: relative; margin-top: 88px; padding: 76px 24px; text-align: center; color: #fff; background: #151515;
  left: 50%; width: 100vw; margin-left: -50vw;
}
.sgf-cta::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--red) 0%, var(--red) 30%, transparent 100%); }
.sgf-cta h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.sgf-cta p { margin: 0 auto 30px; max-width: 580px; color: rgba(255,255,255,.75); line-height: 1.6; }
.sgf-cta__contact { margin: 26px auto 0 !important; font-size: .95rem; }
.sgf-cta__contact a { color: #fff; font-weight: 700; text-decoration: none; }
.sgf-cta__contact a:hover { color: var(--red-bright); }
.sgf-cta__legal { margin: 14px auto 0 !important; font-size: .8rem; color: rgba(255,255,255,.55) !important; }

/* Évite la barre de défilement horizontale due au 100vw */
body.single-sg_formation { overflow-x: hidden; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .sgf-hero { padding: 72px 20px 80px; }
  .sgf-block { padding-top: 60px; }
  .sgf-case { grid-template-columns: 1fr; }
  .sgf-fact + .sgf-fact { border-left: 0; border-top: 1px solid #ecd0d0; }
}
@media (max-width: 520px) {
  .sgf-btn { display: block; text-align: center; }
  .sgf-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .sgf-panel, .sgf-btn { transition: none; } }
