/* ============================================================
   DB Finance — Inner pages (Direction A language)
   Shared section components for the 5 inner pages.
   Loads after base.css + dir-a.css (fonts/tokens/CTA reused).
   ============================================================ */

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding-top: 144px; padding-bottom: clamp(40px, 5vw, 76px); overflow: hidden; }
.page-hero .aura-logo { position: absolute; top: -120px; right: -150px; width: 560px; color: var(--lavender); transform: rotate(90deg); opacity: .09; pointer-events: none; }
.page-hero .inner { position: relative; z-index: 1; }
.crumbs { font-size: 13px; color: var(--slate-soft); letter-spacing: .02em; margin-bottom: 26px; display: flex; gap: 10px; align-items: center; }
.crumbs a { color: var(--slate-soft); transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--teal); }
.crumbs .sep { color: var(--lavender); }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6.4vw, 92px); letter-spacing: -.02em; line-height: 1; color: var(--marine); max-width: 16ch; }
.page-hero h1 em { font-style: italic; color: var(--teal); }
.page-hero .lede { margin-top: 28px; font-size: clamp(17px, 1.55vw, 21px); color: var(--slate); max-width: 60ch; }
.page-hero .hero-actions { margin-top: 36px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* ---------- Generic section head ---------- */
.shead { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 68px); }
.shead h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.2vw, 54px); letter-spacing: -.015em; line-height: 1.04; color: var(--ink); margin-top: 18px; }
.shead p { margin-top: 18px; color: var(--slate); font-size: 17px; }
.section-alt { background: var(--lavender-bg); }
.section-paper { background: var(--paper); }

/* ---------- Missions ---------- */
.mblocks { border-top: 1px solid var(--lavender-line); }
.mblock { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 5vw, 76px); padding: clamp(38px, 5vw, 66px) 0; border-bottom: 1px solid var(--lavender-line); }
.mblock-head .mnum { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--teal); }
.mblock-head h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.01em; color: var(--marine); margin: 14px 0 18px; }
.mblock-head .accroche { color: var(--slate); font-size: 16.5px; max-width: 42ch; }
.mblock-body { align-self: center; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--lavender-line); }
.checklist li .ck { color: var(--teal); flex-shrink: 0; margin-top: 3px; }

.subcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.subcat { background: #fff; border: 1px solid var(--lavender-line); border-radius: var(--r); padding: 26px 24px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .5s; }
.subcat:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--teal-light); }
.subcat .sc-idx { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--teal); }
.subcat h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--marine); margin: 12px 0 9px; }
.subcat p { font-size: 14px; color: var(--slate); }

@media (max-width: 820px) {
  .mblock { grid-template-columns: 1fr; gap: 30px; }
  .subcats { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .checklist { grid-template-columns: 1fr; } }

/* ---------- Sectors ---------- */
.sectors-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.sector { flex: 1 1 280px; max-width: calc((100% - 40px) / 3); }
@media (max-width: 860px) { .sector { max-width: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .sector { max-width: 100%; } }
.sector { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--lavender-line); border-radius: var(--r-lg); padding: 32px 30px 34px; transition: transform .55s var(--ease-out), box-shadow .55s var(--ease), border-color .55s; }
.sector::after { content: ""; position: absolute; inset: auto -30% -50% auto; width: 60%; height: 60%; background: radial-gradient(circle, rgba(69,184,174,.14), transparent 70%); opacity: 0; transition: opacity .6s var(--ease); }
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.sector:hover::after { opacity: 1; }
.sector .s-pip { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--teal); }
.sector .s-pip i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.sector h3 { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 500; font-size: 23px; color: var(--marine); margin: 16px 0 11px; }
.sector p { position: relative; z-index: 1; font-size: 15px; color: var(--slate); }

