/* ============================================================================
   Guide « Votre tableau de bord de pilotage avec Claude » (RSE) — /tableau-de-bord-pilotage/
   Chargé uniquement par inc/guide-dashboard.php (19/10/2026).
   Hero pleine largeur bleu marine, fenêtre d'accès (<dialog>), écran rendez-vous.
   ========================================================================== */

.gd { background: var(--c-bg-white); color: var(--c-text-default); font-family: var(--font); }
.gd *, .gd *::before, .gd *::after { box-sizing: border-box; }
.gd__wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.gd-hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 112px;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(0, 61, 213, 0.55) 0%, rgba(0, 61, 213, 0) 70%),
    radial-gradient(40% 50% at 8% 100%, rgba(132, 161, 234, 0.22) 0%, rgba(132, 161, 234, 0) 70%),
    linear-gradient(180deg, var(--c-forest-deep) 0%, var(--c-forest) 100%);
  color: var(--c-text-dark-default);
}
.gd-hero__arc {
  position: absolute;
  border: 1.5px solid rgba(132, 161, 234, 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.gd-hero__arc--1 { width: 1100px; height: 1100px; right: -380px; top: -520px; }
.gd-hero__arc--2 { width: 800px; height: 800px; right: -230px; top: -370px; opacity: 0.7; }
.gd-hero__arc--3 { width: 500px; height: 500px; right: -80px; top: -220px; opacity: 0.5; }
.gd-hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.gd-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.gd-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-sage-light);
  border: 1px solid rgba(132, 161, 234, 0.4);
  border-radius: var(--r-full);
  padding: 8px 16px;
  margin: 0 0 28px;
}
.gd-hero__eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }

.gd-hero__title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 26px;
}
.gd-hero__title span { color: var(--c-sage-light); }
.gd-hero__lead { font-size: 1.25rem; line-height: 1.55; color: #c9d5f5; max-width: 560px; margin: 0 0 30px; }

.gd-mods { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.gd-mods li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(132, 161, 234, 0.35);
  border-radius: var(--r-full);
  padding: 9px 16px 9px 12px;
}
.gd-mods svg { width: 18px; height: 18px; color: var(--c-sage-light); flex: none; }

.gd-cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--c-forest-deep); background: #fff;
  border: 0; border-radius: var(--r-full);
  padding: 22px 34px 22px 38px;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 61, 213, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.08);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gd-cta svg { width: 22px; height: 22px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--c-sage); color: #fff; transition: transform var(--dur) var(--ease); }
