/* Kit partenaire Neolia : pages outils de l'espace partenaire (style commun).
   Réutilise l'esprit des pages argumentaire-*.html, plus les outils copier/imprimer. */

.ag-wrap { max-width: 1080px; margin: 0 auto; padding: 128px 24px 96px; }
.ag-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: rgba(11,17,41,.55); text-decoration: none; margin-bottom: 26px; transition: color .2s; }
.ag-back:hover { color: var(--energy); }
.ag-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--energy); }
.ag-wrap h1 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -0.02em; margin: 14px 0 0; max-width: 860px; }
.ag-lead { font-size: 17px; color: rgba(11,17,41,.65); max-width: 820px; margin: 18px 0 0; line-height: 1.6; }

.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
@media (max-width: 860px) { .ag-grid { grid-template-columns: 1fr; } }
.ag-card { background: #fff; border: 1px solid rgba(11,17,41,.08); border-radius: 18px; padding: 26px 26px 22px; }
.ag-card.wide { grid-column: 1 / -1; }
.ag-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--energy); }
.ag-card h2 { font-size: 19px; letter-spacing: -0.01em; margin: 8px 0 10px; }
.ag-card p, .ag-card li { font-size: 14.5px; line-height: 1.62; color: rgba(11,17,41,.72); }
.ag-card p { margin: 0 0 10px; }
.ag-card ul, .ag-card ol { margin: 0 0 10px; padding-left: 20px; }
.ag-card p strong, .ag-card li strong { color: var(--ink); }
.ag-fact { display: flex; gap: 10px; align-items: baseline; background: rgba(15,158,120,.07); border: 1px solid rgba(15,158,120,.22); border-radius: 12px; padding: 11px 14px; font-size: 13px; line-height: 1.5; color: rgba(11,17,41,.78); margin-top: 12px; }
.ag-fact .f { flex-shrink: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #0B6B50; font-weight: 500; }

/* Tableaux (qui fait quoi, coûts) */
.kit-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0 10px; }
.kit-table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(11,17,41,.5); padding: 8px 10px; border-bottom: 1.5px solid rgba(11,17,41,.14); }
.kit-table td { padding: 9px 10px; border-bottom: 1px solid rgba(11,17,41,.07); vertical-align: top; line-height: 1.5; color: rgba(11,17,41,.75); }
.kit-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.kit-ok { color: #0B6B50; font-weight: 700; }

/* Blocs à copier */
.kit-copy { position: relative; background: rgba(11,17,41,.035); border: 1px solid rgba(11,17,41,.1); border-radius: 12px; padding: 16px 18px; margin: 10px 0 14px; }
.kit-copy pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 13.8px; line-height: 1.6; color: rgba(11,17,41,.85); }
.kit-copy .kit-copy-btn { position: absolute; top: 10px; right: 10px; border: 1px solid rgba(11,17,41,.2); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; color: var(--ink); transition: all .2s; }
.kit-copy .kit-copy-btn:hover { border-color: var(--energy); color: var(--energy-deep, #0B6B50); }
.kit-copy .kit-copy-btn.done { background: var(--energy); border-color: var(--energy); color: #fff; }
.kit-var { background: rgba(232,160,32,.16); border-radius: 4px; padding: 0 3px; }

/* Timeline verticale (phases de chantier, reprise) */
.kit-steps { margin: 8px 0 4px; }
.kit-step { display: flex; gap: 16px; padding: 0 0 22px; position: relative; }
.kit-step::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: rgba(15,158,120,.25); }
.kit-step:last-child::before { display: none; }
.kit-step .n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--energy); color: #fff; font-family: var(--font-mono); font-size: 13px; display: grid; place-items: center; font-weight: 500; }
.kit-step h3 { font-size: 15.5px; margin: 5px 0 6px; }
.kit-step p, .kit-step li { font-size: 13.8px; line-height: 1.6; color: rgba(11,17,41,.7); margin: 0; }
.kit-step ul { margin: 4px 0 0; padding-left: 18px; }
.kit-step .who { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: rgba(15,158,120,.1); color: #0B6B50; border-radius: 999px; padding: 3px 9px; margin: 6px 6px 0 0; }

/* Barre d'outils (imprimer, tout copier) */
.kit-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.kit-tools button, .kit-tools a { border: 1px solid rgba(11,17,41,.22); background: #fff; border-radius: 999px; padding: 10px 20px; font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; color: var(--ink); text-decoration: none; transition: all .2s; }
.kit-tools button:hover, .kit-tools a:hover { border-color: var(--energy); color: var(--energy-deep, #0B6B50); }
.kit-tools .main { background: var(--ink); color: #F5F2EB; border-color: var(--ink); }
.kit-tools .main:hover { background: var(--energy); border-color: var(--energy); color: var(--ink); }

/* Schéma pleine largeur */
.kit-diagram { background: #fff; border: 1px solid rgba(11,17,41,.08); border-radius: 18px; padding: 22px; margin-top: 24px; }
.kit-diagram svg { width: 100%; height: auto; display: block; }

.ag-cta { margin-top: 44px; text-align: center; background: var(--ink); border-radius: 20px; padding: 42px 28px; }
.ag-cta h2 { color: #fff; font-size: 24px; letter-spacing: -0.015em; margin: 0; }
.ag-cta p { color: rgba(245,242,235,.6); font-size: 14.5px; margin: 10px auto 22px; max-width: 560px; }
.ag-cta a.main { display: inline-block; background: var(--energy); color: var(--ink); padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.ag-cta a.ghost { display: inline-block; margin-left: 12px; border: 1px solid rgba(245,242,235,.3); color: #F5F2EB; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 14.5px; text-decoration: none; }

/* En-tête et pied de document Neolia, injectés par kit.js : invisibles à l'écran */
.kit-print-head, .kit-print-foot { display: none; }

/* Impression : la page devient un document Neolia propre */
@media print {
  @page { margin: 12mm 14mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .site-footer, .ag-back, .kit-tools, .ag-cta, .kit-copy .kit-copy-btn { display: none !important; }
  body { background: #fff !important; }
  .ag-wrap { padding: 0; max-width: none; }

  .kit-print-head { display: flex !important; justify-content: space-between; align-items: center; background: var(--ink); color: #F5F2EB; border-radius: 12px; padding: 7mm 8mm; margin-bottom: 8mm; }
  .kit-print-head img { height: 6mm; width: auto; display: block; }
  .kit-print-head .t { font-family: var(--font-mono); font-size: 8pt; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,242,235,.7); }

  .ag-kicker { font-size: 8.5pt; }
  .ag-wrap h1 { font-size: 19pt; max-width: none; margin-top: 3mm; }
  .ag-lead { font-size: 10.5pt; max-width: none; line-height: 1.5; }

  .ag-grid { display: grid; grid-template-columns: 1fr !important; gap: 5mm; margin-top: 7mm; }
  .ag-card, .kit-diagram { border: 1px solid #C9C4B8; border-radius: 4mm; padding: 6mm 7mm 5mm; box-shadow: none; margin-top: 0; }
  /* Les petites cartes restent entières ; les grandes (wide, timelines) se coupent entre leurs blocs */
  .ag-card:not(.wide) { break-inside: avoid; }
  .kit-table tr { break-inside: avoid; }
  .kit-diagram { margin-top: 7mm; }
  .ag-card h2 { font-size: 12.5pt; }
  .ag-card p, .ag-card li { font-size: 9.6pt; line-height: 1.55; }
  .ag-fact { break-inside: avoid; font-size: 9pt; }
  .kit-copy { break-inside: avoid; background: #F5F2EB; border: 1px solid #C9C4B8; }
  .kit-copy pre { font-size: 9.2pt; }
  .kit-table { font-size: 9pt; }
  .kit-table th { font-size: 7pt; }
  .kit-step { break-inside: avoid; }
  .kit-step h3 { font-size: 11pt; }
  .kit-step p, .kit-step li { font-size: 9.4pt; }
  a { color: inherit !important; text-decoration: none !important; }

  .kit-print-foot { display: flex !important; justify-content: space-between; margin-top: 8mm; padding-top: 4mm; border-top: 1px solid #C9C4B8; font-family: var(--font-mono); font-size: 7.5pt; letter-spacing: .14em; text-transform: uppercase; color: rgba(11,17,41,.55); }
}
