/* =========================================================================
   ORBIT® — Méthode d'analyse & de transformation des PME
   Feuille de style principale
   Palette : crème / bleu nuit / cuivre — Source Serif 4 + Archivo
   ========================================================================= */

:root {
  /* Couleurs */
  --cream:      #e9e6e0;
  --cream-2:    #f1eee8;
  --paper:      #faf8f4;
  --navy:       #16233f;
  --navy-2:     #1e3054;
  --navy-soft:  #33415f;
  --copper:     #c1622f;
  --copper-2:   #a04e22;
  --copper-3:   #d98a5a;
  --copper-wash:#f3e2d5;
  --muted:      #5c667a;
  --line:       #d7d2c8;
  --line-soft:  #e2ddd4;

  /* Typo */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rythme */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -30px rgba(22, 35, 63, 0.35);
  --shadow-soft: 0 12px 40px -24px rgba(22, 35, 63, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset léger ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--copper-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.05; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--copper);
  display: inline-block;
}
.serif-italic { font-style: italic; color: var(--copper); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--navy-soft); max-width: 62ch; }

/* ============================ HEADER / NAV ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(233, 230, 224, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(233,230,224,0.94); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--navy);
  display: inline-flex; align-items: baseline; gap: 2px;
}
.brand sup { font-size: .5em; color: var(--copper); top: -0.9em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--navy); font-weight: 500; font-size: .95rem;
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--copper); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--copper); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s var(--ease); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 100px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--copper); color: #fff; box-shadow: 0 12px 24px -12px rgba(193, 98, 47, .7); }
.btn-primary:hover { background: var(--copper-2); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(193, 98, 47, .75); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================ HERO ============================ */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-title {
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 0.98;
  margin: 6px 0 26px;
  letter-spacing: -0.025em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; }
.hero-sub { font-size: clamp(1.08rem, 1.7vw, 1.35rem); color: var(--navy-soft); max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; margin-top: 46px; flex-wrap: wrap; }
.hero-meta .stat b { font-family: var(--serif); font-size: 2.2rem; color: var(--copper); display: block; line-height: 1; }
.hero-meta .stat span { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* ---- Système orbital (animation hero, direction 1B) ---- */
.orbit-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orbit-ring {
  position: absolute; top: 50%; left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.orbit-ring.dashed { border-style: dashed; border-color: rgba(193, 98, 47, .35); }
.orbit-core {
  position: relative;
  width: 128px; height: 128px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #24406e, var(--navy) 70%);
  color: var(--cream);
  display: grid; place-items: center; text-align: center;
  box-shadow: 0 20px 50px -18px rgba(22,35,63,.7), inset 0 2px 10px rgba(255,255,255,.12);
  z-index: 5;
}
.orbit-core span { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.orbit-core small { display: block; font-family: var(--sans); font-weight: 500; font-size: .58rem; letter-spacing: .18em; color: var(--copper-3); margin-top: 4px; }
.orbit-core::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(193,98,47,.4);
  animation: pulse 3.2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8;} 70%{ transform: scale(1.35); opacity: 0;} 100%{opacity:0;} }

/* chaque satellite tourne sur son orbite ; le badge reste droit (contre-rotation) */
.satellite {
  position: absolute; top: 50%; left: 50%;
  width: var(--r); height: var(--r);
  margin: calc(var(--r) / -2) 0 0 calc(var(--r) / -2);
  border-radius: 50%;
  animation: spin var(--dur) linear infinite;
  animation-delay: var(--delay, 0s);
}
.satellite .node {
  position: absolute; top: -26px; left: 50%;
  transform: translateX(-50%) rotate(0deg);
  animation: spin-rev var(--dur) linear infinite;
  animation-delay: var(--delay, 0s);
}
.node b {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); color: var(--navy);
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.satellite:nth-child(odd) .node b { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.node em {
  display: block; font-style: normal; font-family: var(--sans);
  font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-top: 7px; white-space: nowrap;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* le badge contre-rotate à la même cadence pour rester DROIT en orbitant ;
   le translateX(-50%) est conservé pour que les listes de transforms interpolent */
@keyframes spin-rev {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(-360deg); }
}

/* ============================ MARQUEE ============================ */
.marquee {
  background: var(--navy); color: var(--cream);
  overflow: hidden; white-space: nowrap;
  margin-top: clamp(48px, 6vw, 88px);
  border-block: 1px solid var(--navy-2);
}
.marquee-track { display: inline-flex; gap: 0; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .04em;
  padding: 20px 34px; display: inline-flex; align-items: center; gap: 34px;
}
.marquee-track span::after { content: "✦"; color: var(--copper-3); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================ SECTIONS ============================ */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.02em; }
.section-head p { margin-top: 18px; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-navy h2, .bg-navy h3 { color: var(--cream); }
.bg-navy .eyebrow { color: var(--copper-3); }
.bg-navy .eyebrow::before { background: var(--copper-3); }
.bg-navy .lede, .bg-navy p { color: rgba(233,230,224,.82); }

/* Conviction band */
.conviction {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
.conviction blockquote {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.22; letter-spacing: -0.01em;
}
.conviction blockquote em { color: var(--copper-3); font-style: italic; }
.chain { display: grid; gap: 12px; }
.chain-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start;
  padding: 16px 20px; border-radius: 14px; background: rgba(233,230,224,.06);
  border: 1px solid rgba(233,230,224,.12);
}
.chain-row b { font-family: var(--serif); color: var(--copper-3); font-size: 1.05rem; }
.chain-row span { font-size: .92rem; color: rgba(233,230,224,.8); }

/* Cartes génériques */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--copper-3); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--copper-wash); color: var(--copper-2);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}

