/* Dynamorphose — styles des pages de pôle (Studio · Lab · Méthode · réalisations · estimateur).
   Complète styles.css (tokens, boutons, pills, sections). */

/* ---- Hero compact des sous-pages ---- */
.page-hero { padding: 72px 0 40px; }
.page-hero .hero-h1 { max-width: 880px; }
.page-hero .lead { max-width: 720px; }
.page-hero .hero-ctas { margin-top: 28px; }

/* ---- Trois pôles ---- */
.poles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pole-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); transition: transform .2s ease, box-shadow .2s ease; }
.pole-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline-strong); }
.pole-card.current { background: var(--ink-900); color: white; }
.pole-card.current .p, .pole-card.current .pole-price { color: rgba(255,255,255,0.72); }
.pole-card.current .h3 { color: white; }
.pole-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-200); color: var(--ink-900); }
.pole-card.current .pole-icon { background: var(--lime-400); }
.pole-name { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.pole-card.current .pole-name { color: rgba(255,255,255,0.55); }
.pole-price { font-size: 14px; color: var(--ink-700); }
.pole-card .btn { align-self: flex-start; margin-top: auto; }

/* ---- Gammes (Studio) / lots (Lab) ---- */
.gammes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.gamme { display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); }
.gamme.featured { box-shadow: inset 0 0 0 2px var(--ink-900); }
.gamme-obj { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.gamme-for { color: var(--ink-700); margin-top: 8px; }
.gamme-price { margin-top: 18px; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.gamme-price .unit { font-size: 14px; font-weight: 400; color: var(--ink-500); margin-left: 6px; }
.gamme-meta { font-size: 13px; color: var(--ink-500); margin-top: 4px; }
.gamme-bullets { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.gamme-bullets li { padding-left: 24px; position: relative; line-height: 1.5; }
.gamme-bullets li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime-400); }
.gamme .btn { margin-top: 22px; align-self: flex-start; }

/* ---- Tableau comparatif (hébergement, SEO) ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { padding: 22px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); }
.plan.featured { background: var(--ink-50); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.plan-name { font-weight: 600; }
.plan-price { font-size: 26px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; }
.plan-price .unit { font-size: 13px; font-weight: 400; color: var(--ink-500); }
.plan p { color: var(--ink-700); margin-top: 10px; line-height: 1.55; }
.engagement { margin-top: 18px; padding: 16px 20px; border-left: 3px solid var(--lime-400); background: var(--paper); border-radius: 0 12px 12px 0; color: var(--ink-700); }

/* ---- Apps du Lab ---- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline-strong); }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.app-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.app-stack span { font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border-radius: 6px; background: var(--ink-50); color: var(--ink-700); }
.pill.beta { background: #fff1d6; color: #7a4b00; }
.pill.prod { background: var(--lime-200); color: var(--ink-900); }

/* ---- Fiche app / réalisation ---- */
.fiche-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.fiche-aside { position: sticky; top: 96px; padding: 24px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); display: grid; gap: 14px; }
.fiche-aside dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.fiche-aside dd { margin: 4px 0 0; }
.fiche-body h2 { margin-top: 36px; }
.fiche-body h2:first-child { margin-top: 0; }
.fiche-body p, .fiche-body li { line-height: 1.65; color: var(--ink-700); }
.fiche-body ul { padding-left: 20px; margin-top: 12px; display: grid; gap: 8px; }
.fiche-quote { margin: 32px 0 0; padding: 20px 24px; border-left: 3px solid var(--lime-400); font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--ink-900); }
.reals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.real-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--ink-900); color: white; text-decoration: none; transition: transform .2s ease; }
.real-card:hover { transform: translateY(-2px); }
.real-card .eyebrow { color: var(--lime-400); }
.real-card p { color: rgba(255,255,255,0.72); line-height: 1.55; }
.real-card .real-link { margin-top: auto; color: white; font-weight: 600; }

/* ---- Méthode ---- */
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step-3 { padding: 28px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); }
.step-3 .num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); letter-spacing: .08em; }
.step-3 h3 { margin-top: 10px; }
.step-3 p { color: var(--ink-700); line-height: 1.6; margin-top: 12px; }
.step-3 .decl { margin-top: 14px; font-size: 13px; color: var(--ink-500); border-top: 1px solid var(--hairline); padding-top: 12px; }
.invariants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.invariant { padding: 20px 22px; border-radius: 16px; background: var(--ink-50); }
.invariant strong { display: block; margin-bottom: 6px; }

/* ---- Estimateur ---- */
.estim { border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline); overflow: hidden; }
.estim-grid { display: grid; grid-template-columns: 1.2fr 1fr; }
.estim-form { padding: 32px; display: grid; gap: 28px; }
.estim-result { padding: 32px; background: var(--ink-900); color: white; display: flex; flex-direction: column; gap: 18px; }
.estim-q { font-weight: 600; margin-bottom: 10px; }
.estim-help { font-size: 13px; color: var(--ink-500); margin-top: 6px; }
.estim-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.estim-choice { position: relative; }
.estim-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.estim-choice span { display: block; padding: 12px 14px; border-radius: 12px; background: var(--ink-50); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 14px; line-height: 1.35; }
.estim-choice span small { display: block; color: var(--ink-500); margin-top: 2px; }
.estim-choice input:checked + span { background: var(--ink-900); color: white; }
.estim-choice input:checked + span small { color: rgba(255,255,255,0.6); }
.estim-choice input:focus-visible + span { outline: 2px solid var(--lime-400); outline-offset: 2px; }
.estim-range { display: flex; align-items: center; gap: 16px; }
.estim-range input[type=range] { flex: 1; accent-color: var(--ink-900); }
.estim-range output { font-family: var(--font-mono); font-size: 18px; min-width: 2.5ch; text-align: right; }
.estim-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ink-50); }
.estim-check input { accent-color: var(--ink-900); }
.estim-check .qty { margin-left: auto; width: 56px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--hairline-strong); font: inherit; }
.estim-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.estim-total { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.estim-total .unit { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.6); margin-left: 6px; }
.estim-monthly { font-size: 24px; font-weight: 600; }
.estim-monthly .unit { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.6); margin-left: 6px; }
.estim-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.8); }
.estim-lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,0.15); padding-bottom: 6px; }
.estim-lines li span:last-child { font-family: var(--font-mono); white-space: nowrap; }
.estim-note { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }
.estim-ctas { display: grid; gap: 10px; margin-top: auto; }
.estim-ctas .btn { width: 100%; justify-content: center; }
.estim-result .btn-soft { background: rgba(255,255,255,0.1); color: white; box-shadow: none; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .poles-grid, .gammes-grid, .plans, .apps-grid, .reals-grid, .steps-3, .invariants { grid-template-columns: 1fr; }
  .fiche-grid, .estim-grid { grid-template-columns: 1fr; }
  .fiche-aside { position: static; }
  .estim-choices { grid-template-columns: 1fr; }
}

/* ---- Header : CTA compact sur mobile (5 liens de nav masqués sous 720px par styles.css) ---- */
@media (max-width: 640px) {
  .header-actions .btn-primary { white-space: nowrap; padding: 8px 12px; font-size: 12px; }
  .header-actions .btn-primary svg { display: none; }
}
