/* ============================================================
   GAÉ Finance - Le Cabinet
   Phase 13B : refonte éditoriale du manifeste.
   Fichier chargé uniquement par /cabinet/ : les surcharges
   ci-dessous sont scopées à cette page.
   Principes : typographie et filets avant boîtes, compositions
   ouvertes 40/60, un seul rythme de fond, or rare (chiffres,
   détails). Palette : variables du socle (pages.css).
   ============================================================ */

.cab-breadcrumb {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: #5d6470;
}

.cab-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.cab-breadcrumb li { display: flex; align-items: center; }

.cab-breadcrumb li + li::before {
  content: "›";
  margin-right: 10px;
  color: rgba(22, 24, 29, 0.35);
}

.cab-breadcrumb a { text-decoration: none; }
.cab-breadcrumb a:hover { text-decoration: underline; }

.cab-breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Respiration générale de la page ---------- */

/* 16B-3B : rythme aligné sur la Home étalon (16B-3A), sans tasser */
main .section { padding: 96px 0; }
main .section--dark,
main .cta-band { padding: 104px 0; }

/* Ancres sous le header sticky (aligne sur les autres pages) */

section[id] { scroll-margin-top: 108px; }

/* ---------- Hero éditorial clair (rupture supprimée) ---------- */

.service-hero--light {
  background: none;
  color: var(--text);
  padding: 106px 0 92px;
}

.service-hero--light::before,
.service-hero--light::after { display: none; }

.service-hero--light .service-hero__copy h1 {
  color: var(--text);
  text-shadow: none;
}

.service-hero--light .service-hero__lead { color: var(--muted); }
.service-hero--light .service-hero__text { color: var(--muted); }

.service-hero--light .eyebrow {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
}

.service-hero--light .service-hero__grid--solo {
  max-width: 840px;
}

.service-hero--light .btn-primary {
  background: var(--accent-dark);
  color: #ffffff;
  box-shadow: none;
}

.service-hero--light .btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

/* ---------- Ouvertures éditoriales (Origine / Relation) ---------- */

.cab-open {
  max-width: 820px;
}

.cab-open h2 { margin: 16px 0 30px; }

.cab-open .richtext p { margin: 0 0 22px; }

.cab-open .richtext p:first-child {
  font-size: 1.14rem;
  line-height: 1.85;
  color: var(--text);
}

/* ---------- Citation : rupture sombre, composition ouverte ---------- */

.cab-quote { max-width: 900px; }

.cab-quote .section-kicker { color: rgba(242, 246, 251, 0.66); }

.cab-quote blockquote {
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #ffffff;
  max-width: 30ch;
}

.cab-quote p {
  margin-top: 26px;
  color: rgba(242, 246, 251, 0.72);
  line-height: 1.8;
  max-width: 56ch;
}

/* ---------- Listes éditoriales à filets (Indépendance / Engagements) ---------- */

.cab-rows {
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}

.cab-rows__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 4fr) minmax(0, 7fr);
  gap: 10px 44px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.cab-rows--plain .cab-rows__item {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}

.cab-rows__num {
  font-size: 1rem;
  font-weight: 600;
  color: #C4A97D;
  line-height: 1.7;
}

.cab-rows__item h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.45;
}

.cab-rows__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.cab-note {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid rgba(196, 169, 125, 0.55);
  font-size: 0.95rem;
  color: #334155;
}

/* ---------- Parcours d'accompagnement (timeline sobre, conservée) ---------- */

.cab-steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.cab-steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 0 0 34px 0;
}

.cab-steps__item:last-child { padding-bottom: 0; }

.cab-steps__body p {
  max-width: 64ch;
}

.cab-steps__item::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.cab-steps__item:last-child::before { display: none; }

.cab-steps__num {
  width: 52px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #C4A97D;
}

.cab-steps__body h3 {
  margin: 8px 0 8px;
  font-size: 1.12rem;
}

.cab-steps__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Portraits (une équipe resserrée, sans fiches) ---------- */

.cab-people { margin-top: 14px; }

