/* ============================================================
   Page /groupements-reseaux (js/reseaux.js + data/reseaux-etages.js)
   Consomme les tokens de majors-light.css : le mode sombre suit.
   Préfixe gr- pour ne rien toucher au reste du site.
   ============================================================ */

.gr-page {
  --gr-title-grad: linear-gradient(135deg, #6E3FE0 0%, #9C3DBA 100%);
  --gr-info-bg: #EAF2FF;
  --gr-info-fg: #1F5FBC;
  --gr-ease: cubic-bezier(.22, 1, .36, 1);
  color: var(--majors-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
.gr-page h1, .gr-page h2, .gr-page h3 {
  font-family: 'Manrope', 'Public Sans', 'Inter', sans-serif;
  color: var(--majors-ink);
  letter-spacing: -0.02em;
}
.gr-page h4 { font-family: 'Inter', sans-serif; }
.gr-grad {
  background: var(--gr-title-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #6E3FE0;
}
[data-bs-theme="dark"] .gr-grad {
  background: linear-gradient(135deg, #a98bff 0%, #e09ad3 100%);
  -webkit-background-clip: text; background-clip: text;
}
.gr-eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--majors-violet-soft);
}
[data-bs-theme="dark"] .gr-eyebrow { color: #c8b6ff; }
.gr-section { padding: 90px 0; scroll-margin-top: 80px; }
.gr-section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.gr-section-head h2 { font-weight: 800; font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 12px; }
.gr-section-head p { color: var(--majors-ink-soft); font-size: 1.05rem; margin: 0; }

.gr-page a:focus-visible,
.gr-page button:focus-visible,
.gr-page [tabindex]:focus-visible {
  outline: 3px solid var(--majors-violet);
  outline-offset: 3px;
}

/* ----- Boutons ----- */
.gr-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.gr-page .btn { border-radius: 999px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; }
.gr-btn-ghost {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--majors-line);
  background: var(--majors-bg-card); color: var(--majors-ink) !important;
  font-weight: 600; text-decoration: none; transition: border-color .2s ease, color .2s ease;
}
.gr-btn-ghost:hover { border-color: var(--majors-violet); color: var(--majors-violet) !important; }

/* ============================================================
   4.1 HERO
   ============================================================ */
.gr-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 160px 0 70px; background: var(--majors-bg);
}
.gr-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--majors-line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--majors-line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 80%);
}
.gr-hero .container { position: relative; }
.gr-badge {
  display: inline-block; padding: 6px 14px; margin-bottom: 22px;
  border-radius: 999px; background: var(--majors-bg-wash); color: var(--majors-violet-soft);
  border: 1px solid rgba(122, 77, 255, .18);
  font-size: .85rem; font-weight: 600;
}
[data-bs-theme="dark"] .gr-badge { color: #d6c9ff; }
.gr-hero h1 {
  font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08;
  max-width: 980px; margin: 0 auto 20px;
}
.gr-hero .gr-lead {
  max-width: 700px; margin: 0 auto; color: var(--majors-ink-soft); font-size: 1.12rem; line-height: 1.65;
}
.gr-hero-pills {
  list-style: none; padding: 0; margin: 40px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.gr-hero-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 6px 18px 6px 6px; border-radius: 999px;
  background: var(--majors-bg-card); border: 1px solid var(--majors-line);
  color: var(--majors-ink) !important; font-weight: 600; font-size: .95rem; text-decoration: none;
  box-shadow: var(--majors-shadow-soft);
  transition: border-color .2s ease, transform .2s ease;
}
.gr-hero-pill:hover { border-color: var(--majors-violet); transform: translateY(-1px); }
.gr-hero-pill.is-active { border-color: var(--majors-violet); }
.gr-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--majors-bg-wash); color: var(--majors-violet-soft);
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .8rem;
}
[data-bs-theme="dark"] .gr-num { color: #d6c9ff; }

/* ============================================================
   4.2 LES 4 ÉTAGES
   ============================================================ */
.gr-etages { background: var(--majors-bg-soft); }
.gr-etages-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px;
}
.gr-etages-head h2 { font-weight: 800; font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin: 0; }
.gr-stepper { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gr-counter { font-weight: 600; color: var(--majors-ink-soft); font-size: .95rem; margin-right: 6px; white-space: nowrap; }
.gr-round {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--majors-bg-card); border: 1px solid var(--majors-line); color: var(--majors-ink);
  cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.gr-round:hover:not(:disabled) { border-color: var(--majors-violet); color: var(--majors-violet); }
.gr-round:disabled { opacity: .35; cursor: not-allowed; }

.gr-etages-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }

