/* ============================================================
   GAÉ Finance - Opérations en cours (design « fiche de mandat »)
   Un seul composant pour toutes les opérations : registre de
   mandats M&A haut de gamme. Pas d'aplat, pas de carte :
   la hiérarchie vient de la typographie, de l'espace et des
   séparateurs très fins.
   Palette : exclusivement vars socle + hex validés
   (blanc, #f7f5f1, marine #163867, #10161f, or #C4A97D micro-accent).
   DOM des données inchangé (reference, type_operation, secteur,
   zone, region, description, statut, chiffres, cta_optionnel,
   visibilite) - composant unique, extensible sans refonte.
   ============================================================ */

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

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

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

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

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

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

/* ---------- Introduction resserrée (contenu inchangé) ---------- */

.ope-tight { padding: 40px 0 48px; }

.ope-tight .editorial-block {
  padding: 26px 32px;
  border-radius: var(--radius-lg);
}

/* ---------- Surface de lecture : blanc franc ---------- */

.section.ope-registry { background: #ffffff; }

/* ---------- Micro-navigation de synthèse (non cliquable) ---------- */

.ope-synth {
  max-width: 72ch;
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.ope-synth strong {
  font-weight: 600;
  color: #163867;
}

.ope-synth .ope-synth__sep {
  color: #C4A97D;
  padding: 0 2px;
}

/* ============================================================
   Fiche de mandat - composant unique
   Registre : pas de boîte, pas d'ombre ; les fiches se
   séparent par un filet très fin et de grands blancs.
   ============================================================ */

.ope-row {
  display: flex;
  flex-direction: column;
  padding: 52px 0 56px;
  border-top: 1px solid var(--line);
}

.ope-row:first-of-type {
  border-top: none;
  padding-top: 32px;
}

/* ---------- Zone identité ---------- */

.ope-row__id {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.ope-row__index {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #C4A97D;
  margin-bottom: 10px;
}

.ope-row__ref {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #10161f;
  line-height: 1.05;
}

.ope-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
}

.ope-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* statuts : composants préparés pour le futur back-office,
   à n'afficher que lorsque la donnée réelle sera publiée */
.ope-badge--status {
  background: rgba(196, 169, 125, 0.12);
  color: #8a5a2b;
  border-color: rgba(196, 169, 125, 0.45);
  font-weight: 600;
}

/* ---------- Zone descriptive ---------- */

.ope-row__desc { margin-top: 20px; }

.ope-sector {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
  color: #163867;
  line-height: 1.4;
}

.ope-row__desc p {
  margin: 14px 0 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- Bande KPI premium ---------- */

.ope-keyfigs {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #f7f5f1;
  padding: 26px 32px;
}

.ope-keyfig {
  display: flex;
  flex-direction: column-reverse; /* valeur en grand au-dessus du label */
  gap: 4px;
  padding: 0 28px;
  border-left: 1px solid rgba(22, 24, 29, 0.1);
}

.ope-keyfig:first-child {
  border-left: none;
  padding-left: 0;
}

.ope-keyfig__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.ope-keyfig__value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #163867;
  line-height: 1.1;
}

/* ---------- Ligne de conclusion après les fiches ---------- */

article.ope-row:last-of-type + p { margin-top: 36px; }

/* ---------- Double parcours de contact ---------- */

.ope-path {
  display: grid;
  gap: 10px;
}

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

.ope-path .btn { align-self: start; margin-top: 6px; }

/* ---------- Confidentialité : trois niveaux ---------- */

.ope-conf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 26px;
  margin: 28px 0 0;
}

.ope-conf__item {
  border-left: 2px solid #C4A97D;
  padding: 4px 0 4px 16px;
}

.ope-conf__item h3 {
  font-size: 0.98rem;
  margin: 0 0 6px;
}

.ope-conf__item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- FAQ (pattern commun) ---------- */

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

.ope-faq__item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ope-faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

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

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

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

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

.ope-faq__body {
  max-width: 760px;
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.75;
}

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

/* ---------- Ligne contact sous le CTA final ---------- */

.cta-band__direct {
  max-width: 62ch;
  margin: 18px 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: 899px) {
  .ope-tight { padding: 28px 0 32px; }
  .ope-tight .editorial-block { padding: 22px 24px; }

  .ope-row { padding: 40px 0 44px; }
  .ope-row:first-of-type { padding-top: 24px; }

  .ope-row__ref { font-size: 2rem; }
  .ope-row__desc { margin-top: 16px; }
  .ope-keyfigs { margin-top: 28px; padding: 20px 24px; }
  .ope-keyfig__value { font-size: 1.4rem; }

  .ope-conf { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .ope-row { padding: 34px 0 38px; }

  .ope-row__id {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ope-row__ref { font-size: 1.7rem; }
  .ope-row__index { margin-bottom: 8px; }

  /* KPI : pile compacte, séparateur fin au-dessus de chaque item */
  .ope-keyfigs {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 20px 10px;
  }

  .ope-keyfig,
  .ope-keyfig:first-child {
    border-left: none;
    border-top: 1px solid rgba(22, 24, 29, 0.08);
    padding: 14px 0;
  }

  .ope-keyfig:first-child { border-top: none; }
  .ope-keyfig__value { font-size: 1.3rem; }

  .ope-synth { font-size: 0.84rem; }
}

/* Phase 14 : paragraphe nu de clôture, mesure de lecture */
main .section > .container > p {
  max-width: 68ch;
}

/* ============================================================
   Phase 16C-3 - Operations : harmonisation systeme (16A/16B/16C).
   Mandats codes et logique de confidentialite conserves.
   ============================================================ */

/* Palette passe aux variables du socle */
.ope-synth strong { color: var(--accent); }
.ope-synth .ope-synth__sep { color: var(--gold); }
.ope-row__ref { color: var(--ink); }
.ope-row__index { color: var(--gold); }
.ope-sector { color: var(--accent); }
.ope-keyfig__value { color: var(--accent); }
.ope-conf__item { border-left-color: var(--gold); }

/* Etiquettes de mandat : fonction reelle conservee, pills
   retirees - filet fin (rayon corrige a la base en 16C-4) */
.ope-badge {
  padding: 4px 10px;
  font-size: 0.78rem;
}
.ope-badge--status {
  background: rgba(196, 169, 125, 0.1);
  color: var(--accent);
  border-color: rgba(196, 169, 125, 0.45);
}

/* Bande de chiffres cles : boite beige retiree, lecture sur
   filets ouverts (pattern infos pratiques Home) */
.ope-keyfigs {
  background: transparent;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 0;
}
.ope-keyfig { border-left-color: var(--line); }
.ope-keyfig__label { color: var(--muted); }

/* FAQ : cartes ombrees -> filets continus (pattern valide) */
.ope-faq { gap: 0; }
.ope-faq__item {
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  overflow: visible;
}
.ope-faq__item:first-child { border-top: 1px solid var(--line); }
.ope-faq__item summary { padding: 18px 0; }
.ope-faq__body { padding: 0 0 20px 0; }