.cab-people__photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.cab-people__item h3 {
  margin: 20px 0 10px;
  font-size: 1.22rem;
}

.cab-people__item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.cab-teams-note {
  max-width: 66ch;
  margin: 30px 0 0;
  color: var(--muted);
}

/* ---------- Situations (liste ouverte 2 colonnes, sans cartes) ---------- */

.cab-situations { margin-top: 6px; }

.cab-situations__item { padding: 10px 0 30px; }

.cab-situations__item h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.cab-situations__item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.cab-situations__item .cab-situations__link { margin-top: 12px; }

.cab-situations__link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.cab-situations__link a:hover { text-decoration: underline; }

/* ---------- FAQ éditoriale (filets, sans boîtes) ---------- */

.cab-faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.cab-faq__item {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.cab-faq__item:last-child { border-bottom: 1px solid var(--line); }

.cab-faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 8px 26px 0;
  cursor: pointer;
  list-style: none;
}

.cab-faq__item summary::-webkit-details-marker { display: none; }
.cab-faq__item summary::marker { content: ""; }

.cab-faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--muted);
  flex-shrink: 0;
}

.cab-faq__item[open] summary::after { content: "\2013"; }

.cab-faq__item summary h3 {
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 0;
}

.cab-faq__body {
  padding: 0 8px 28px 0;
  color: var(--muted);
  line-height: 1.75;
}

.cab-faq__body p { margin: 0 0 12px; }
.cab-faq__body p:last-child { margin-bottom: 0; }
.cab-faq__body strong { color: var(--text); }
.cab-faq__body a { color: var(--accent); }

/* ---------- CTA final : rupture sombre pleine largeur ---------- */

.cta-band {
  background: linear-gradient(180deg, #182536 0%, #10161f 100%);
  color: #f2f6fb;
}

.cta-band__inner {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.cta-band .btn-primary {
  background: #ffffff;
  color: #16181d;
  box-shadow: none;
}

.cta-band .btn-secondary {
  background: transparent;
  color: #f2f6fb;
  border-color: rgba(242, 246, 251, 0.35);
}

.cta-band__direct {
  max-width: 62ch;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(242, 246, 251, 0.75);
}

.cta-band__direct a {
  color: rgba(242, 246, 251, 0.92);
  text-decoration: none;
}

.cta-band__direct a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  main .section { padding: 78px 0; }
  main .section--dark,
  main .cta-band { padding: 88px 0; }

  .service-hero--light { padding: 84px 0 72px; }

  .cab-breadcrumb { padding-top: 12px; }

  .cab-rows__item,
  .cab-rows--plain .cab-rows__item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .cab-rows__num { line-height: 1; }

  .cab-quote blockquote { font-size: 1.5rem; }

  .cab-people__photo { max-width: none; }

  .cab-steps__item {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .cab-steps__item::before { left: 19px; }
  .cab-steps__num { width: 40px; font-size: 0.95rem; }

  .cab-faq__item summary { padding: 20px 4px 20px 0; }
  .cab-faq__body { padding: 0 4px 24px 0; }
}

/* =============================================================
   Phase 16B - Alignement design system 16A (couche system-16a
   chargée après). Numérotation : les 4 temps gardent leur ordre
   réel ; les 10 engagements perdent leurs numéros décoratifs.
   ============================================================= */

/* Engagements : pas de numérotation décorative (ordre non porteur) */
.cab-rows--numbered .cab-rows__item {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}

.cab-rows--numbered .cab-rows__num {
  display: none;
}

/* 4 temps : ordre réel, numérotation typographique serif */
.cab-steps__num {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
}

/* Citation manifeste : filet or, serif */
.cab-quote blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.35;
  color: #ffffff;
  max-width: 34ch;
}

.cab-quote p {
  max-width: 66ch;
}

/* Photos équipe : rayon 0 */
.cab-people__photo {
  border-radius: 0;
}

/* Situations d'accompagnement : filets éditoriaux, pas de cartes */
.cab-situations__item {
  border-top: 1px solid var(--line);
}

.cab-situations__item:first-child {
  border-top: none;
  padding-top: 10px;
}
