/* ============================================================
   ia-pages.css — shared styles for ia-formation.html
   and ia-conseil.html. Built on top of styles.css tokens.
   ============================================================ */

/* =============== Page hero =============== */
.page-hero {
  padding: clamp(80px, 10vw, 140px) var(--pad) clamp(56px, 7vw, 96px);
  background: var(--bg);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero--dark {
  background: var(--ink);
  color: #fff;
}
.page-hero--dark h1,
.page-hero--dark h2 { color: #fff; }
.page-hero--dark .outline { -webkit-text-stroke: 3px #fff; }
.page-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-hero__title {
  font-family: var(--f-display, "Archivo Black", "Archivo", sans-serif);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.page-hero__lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  max-width: 60ch;
  color: var(--ink-3);
  margin-bottom: 36px;
}
.page-hero--dark .page-hero__lede { color: rgba(255,255,255,0.78); }
.page-hero--dark .page-hero__lede strong { color: #fff; }
.page-hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.btn--lg { padding: 18px 28px; font-size: 15px; }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--ghost-light:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }

/* Hero stats reuse the home hero pattern */
.hero__stats--dark {
  border-top: 2px solid rgba(255,255,255,0.18);
  padding-top: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero__stats--dark dt {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.hero__stats--dark dd {
  margin: 0;
  font-family: var(--f-display, "Archivo Black", "Archivo", sans-serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 8px;
}
.hero__stats--dark dd span {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
@media (max-width: 800px) {
  .hero__stats--dark { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* =============== Breadcrumb =============== */
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumb a:hover { border-bottom-color: var(--red); color: var(--red); }
.breadcrumb span { margin: 0 10px; color: var(--mute); }
.breadcrumb--light { color: rgba(255,255,255,0.5); }
.breadcrumb--light a { color: rgba(255,255,255,0.78); }

/* =============== Tags pill row =============== */
.tags {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tags li {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
}
/* On a light card, override */
.formation__grid .card:not(.card--lg) .tags li {
  border-color: var(--line);
  color: var(--ink-3);
}

/* =============== Public grid four cols =============== */
.public__grid--four {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 1100px) { .public__grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .public__grid--four { grid-template-columns: 1fr; } }

/* =============== Livrables (formation) =============== */
.livrables__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.livrable {
  background: var(--bg);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: background .25s ease;
}
.livrable:hover { background: var(--paper); }
.livrable__num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--red); font-weight: 700;
}
.livrable h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.livrable p { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 1100px) { .livrables__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .livrables__grid { grid-template-columns: 1fr; } }

/* =============== Day blocks (formation IA) =============== */
.day-block {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 3.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.day-block + .day-block { margin-top: 24px; }
.day-block__head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.day-block__tag {
  display: inline-block;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
  margin-bottom: 12px;
}
.day-block__head h3 {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.day-block__head p {
  color: var(--ink-3);
  font-size: clamp(15px, 1.1vw, 17px);
  max-width: 60ch;
}

.ia-modules {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.ia-modules li {
  padding: 22px 20px;
  background: var(--paper);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 8px;
}
.ia-modules__num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--red); font-weight: 700;
}
.ia-modules h4 {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
}
.ia-modules p {
  color: var(--ink-3); font-size: 13.5px; line-height: 1.5;
}
@media (max-width: 1100px) { .ia-modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .ia-modules { grid-template-columns: 1fr; } }

/* =============== CTA band (cross-sell) =============== */
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,0.78); }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
.cta-band__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: flex-end;
}
@media (max-width: 1100px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
}

/* =============== Probleme / Tension card (conseil) =============== */
.probleme { background: var(--bg); }
.tension-card {
  margin-bottom: clamp(48px, 5vw, 72px);
  padding: clamp(32px, 4vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
}
.tension-card__kicker {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
  margin-bottom: 16px;
}
.tension-card__points {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; gap: 8px;
  counter-reset: tens;
}
.tension-card__points li {
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 500;
  padding-left: 48px;
  position: relative;
  counter-increment: tens;
}
.tension-card__points li::before {
  content: "0" counter(tens);
  position: absolute; left: 0; top: 6px;
  font-family: var(--f-mono); font-size: 13px;
  letter-spacing: 0.16em; color: var(--red); font-weight: 700;
}
.tension-card__points strong { color: var(--red); font-weight: 800; }
.tension-card__concl {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  max-width: 70ch;
}

/* Risques (4 cards) */
.risques {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.risques li {
  background: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .25s ease;
}
.risques li:hover { background: var(--paper); }
.risques__num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--red); font-weight: 700;
}
.risques h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.risques p { color: var(--ink-3); font-size: 15px; line-height: 1.55; }
@media (max-width: 800px) { .risques { grid-template-columns: 1fr; } }

/* =============== Position / Convictions =============== */
.position { background: var(--paper); }
.convictions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.conviction {
  background: var(--bg);
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.conviction__num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--red); font-weight: 700;
}
.conviction h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  min-height: 2.4em;
}
.conviction p { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
.conviction strong { color: var(--ink); font-weight: 700; }
@media (max-width: 1100px) { .convictions { grid-template-columns: 1fr 1fr; } .conviction h3 { min-height: 0; } }
@media (max-width: 640px)  { .convictions { grid-template-columns: 1fr; } }

/* =============== Process (5 phases / 10 étapes) =============== */
.process { background: var(--bg); }
.phases {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0;
}
.phase {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5vw, 72px) 0;
  border-top: 2px solid var(--ink);
  align-items: start;
}
.phase:last-child { border-bottom: 2px solid var(--ink); }
.phase__head { position: sticky; top: 110px; }
.phase__num {
  display: inline-block;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: var(--red);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.phase__head h3 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.phase__head p {
  color: var(--ink-3);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  max-width: 36ch;
}
.phase__steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0;
}
.phase__steps li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
}
.phase__steps li:first-child { border-top: none; padding-top: 0; }
.phase__steps li:last-child { padding-bottom: 0; }
.phase__step {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
}
.phase__steps strong {
  display: block;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  color: var(--ink);
}
.phase__steps p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  grid-column: 2;
}
@media (max-width: 1100px) {
  .phase { grid-template-columns: 1fr; gap: 32px; }
  .phase__head { position: static; }
  .phase__steps li { grid-template-columns: 1fr; gap: 6px; }
  .phase__steps p { grid-column: 1; }
}

/* Phases overview (condensed, no IP detail) */
.phases-overview {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0;
  border-top: 2px solid var(--ink);
}
.phase-ov {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.phase-ov__num {
  font-family: var(--f-display, "Archivo Black", sans-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: 2px var(--red);
  color: transparent;
}
.phase-ov h3 {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.phase-ov p {
  color: var(--ink-3);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  max-width: 64ch;
}
.process__note {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 24px 28px;
  background: var(--paper);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 80ch;
}
.process__note strong { color: var(--ink); }
@media (max-width: 600px) {
  .phase-ov { grid-template-columns: 1fr; gap: 8px; }
}

/* Deliverable categories (condensed) */
.deliv-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.deliv-cat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
}
.deliv-cat__num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--red); font-weight: 700;
}
.deliv-cat h3 {
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.deliv-cat p { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 1000px) { .deliv-cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .deliv-cats { grid-template-columns: 1fr; } }

/* =============== Vigilance / Tensions =============== */
.vigilance { background: var(--paper); }
.tensions {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tension {
  background: var(--bg);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.tension__num {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--red); font-weight: 700;
}
.tension h3 {
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.tension p { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
.tension strong { color: var(--ink); font-weight: 700; }
.tension__concl {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2) !important;
  font-size: 13.5px !important;
}
.tension__concl em {
  display: block;
  color: var(--red);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 4px;
}
@media (max-width: 1100px) { .tensions { grid-template-columns: 1fr; } }

/* =============== Livrables conseil =============== */
.livrables-conseil { background: var(--bg); }
.deliverables {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.deliv {
  background: var(--bg);
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.deliv__phase {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.deliv ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.deliv li {
  padding: 10px 0 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  position: relative;
}
.deliv li::before {
  content: "↳";
  position: absolute; left: 0; top: 10px;
  color: var(--red); font-weight: 700;
}
.deliv li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .deliverables { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .deliverables { grid-template-columns: 1fr; } }