/* Enjeux — liste à puces stylée */
.pill-list { display: grid; gap: 12px; }
.pill-list li {
  list-style: none; display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 20px; background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 12px; font-size: .95rem; color: var(--navy-soft);
}
.pill-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); margin-top: 8px; }
ul.plain { padding: 0; margin: 0; }

.risk-box {
  border-left: 3px solid var(--copper); background: var(--copper-wash);
  padding: 26px 30px; border-radius: 0 14px 14px 0; margin-top: 30px;
}
.risk-box h3 { font-size: 1.15rem; color: var(--copper-2); margin-bottom: 8px; }
.risk-box p { margin: 0; color: var(--navy-soft); }

/* ============================ 5 PHASES ============================ */
.phase-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.phase-tab {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 100px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line);
  font-family: var(--sans); font-weight: 600; font-size: .92rem; color: var(--navy);
  transition: all .25s var(--ease);
}
.phase-tab .letter {
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--copper);
}
.phase-tab:hover { border-color: var(--copper-3); }
.phase-tab.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.phase-tab.active .letter { color: var(--copper-3); }

.phase-panel { display: none; animation: fade .4s var(--ease); }
.phase-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.phase-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.phase-hero {
  position: sticky; top: 100px;
  background: var(--navy); color: var(--cream); border-radius: var(--radius-lg);
  padding: 40px; overflow: hidden;
}
.phase-hero .big-letter {
  font-family: var(--serif); font-weight: 700; font-size: clamp(6rem, 14vw, 11rem);
  line-height: .8; color: var(--copper-3); opacity: .95;
}
.phase-hero h3 { color: var(--cream); font-size: 1.75rem; margin: 12px 0 10px; }
.phase-hero p { color: rgba(233,230,224,.8); font-size: .98rem; margin: 0; }
.phase-hero .decision {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(233,230,224,.15);
  font-size: .85rem; letter-spacing: .05em;
}
.phase-hero .decision small { display: block; text-transform: uppercase; color: var(--copper-3); letter-spacing: .16em; font-weight: 700; margin-bottom: 8px; }

.phase-block { margin-bottom: 30px; }
.phase-block h4 {
  font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--copper-2); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.phase-block h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.phase-block ul { padding: 0; margin: 0; display: grid; gap: 8px; }
.phase-block ul li { list-style: none; padding-left: 22px; position: relative; font-size: .95rem; color: var(--navy-soft); }
.phase-block ul li::before { content: "→"; position: absolute; left: 0; color: var(--copper-3); }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chips span {
  padding: 7px 14px; border-radius: 8px; background: var(--cream-2); border: 1px solid var(--line-soft);
  font-size: .85rem; font-weight: 500; color: var(--navy);
}
.ia-note {
  background: linear-gradient(120deg, var(--copper-wash), #f7ede4);
  border: 1px solid rgba(193,98,47,.2); border-radius: 14px; padding: 20px 24px;
  font-size: .92rem; color: var(--navy-soft);
}
.ia-note strong { color: var(--copper-2); display: block; margin-bottom: 6px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ============================ IA GOUVERNÉE ============================ */
.ia-steps { counter-reset: step; display: grid; gap: 16px; }
.ia-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start;
  padding: 28px 30px; background: rgba(233,230,224,.05); border: 1px solid rgba(233,230,224,.14);
  border-radius: var(--radius); transition: background .3s var(--ease);
}
.ia-step:hover { background: rgba(233,230,224,.1); }
.ia-step::before {
  counter-increment: step; content: "9." counter(step);
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--copper-3);
  padding-top: 2px;
  grid-column: 1; grid-row: 1 / span 2;
}
.ia-step h3 { grid-column: 2; font-size: 1.25rem; color: var(--cream); margin-bottom: 8px; }
.ia-step p { grid-column: 2; color: rgba(233,230,224,.78); font-size: .95rem; margin: 0; }