.gr-tabs { display: flex; flex-direction: column; gap: 10px; }
.gr-tab {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px;
  padding: 12px 14px; text-align: left; cursor: pointer;
  border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--majors-ink);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.gr-tab:hover { background: rgba(122, 77, 255, .06); }
.gr-tab.is-active {
  background: var(--majors-bg-card); border-color: var(--majors-violet);
  box-shadow: var(--majors-shadow-violet);
}
.gr-tab-badge {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--majors-bg-card); border: 1px solid var(--majors-line);
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .9rem; color: var(--majors-violet-soft);
}
[data-bs-theme="dark"] .gr-tab-badge { color: #d6c9ff; }
.gr-tab.is-active .gr-tab-badge { background: var(--majors-grad); border-color: transparent; color: #fff; }
.gr-tab-txt { display: flex; flex-direction: column; line-height: 1.25; }
.gr-tab-kicker { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--majors-ink-soft); }
.gr-tab-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.02rem; }
.gr-tabs-note { margin: 18px 4px 0; font-size: .9rem; line-height: 1.55; color: var(--majors-ink-soft); }

.gr-panel {
  background: var(--majors-bg-card); border: 1px solid var(--majors-line); border-radius: 24px;
  box-shadow: var(--majors-shadow-soft); overflow: hidden;
}
.gr-panel:focus-visible { outline-offset: 4px; }
.gr-panel.is-entering { animation: gr-enter .45s var(--gr-ease) both; }
@keyframes gr-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gr-panel.is-entering { animation: none; }
  .gr-page * { transition: none !important; scroll-behavior: auto !important; }
}

.gr-panel-head { padding: 30px 32px 0; }
.gr-panel-kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--majors-violet-soft); }
[data-bs-theme="dark"] .gr-panel-kicker { color: #c8b6ff; }
.gr-panel-head h3 { font-weight: 800; font-size: 1.7rem; margin: 0 0 6px; }
.gr-panel-promise { margin: 0; font-size: 1.08rem; color: var(--majors-ink-soft); }

.gr-panel-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; padding: 26px 32px 30px; align-items: start; }
.gr-benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.gr-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.gr-check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--majors-bg-wash); color: var(--majors-violet);
}
[data-bs-theme="dark"] .gr-check { color: #c8b6ff; }
.gr-benefits h4 { margin: 0 0 2px; font-size: .98rem; font-weight: 700; color: var(--majors-ink); }
.gr-benefits p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--majors-ink-soft); }

.gr-access {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0;
  border-top: 1px solid var(--majors-line); background: var(--majors-bg-soft);
}
.gr-access > div { padding: 18px 22px; }
.gr-access > div + div { border-left: 1px solid var(--majors-line); }
.gr-access dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--majors-violet-soft); margin-bottom: 4px; }
[data-bs-theme="dark"] .gr-access dt { color: #c8b6ff; }
.gr-access .is-hidden-scope dt { color: var(--gr-info-fg); }
[data-bs-theme="dark"] .gr-access .is-hidden-scope dt { color: #9cc3ff; }
.gr-access dd { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--majors-ink); }

.gr-panel-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px; border-top: 1px solid var(--majors-line);
}
.gr-nav-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--majors-line); background: var(--majors-bg-card); color: var(--majors-ink);
  font-weight: 600; font-size: .9rem; transition: border-color .2s ease, color .2s ease;
}
.gr-nav-btn:hover { border-color: var(--majors-violet); color: var(--majors-violet); }
.gr-nav-next { margin-left: auto; }

