/* =============================================================
   GAÉ Finance - Page Levée de fonds & structuration (ldf-)
   Construite sur le socle commun site.css + pages.css.
   Aucune variable de couleur propre : uniquement les variables
   du système commun + la palette du site (marine #163867,
   noir #10161f, crème #f7f5f1, blanc, bronze #C4A97D en
   micro-accent discret : chiffres, filets, repères).
   Identité de la page par la composition (bandeau 6 temps,
   callouts « En une phrase », deux parcours CTA).
   Ordre de chargement : site.css -> pages.css -> levee.css
   ============================================================= */

/* ---------- Fil d'Ariane ---------- */
.ldf-breadcrumb {
  padding: 18px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.ldf-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
}
.ldf-breadcrumb li + li::before {
  content: "›";
  margin-right: 10px;
  color: rgba(22, 24, 29, 0.35);
}
.ldf-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.ldf-breadcrumb a:hover {
  text-decoration: underline;
}
.ldf-breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Hero : gabarit commun aux Expertises (16D) ---------- */
/* Titre le plus long des 4 expertises : adaptation contrôlée -10%
   pour conserver un wrap à 3 lignes comme les autres pages. */
.ldf-hero .service-hero__copy h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.25rem);
  line-height: 1.02;
  max-width: 720px;
}
.ldf-hero__lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text);
}
.ldf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Sommaire : enveloppe hero-panel standard (translucide, filet 1px,
   rayon 4px) - liens passés en clair pour rester lisibles (16D) */
.ldf-toc {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  counter-reset: ldf-toc;
}
.ldf-toc li {
  counter-increment: ldf-toc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.ldf-toc li:last-child {
  border-bottom: 0;
}
.ldf-toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 2px;
  color: rgba(244, 247, 251, 0.92);
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.45;
}
.ldf-toc a::before {
  content: counter(ldf-toc, decimal-leading-zero);
  font-size: 0.8rem;
  color: #C4A97D;
  font-weight: 700;
}
.ldf-toc a:hover {
  color: #ffffff;
}
.ldf-toc li:hover {
  border-bottom-color: var(--gold);
}

/* ---------- Callout « En une phrase » ---------- */
.ldf-phrase {
  max-width: 66ch;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 22px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text);
  margin: 22px 0 26px;
}
.ldf-phrase strong {
  color: var(--accent-dark);
}

/* ---------- Titres de sections ---------- */
.ldf-head {
  max-width: 820px;
  margin-bottom: 38px;
}
.ldf-head__intro {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.7;
}
.ldf-sub {
  font-size: 1.18rem;
  color: var(--accent-dark);
  margin: 30px 0 12px;
}
.ldf-copy p {
  max-width: 68ch;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 14px;
}
.ldf-copy strong {
  color: var(--text);
}
.ldf-copy a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(22, 24, 29, 0.35);
}
.ldf-copy a:hover {
  text-decoration-color: var(--accent);
}

/* ---------- Bandeau 6 temps (signature) ---------- */
.ldf-chain {
  display: flex;
  gap: 10px;
  margin: 30px 0 10px;
}
.ldf-chain__step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 12px 12px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow);
}
.ldf-chain__step::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: #C4A97D;
  font-weight: 700;
  z-index: 1;
}
.ldf-chain__step:last-child::after {
  content: none;
}
.ldf-chain__num {
  display: block;
  font-size: 0.78rem;
  color: #C4A97D;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ldf-chain__label {
  display: block;
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: 4px;
  font-size: 0.95rem;
}
.ldf-chain__hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* ---------- Cartes duo / trio ---------- */
.ldf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 20px 0;
}
.ldf-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.ldf-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.ldf-card--tint {
  background: var(--surface-alt);
  border-color: var(--line);
}
.ldf-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text);
}
.ldf-card--tint h3 {
  color: var(--accent-dark);
}
.ldf-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}
.ldf-card a {
  color: var(--accent);
  font-weight: 600;
}
.ldf-card__kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- Bande CTA intermédiaire ---------- */
.ldf-ctastrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #f7f5f1 0%, #f1ece2 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin: 34px 0 8px;
}
.ldf-ctastrip__copy h3 {
  color: var(--text);
  margin: 4px 0 6px;
  font-size: 1.25rem;
}
.ldf-ctastrip__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 560px;
}
.ldf-ctastrip .btn {
  flex: 0 0 auto;
}