/* ---------- Tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tool { background: #fff; border: 1px solid var(--lavender-line); border-radius: var(--r-lg); padding: 30px 26px; transition: box-shadow .5s var(--ease), transform .5s var(--ease-out); }
.tool:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.tool .t-cat { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--teal); }
.tool h4 { font-family: var(--font-display); font-weight: 500; font-size: 21px; color: var(--marine); margin: 10px 0 20px; }
.chips { display: flex; flex-wrap: nowrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 600; color: var(--marine); background: var(--lavender-bg); border: 1px solid var(--lavender-line); border-radius: var(--r-pill); padding: 7px 11px; white-space: nowrap; transition: background .35s var(--ease); }
.tool:hover .chip { background: #fff; }
@media (max-width: 1120px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tools-grid { grid-template-columns: 1fr; } }

/* ---------- Method / Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step { padding-top: 26px; border-top: 2px solid var(--lavender-line); position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--teal); transition: width .8s var(--ease-out) .1s; }
.step.is-visible::before, .is-visible .step::before { width: 52px; }
.step .st-num { font-family: var(--font-display); font-style: italic; font-size: clamp(38px, 4.6vw, 58px); color: var(--teal-light); line-height: .9; }
.step h4 { font-family: var(--font-display); font-weight: 500; font-size: 21px; color: var(--marine); margin: 16px 0 11px; }
.step p { font-size: 15px; color: var(--slate); }
@media (max-width: 880px) { .steps, .steps.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps, .steps.three { grid-template-columns: 1fr; } }

/* ---------- Profiles (DAF) ---------- */
.profiles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.profile { background: #fff; border: 1px solid var(--lavender-line); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 42px); transition: transform .55s var(--ease-out), box-shadow .55s var(--ease), border-color .55s; }
.profile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-light); }
.profile .p-stage { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--teal); }
.profile .p-stage i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.profile h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); color: var(--marine); margin: 16px 0 12px; }
.profile p { color: var(--slate); font-size: 15.5px; }
@media (max-width: 740px) { .profiles-grid { grid-template-columns: 1fr; } }

/* ---------- Reporting showcase + features ---------- */
.reporting-showcase { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.reporting-showcase .dash { box-shadow: var(--shadow-lg); }
.reporting-showcase .rs-text h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.015em; color: var(--ink); margin-bottom: 20px; }
.reporting-showcase .rs-text p { color: var(--slate); font-size: 17px; margin-bottom: 16px; max-width: 50ch; }
@media (max-width: 980px) { .reporting-showcase { grid-template-columns: 1fr; } }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { display: flex; gap: 22px; background: #fff; border: 1px solid var(--lavender-line); border-radius: var(--r-lg); padding: 30px 28px; transition: transform .55s var(--ease-out), box-shadow .55s var(--ease), border-color .55s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--teal-light); }
.feature .f-badge { flex-shrink: 0; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--teal); background: var(--lavender-bg); border-radius: var(--r-sm); width: 58px; height: 58px; display: grid; place-items: center; text-align: center; line-height: 1; }
.feature h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; color: var(--marine); margin-bottom: 9px; }
.feature p { font-size: 15px; color: var(--slate); }

/* ---------- History (À propos) ---------- */
.history { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.history-visual { position: relative; aspect-ratio: 1/1; }
.history-visual .h-card { position: absolute; border-radius: var(--r-lg); border: 1px solid var(--lavender-line); box-shadow: var(--shadow); background: linear-gradient(150deg, var(--lavender-bg), #fff); display: grid; place-items: center; overflow: hidden; }
.history-visual .h1 { inset: 0 30% 26% 0; z-index: 2; }
.history-visual .h2 { inset: 30% 0 0 32%; z-index: 1; background: linear-gradient(150deg, #fff, var(--lavender-bg)); }
.history-text h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.8vw, 50px); letter-spacing: -.015em; color: var(--ink); margin-bottom: 24px; }
.history-text h2 em { font-style: italic; color: var(--teal); }
.history-text p { color: var(--slate); font-size: clamp(16px, 1.5vw, 18.5px); margin-bottom: 18px; max-width: 56ch; }
@media (max-width: 820px) { .history { grid-template-columns: 1fr; } .history-visual { max-width: 420px; } }

/* ---------- Values (signature) ---------- */
.values-band { text-align: center; }
.values-band .v-words { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 5vw, 70px); margin-top: 20px; }
.values-band .v-words span { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 7vw, 96px); letter-spacing: -.02em; color: var(--marine); line-height: 1; position: relative; }
.values-band .v-words span em { font-style: italic; color: var(--teal); }

/* ---------- Career ---------- */
.career-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: #fff; border: 1px solid var(--lavender-line); border-radius: var(--r-lg); padding: clamp(36px, 5vw, 70px); }
.career-panel h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.8vw, 50px); letter-spacing: -.015em; color: var(--ink); margin-bottom: 18px; }
.career-panel h2 em { font-style: italic; color: var(--teal); }
.career-panel p { color: var(--slate); font-size: 17px; max-width: 44ch; }
.career-panel .career-action { display: flex; justify-content: flex-end; }
@media (max-width: 760px) { .career-panel { grid-template-columns: 1fr; } .career-panel .career-action { justify-content: flex-start; } }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); color: var(--marine); margin: clamp(32px, 4vw, 52px) 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--slate); font-size: 15.5px; margin-bottom: 12px; }
.legal ul { list-style: none; padding: 0; }
.legal ul li { display: flex; gap: 12px; }
.legal ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-light); margin-top: 9px; flex-shrink: 0; }
.legal a { color: var(--teal); font-weight: 600; }
.legal .legal-meta { background: var(--lavender-bg); border: 1px solid var(--lavender-line); border-radius: var(--r); padding: 26px 30px; margin-bottom: 8px; }
.legal .legal-meta p { margin-bottom: 6px; }
.legal .legal-meta b { color: var(--ink); }