.levels { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
.level {
  background: rgba(233,230,224,.05); border: 1px solid rgba(233,230,224,.16);
  border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
}
.level .lvl-tag { font-family: var(--serif); font-size: 2.6rem; color: var(--copper-3); line-height: 1; }
.level h3 { font-size: 1.15rem; color: var(--cream); margin: 8px 0 12px; }
.level p { font-size: .9rem; color: rgba(233,230,224,.78); margin: 0 0 14px; }
.level .case { font-size: .82rem; color: var(--copper-3); border-top: 1px solid rgba(233,230,224,.14); padding-top: 12px; }

/* ============================ LIVRABLES ============================ */
.deliverables { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.deliverable {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 26px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.deliverable:hover { border-color: var(--copper-3); transform: translateY(-3px); }
.deliverable .tag {
  font-family: var(--serif); font-weight: 700; color: #fff; background: var(--copper);
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem;
}
.deliverable h3 { font-size: 1.12rem; margin-bottom: 6px; }
.deliverable p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ============================ BÉNÉFICES ============================ */
.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.benefit { background: var(--paper); padding: 30px; transition: background .3s var(--ease); }
.benefit:hover { background: var(--cream-2); }
.benefit b { font-family: var(--serif); font-size: 1.15rem; color: var(--copper-2); display: block; margin-bottom: 8px; }
.benefit p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ============================ ROADMAP ============================ */
.roadmap { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 20px; position: relative; }
.rm-step { position: relative; padding: 40px 24px 0; }
.rm-step::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: rgba(233,230,224,.2);
}
.rm-step::after {
  content: ""; position: absolute; top: 2px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 0 5px var(--navy);
}
.rm-step .horizon { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--copper-3); }
.rm-step .obj { font-weight: 700; color: var(--cream); margin: 6px 0 12px; font-size: 1.05rem; }
.rm-step .actions { font-size: .88rem; color: rgba(233,230,224,.75); }

/* ============================ CTA / CONTACT ============================ */
.cta-final {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 84px); text-align: center;
  position: relative; overflow: hidden; color: var(--cream);
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(193,98,47,.25), transparent 55%);
}
.cta-final > * { position: relative; }
.cta-final h2 { color: var(--cream); font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 18ch; margin: 0 auto 18px; }
.cta-final p { color: rgba(233,230,224,.82); max-width: 52ch; margin: 0 auto 34px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-final .btn-ghost { color: var(--cream); border-color: rgba(233,230,224,.5); }
.cta-final .btn-ghost:hover { background: var(--cream); color: var(--navy); }

/* Références */
.refs { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.ref { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; }
.ref b { font-family: var(--serif); color: var(--copper-2); font-size: 1rem; }
.ref span { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--navy); color: rgba(233,230,224,.7); padding: 64px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-2); }
.footer-top .brand { color: var(--cream); font-size: 1.7rem; }
.footer-top p { font-size: .92rem; margin-top: 14px; max-width: 40ch; }
.footer-col h4 { color: var(--cream); font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(233,230,224,.7); font-size: .92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--copper-3); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .82rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom .signature { font-family: var(--serif); font-style: italic; color: rgba(233,230,224,.6); }

/* ============================ REVEAL ANIMATION ============================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* Photo blocks */
.figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; background: linear-gradient(135deg, var(--navy-2), var(--copper-2)); }
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.figure.wide img { aspect-ratio: 16/10; }
.badge-card {
  position: absolute; left: 0; bottom: 26px; background: var(--copper); color: #fff;
  padding: 20px 26px; border-radius: 0 16px 16px 0; box-shadow: var(--shadow);
}
.badge-card b { font-family: var(--serif); font-size: 1.7rem; display: block; line-height: 1; }
.badge-card span { font-size: .82rem; opacity: .9; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split.rev > :first-child { order: 2; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .orbit-stage { max-width: 400px; order: -1; margin-bottom: 12px; }
  .conviction, .phase-layout, .split, .split.rev > :first-child { grid-template-columns: 1fr; order: 0; }
  .phase-hero { position: static; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .levels, .roadmap, .benefits { grid-template-columns: 1fr; }
  .roadmap { gap: 24px; }
  .rm-step { padding: 30px 0 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
/* =========================================================================
   APPLICATION — Assistant de diagnostic, plan, back-office, formulaires
   ========================================================================= */
:root { --ok: #3d7a5a; --warn: #b4462f; }

.app-page { background: var(--cream); }
.app-main { padding: clamp(28px, 5vw, 56px) 0 clamp(60px, 8vw, 100px); min-height: 70vh; }
.app-wrap { max-width: 980px; }
.app-head { max-width: 720px; margin-bottom: 34px; }
.app-title { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.app-lede { margin-top: 16px; color: var(--navy-soft); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.site-footer.slim { padding: 30px 0; }

/* ---- Formulaire de contact court ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact-steps { display: grid; gap: 12px; margin: 26px 0 30px; }
.contact-steps div { display: flex; gap: 14px; align-items: center; }
.contact-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--copper-wash); color: var(--copper-2); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }
.contact-steps span { font-size: .95rem; color: var(--navy-soft); }
.contact-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-soft); }
.contact-card h3 { font-size: 1.4rem; }
.contact-card-sub { color: var(--muted); font-size: .92rem; margin: 6px 0 22px; }
.lead-form { display: grid; gap: 14px; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy-soft); }
.lead-form input, .lead-form select, .fld {
  font-family: var(--sans); font-size: .95rem; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); transition: border-color .2s var(--ease);
  width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .fld:focus { outline: none; border-color: var(--copper); }
.lf-consent { flex-direction: row; display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .85rem; color: var(--muted); }
.lf-consent input { width: auto; margin-top: 3px; }
.lead-status { font-size: .9rem; margin: 4px 0 0; padding: 10px 14px; border-radius: 10px; }
.lead-status.ok { background: rgba(61,122,90,.12); color: var(--ok); }
.lead-status.err { background: var(--copper-wash); color: var(--copper-2); }

/* ---- Assistant : progression ---- */
.diag-progress { margin-bottom: 22px; }
.diag-progress-bar { height: 6px; background: var(--line-soft); border-radius: 100px; overflow: hidden; }
.diag-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--copper), var(--copper-3)); border-radius: 100px; transition: width .4s var(--ease); }
.diag-progress-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.phase-pill { background: var(--navy); color: var(--cream); padding: 4px 12px; border-radius: 100px; font-weight: 600; letter-spacing: .03em; }

/* ---- Assistant : carte d'étape ---- */
.diag-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-soft); }
.diag-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.diag-intro { color: var(--muted); margin: 10px 0 26px; }
.field { margin-bottom: 22px; }
.fld-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 10px; color: var(--navy); }
.req { color: var(--copper); }
textarea.fld { resize: vertical; min-height: 76px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 18px; border-radius: 100px; border: 1.5px solid var(--line);
  background: #fff; font-size: .92rem; font-weight: 500; color: var(--navy);
  transition: all .2s var(--ease); user-select: none;
}
.opt-chip:hover { border-color: var(--copper-3); }
.opt-chip.on { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.opt-chip input { display: none; }
.opt-chip.consent { border-radius: 12px; align-items: flex-start; padding: 14px 18px; }
.opt-chip.consent input { display: inline-block; margin-top: 3px; }
.scale { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.scale-btns { display: inline-flex; gap: 8px; }
.scale-btn { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--navy); cursor: pointer; transition: all .2s var(--ease); }
.scale-btn:hover { border-color: var(--copper-3); }
.scale-btn.on { background: var(--copper); color: #fff; border-color: var(--copper); }
.scale-hint { font-size: .8rem; color: var(--muted); }
.diag-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 14px; }

/* ---- Flash message ---- */
.diag-flash { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: var(--cream); padding: 14px 24px; border-radius: 12px; box-shadow: var(--shadow); font-size: .92rem; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 200; max-width: 90vw; text-align: center; }
.diag-flash.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Assistant : chargement ---- */
.diag-loading, .bo-loading, .bo-empty { text-align: center; padding: clamp(40px, 8vw, 90px) 20px; }
.diag-loading h2, .bo-empty h1 { margin: 24px 0 10px; }
.diag-loading p, .bo-empty p { color: var(--muted); max-width: 42ch; margin-inline: auto; }
.orbit-mini { position: relative; width: 110px; height: 110px; margin: 0 auto; }
.orbit-mini span { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; margin: -55px 0 0 -55px; border-radius: 50%; border: 1.5px dashed var(--line); animation: spin 14s linear infinite; }
.orbit-mini span:nth-child(2) { width: 70%; height: 70%; margin: -38.5px 0 0 -38.5px; border-color: rgba(193,98,47,.4); animation-duration: 9s; }
.orbit-mini span:nth-child(3) { width: 42%; height: 42%; margin: -23px 0 0 -23px; animation-duration: 5s; }
.orbit-mini span::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--copper); }
.orbit-mini-core { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: .95rem; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line-soft); border-top-color: var(--copper); animation: spin 1s linear infinite; margin: 0 auto; }

