/* Free tools pages (/tools, /fr/outils). Loaded after landing-2026.css. */
.tool-hero {
  padding: 72px 0 56px;
}
.tool-hero .lede {
  max-width: 680px;
  margin: 0 auto;
}
.tool-hero h1 {
  font-size: clamp(38px, 4.4vw, 60px);
}
.tool-section {
  padding: 64px 0 90px;
}
.tool-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 18px 45px #1024490f;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tool-panel label,
.tool-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.tool-panel textarea,
.tool-panel input[type="text"],
.tool-panel select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b8cae5;
  border-radius: 8px;
  padding: 12px 14px;
}
.tool-panel textarea {
  min-height: 300px;
  resize: vertical;
}
.tool-panel textarea:focus,
.tool-panel input:focus,
.tool-panel select:focus {
  outline: 3px solid #4b8dff;
  outline-offset: 1px;
}
.tool-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.tool-toolbar .tool-label {
  margin: 0 auto 0 0;
}
.tool-button {
  border: 1px solid #b8cae5;
  background: #f4f8ff;
  color: #174f9f;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-width: 36px;
}
.tool-button:hover {
  background: #e0ecff;
}
.tool-button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.tool-button.primary:hover {
  background: #0054e3;
}
.tool-output {
  min-height: 300px;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  background: #f7faff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.6;
}
.tool-output.is-empty {
  color: var(--muted);
}
.tool-note {
  font-size: 12px !important;
  color: var(--muted);
  margin-top: 14px !important;
}
.count-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 12px;
}
.count-stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f7faff;
}
.count-stats strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.count-stats span {
  font-size: 11px;
  color: var(--muted);
}
.count-bar {
  height: 8px;
  border-radius: 4px;
  background: #e3ecf8;
  overflow: hidden;
}
.count-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width 0.15s;
}
.is-over .count-bar span {
  background: #d33;
}
.count-left {
  font-size: 13px;
  font-weight: 650;
  margin-top: 8px;
  color: var(--muted);
}
.is-over .count-left {
  color: #c22;
}
.count-preview {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}
.count-preview p {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink) !important;
  font-size: 14px;
  line-height: 1.5;
}
.count-preview #count-more {
  color: var(--muted);
  font-weight: 650;
}
.hook-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.hook-form .button {
  min-height: 48px;
}
.hook-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.hook-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #f7faff;
}
.hook-list li p {
  color: var(--ink) !important;
  font-size: 15px;
  line-height: 1.5;
}
.hook-list .hook-empty {
  display: block;
  color: var(--muted);
  background: none;
  border-style: dashed;
}
.hook-tag {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #205db9;
  background: #e6efff;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.tools-grid a {
  display: block;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #d8e3f2;
  background: #fff;
  color: var(--ink);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.tools-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px #10244914;
}
.tools-grid h2,
.tools-grid h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.tools-grid p {
  font-size: 14px;
}
.tools-grid .text-link {
  margin-top: 18px;
  color: #145cd1;
}
.tools-more {
  margin-top: 46px;
}
.tools-more h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .hook-form {
    grid-template-columns: 1fr 1fr;
  }
  .hook-form .button {
    grid-column: 1/-1;
  }
  .count-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .tool-panel {
    padding: 18px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .hook-form {
    grid-template-columns: 1fr;
  }
  .hook-list li {
    grid-template-columns: 1fr;
  }
  .hook-tag {
    justify-self: start;
  }
  .tool-panel textarea,
  .tool-output {
    min-height: 200px;
  }
}
.tool-toolbar select {
  width: auto;
  padding: 8px 12px;
  font-size: 14px;
}
