/* ===========================================================================
   guide.css — Bravico content hub / pillar pages
   Brand-strict: deep ink navy + terracotta on warm sand. No green, no gold.
   Reuses shared chrome (.site-header/.site-footer/.container from layout.css).
   =========================================================================== */

:root {
  --g-ink: #182b45;
  --g-ink-soft: #33456180;
  --g-terra: #c75c3a;
  --g-terra-deep: #a84a2e;
  --g-terra-wash: rgba(199, 92, 58, 0.1);
  --g-sand: #f6f0e6;
  --g-paper: #fffdf9;
  --g-line: #e5ddce;
  --g-text: #33455f;
  --g-muted: #64748b;
  --g-white: #fffdf9;
  --g-wa: #1fae57;
  --g-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

body.guide {
  background: var(--g-sand);
  color: var(--g-text);
}

.guide-main {
  background:
    linear-gradient(180deg, rgba(199, 92, 58, 0.06), rgba(246, 240, 230, 0) 420px),
    var(--g-sand);
}

/* ---------- hero ---------- */
.guide-hero {
  padding: calc(var(--nav-h) + 40px) 0 30px;
}

.guide-hero .eyebrow {
  color: var(--g-terra);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 900px;
  margin-top: 16px;
  color: var(--g-ink);
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.guide-hero h1 em {
  color: var(--g-terra);
  font-style: normal;
}

.guide-lead {
  max-width: 760px;
  margin-top: 20px;
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--g-text);
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 22px;
  color: var(--g-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.guide-meta .dot { color: var(--g-line); }

/* ---------- shared section rhythm ---------- */
.guide-section {
  padding: 26px 0;
  scroll-margin-top: 90px;
}

.guide-section h2 {
  max-width: 820px;
  color: var(--g-ink);
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  line-height: 1.15;
}

.guide-section h3 {
  margin-top: 22px;
  color: var(--g-ink);
  font-size: 1.16rem;
}

.guide-section p {
  max-width: 780px;
  margin-top: 14px;
  font-size: 1.03rem;
  line-height: 1.72;
}

.guide-section p a,
.guide-lead a {
  color: var(--g-terra-deep);
  font-weight: 700;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.guide-body-list {
  max-width: 780px;
  margin-top: 16px;
  display: grid;
  gap: 12px;
  list-style: none;
}

.guide-body-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.65;
  font-size: 1.02rem;
}

.guide-body-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--g-terra);
}

/* ---------- "l'essentiel" TL;DR card (GEO extraction target) ---------- */
.guide-tldr {
  margin: 8px 0 12px;
  padding: 26px 28px;
  border: 1px solid var(--g-line);
  border-left: 5px solid var(--g-terra);
  border-radius: 14px;
  background: var(--g-paper);
  box-shadow: 0 14px 34px -22px rgba(24, 43, 69, 0.4);
}

.guide-tldr h2 {
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-terra);
}

.guide-tldr p {
  max-width: 820px;
  margin-top: 12px;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--g-ink);
}

/* ---------- sommaire / TOC ---------- */
.guide-toc {
  margin: 14px 0 8px;
  padding: 22px 26px;
  border: 1px solid var(--g-line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.7);
}

.guide-toc p {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-muted);
}

.guide-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px 28px;
  counter-reset: toc;
  grid-template-columns: 1fr;
}

.guide-toc li { counter-increment: toc; }

.guide-toc a {
  color: var(--g-ink);
  font-weight: 700;
  text-decoration: none;
}

.guide-toc a::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 10px;
  color: var(--g-terra);
  font-variant-numeric: tabular-nums;
}

.guide-toc a:hover { color: var(--g-terra-deep); }

@media (min-width: 720px) {
  .guide-toc ol { grid-template-columns: 1fr 1fr; }
}

/* ---------- calendar / timeline ---------- */
.guide-timeline {
  max-width: 820px;
  margin-top: 22px;
  display: grid;
  gap: 0;
}

.phase {
  position: relative;
  padding: 18px 0 18px 34px;
  border-left: 2px solid var(--g-line);
}

.phase:last-child { border-left-color: transparent; }

.phase::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--g-sand);
  border: 3px solid var(--g-terra);
}

.phase.is-now::before { background: var(--g-terra); }

.phase .phase-when {
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--g-terra);
}

.phase .phase-what {
  margin-top: 4px;
  color: var(--g-ink);
  font-size: 1.08rem;
  font-weight: 750;
}

.phase .phase-note {
  margin-top: 4px;
  color: var(--g-muted);
  font-size: 0.96rem;
}

/* ---------- callout ---------- */
.guide-callout {
  max-width: 820px;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--g-terra-wash);
  border: 1px solid rgba(199, 92, 58, 0.25);
  color: var(--g-ink);
  font-size: 0.98rem;
  line-height: 1.65;
}

.guide-callout strong { color: var(--g-terra-deep); }

/* ---------- FAQ ---------- */
.guide-faq {
  max-width: 860px;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.guide-faq details {
  border: 1px solid var(--g-line);
  border-radius: 12px;
  background: var(--g-paper);
  padding: 4px 22px;
}

.guide-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  color: var(--g-ink);
  font-weight: 750;
  font-size: 1.04rem;
}

.guide-faq summary::-webkit-details-marker { display: none; }

.guide-faq summary::after {
  content: "+";
  flex: none;
  color: var(--g-terra);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 200ms ease;
}