/* ---- Plan d'action (résultat) ---- */
.plan-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.plan-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% 12%, rgba(193,98,47,.28), transparent 55%); }
.plan-hero > * { position: relative; }
.plan-hero h1 { color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.plan-hero .eyebrow { color: var(--copper-3); }
.plan-hero .eyebrow::before { background: var(--copper-3); }
.plan-synthese { color: rgba(233,230,224,.9); max-width: 66ch; font-size: 1.05rem; }
.plan-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.plan-badge { background: rgba(233,230,224,.08); border: 1px solid rgba(233,230,224,.16); border-radius: 14px; padding: 18px 20px; }
.plan-badge span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--copper-3); font-weight: 700; }
.plan-badge b { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.3rem; color: var(--cream); }
.plan-badge b.lvl { font-size: 1.1rem; }
.plan-badge small { display: block; margin-top: 6px; font-size: .82rem; color: rgba(233,230,224,.7); }
.gauge { height: 8px; background: rgba(233,230,224,.18); border-radius: 100px; overflow: hidden; margin: 10px 0 4px; }
.gauge-fill { height: 100%; background: linear-gradient(90deg, var(--copper-3), var(--copper)); border-radius: 100px; transition: width .6s var(--ease); }
.mode-note { margin-top: 18px; font-size: .8rem; color: rgba(233,230,224,.6); font-style: italic; }

.plan-timeline { margin-top: 34px; display: grid; gap: 20px; }
.plan-horizon { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; }
.plan-horizon-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hz { flex: none; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #fff; background: var(--copper); padding: 8px 14px; border-radius: 10px; }
.plan-horizon-head b { font-family: var(--serif); font-size: 1.25rem; display: block; }
.plan-horizon-head small { color: var(--muted); font-size: .85rem; }
.plan-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan-step { background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; }
.plan-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.plan-step-head b { font-family: var(--serif); font-size: 1.05rem; }
.plan-step p { font-size: .9rem; color: var(--navy-soft); margin: 0 0 12px; }
.plan-step-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; color: var(--muted); align-items: center; }
.ph { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: .85rem; background: var(--navy); color: var(--cream); }
.ph-I { background: var(--copper); }
.ph-B { background: var(--navy-soft); }
.tagm { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; font-weight: 600; color: var(--navy); }
.tagm.impact { border-color: var(--copper-3); color: var(--copper-2); }

.plan-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.plan-gov, .plan-risks { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; }
.plan-gov h3, .plan-risks h3 { font-size: 1.2rem; margin-bottom: 16px; }
.plan-gov ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.plan-gov li { font-size: .92rem; color: var(--navy-soft); }
.risk-item { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.risk-item:last-child { border-bottom: 0; }
.risk-item b { display: block; font-family: var(--serif); color: var(--copper-2); font-size: 1rem; }
.risk-item span { font-size: .88rem; color: var(--muted); }
.plan-cta { text-align: center; background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 50px); margin-top: 24px; }
.plan-cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.plan-cta p { color: var(--navy-soft); max-width: 52ch; margin: 12px auto 24px; }
.token-note { font-size: .78rem; color: var(--muted); margin-top: 18px; }
.token-note code { background: var(--paper); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; font-size: .9em; word-break: break-all; }