.gd-cta:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(0, 61, 213, 0.7), 0 0 0 8px rgba(255, 255, 255, 0.1); }
.gd-cta:hover svg { transform: translateX(3px); }
.gd-cta:focus-visible { outline: 3px solid var(--c-sage-light); outline-offset: 4px; }
.gd-cta--blue { background: var(--c-sage); color: #fff; box-shadow: 0 18px 44px rgba(0, 61, 213, 0.35); }
.gd-cta--blue svg { background: #fff; color: var(--c-sage); }

.gd-hero__meta { display: flex; gap: 40px; margin: 44px 0 0; padding: 0; list-style: none; }
.gd-hero__meta b { display: block; font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.gd-hero__meta span { font-size: 0.9rem; color: var(--c-text-dark-default); }

/* Visuel : couverture du guide + tableau de bord */
.gd-visual { position: relative; min-height: 560px; }
.gd-visual__cover {
  position: absolute; right: 0; top: 0; width: 300px;
  border-radius: 10px;
  transform: rotate(6deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(132, 161, 234, 0.3);
}
.gd-dash {
  position: absolute; left: 0; bottom: 0; width: min(560px, 100%);
  background: #fff; color: #3d3d3d;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 40px 90px rgba(3, 10, 40, 0.6);
  transform: rotate(-2deg);
}
.gd-dash__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.gd-dash__h b { font-size: 1rem; color: #0a0a0a; }
.gd-dash__chip { font-size: 0.72rem; font-weight: 700; color: var(--c-sage); background: var(--c-mist); border-radius: var(--r-full); padding: 4px 10px; }
.gd-dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.gd-kpi { border: 1px solid var(--c-bg-border); border-radius: 12px; padding: 11px 12px; }
.gd-kpi i { display: block; font-style: normal; font-size: 0.68rem; font-weight: 600; color: #6b6b6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-kpi b { display: block; font-size: 1.55rem; font-weight: 800; color: #0a0a0a; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.gd-kpi b small { font-size: 0.7rem; color: #6b6b6b; font-weight: 700; letter-spacing: 0; }
.gd-kpi em { display: block; font-style: normal; font-size: 0.7rem; font-weight: 700; margin-top: 2px; }
.gd-up { color: #1f8a4c; } .gd-mid { color: #c77700; }
.gd-dash__row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.gd-panel { border: 1px solid var(--c-bg-border); border-radius: 12px; padding: 12px; }
.gd-panel > b { display: block; font-size: 0.74rem; color: #0a0a0a; margin-bottom: 8px; }
.gd-chart { display: flex; align-items: flex-end; gap: 5px; height: 92px; }
.gd-chart span { flex: 1; border-radius: 3px 3px 0 0; background: var(--c-sage); }
.gd-chart span.n { background: #c9d5f5; }
.gd-bars { display: grid; gap: 8px; font-size: 0.7rem; }
.gd-bars div { display: grid; grid-template-columns: 72px 1fr 22px; align-items: center; gap: 8px; }
.gd-bars u { height: 7px; border-radius: 4px; background: var(--c-mist); position: relative; text-decoration: none; }
.gd-bars u::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--c-sage); }
.gd-bars b { color: #0a0a0a; text-align: right; }

/* ── Les 4 tableaux ───────────────────────────────────────────────────── */

.gd-sec { padding: 112px 0; }
.gd-sec--mist { background: var(--c-bg-light); }
.gd-sec__head { max-width: 720px; margin: 0 0 56px; }
.gd-sec__title { font-family: var(--font); font-weight: 800; font-size: clamp(2rem, 1.2rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--c-text-title); margin: 0 0 16px; }
.gd-sec__lead { font-size: 1.15rem; line-height: 1.6; margin: 0; }

.gd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gd-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--c-bg-border); border-radius: 20px;
  padding: 28px 26px 30px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gd-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(11, 29, 82, 0.12); border-color: var(--c-sage-light); }
.gd-card__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-mist); color: var(--c-sage); margin-bottom: 34px; }
.gd-card__ic svg { width: 24px; height: 24px; }
.gd-card__num { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--c-text-title); line-height: 1; }
.gd-card__num small { font-size: 1rem; color: var(--c-text-muted); letter-spacing: 0; }
.gd-card__kpi { display: block; font-size: 0.9rem; color: var(--c-text-default); margin: 6px 0 22px; }
.gd-card h3 { font-family: var(--font); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--c-text-title); margin: 0 0 8px; }
.gd-card p { font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* ── Les 8 étapes ─────────────────────────────────────────────────────── */

.gd-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-bg-border); }
.gd-steps li { padding: 26px 24px 30px 0; border-bottom: 1px solid var(--c-bg-border); }
.gd-steps b { display: block; font-size: 0.85rem; font-weight: 800; color: var(--c-sage); margin-bottom: 10px; }
.gd-steps span { display: block; font-size: 1.05rem; font-weight: 700; color: var(--c-text-title); line-height: 1.35; }

/* ── Bandeau final ────────────────────────────────────────────────────── */

.gd-final { padding: 0 0 112px; }
.gd-final__box {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: radial-gradient(70% 120% at 100% 0%, rgba(0, 61, 213, 0.6), transparent 60%), var(--c-forest-deep);
  border-radius: 28px; padding: 56px 64px;
}
.gd-final__box h2 { font-family: var(--font); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; color: #fff; margin: 0; max-width: 620px; }

/* ── Fenêtre d'accès ──────────────────────────────────────────────────── */

html.gd-lock, html.gd-lock body { overflow: hidden; }

.gd-modal {
  position: fixed; inset: 0; margin: auto;
  width: min(560px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 24px;
  background: #fff; color: var(--c-text-default);
  box-shadow: 0 40px 120px rgba(3, 10, 40, 0.5);
  overflow: auto;
}
.gd-modal::backdrop { background: rgba(7, 19, 58, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gd-modal[open] { animation: gd-in 0.35s var(--ease); }
@keyframes gd-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.gd-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--c-bg-light); color: #0a0a0a; cursor: pointer;
}
.gd-modal__close svg { width: 18px; height: 18px; }
.gd-modal__close:hover { background: var(--c-mist); color: var(--c-sage); }

.gd-form { padding: 40px 40px 34px; }
.gd-form__top { display: flex; gap: 16px; align-items: center; margin: 0 0 26px; padding-right: 36px; }
.gd-form__top img { width: 64px; border-radius: 6px; box-shadow: 0 8px 20px rgba(11, 29, 82, 0.25); flex: none; }
.gd-form__top h2 { font-family: var(--font); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--c-text-title); margin: 0; }
.gd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gd-field { display: block; margin: 0 0 12px; }
.gd-field > span { display: block; font-size: 0.85rem; font-weight: 600; color: #0a0a0a; margin: 0 0 6px; }
.gd-field input {
  width: 100%; font: inherit; font-size: 1rem; color: #0a0a0a;
  padding: 13px 14px; border: 1px solid var(--c-bg-border); border-radius: 12px; background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.gd-field input:focus { outline: 0; border-color: var(--c-sage); box-shadow: 0 0 0 4px var(--c-mist); }
.gd-err { display: block; font-style: normal; font-size: 0.8rem; color: #c62828; min-height: 0; margin-top: 4px; }
.gd-err:empty { display: none; }
.is-invalid input { border-color: #c62828; }
.gd-consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.82rem; line-height: 1.45; margin: 6px 0 20px; }
.gd-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-sage); }
.gd-consent a { color: inherit; text-decoration: underline; }
.gd-consent .gd-err { grid-column: 1 / -1; }
.gd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gd-submit { width: 100%; justify-content: center; font-size: 1.1rem; padding: 18px 24px; }
.gd-submit[disabled] { opacity: 0.7; cursor: wait; }
.gd-formerr { font-size: 0.88rem; color: #c62828; margin: 12px 0 0; text-align: center; }
.gd-formerr:empty { display: none; }

/* ── Écran rendez-vous (plein écran après le formulaire) ──────────────── */

.gd-modal.is-done {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  border-radius: 0; margin: 0;
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(0, 61, 213, 0.55), transparent 70%),
    var(--c-forest-deep);
  color: var(--c-text-dark-default);
}
.gd-modal.is-done .gd-modal__close { background: rgba(255, 255, 255, 0.1); color: #fff; }
.gd-done[hidden], .gd-form[hidden] { display: none; }
.gd-done { min-height: 100%; display: grid; place-items: center; text-align: center; padding: 72px 24px 48px; }
.gd-done__in { max-width: 760px; }
.gd-done__ok {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 700; color: #fff;
  background: rgba(74, 222, 128, 0.14); border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: var(--r-full); padding: 9px 18px 9px 12px; margin: 0 0 40px;
}
.gd-done__ok svg { width: 20px; height: 20px; color: #4ade80; }
.gd-team { display: flex; justify-content: center; gap: 28px; margin: 0 0 36px; padding: 0; list-style: none; }
.gd-team img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255, 255, 255, 0.9); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.gd-team b { display: block; font-size: 1rem; color: #fff; margin-top: 12px; }
.gd-team span { font-size: 0.85rem; }
.gd-done h2 { font-family: var(--font); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; color: #fff; margin: 0 0 16px; }
.gd-done p { font-size: 1.15rem; line-height: 1.55; color: #c9d5f5; margin: 0 auto 34px; max-width: 600px; }
.gd-done__again { display: inline-block; margin-top: 22px; font-size: 0.95rem; color: var(--c-sage-light); text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .gd-hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .gd-visual { min-height: 480px; max-width: 640px; }
  .gd-cards { grid-template-columns: repeat(2, 1fr); }
  .gd-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .gd__wrap { padding: 0 16px; }
  .gd-hero { padding: 128px 0 72px; }
  .gd-hero__lead { font-size: 1.08rem; }
  .gd-mods { margin-bottom: 32px; }
  .gd-cta { width: 100%; justify-content: center; font-size: 1.1rem; padding: 20px 24px; }
  .gd-hero__meta { gap: 24px; }
  .gd-hero__meta b { font-size: 1.6rem; }
  .gd-visual { min-height: 0; }
  .gd-visual__cover { display: none; }
  .gd-dash { position: relative; transform: none; padding: 14px; }
  .gd-dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .gd-dash__row { grid-template-columns: 1fr; }
  .gd-sec { padding: 72px 0; }
  .gd-sec__head { margin-bottom: 36px; }
  .gd-cards, .gd-steps { grid-template-columns: 1fr; }
  .gd-final { padding-bottom: 72px; }
  .gd-final__box { flex-direction: column; align-items: stretch; padding: 40px 24px; border-radius: 22px; }
  .gd-form { padding: 32px 20px 24px; }
  .gd-row { grid-template-columns: 1fr; gap: 0; }
  .gd-form__top img { width: 52px; }
  .gd-form__top h2 { font-size: 1.25rem; }
  .gd-team { gap: 14px; }
  .gd-team img { width: 92px; height: 92px; }
  .gd-team b { font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-modal[open] { animation: none; }
  .gd-cta, .gd-card { transition: none; }
}