/* ---------- Éléments restant à compléter avant mise en ligne ----------
   Volontairement voyant : ces mentions ne doivent pas passer en production
   sans être renseignées. `tools/check-todos.ps1` bloque si l'un subsiste. */
.todo {
  background: #fff3d6;
  border-bottom: 2px solid #e0a92b;
  color: #7a5200;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}
.todo::before { content: "⚠ "; }

/* Définitions clé/valeur des pages légales */
.legal dl { margin: 0 0 12px; }
.legal dl div {
  display: grid; grid-template-columns: 210px 1fr; gap: 4px 20px;
  padding: 11px 0; border-bottom: 1px solid var(--lavender-line);
}
.legal dl div:last-child { border-bottom: 0; }
.legal dt { color: var(--ink); font-weight: 600; font-size: 14px; }
.legal dd { margin: 0; color: var(--slate); font-size: 15.5px; }
@media (max-width: 620px) { .legal dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Sommaire des pages légales */
.legal-toc {
  background: var(--lavender-bg); border: 1px solid var(--lavender-line);
  border-radius: var(--r); padding: 22px 28px; margin-bottom: 8px;
}
.legal-toc p { font-weight: 600; color: var(--ink); margin-bottom: 10px; font-size: 14px; }
.legal-toc ol { margin: 0; padding-left: 18px; columns: 2; column-gap: 32px; }
.legal-toc li { font-size: 14.5px; margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { color: var(--slate); font-weight: 500; }
.legal-toc a:hover { color: var(--teal); }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }

.legal .updated { font-size: 13.5px; color: var(--slate-soft); margin-top: 40px; font-style: italic; }

/* ---------- Cartes de compétences ----------
   Remplacent les emplacements de portraits : le cabinet ne publie pas de
   photos. Sélecteurs volontairement spécifiques pour l'emporter sur les
   règles .portrait (dir-a.css) et .history-visual .h-card ci-dessus. */
.portrait.skill-card,
.history-visual .h-card.skill-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 9px;
  padding: clamp(20px, 2.4vw, 32px);
  place-items: initial;
  background: linear-gradient(155deg, var(--lavender-bg), #fff 70%);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease);
}
.portrait.p-2.skill-card,
.history-visual .h2.skill-card {
  background: linear-gradient(155deg, #fff, var(--lavender-bg) 90%);
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.skill-card .sc-index {
  font-family: var(--font-display); font-style: italic;
  font-size: 15px; color: var(--teal);
}
.skill-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(19px, 1.9vw, 26px); line-height: 1.15;
  color: var(--marine); letter-spacing: -.01em;
}
.skill-card p { font-size: 14.5px; line-height: 1.55; color: var(--slate); margin: 0; }
.skill-card .sc-tools {
  margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--lavender-line);
  align-self: stretch;
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  color: var(--slate-soft);
}

/* Sous 560px, la superposition en diagonale devient illisible :
   les cartes repassent en flux normal, l'une sous l'autre. */
@media (max-width: 560px) {
  .portrait-stack, .history-visual {
    position: static; aspect-ratio: auto;
    display: grid; gap: 16px;
  }
  .portrait.skill-card,
  .history-visual .h-card.skill-card {
    position: static; inset: auto; min-height: 190px;
  }
}

/* Les tuiles d'origine se chevauchaient largement — sans conséquence quand
   elles étaient décoratives. Avec du texte, le chevauchement doit rester une
   bande fine, en dehors de la zone de contenu (aligné en bas de carte). */
.portrait.p-1.skill-card        { inset: 0 32% 44% 0;  z-index: 2; }
.portrait.p-2.skill-card        { inset: 48% 0 0 32%;  z-index: 1; }
.history-visual .h1.skill-card  { inset: 0 32% 44% 0;  z-index: 2; }
.history-visual .h2.skill-card  { inset: 48% 0 0 32%;  z-index: 1; }
