/* ==========================================================================
   Pages outils Suite Charity : blocs nouveaux (bandeau d'icones, mise en
   situation, questions frequentes, se combine avec) et mises en page
   responsives. Les blocs existants (hero, meta, enjeu, listes, cartes
   numerotees, CTA) reprennent les styles en ligne des pages existantes.
   ========================================================================== */

.tp-wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }
.tp-section { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.tp-section--compact { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.tp-section--flush-top { padding-top: 0; }
.tp-section--wash { background: #faf8f5; }
.tp-section--line { border-top: 1px solid #e7e3dd; }

.tp-eyebrow {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F07030;
}
.tp-h2 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 4.5vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 0;
}
.tp-h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(21px, 2.8vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0;
}
.tp-text {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #404040;
  margin: 0;
}
.tp-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---------- Hero ---------- */
.tp-hero { position: relative; overflow: hidden; background: #1a1a1a; }
.tp-hero__bg, .tp-hero__shade { position: absolute; inset: 0; pointer-events: none; }
.tp-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.tp-hero__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tp-hero__tag {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: #F07030;
  padding: 5px 12px;
  border-radius: 6px;
  width: fit-content;
  max-width: 100%;
}
.tp-hero__h1 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #ffffff;
  margin: 0;
}
.tp-hero__lead {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
}
.tp-hero__intro {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 560px;
}
.tp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.tp-btn--primary { background: #F07030; color: #ffffff; border: 1px solid #F07030; }
.tp-btn--ghost { background: transparent; color: #ffffff; border: 1px solid #ffffff; }
.tp-btn:focus-visible, .tp-combo__card:focus-visible, .tp-faq summary:focus-visible { outline: 2px solid #F07030; outline-offset: 3px; }

/* ---------- Enjeu : texte + visuel carre ---------- */
.tp-enjeu { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.tp-enjeu__img { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; }
@media (max-width: 900px) {
  .tp-enjeu { grid-template-columns: minmax(0, 1fr); }
  .tp-enjeu__img { max-width: 480px; }
}

/* ---------- Bandeau d'icones ---------- */
.tp-icons { border-bottom: 1px solid #e7e3dd; }
.tp-icons__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 20px; }
.tp-icons__scroller { position: relative; }
.tp-icons__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
}
.tp-icons__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  text-align: center;
  border-left: 1px solid #E2DED8;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #1a1a1a;
}
.tp-icons__item:first-child { border-left: 0; }
.tp-icons__item svg { width: 24px; height: 24px; color: #F07030; flex-shrink: 0; }

/* ---------- Bandeau meta ---------- */
.tp-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tp-meta__card { background: #faf8f5; border-radius: 16px; padding: 20px 24px; display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.tp-meta__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: #fbe9dd; display: flex; align-items: center; justify-content: center; }
.tp-meta__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-meta__label { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #F07030; }
.tp-meta__value { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.35; color: #1a1a1a; }

/* ---------- Colonnes texte + visuel ---------- */
.tp-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 40px); align-items: center; }
.tp-split > * { min-width: 0; }
.tp-lists { display: flex; flex-direction: column; gap: 32px; }
.tp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.tp-list li { display: flex; align-items: flex-start; gap: 12px; font-family: 'Instrument Sans', sans-serif; font-size: 16px; line-height: 1.55; color: #404040; }
.tp-list__ico { flex-shrink: 0; width: 18px; color: #F07030; font-weight: 700; line-height: 1.55; }
.tp-list__ico svg { width: 18px; height: 18px; display: block; transform: translateY(3px); }
.tp-list__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-list__title { font-weight: 600; color: #1a1a1a; }
.tp-list__desc { color: #767370; }
.tp-list-title { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 16px; color: #1a1a1a; margin: 0 0 12px; }

/* ---------- Cartes numerotees ---------- */
.tp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-step { padding: 32px 28px; border-right: 1px solid #e7e3dd; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tp-step:first-child { padding-left: 0; }
.tp-step:last-child { border-right: 0; padding-right: 0; }
.tp-step__num { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13px; color: #F07030; }
.tp-step__title { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 20px; color: #1a1a1a; margin: 0; }
.tp-step__text { font-family: 'Instrument Sans', sans-serif; font-size: 15px; line-height: 1.6; color: #767370; margin: 0; }

/* ---------- Questions frequentes ---------- */
.tp-faq { max-width: 860px; border-top: 1px solid #E2DED8; }
.tp-faq details { border-bottom: 1px solid #E2DED8; }
.tp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: #1a1a1a;
}
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary svg { flex-shrink: 0; width: 20px; height: 20px; color: #F07030; transition: transform 0.3s ease; }
.tp-faq details[open] summary svg { transform: rotate(180deg); }
.tp-faq__answer { padding: 0 40px 22px 0; font-family: 'Instrument Sans', sans-serif; font-size: 15px; line-height: 1.65; color: #404040; margin: 0; }

/* ---------- Se combine avec ---------- */
.tp-combo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tp-combo__card {
  background: #faf8f5;
  border: 1px solid #e7e3dd;
  padding: 24px;
  text-decoration: none;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transition: background 0.25s ease;
}
.tp-combo__card:hover { background: #f1ebe1; color: #1a1a1a; }
.tp-combo__eyebrow { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #F07030; }
.tp-combo__title { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.3; }
.tp-combo__line { font-family: 'Instrument Sans', sans-serif; font-size: 15px; line-height: 1.5; color: #767370; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1025px) {
  .tp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .tp-split--visual-left > .tp-visual { order: -1; }
}
@media (max-width: 1024px) {
  .tp-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .tp-hero__intro { max-width: 640px; }
  .tp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-step { padding: 28px; }
  .tp-step:nth-child(odd) { padding-left: 0; }
  .tp-step:nth-child(even) { border-right: 0; padding-right: 0; }
  .tp-step:nth-child(n+3) { border-top: 1px solid #e7e3dd; }
  .tp-combo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tp-meta { grid-template-columns: minmax(0, 1fr); }
  .tp-icons__scroller::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff);
  }
  .tp-icons__list {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 40px;
  }
  .tp-icons__list::-webkit-scrollbar { display: none; }
  .tp-icons__item { flex: 0 0 auto; min-width: 118px; scroll-snap-align: start; padding: 4px 16px; }
}
@media (max-width: 760px) {
  .tp-meta { grid-template-columns: minmax(0, 1fr); }
  .tp-steps { grid-template-columns: minmax(0, 1fr); }
  .tp-step, .tp-step:nth-child(odd), .tp-step:nth-child(even), .tp-step:first-child, .tp-step:last-child { padding: 24px 0; border-right: 0; }
  .tp-step + .tp-step { border-top: 1px solid #e7e3dd; }
  .tp-combo { grid-template-columns: minmax(0, 1fr); }
  .tp-faq summary { font-size: 16px; }
  .tp-faq__answer { padding-right: 0; }
}
@media (max-width: 480px) {
  .tp-hero__cta .tp-btn { width: 100%; }
}