/* ---------- Briques financement d'acquisition ---------- */
.ldf-bricks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.ldf-brick {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid #C4A97D;
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.ldf-brick strong {
  display: block;
  color: var(--accent-dark);
  font-size: 0.98rem;
}
.ldf-brick span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}

/* ---------- Highlight ---------- */
.ldf-highlight {
  max-width: 66ch;
  background: rgba(29, 53, 87, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.ldf-highlight p {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- Rôles GAÉ ---------- */
.ldf-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.ldf-roles li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.ldf-roles li::before {
  content: "→";
  color: #C4A97D;
  font-weight: 700;
  flex: 0 0 auto;
}
.ldf-roles strong {
  color: var(--accent-dark);
}

/* ---------- FAQ ---------- */
.ldf-faq {
  margin-top: 26px;
}
.ldf-faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.ldf-faq__item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.ldf-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  position: relative;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}
.ldf-faq__item summary::-webkit-details-marker {
  display: none;
}
.ldf-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.ldf-faq__item[open] summary::after {
  content: "−";
}
.ldf-faq__item summary h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.ldf-faq__body {
  max-width: 760px;
  padding: 0 20px 18px;
}
.ldf-faq__body p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}
.ldf-faq__body a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Lien-card Repères ---------- */
.ldf-linkcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 30px;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.ldf-linkcard__kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.ldf-linkcard__title {
  font-size: 1.12rem;
  color: var(--text);
  margin-top: 3px;
}
.ldf-linkcard__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 5px;
}
.ldf-linkcard__arrow {
  font-size: 1.4rem;
  color: #C4A97D;
  flex: 0 0 auto;
}
.ldf-linkcard:hover {
  text-decoration: none;
}

/* ---------- Bande finale (SANS H2 sémantique) ---------- */
.ldf-final {
  background: linear-gradient(135deg, #182536 0%, #10161f 100%);
  color: #ffffff;
}
.ldf-final__title {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 auto 10px;
  max-width: 432px;
  color: #f4f7fb;
  line-height: 1.3;
}
.ldf-final .section-kicker {
  color: rgba(244, 247, 251, 0.65);
}
.ldf-final__intro {
  text-align: center;
  color: rgba(244, 247, 251, 0.75);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.7;
}
.ldf-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.ldf-path {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ldf-path__kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.65);
}
.ldf-path__title {
  color: #ffffff;
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
}
.ldf-path p {
  margin: 0;
  color: rgba(244, 247, 251, 0.78);
  font-size: 0.93rem;
  line-height: 1.6;
  flex: 1;
}
.ldf-path .btn {
  align-self: flex-start;
}
.ldf-path--primary .btn {
  background: #ffffff;
  color: var(--accent-dark);
  border-color: #ffffff;
}
.ldf-path--secondary .btn {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}
.ldf-path--secondary .btn:hover {
  border-color: #ffffff;
}
.ldf-final__contact {
  max-width: 62ch;
  text-align: center;
  margin: 30px auto 0;
  color: rgba(244, 247, 251, 0.72);
  font-size: 0.92rem;
}
.ldf-final__contact a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .ldf-bricks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .ldf-hero .service-hero__grid {
    grid-template-columns: 1fr;
  }
  .ldf-hero {
    padding: 24px 0 40px;
  }
  .ldf-chain {
    flex-wrap: wrap;
  }
  .ldf-chain__step {
    flex: 1 1 30%;
  }
  .ldf-chain__step::after {
    content: none;
  }
  .ldf-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ldf-grid,
  .ldf-paths,
  .ldf-roles {
    grid-template-columns: 1fr;
  }
  .ldf-path .btn,
  .ldf-ctastrip .btn {
    white-space: normal;
  }
  .ldf-path,
  .ldf-ctastrip__copy {
    min-width: 0;
    max-width: 100%;
  }
  .ldf-ctastrip__copy p,
  .ldf-path__title,
  .ldf-path p {
    max-width: 100%;
  }
  .ldf-chain__step {
    flex: 1 1 46%;
  }
  .ldf-ctastrip {
    flex-direction: column;
    align-items: flex-start;
  }
  .ldf-linkcard {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .ldf-chain__step {
    flex: 1 1 100%;
  }
  .ldf-bricks {
    grid-template-columns: 1fr;
  }
  .ldf-path .btn {
    width: 100%;
    text-align: center;
  }
  .ldf-hero__actions .btn {
    width: 100%;
  }
  .ldf-card {
    padding: 18px 16px;
  }
}