/* ---- Back-office ---- */
.bo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.bo-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.bo-synthese { color: var(--navy-soft); max-width: 68ch; margin-top: 10px; font-size: .98rem; }
.bo-mode { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-left: 10px; vertical-align: middle; }
.bo-mode.remote { background: rgba(61,122,90,.14); color: var(--ok); }
.bo-mode.local { background: var(--copper-wash); color: var(--copper-2); }
.bo-kpis { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.kpi { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; text-align: center; }
.kpi b { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); display: block; line-height: 1; }
.kpi span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi.big { text-align: left; grid-column: span 1; }
.kpi.big b { color: var(--copper); font-size: 2.2rem; }
.kpi.big .gauge { margin-top: 12px; }
.bo-board { display: grid; gap: 24px; }
.bo-col-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bo-col-head b { font-family: var(--serif); font-size: 1.2rem; display: block; }
.bo-col-head small { color: var(--muted); font-size: .82rem; }
.bo-col { display: grid; gap: 14px; }
.bo-step { background: var(--paper); border: 1px solid var(--line-soft); border-left: 4px solid var(--line); border-radius: 14px; padding: 22px; transition: border-color .25s var(--ease); }
.bo-step.status-en_cours { border-left-color: var(--copper); }
.bo-step.status-fait { border-left-color: var(--ok); }
.bo-step.status-fait { opacity: .82; }
.bo-step.status-bloque { border-left-color: var(--warn); }
.bo-step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bo-step-top b { font-family: var(--serif); font-size: 1.1rem; }
.bo-step p { font-size: .9rem; color: var(--navy-soft); margin: 0 0 16px; }
.bo-step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bo-step-grid label { display: grid; gap: 5px; font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bo-step-grid select, .bo-step-grid input { font-family: var(--sans); font-size: .9rem; padding: 9px 11px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); }
.bo-step-grid select:focus, .bo-step-grid input:focus { outline: none; border-color: var(--copper); }
.bo-step-tags { display: flex; gap: 8px; margin-top: 12px; font-size: .78rem; }

@media (max-width: 860px) {
  .contact-grid, .plan-badges, .plan-steps, .plan-cols { grid-template-columns: 1fr; }
  .bo-kpis { grid-template-columns: 1fr 1fr; }
  .bo-step-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lf-row { grid-template-columns: 1fr; }
  .bo-step-grid { grid-template-columns: 1fr; }
  .diag-actions { flex-direction: column-reverse; }
  .diag-actions .btn { width: 100%; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); padding: 12px var(--gutter);
  }
  .site-header.menu-open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .grid-2, .grid-3, .grid-4, .deliverables, .refs { grid-template-columns: 1fr; }
  .hero-meta { gap: 26px; }
  .marquee-track span { font-size: 1.1rem; }
}

/* =========================================================================
   CONSOLE SUPER-ADMIN
   ========================================================================= */
.admin-who { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.admin-banner { background: var(--copper-wash); border: 1px solid rgba(193,98,47,.25); color: var(--copper-2); padding: 14px 20px; border-radius: 12px; font-size: .9rem; margin-bottom: 26px; }
.admin-head { margin-bottom: 22px; }
.admin-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.admin-kpis { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.admin-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.admin-tab:hover { color: var(--navy); }
.admin-tab.active { color: var(--copper); border-bottom-color: var(--copper); }
.admin-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; }
.admin-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.admin-card h3 .count { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: #fff; background: var(--copper); padding: 2px 10px; border-radius: 100px; margin-left: 8px; vertical-align: middle; }
.admin-empty { color: var(--muted); font-size: .95rem; margin: 0; }
.admin-sub { color: var(--muted); font-size: .9rem; margin: -8px 0 20px; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--navy-soft); }
.admin-table tr:hover td { background: var(--cream-2); }
.admin-table b { color: var(--navy); }
.mini-link { font-weight: 600; font-size: .85rem; white-space: nowrap; }
.mini-bar { display: inline-block; width: 90px; height: 7px; background: var(--line-soft); border-radius: 100px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.mini-bar div { height: 100%; background: linear-gradient(90deg, var(--copper-3), var(--copper)); border-radius: 100px; }
.proj-list { display: grid; gap: 4px; }
.proj-row { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr auto; gap: 18px; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--line-soft); }
.proj-row:last-child { border-bottom: 0; }
.proj-name b { display: block; font-family: var(--serif); }
.proj-name small { color: var(--muted); font-size: .82rem; }
.proj-meta { font-size: .85rem; color: var(--muted); }
.warnx { color: var(--warn); font-weight: 600; }

/* Login admin */
.admin-login { max-width: 480px; margin: 6vh auto; text-align: center; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 50px); box-shadow: var(--shadow-soft); }
.admin-login h1 { font-size: 1.9rem; margin-bottom: 12px; }
.admin-login p { color: var(--muted); font-size: .95rem; }
.admin-login .eyebrow { justify-content: center !important; }
.admin-login-form { display: grid; gap: 16px; margin-top: 26px; text-align: left; }
.admin-login-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy-soft); }
.admin-login-form input { font-family: var(--sans); font-size: .95rem; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.admin-login-form input:focus { outline: none; border-color: var(--copper); }
.login-status { font-size: .88rem; padding: 10px 14px; border-radius: 10px; margin: 0; }
.login-status.ok { background: rgba(61,122,90,.12); color: var(--ok); }
.login-status.err { background: var(--copper-wash); color: var(--copper-2); }

/* Paramètres LLM */
.llm-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.llm-head h3 { margin: 0; }
.llm-form { display: grid; gap: 16px; margin-top: 8px; }
.llm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.llm-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy-soft); }
.llm-form input, .llm-form textarea { font-family: var(--sans); font-size: .92rem; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); }
.llm-form textarea { font-family: 'Archivo', monospace; line-height: 1.5; resize: vertical; }
.llm-form input:focus, .llm-form textarea:focus { outline: none; border-color: var(--copper); }
.llm-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.llm-status { font-size: .88rem; }
.llm-status.ok { color: var(--ok); }
.llm-status.err { color: var(--warn); }