/* ----- 4.3 Mini-écrans ----- */
.gr-screen {
  border-radius: 20px; border: 1px solid var(--majors-line); background: var(--majors-bg-soft);
  padding: 18px; font-size: .85rem; color: var(--majors-ink);
}
.gr-ms-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.gr-ms-head strong { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .95rem; }
.gr-ms-select {
  font-size: .75rem; padding: 4px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--majors-bg-card); border: 1px solid var(--majors-line); color: var(--majors-ink-soft);
}
.gr-ms-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gr-ms-tile {
  background: var(--majors-bg-card); border: 1px solid var(--majors-line-soft); border-radius: 8px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.gr-ms-label { font-size: .72rem; color: var(--majors-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-ms-bar, .gr-ms-gauge { display: block; height: 8px; border-radius: 99px; background: var(--majors-bg-wash); position: relative; overflow: hidden; }
.gr-ms-bar::after, .gr-ms-gauge::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--majors-grad);
}
.gr-ms-hist {
  display: flex; align-items: flex-end; gap: 6px; height: 90px; margin: 14px 0;
  padding: 10px; border-radius: 8px; background: var(--majors-bg-card); border: 1px solid var(--majors-line-soft);
}
.gr-ms-hist span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: #7A4DFF; opacity: var(--o); }
.gr-ms-hist span:nth-child(odd) { background: #5B3FBC; }
.gr-ms-hist span:last-child { background: #9C3DBA; }
.gr-ms-sub { margin: 0 0 8px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--majors-ink-soft); }
.gr-ms-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gr-ms-list li { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 10px; font-size: .8rem; }

.gr-ms-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gr-ms-rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 8px; background: var(--majors-bg-card); border: 1px solid var(--majors-line-soft);
}
.gr-pill { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.gr-pill-info { background: var(--gr-info-bg); color: var(--gr-info-fg); }
.gr-pill-violet { background: #F4F0FF; color: #5B3FBC; }
.gr-ms-team { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.gr-chip {
  padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--majors-bg-card); border: 1px solid var(--majors-line); color: var(--majors-ink);
}
.gr-ms-dark {
  padding: 12px 14px; border-radius: 14px; background: #0D1023; color: #fff;
  font-size: .82rem; line-height: 1.45; border: 1px solid rgba(255, 255, 255, .08);
}
.gr-ms-dark::before { content: "✦ "; color: #C775B5; }

.gr-ms-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.gr-ms-steps li {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 8px; background: var(--majors-bg-card); border: 1px solid var(--majors-line-soft);
}
.gr-ms-steps li.is-current { border-color: var(--majors-violet); }
.gr-ms-steps li.is-todo .gr-step-label { color: var(--majors-ink-soft); }
.gr-step-label { flex: 1; min-width: 0; }
.gr-step-mark {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--majors-line);
}
.gr-step-mark.is-done { background: var(--majors-grad); border-color: transparent; color: #fff; }
.gr-step-mark.is-done svg { width: 11px; height: 11px; }
.gr-step-mark.is-current { border-color: var(--majors-violet); box-shadow: inset 0 0 0 4px var(--majors-bg-card); background: var(--majors-violet); }
.gr-ms-note {
  padding: 12px 14px; border-radius: 14px; background: var(--majors-bg-wash); color: var(--majors-ink);
  border: 1px solid rgba(122, 77, 255, .18); font-size: .82rem; line-height: 1.45;
}

.gr-screen-client { display: flex; justify-content: center; background: var(--majors-bg-wash); }
.gr-phone {
  width: 244px; max-width: 100%; padding: 10px; border-radius: 34px; background: #0D1023;
  box-shadow: 0 18px 40px -18px rgba(13, 16, 35, .55);
}
.gr-phone-screen {
  position: relative; border-radius: 26px; background: #FBFBFD; color: #0D1023;
  padding: 34px 12px 16px; display: flex; flex-direction: column; gap: 10px;
}
.gr-phone-notch { position: absolute; top: 10px; left: 50%; width: 64px; height: 12px; margin-left: -32px; border-radius: 99px; background: #0D1023; }
.gr-phone-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1rem; }
.gr-phone .gr-ms-rows li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; background: #fff; border-color: rgba(13, 16, 35, .08); font-size: .78rem; color: #0D1023; }
.gr-phone-btn {
  display: block; text-align: center; padding: 10px; border-radius: 999px; margin-top: 4px;
  background: var(--majors-grad); color: #fff; font-weight: 700; font-size: .8rem;
  box-shadow: 0 8px 20px -8px rgba(122, 77, 255, .55);
}

/* ============================================================
   4.4 CE QUI REMONTE / CE QUI DESCEND
   ============================================================ */
.gr-flows { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gr-flow { border-radius: 20px; padding: 34px; border: 1px solid var(--majors-line); }
.gr-flow h3 { font-weight: 800; font-size: 1.5rem; margin: 18px 0 10px; }
.gr-flow p { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.gr-flow-arrow {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700;
}
.gr-flow-up { background: var(--majors-bg-wash); }
.gr-flow-up p { color: var(--majors-ink-soft); }
.gr-flow-up .gr-flow-arrow { background: var(--majors-grad); color: #fff; }
.gr-flow-down { background: #0D1023; border-color: rgba(255, 255, 255, .1); }
.gr-page .gr-flow-down h3 { color: #fff; }
.gr-flow-down p { color: rgba(255, 255, 255, .8); }
.gr-flow-down .gr-flow-arrow { background: rgba(199, 117, 181, .16); color: #C775B5; }

/* ============================================================
   4.5 ENTONNOIR
   ============================================================ */
.gr-funnel-section { background: var(--majors-bg); }
.gr-soft { background: var(--majors-bg-soft); }

/* Infographie : libellé à gauche, filet pointillé jusqu'à la bande.
   Bandes 560 / 448 / 336 / 224 px, retrait bas de 56 px de chaque côté
   (exprimé en % de chaque bande pour garder les proportions sur mobile). */
.gr-funnel {
  list-style: none; padding: 0; margin: 0 auto; max-width: 860px;
  display: flex; flex-direction: column; gap: 6px;
  filter: drop-shadow(0 18px 28px rgba(56, 27, 137, .18));
}
.gr-funnel-row { display: grid; grid-template-columns: 250px minmax(0, 560px); align-items: center; justify-content: center; }
.gr-funnel-label { display: flex; align-items: center; gap: 14px; }
.gr-funnel-label::after { content: ""; flex: 1; min-width: 16px; border-top: 1px dashed rgba(122, 77, 255, .45); }
.gr-funnel-num {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: -0.03em;
  background: var(--gr-title-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #6E3FE0;
}
.gr-funnel-role {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--majors-ink); white-space: nowrap;
  transition: color .25s ease;
}
.gr-funnel-zone { display: flex; align-items: center; }
.gr-leader, .gr-leader-end { flex: 1 1 0; min-width: 0; }
.gr-leader {
  position: relative; z-index: 2; height: 0; border-top: 1px dashed rgba(122, 77, 255, .45);
  margin-right: -24px; /* rejoint le bord visible de la bande (à mi-hauteur, retrait de 28 px) */
}
.gr-leader::after {
  content: ""; position: absolute; right: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--majors-violet);
}
.gr-row-1 .gr-leader { flex: 0 0 0; }
.gr-funnel-row:has(.gr-band.is-active) .gr-funnel-role { color: var(--majors-violet); }
[data-bs-theme="dark"] .gr-funnel-row:has(.gr-band.is-active) .gr-funnel-role { color: #c8b6ff; }

.gr-band {
  --inset: 10%;
  position: relative; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  height: 86px; padding: 0 8px; text-align: center; text-decoration: none;
  color: #fff !important;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--inset)) 100%, var(--inset) 100%);
  transition: transform .35s var(--gr-ease), filter .3s ease;
}
.gr-band::before { /* reflet discret en haut de chaque bande */
  content: ""; position: absolute; inset: 0 0 55% 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
}
.gr-band > span { position: relative; }
.gr-band-1 { width: 100%;     --inset: 10%;     background: linear-gradient(180deg, #4A2AA6 0%, #381B89 100%); }
.gr-band-2 { width: 80%;      --inset: 12.5%;   background: linear-gradient(180deg, #6A4FCF 0%, #5B3FBC 100%); }
.gr-band-3 { width: 60%;      --inset: 16.667%; background: linear-gradient(180deg, #8A63FF 0%, #7A4DFF 100%); }
.gr-band-4 { width: 40%;      --inset: 25%;     background: linear-gradient(180deg, #AE52CC 0%, #9C3DBA 100%); }
.gr-band:hover { filter: brightness(1.08); }
.gr-band.is-active { transform: scale(1.03); filter: brightness(1.15); z-index: 1; }
.gr-band:focus-visible { outline: none; filter: brightness(1.2); text-decoration: underline; text-underline-offset: 3px; }
.gr-band-role { display: none; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.gr-band-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1rem; line-height: 1.2; }
.gr-band-scope { font-size: .82rem; line-height: 1.3; opacity: .92; }

/* ============================================================
   4.6 SÉCURITÉ
   ============================================================ */
.gr-sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gr-card {
  background: var(--majors-bg-card); border: 1px solid var(--majors-line); border-radius: 20px;
  padding: 28px; box-shadow: var(--majors-shadow-soft);
}
.gr-card-icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--majors-bg-wash); color: var(--majors-violet);
}
[data-bs-theme="dark"] .gr-card-icon { color: #c8b6ff; }
.gr-card h3 { font-weight: 700; font-size: 1.2rem; margin: 0 0 8px; }
.gr-card p { margin: 0; color: var(--majors-ink-soft); line-height: 1.6; }

/* ============================================================
   4.7 CTA FINAL
   ============================================================ */
.gr-cta-final { padding-top: 0; }
.gr-cta-box {
  border-radius: 28px; padding: 64px 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #381B89 0%, #6E3FE0 55%, #9C3DBA 100%);
  box-shadow: var(--majors-shadow-violet);
}
.gr-page .gr-cta-box h2 { color: #fff; font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 auto 12px; max-width: 700px; }
.gr-cta-box p { color: rgba(255, 255, 255, .9); font-size: 1.08rem; max-width: 620px; margin: 0 auto 28px; }
.gr-btn-white {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 28px;
  border-radius: 999px; background: #fff; color: #381B89 !important; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(13, 16, 35, .45); transition: transform .2s ease;
}
.gr-btn-white:hover { transform: translateY(-2px); background: #F4F0FF; }
.gr-cta-box .gr-btn-white:focus-visible { outline-color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .gr-panel-body { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
  .gr-section { padding: 70px 0; }
  .gr-etages-grid { grid-template-columns: minmax(0, 1fr); }
  .gr-tabs {
    flex-direction: row; overflow-x: auto; gap: 8px; padding: 4px 4px 10px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  }
  .gr-tab { flex: 0 0 auto; width: auto; min-height: 56px; scroll-snap-align: start; }
  .gr-tabs-note { margin-top: 8px; }
  .gr-sec-grid { grid-template-columns: 1fr; }
  .gr-flows { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .gr-hero { padding: 120px 0 50px; }
  .gr-etages-head { flex-direction: column; align-items: flex-start; }
  .gr-access { grid-template-columns: 1fr; }
  .gr-access > div + div { border-left: 0; border-top: 1px solid var(--majors-line); }
  .gr-panel-head { padding: 24px 20px 0; }
  .gr-panel-body { padding: 20px; }
  .gr-panel-foot { flex-direction: column; padding: 14px 16px; }
  .gr-nav-btn { width: 100%; }
  .gr-nav-next { margin-left: 0; }
  .gr-flow { padding: 26px; }
  .gr-cta-box { padding: 48px 20px; border-radius: 22px; }
  .gr-funnel-row { grid-template-columns: minmax(0, 1fr); }
  .gr-funnel-label, .gr-leader, .gr-leader-end { display: none; }
  .gr-funnel-zone { justify-content: center; }
  .gr-band { height: 82px; }
  .gr-band-role { display: block; font-size: .6rem; }
  .gr-band-title { font-size: .88rem; }
  .gr-band-scope { font-size: .72rem; }
}
@media (max-width: 420px) {
  .gr-ms-tiles { grid-template-columns: 1fr; }
}

/* ----- Étage 04 : donut patrimoine dans le téléphone (aucune valeur) ----- */
.gr-pat {
  padding: 10px; border-radius: 14px; background: #fff;
  border: 1px solid rgba(13, 16, 35, .08); box-shadow: 0 6px 16px -10px rgba(56, 27, 137, .35);
}
.gr-pat-title { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(13, 16, 35, .6); margin-bottom: 10px; }
.gr-pat-row { display: flex; align-items: center; gap: 10px; }
.gr-donut-wrap { position: relative; flex-shrink: 0; width: 74px; height: 74px; }
.gr-donut-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 18px; font-size: .55rem; font-weight: 700; line-height: 1.15; color: #381B89;
}
.gr-donut {
  position: relative; width: 74px; height: 74px; border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 0 22px, #000 23px);
          mask: radial-gradient(circle, transparent 0 22px, #000 23px);
}
.gr-pat-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: .7rem; color: #0D1023; min-width: 0; }
.gr-pat-legend li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.gr-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; }
[data-bs-theme="dark"] .gr-funnel-num {
  background: linear-gradient(135deg, #a98bff 0%, #e09ad3 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* ============================================================
   LE CONSTAT : problème + coût de l'inaction
   ============================================================ */
.gr-pb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.gr-pb-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gr-pb-list li {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: var(--majors-bg-card); border: 1px solid var(--majors-line); border-radius: 20px;
}
.gr-pb-icon {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--majors-bg-wash); color: var(--majors-violet-soft);
}
.gr-pb-icon svg { width: 20px; height: 20px; }
[data-bs-theme="dark"] .gr-pb-icon { color: #c8b6ff; }
.gr-pb-list h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.gr-pb-list p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--majors-ink-soft); }
.gr-cost {
  border-radius: 20px; padding: 30px; background: #0D1023; color: #fff;
  border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; justify-content: center;
}
.gr-page .gr-cost h3 { color: #fff; font-weight: 800; font-size: 1.35rem; margin: 0 0 18px; }
.gr-cost ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.gr-cost li { position: relative; padding-left: 22px; font-size: .97rem; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.gr-cost li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: #C775B5; }
.gr-cost strong { color: #fff; }

/* ============================================================
   PREUVES : témoignages + garanties
   ============================================================ */
.gr-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.gr-quote {
  margin: 0; padding: 26px; border-radius: 20px; background: var(--majors-bg-card);
  border: 1px solid var(--majors-line); display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.gr-quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--majors-ink); }
.gr-quote figcaption { font-size: .88rem; color: var(--majors-ink-soft); }
.gr-quote figcaption strong { display: block; color: var(--majors-ink); font-family: 'Manrope', sans-serif; }
.gr-facts { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gr-facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--majors-bg-card); border: 1px solid var(--majors-line); font-size: .88rem; font-weight: 600; color: var(--majors-ink);
}
.gr-facts svg { width: 16px; height: 16px; color: var(--majors-violet); }

/* ============================================================
   PROCHAINE ÉTAPE
   ============================================================ */
.gr-steps {
  list-style: none; padding: 0; margin: 0 auto 26px; max-width: 980px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left;
}
.gr-steps li {
  display: flex; gap: 14px; padding: 20px; border-radius: 20px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.gr-step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #381B89; font-family: 'Manrope', sans-serif; font-weight: 800;
}
.gr-page .gr-steps h3 { color: #fff; font-size: 1.02rem; font-weight: 700; margin: 4px 0 4px; }
.gr-cta-box .gr-steps p { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .85); max-width: none; }
.gr-cta-box .gr-price { font-size: .92rem; color: rgba(255, 255, 255, .85); max-width: 720px; margin: 0 auto 24px; }
.gr-price a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 991px) {
  .gr-pb-grid { grid-template-columns: 1fr; }
  .gr-quotes { grid-template-columns: 1fr; }
  .gr-steps { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .gr-pb-list { grid-template-columns: 1fr; }
  .gr-cost { padding: 24px; }
}

/* ============================================================
   CONSTAT « AVANT » : désordre volontaire + annotation au marqueur
   (le dégradé de marque est réservé aux passages positifs)
   ============================================================ */
.gr-eyebrow-muted { color: var(--majors-ink-soft) !important; }
.gr-scribble { position: relative; display: inline-block; white-space: nowrap; color: var(--majors-ink); }
.gr-scribble-ring {
  position: absolute; left: -6%; top: 2%; width: 112%; height: 106%;
  overflow: visible; pointer-events: none;
}
.gr-scribble-ring path {
  fill: none; stroke: #C775B5; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.gr-scribble.is-drawn .gr-scribble-ring path { animation: gr-draw 1.1s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
@keyframes gr-draw { to { stroke-dashoffset: 0; } }

.gr-pb-mess { position: relative; }
.gr-tangle {
  position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px);
  pointer-events: none; z-index: 0;
}
.gr-tangle path {
  fill: none; stroke: rgba(13, 16, 35, .22); stroke-width: 1.4; stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
}
[data-bs-theme="dark"] .gr-tangle path { stroke: rgba(255, 255, 255, .22); }
.gr-pb-mess .gr-pb-list { position: relative; z-index: 1; }
.gr-pb-mess .gr-pb-list li {
  border: 1.5px dashed rgba(13, 16, 35, .2);
  box-shadow: 0 10px 24px -16px rgba(13, 16, 35, .35);
  transition: transform .4s var(--gr-ease), border-color .3s ease;
}
[data-bs-theme="dark"] .gr-pb-mess .gr-pb-list li { border-color: rgba(255, 255, 255, .2); }
.gr-pb-mess .gr-pb-list li:nth-child(1) { transform: rotate(-2.2deg) translate(-4px, 6px); }
.gr-pb-mess .gr-pb-list li:nth-child(2) { transform: rotate(1.8deg) translate(6px, -8px); }
.gr-pb-mess .gr-pb-list li:nth-child(3) { transform: rotate(1.2deg) translate(2px, 4px); }
.gr-pb-mess .gr-pb-list li:nth-child(4) { transform: rotate(-1.6deg) translate(-2px, -4px); }
.gr-pb-mess .gr-pb-list li:hover { transform: none; border-color: var(--majors-violet); }
.gr-pb-mess .gr-pb-icon { background: rgba(13, 16, 35, .06); color: rgba(13, 16, 35, .55); position: relative; }
[data-bs-theme="dark"] .gr-pb-mess .gr-pb-icon { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); }
.gr-pb-mess .gr-pb-icon::after { /* petite croix au marqueur */
  content: "×"; position: absolute; right: -7px; top: -7px; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #C775B5; color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}

@media (max-width: 767px) {
  /* Sur mobile le titre se replie : un trait au marqueur sous chaque ligne remplace le cercle */
  .gr-scribble { display: inline; white-space: normal; }
  .gr-scribble-ring { display: none; }
  .gr-scribble {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M1 6 Q 25 2 50 6 T 99 5' fill='none' stroke='%23C775B5' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% .32em no-repeat;
    -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .12em;
  }
  .gr-pb-mess .gr-pb-list li:nth-child(odd) { transform: rotate(-1deg); }
  .gr-pb-mess .gr-pb-list li:nth-child(even) { transform: rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gr-scribble-ring path { stroke-dashoffset: 0; animation: none !important; }
}

/* ============================================================
   ENTONNOIR : survol (bande agrandie, reflet qui glisse,
   libellé et filet qui s'allument, autres bandes estompées)
   ============================================================ */
.gr-band::after { /* reflet qui traverse la bande au survol */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-110%);
}
.gr-funnel-num, .gr-funnel-role { display: inline-block; transition: transform .35s var(--gr-ease), color .25s ease; }
.gr-leader { transition: border-color .3s ease; }
.gr-leader::after { transition: transform .35s var(--gr-ease), box-shadow .35s ease; }
.gr-funnel-label::after { transition: border-color .3s ease; }

@media (hover: hover) {
  .gr-funnel-row:hover .gr-band,
  .gr-band:focus-visible {
    transform: scale(1.07); filter: brightness(1.14) saturate(1.08); z-index: 2;
  }
  .gr-funnel-row:hover .gr-band::after,
  .gr-band:focus-visible::after {
    transform: translateX(110%); transition: transform .9s cubic-bezier(.4, 0, .2, 1);
  }
  .gr-funnel:has(.gr-funnel-row:hover) .gr-funnel-row:not(:hover) .gr-band {
    filter: saturate(.75) brightness(.92); transform: scale(.985);
  }
  .gr-funnel:has(.gr-funnel-row:hover) .gr-funnel-row:not(:hover) .gr-funnel-label { opacity: .55; }
  .gr-funnel-label { transition: opacity .3s ease; }
  .gr-funnel-row:hover .gr-funnel-num { transform: scale(1.12); }
  .gr-funnel-row:hover .gr-funnel-role { transform: translateX(4px); color: var(--majors-violet); }
  [data-bs-theme="dark"] .gr-funnel-row:hover .gr-funnel-role { color: #c8b6ff; }
  .gr-funnel-row:hover .gr-leader,
  .gr-funnel-row:hover .gr-funnel-label::after { border-top-style: solid; border-top-color: var(--majors-violet); }
  .gr-funnel-row:hover .gr-leader::after { transform: scale(1.6); box-shadow: 0 0 0 4px rgba(122, 77, 255, .18); }
  .gr-funnel-row { cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) {
  .gr-band::after { display: none; }
}

/* ----- Vidéo « Comment ça marche » ----- */
.gr-video { max-width: 960px; margin: 0 auto 40px; }
.gr-video + .mv-chapters, .gr-video .mv-chapters { justify-content: center; }
.gr-video .mv-player video { width: 100%; height: 100%; }