/* =============================================================
   Phase 16C-1 - Levée de fonds & structuration : logique de
   financement mise en scène (progressions éditoriales), cartes
   déchromées, palette alignée sur le socle (marine + or).
   ============================================================= */

/* Sommaire : filets discrets, sans numérotation artificielle */
.ldf-toc { margin-top: 10px; }
.ldf-toc a { padding: 9px 2px; }
.ldf-toc a::before { content: none; }

/* Callout « En une phrase » : liseré or */
.ldf-phrase {
  background: transparent;
  border: none;
  border-left: 2px solid var(--gold);
  border-radius: 0;
  padding: 14px 0 4px 22px;
}
.ldf-phrase--dark {
  background: transparent;
  border-left: 2px solid var(--gold);
  color: rgba(244, 247, 251, 0.92);
}
.ldf-kicker--dark { color: var(--gold); }
/* 16D - contraste sections sombres : la specificity de .ldf-copy p
   (0,1,1) ecrasait le --dark (0,1,0) -> renfort ; et le callout
   .ldf-phrase vivant dans une .section--dark passe en clair. */
.ldf-copy p.ldf-copy--dark { color: rgba(242, 246, 251, 0.82); }
.section--dark .ldf-phrase { color: #f4f7fb; }
.section--dark .ldf-phrase strong { color: var(--gold); }
.ldf-copy--dark { color: rgba(242, 246, 251, 0.82); }

/* Les six temps : progression éditoriale (composant fin-schema),
   plus de cartes-flèches */
.ldf-chain { margin: 30px 0 10px; }

/* Besoins longs/courts et pré/post/dilution : ouvertures sur filets */
.ldf-grid { gap: 0 56px; margin-top: 26px; }
.ldf-grid--3 { gap: 0 40px; }
.ldf-card {
  padding: 22px 0 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line-strong);
  box-shadow: none;
}
.ldf-card--tint { background: transparent; border-top: 2px solid var(--gold); }

/* Bande CTA intermédiaire : plate, sur filets */
.ldf-ctastrip {
  gap: 18px 48px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

/* Structure de financement d'acquisition : composant fin-schema,
   plus de briques centrées */
.ldf-bricks { margin: 30px 0; }

/* Highlight : filet or */
.ldf-highlight {
  background: transparent;
  border: none;
  border-left: 2px solid var(--gold);
  border-radius: 0;
  padding: 4px 0 4px 22px;
}

/* Rôles GAÉ (sombre) : ouvertures sur filets, flèches retirées */
.ldf-roles { gap: 0; margin: 20px 0; }
.ldf-roles li {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  box-shadow: none;
  padding: 16px 0;
}
.ldf-roles li::before { color: var(--gold); }
.ldf-roles strong { color: #ffffff; }

/* FAQ : filets continus, marqueur sobre */
.ldf-faq { margin-top: 26px; }
.ldf-faq__item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
}
.ldf-faq__item[open] { border-color: var(--line); box-shadow: none; }
.ldf-faq__item:first-child { border-top: 1px solid var(--line); }
.ldf-faq__item summary { padding: 18px 44px 18px 0; }
.ldf-faq__item summary::after {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

/* Final : hiérarchie claire, CTA primaire + lien éditorial */
.ldf-final { background: linear-gradient(135deg, #182536 0%, #10161f 100%); }
.ldf-paths { gap: 0 56px; max-width: none; }
.ldf-path {
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  padding: 22px 0 0;
  align-items: flex-start;
}
.ldf-final .btn-secondary {
  padding: 12px 0;
}
.ldf-path .btn-secondary {
  background: transparent;
  border: none;
  color: rgba(244, 247, 251, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
}
.ldf-path .btn-secondary:hover {
  background: transparent;
  text-decoration-color: var(--gold);
  transform: none;
}

@media (max-width: 980px) {
  .ldf-grid, .ldf-grid--3, .ldf-paths { gap: 0; }
}