@media (max-width: 860px) {
  .admin-kpis { grid-template-columns: 1fr 1fr; }
  .llm-row { grid-template-columns: 1fr; }
  .proj-row { grid-template-columns: 1fr; gap: 8px; }
}

.bo-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bo-member { font-size: .85rem; color: var(--muted); }

/* ---- Widgets tableau de bord (V1.1) ---- */
.bo-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.bo-widget { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px; min-height: 120px; }
.bo-widget h3 { font-size: 1rem; margin-bottom: 12px; }
.w-empty { font-size: .85rem; color: var(--muted); margin: 0; }
.dl-row { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.dl-row:last-child { border-bottom: 0; }
.dl-date { flex: none; font-weight: 700; color: var(--copper-2); min-width: 58px; font-size: .8rem; }
.dl-row.late .dl-date { color: var(--warn); }
.dl-row.late .dl-title::after { content: " · en retard"; color: var(--warn); font-size: .78rem; font-weight: 600; }
.dl-title { flex: 1; color: var(--navy); }
.dl-resp { font-size: .78rem; color: var(--muted); }
.health-row { display: flex; gap: 8px; align-items: baseline; font-size: .9rem; padding: 4px 0; color: var(--navy-soft); }
.health-row b { font-family: var(--serif); font-size: 1.15rem; min-width: 22px; }
.health-row.bad b { color: var(--warn); }
.health-row.good b { color: var(--ok); }
.health-item { font-size: .82rem; color: var(--warn); padding: 2px 0; }
.act-row { font-size: .84rem; color: var(--navy-soft); padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.act-row:last-child { border-bottom: 0; }
.act-who { font-weight: 700; color: var(--navy); }
.act-when { display: block; font-size: .72rem; color: var(--muted); }

/* ---- Édition du plan (V1.1) ---- */
.bo-col-head .add-step { margin-left: auto; }
.add-step-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--cream-2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.add-step-form input.asf-title { flex: 2; min-width: 200px; padding: 10px 12px; border-radius: 9px; border: 1.5px solid var(--line); font-family: var(--sans); font-size: .92rem; }
.add-step-form select { padding: 10px 12px; border-radius: 9px; border: 1.5px solid var(--line); font-family: var(--sans); font-size: .88rem; background: #fff; }
.step-title { flex: 1; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--navy); border: 1.5px solid transparent; border-radius: 8px; padding: 4px 8px; background: transparent; }
.step-title:hover { border-color: var(--line-soft); }
.step-title:focus { outline: none; border-color: var(--copper); background: #fff; }
.step-desc { width: 100%; font-family: var(--sans); font-size: .9rem; color: var(--navy-soft); border: 1.5px solid transparent; border-radius: 8px; padding: 4px 8px; background: transparent; resize: vertical; margin-bottom: 10px; box-sizing: border-box; }
.step-desc:hover { border-color: var(--line-soft); }
.step-desc:focus { outline: none; border-color: var(--copper); background: #fff; }
.step-tools { display: flex; gap: 4px; flex: none; }
.tool { background: none; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: .85rem; padding: 4px 7px; color: var(--muted); transition: all .15s var(--ease); }
.tool:hover:not(:disabled) { border-color: var(--line); color: var(--navy); background: #fff; }
.tool:disabled { opacity: .3; cursor: default; }
.tool.danger:hover { color: var(--warn); border-color: var(--warn); }
.milestone-btn.on { color: var(--copper); }
.bo-step.milestone { border-top: 2px solid var(--copper); }
.bo-step-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; gap: 8px; }
.tag-select { font-size: .78rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.tag-select.impact { border-color: var(--copper-3); color: var(--copper-2); }
.step-links { display: flex; gap: 12px; }
.mini-link-btn { background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--copper); padding: 2px 0; }
.mini-link-btn:hover { color: var(--copper-2); }
.step-notes textarea { width: 100%; margin-top: 10px; font-family: var(--sans); font-size: .88rem; padding: 10px 12px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--cream-2); resize: vertical; box-sizing: border-box; }
.step-comments { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.comment { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.comment:last-child { border-bottom: 0; }
.comment b { color: var(--navy); margin-right: 8px; }
.comment span { color: var(--navy-soft); }
.comment small { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.comment-add { display: flex; gap: 8px; margin-top: 10px; }
.comment-input { flex: 1; padding: 10px 12px; border-radius: 9px; border: 1.5px solid var(--line); font-family: var(--sans); font-size: .9rem; }
.comment-input:focus { outline: none; border-color: var(--copper); }

@media (max-width: 860px) { .bo-widgets { grid-template-columns: 1fr; } }

/* ---- Onglets & modules V2 du back-office ---- */
.bo-tabs { margin: 4px 0 26px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat-chips .opt-chip { font-size: .82rem; padding: 8px 14px; }
.cat-chips small { color: inherit; opacity: .65; }
.ind-custom, .reg-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--cream-2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.ind-custom input, .ind-custom select, .reg-form input, .reg-form select {
  font-family: var(--sans); font-size: .88rem; padding: 9px 11px; border-radius: 9px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
}
.ind-custom input#indName { flex: 2; min-width: 200px; }
.val-chip { display: inline-block; background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: 2px 8px; font-size: .78rem; color: var(--navy-soft); margin: 2px 2px 2px 0; }
.ind-record { display: inline-flex; gap: 6px; align-items: center; }
.ind-record input { font-family: var(--sans); font-size: .82rem; padding: 6px 8px; border-radius: 7px; border: 1.5px solid var(--line); }
.ind-record .rec-value { width: 70px; }
.u-status { font-family: var(--sans); font-size: .84rem; padding: 6px 9px; border-radius: 7px; border: 1.5px solid var(--line); background: #fff; }
.inc-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.inc-row:last-child { border-bottom: 0; }
.inc-row.clos { opacity: .65; }
.inc-desc { flex: 1; color: var(--navy-soft); min-width: 200px; }
.charter-ta { width: 100%; box-sizing: border-box; font-family: 'Archivo', monospace; font-size: .88rem; line-height: 1.55; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; resize: vertical; }
.charter-ta:focus { outline: none; border-color: var(--copper); }
.rv-row { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: var(--navy-soft); }
.rv-row:last-child { border-bottom: 0; }
.rv-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; color: var(--navy); }
.rv-row details summary { cursor: pointer; color: var(--copper); font-weight: 600; font-size: .85rem; margin: 6px 0; }
.prompt-card { padding: 18px 22px; }

/* =========================================================================
   RESPONSIVE — pages applicatives (back-office, entretiens, admin)
   ========================================================================= */
/* Les tableaux défilent horizontalement au lieu de s'écraser */
.table-scroll .admin-table { min-width: 560px; }

@media (max-width: 760px) {
  .app-main { padding-top: 18px; }
  .app-wrap { padding-inline: 16px; }

  /* En-tête projet : empilement vertical, actions pleine largeur */
  .bo-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .bo-head h1 { font-size: 1.7rem; }
  .bo-synthese { font-size: .92rem; }
  .bo-head-actions { width: 100%; }
  .bo-head-actions .btn { flex: 1 1 auto; justify-content: center; }
  .bo-member { width: 100%; text-align: center; }

  /* KPI : 2 colonnes, l'avancement en pleine largeur */
  .bo-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px 10px; }
  .kpi b { font-size: 1.4rem; }
  .kpi.big { grid-column: span 2; text-align: center; }
  .kpi.big b { font-size: 1.9rem; }

  /* Onglets : bandeau défilant horizontal */
  .bo-tabs, .admin-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bo-tabs::-webkit-scrollbar, .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { white-space: nowrap; padding: 12px 13px; font-size: .9rem; flex: none; }

  /* Widgets : pleine largeur, contenus compacts */
  .bo-widget { min-height: 0; padding: 16px; }
  .dl-row { flex-wrap: wrap; }
  .dl-resp { width: 100%; padding-left: 68px; }

  /* Colonnes du plan */
  .bo-col-head { flex-wrap: wrap; gap: 10px; }
  .bo-col-head .add-step { margin-left: 0; width: 100%; justify-content: center; }
  .add-step-form input.asf-title { flex: 1 1 100%; min-width: 0; }
  .add-step-form select { flex: 1; }

  /* Cartes d'étapes : titre pleine largeur, outils en dessous */
  .bo-step { padding: 16px 14px; }
  .bo-step-top { flex-wrap: wrap; gap: 8px; }
  .step-title { flex: 1 1 calc(100% - 40px); min-width: 0; font-size: 1rem; }
  .step-tools { margin-left: auto; }
  .tool { padding: 6px 10px; font-size: 1rem; }
  .bo-step-foot { flex-direction: column; align-items: flex-start; }

  /* Formulaires des modules */
  .ind-custom, .reg-form { padding: 12px; }
  .ind-custom input, .ind-custom select, .reg-form input, .reg-form select { flex: 1 1 100%; max-width: none !important; min-width: 0 !important; }
  .ind-custom .btn, .reg-form .btn { width: 100%; justify-content: center; }
  .gen-row .btn { flex: 1 1 100%; justify-content: center; }
  .itv-actions .btn { flex: 1 1 auto; justify-content: center; }
  .inc-row { align-items: flex-start; }
  .inc-row .btn { width: 100%; justify-content: center; }
  .rv-head { row-gap: 6px; }

  /* Entretiens */
  .itv-audio-row input[type=file] { flex: 1 1 100%; }
  .itv-audio-row .btn { width: 100%; justify-content: center; }

  /* Admin */
  .admin-kpis { gap: 10px; }
  .admin-card { padding: 18px 16px; }
}

@media (max-width: 480px) {
  .bo-head h1 { font-size: 1.45rem; }
  .hz { font-size: .95rem; padding: 6px 10px; }
  .bo-col-head b { font-size: 1.05rem; }
  .plan-badges { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .comment-add { flex-direction: column; }
  .comment-add .btn { width: 100%; justify-content: center; }
  .ind-record { flex-wrap: wrap; }
}

/* ---- Porte d'authentification (espace sécurisé) ---- */
.auth-gate { min-height: 68vh; display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: 100%; max-width: 420px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow-soft); text-align: center; }
.auth-brand { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: .04em; color: var(--navy); margin-bottom: 18px; }
.auth-brand span { color: var(--copper); font-size: .55em; vertical-align: super; }
.auth-project { font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.auth-sub { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.auth-form { display: grid; gap: 14px; text-align: left; }
.auth-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy-soft); }
.auth-form input { font-family: var(--sans); font-size: .98rem; padding: 13px 15px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); }
.auth-form input:focus { outline: none; border-color: var(--copper); }
.auth-form .btn { margin-top: 4px; justify-content: center; }
.auth-status { font-size: .88rem; padding: 11px 14px; border-radius: 10px; margin: 0; }
.auth-status.ok { background: rgba(61,122,90,.12); color: var(--ok); }
.auth-status.err { background: var(--copper-wash); color: var(--copper-2); }
.auth-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 20px; }
.auth-link { background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--copper); padding: 4px; }
.auth-link:hover { color: var(--copper-2); text-decoration: underline; }

/* ---- Entretiens & livrables (F11) ---- */
.itv-form h3 { margin-bottom: 20px; }
.itv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.itv-form label, .itv-full { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy-soft); }
.itv-full { margin-bottom: 14px; }
.itv-form input, .itv-form select, .itv-form textarea {
  font-family: var(--sans); font-size: .92rem; padding: 10px 12px; border-radius: 9px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); width: 100%; box-sizing: border-box;
}
.itv-form input:focus, .itv-form select:focus, .itv-form textarea:focus { outline: none; border-color: var(--copper); }
.itv-h4 { font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-2); margin: 22px 0 12px; }
.itv-q { margin-bottom: 12px; }
.itv-q textarea { background: var(--cream-2); resize: vertical; }
.itv-audio textarea { resize: vertical; margin-top: 10px; }
.itv-audio-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.itv-audio-row input[type=file] { flex: 1; min-width: 220px; border: 1.5px dashed var(--line); padding: 9px 12px; border-radius: 9px; background: var(--cream-2); font-size: .85rem; }
.itv-status { font-size: .82rem; color: var(--copper-2); font-weight: 600; }
.itv-summary { background: var(--copper-wash); border: 1px solid rgba(193,98,47,.2); border-radius: 12px; padding: 16px 20px; margin-top: 18px; font-size: .9rem; color: var(--navy-soft); }
.itv-summary ul { margin: 4px 0 10px; padding-left: 18px; }
.itv-summary b { color: var(--copper-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.itv-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.gen-row { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-viewer { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.doc-viewer h4 { font-size: 1.1rem; margin-bottom: 10px; }
.doc-viewer h4 small { font-family: var(--sans); font-weight: 500; color: var(--muted); font-size: .75rem; }
.doc-md { white-space: pre-wrap; font-family: var(--sans); font-size: .88rem; color: var(--navy-soft); background: var(--cream-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px 20px; max-height: 480px; overflow: auto; }
@media (max-width: 760px) { .itv-grid { grid-template-columns: 1fr; } }

/* Impression navigateur (repli si l'export PDFShift n'est pas disponible) */
@media print {
  .site-header, .site-footer, .marquee, .diag-actions, .cta-actions,
  .bo-head-actions, .token-note, .diag-progress, .admin-tabs, .nav-cta { display: none !important; }
  body { background: #fff; }
  .app-main { padding: 0; }
  .plan-hero, .plan-horizon, .plan-gov, .plan-risks, .bo-step, .plan-cta,
  .admin-card { box-shadow: none !important; border-color: #ccc !important; break-inside: avoid; }
  .plan-hero { background: #16233f !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .plan-steps { grid-template-columns: 1fr 1fr; }
  a[href]::after { content: ""; }
}

/* ===== Pages ressources (articles SEO) ===== */
.article-hero { padding: 120px 0 48px; background: var(--navy); color: var(--paper); }
.article-hero .eyebrow { color: var(--copper-soft, #d98d5f); }
.article-hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; margin: 10px 0 16px; max-width: 21ch; }
.article-hero .lede { color: var(--cream); max-width: 62ch; }
.article-meta { margin-top: 18px; font-size: .82rem; color: var(--muted-inv, #aab2c2); }
.article-body { max-width: 760px; margin: 0 auto; padding: 56px 0 8px; }
.article-body h2 { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.25; margin: 44px 0 14px; color: var(--navy); }
.article-body h3 { font-size: 1.05rem; margin: 28px 0 10px; color: var(--navy); }
.article-body p, .article-body li { font-size: 1rem; line-height: 1.75; color: var(--navy-soft); }
.article-body ul, .article-body ol { padding-left: 22px; margin: 12px 0 18px; }
.article-body li { margin: 6px 0; }
.article-body li::marker { color: var(--copper); }
.article-body blockquote { border-left: 3px solid var(--copper); margin: 24px 0; padding: 6px 0 6px 18px; font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--navy); }
.article-body a:not(.btn):not(.res-card) { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.article-body .btn-primary { color: #fff; text-decoration: none; }
.article-cta { margin: 40px 0; padding: 26px 28px; background: var(--navy); border-radius: 14px; color: var(--paper); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.article-cta p { color: var(--cream); margin: 0; font-size: .98rem; max-width: 46ch; }
.article-faq { margin: 26px 0 10px; }
.article-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 0 18px; margin: 10px 0; }
.article-faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.article-faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; color: var(--copper); font-size: 1.2rem; font-weight: 400; }
.article-faq details[open] summary::after { content: "–"; }
.article-faq details p { padding: 0 0 14px; margin: 0; }
.article-related { margin: 46px 0 20px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.article-related h2 { margin-top: 0; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 26px; }
.res-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.res-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,35,63,.10); border-color: var(--copper); }
.res-card .tagm { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); font-weight: 700; margin-bottom: 10px; }
.res-card h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin: 0 0 8px; line-height: 1.3; }
.res-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.res-card .mini-link { color: var(--copper); font-weight: 600; font-size: .88rem; }
@media (max-width: 760px) { .article-hero { padding: 104px 0 36px; } .article-body { padding: 36px 0 4px; } .article-cta { flex-direction: column; align-items: flex-start; } }
