/* ------------------------------------------------------------
   view-create.css — accueil « Créer », direction « Conversation » (lot 08)
   Réutilise le composeur du lot 07 (view-tool-composer.css) et les cartes
   d'outil du lot 01 (cards.css). Ce fichier ne porte que ce qui est propre
   à cet écran : en-tête, titre, rangée d'outils, grille complète.
   Référence : handoffs/08-accueil-revision/screenshots/
   ------------------------------------------------------------ */

.create-screen {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: 28px var(--sp-4) 0;
}

.create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.create-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
}
.create-logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.create-screen h1 {
  font-size: 30px;
  line-height: 1.12;
  margin-top: 8px;
}

/* ---------- Rangée d'outils ---------- */
.tool-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--sp-4) * -1);
  padding: 2px var(--sp-4);
}
.tool-row::-webkit-scrollbar { display: none; }
.tool-row--desktop { display: none; }

.tool-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tool-pill[aria-checked="true"] { background: var(--tint); border: 1.5px solid var(--accent); }
.tool-pill__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.tool-pill__icon .icon { width: 16px; height: 16px; }

.tool-pill--soon { color: var(--muted); cursor: default; gap: 8px; }
.tool-pill--soon .tool-pill__icon { background: var(--surface-2); color: var(--muted); }
.tool-pill__soon { font-size: 12px; }

.tool-pill--more { padding: 0 16px; }

/* ---------- Tous les outils ---------- */
.create-all h2 { font-size: 19px; margin-bottom: var(--sp-3); }
.create-all { margin-top: var(--sp-2); }

@media (min-width: 960px) {
  .create-screen {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px var(--sp-5) 32px;
  }
  .create-screen h1 { font-size: 52px; text-align: center; margin-top: var(--sp-5); }

  .tool-row--mobile { display: none; }
  .tool-row--desktop {
    display: flex;
    justify-content: center;
    margin: 0 0 var(--sp-4);
    padding: 0;
    overflow: visible;
  }

  .create-screen > .composer,
  .create-screen > .tool-opening__starters {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .create-screen > .tool-opening__starters { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .create-all { max-width: 1120px; margin: 56px auto 0; }
  .create-all .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
