/* ---------- Intégrations ----------
   Chargé EN PLUS de style.css (et de docs.css, pour ses étapes numérotées et ses
   encadrés) par l'index des intégrations et les pages d'outil. La rubrique
   « Intégrations » de Fonctionnalités n'en a besoin que pour son mur de logos :
   elle le charge aussi. Même vocabulaire que le reste du site. */

/* ---------- Le mur de logos ---------- */
.tool-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
  text-align: left;
}
.tool-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
a.tool-tile:hover {
  color: var(--text);
  text-decoration: none;
  border-color: rgba(91, 84, 232, .45);
  box-shadow: 0 16px 40px -28px rgba(40, 34, 130, .5);
  transform: translateY(-2px);
}
.tool-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-tile small { display: block; font-weight: 400; font-size: .76rem; color: var(--text-3); }
.tool-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.tool-logo img { width: 24px; height: 24px; object-fit: contain; }
.tool-family { margin-top: 34px; text-align: left; }
.tool-family:first-child { margin-top: 0; }
.tool-family h2,
.tool-family h3 { font-size: 1.15rem; margin-bottom: 2px; }
.tool-family > p { font-size: .92rem; max-width: 44em; }
.tool-more { margin-top: 18px; font-size: .95rem; }

/* ---------- La page d'un outil ---------- */
.tool-page {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 80px;
  text-align: left;
}
.tool-head { display: flex; align-items: center; gap: 18px; margin: 10px 0 18px; }
.tool-head .tool-logo { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--border); }
.tool-head .tool-logo img { width: 44px; height: 44px; }
.tool-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0; }
.tool-page > .lede { margin: 0 0 18px; max-width: 46em; }
.tool-gestures { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tool-gestures span {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-tint);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
}
.tool-page h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 52px 0 6px;
  scroll-margin-top: 88px;
}
.tool-page h2 + p { max-width: 46em; }
.tool-page .benefit-grid { margin-top: 18px; }
.tool-page .benefit h3 { font-size: 1.08rem; }
.tool-page .steps { margin-top: 16px; max-width: 46em; }
.tool-page .callout { max-width: 46em; }
.tool-page ul.tool-notes { margin: 12px 0 0 20px; max-width: 46em; color: var(--text-2); }
.tool-page ul.tool-notes li { margin-bottom: 7px; }
.tool-page ul.tool-notes li::marker { color: var(--text-3); }

/* Ce qui s'écrit dans l'outil : la note telle qu'elle y arrive. */
.tool-written {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.tool-note {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.tool-note__kicker {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
}
.tool-note strong { display: block; margin-bottom: 6px; font-size: .98rem; }
.tool-note p { font-size: .9rem; margin-bottom: 8px; }
.tool-note p:last-child { margin-bottom: 0; color: var(--text-3); }

@media (max-width: 760px) {
  .tool-written { grid-template-columns: 1fr; }
  .tool-hero,
  .tool-row,
  .tool-row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tool-row:nth-child(even) .tool-shot { order: 0; }
  .tool-shot { padding: 16px; }
  .tool-head .tool-logo { width: 52px; height: 52px; }
}

/* ---------- L'index ---------- */
.tool-index {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 80px;
}
.tool-index .tool-wall { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tool-logo--mono {
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
}
.tool-head .tool-logo--mono { font-size: 1.3rem; }
.tool-page > h3 { margin: 26px 0 0; font-size: 1.05rem; }

/* Les captures de l'application, UN JEU PAR OUTIL (tools/integrations/captures.py) : déjà
   recadrées sur ce qui compte, à 2x. Chacune est posée à sa taille réelle (l'attribut width
   est en points) sur un fond teinté, jamais étirée : une interface agrandie devient floue. */
.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 452px);
  gap: 44px;
  align-items: center;
  margin-top: 10px;
}
.tool-hero--seul { grid-template-columns: minmax(0, 1fr); }
.tool-hero .tool-head { margin-top: 0; }
.tool-hero .lede { margin: 0 0 18px; max-width: 46em; }
.tool-shot {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--accent-tint), var(--tint-start));
}
.tool-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 50px -28px var(--shadow);
}
.tool-shot--sonnerie { padding: 20px; }
.tool-shot--creer img { border-radius: 30px; border: 0; }
.tool-shot--appel img,
.tool-shot--consigne img { max-height: 620px; width: auto; }
.tool-rows { display: grid; gap: 28px; margin-top: 26px; }
.tool-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 44px;
  align-items: center;
}
.tool-row:nth-child(even) .tool-shot { order: -1; }
.tool-row:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.tool-row__text h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tool-row__text p { color: var(--text-2); }
.tool-rows + .benefit-grid { margin-top: 44px; }

/* Le bas de l'index : « il en manque un » et « comment ça se branche », en deux cartes
   plutôt qu'en deux paragraphes perdus sous le mur de logos. */
.tool-family--aide { margin-top: 56px; }
.tool-family--aide .benefit h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tool-family--aide .final-actions { margin-top: 28px; text-align: center; }