.guide-faq details[open] summary::after { transform: rotate(45deg); }

.guide-faq details p {
  max-width: 780px;
  margin: 0 0 20px;
  line-height: 1.7;
  color: var(--g-text);
}

/* ---------- CTA band ---------- */
.guide-cta {
  margin: 40px 0 0;
  padding: 54px 0;
  background: var(--g-ink);
  color: rgba(255, 255, 255, 0.9);
}

.guide-cta h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.15;
}

.guide-cta p {
  max-width: 640px;
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.guide-cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- buttons ---------- */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.g-btn:hover { transform: translateY(-2px); }

.g-btn--terra {
  background: var(--g-terra); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 30px -12px rgba(199, 92, 58, 0.6);
}
.g-btn--terra:hover { background: var(--g-terra-deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 36px -12px rgba(199, 92, 58, 0.72); }

.g-btn--line {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.g-btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.g-btn--ink {
  background: var(--g-ink);
  color: #fff;
}
.g-btn--ink:hover { background: #223a5c; }

@media (max-width: 680px) {
  .guide-hero { padding: calc(var(--nav-h) + 18px) 0 22px; }
  .guide-section { padding: 22px 0; }
  .guide-tldr,
  .guide-toc { padding: 20px; }
}

/* ===========================================================================
   SHARED CHROME — nav (breadcrumb), footer, WhatsApp float, motion
   Matches home / pilotage / EFacture.
   =========================================================================== */
body.guide [id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 220;
  width: var(--scroll, 0%); height: 2.5px; background: var(--g-terra); pointer-events: none;
}
.skip {
  position: absolute; left: 12px; top: 10px; z-index: 300; transform: translateY(-200%);
  background: var(--g-ink); color: var(--g-sand); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { transform: none; }

.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: background 0.3s var(--g-ease), box-shadow 0.3s var(--g-ease); }
.nav.is-solid { background: rgba(246, 240, 230, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(24, 43, 69, 0.13); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); width: min(1120px, 100% - 40px); margin: 0 auto; }
.nav__crumbs { display: flex; align-items: center; gap: 9px; }
.nav__logo { display: inline-flex; }
.nav__logo img { height: 28px; width: auto; }
.nav__sep { display: inline-flex; align-items: center; color: var(--g-ink); opacity: 0.38; }
.nav__sep svg { width: 15px; height: 15px; }
.nav__product { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; color: var(--g-ink); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid var(--g-terra); }
@media (max-width: 560px) { .nav__logo img { height: 24px; } .nav__crumbs { gap: 7px; } .nav__product { font-size: 0.94rem; white-space: nowrap; } }

.foot { background: var(--g-ink); color: rgba(246, 239, 227, 0.75); padding: 64px 24px 34px; }
.foot__in { width: min(1120px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.foot__top { display: flex; flex-direction: column; gap: 34px; justify-content: space-between; align-items: flex-start; }
.foot__brand img { height: 30px; width: auto; }
.foot__brand p { margin-top: 18px; font-size: 0.94rem; line-height: 1.7; }
.foot__legal { margin-top: 10px; font-size: 0.8rem; line-height: 1.65; color: rgba(246, 239, 227, 0.5); }
.foot__contact { display: grid; gap: 5px; font-size: 0.94rem; }
.foot__contact h2 { margin: 0 0 2px; color: var(--g-white); font-size: 0.98rem; line-height: 1.2; }
.foot a { color: inherit; text-decoration: none; }
.foot__contact a, .foot__links a { width: fit-content; transition: color 0.2s var(--g-ease); }
.foot__contact a:hover, .foot__links a:hover { color: var(--g-terra); }
.foot__links { border-top: 1px solid rgba(246, 239, 227, 0.17); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 0.9rem; }
.foot__bottom { border-top: 1px solid rgba(246, 239, 227, 0.12); padding-top: 24px; text-align: center; color: rgba(246, 239, 227, 0.58); font-size: 0.88rem; }
@media (min-width: 720px) { .foot__top { flex-direction: row; align-items: flex-start; } .foot__contact { min-width: 210px; } .foot__links { justify-content: center; } }

.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 180; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px 0 15px; border-radius: 999px; background: var(--g-wa); color: #fff; font-weight: 700; font-size: 0.92rem; text-decoration: none; box-shadow: 0 18px 44px -18px rgba(24, 43, 69, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.22) inset; transition: transform 0.24s var(--g-ease), box-shadow 0.24s var(--g-ease), background 0.24s var(--g-ease); }
.wa-float:active { transform: scale(0.94); }
.wa-float:hover { background: #21b358; transform: translateY(-2px); box-shadow: 0 22px 54px -18px rgba(24, 43, 69, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.22) inset; }
.wa-float svg { width: 23px; height: 23px; flex: none; }
.wa-float__pulse { position: absolute; inset: -7px; border: 2px solid rgba(33, 179, 88, 0.42); border-radius: inherit; pointer-events: none; animation: wa-pulse 2.4s var(--g-ease) infinite; }
@keyframes wa-pulse { 0% { transform: scale(0.94); opacity: 0.9; } 70% { transform: scale(1.12); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 520px) { .wa-float { width: 56px; height: 56px; min-height: 56px; justify-content: center; padding: 0; } .wa-float span:not(.wa-float__pulse) { display: none; } }

.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--g-ease), transform 0.7s var(--g-ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .motion .reveal { opacity: 1; transform: none; transition: none; } .wa-float__pulse { animation: none; } }
