.outils-intro {
  margin-bottom: 1rem;
}

.outils-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ff5200;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.outils-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ff5200;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#convertisseurs,
#minuteur,
#equivalences,
#lexique {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}

.outils-nav {
  margin: 0 0 1rem;
}

.outils-nav__list {
  display: flex !important;
  justify-content: center !important;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1rem 0 1.5rem;
  list-style: none;
}

.outils-nav__list li {
  display: flex;
}

.outils-nav__list a,
.timer-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #fff;
  color: #333 !important;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.outils-nav__list a:hover,
.outils-nav__list a:focus,
.timer-preset:hover,
.timer-preset:focus {
  background: #fff7f2;
  border-color: #ff5200;
  color: #ff5200 !important;
  outline: none;
}

.outils-nav__list a:focus-visible,
.timer-preset:focus-visible,
.converter-tab:focus-visible,
.timer-actions button:focus-visible,
.converter-form button:focus-visible {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

.outils-nav__list a.is-active,
.timer-preset.is-active {
  background: #fff7f2;
  border-color: #ff5200;
  color: #ff5200 !important;
  box-shadow: 0 0 0 1px rgba(255, 82, 0, 0.08);
}

.converter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.converter-tab,
.timer-preset,
.timer-actions button {
  font-weight: 600;
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.converter-tab {
  min-width: 9rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border: 1px solid #d9d9d9 !important;
  background: #fff !important;
  color: #333 !important;
  cursor: pointer;
  box-shadow: none;
}

.converter-tab:hover {
  transform: translateY(-1px);
  background: #fff7f2 !important;
  border-color: #ff5200 !important;
  color: #ff5200 !important;
}

.converter-tab.is-active,
.converter-tab[aria-selected="true"] {
  background: #0073aa !important;
  border-color: #0073aa !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
}

.converter-panel {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.converter-panel[hidden] {
  display: none !important;
}

.converter-panel.is-entering {
  animation: converterPanelFade 0.22s ease;
}

@keyframes converterPanelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.converter-form {
  max-width: 520px;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 1rem;
  background: #f9f9f9;
}

.converter-form label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-weight: 700;
}

.converter-form input,
.converter-form select {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.converter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  min-height: 2.75rem;
  margin: 1rem auto 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid #0073aa;
  background: #0073aa;
  color: #fff !important;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(0, 115, 170, 0.15);
}

.converter-form button:hover,
.converter-form button:focus {
  background: #005f8d;
  border-color: #005f8d;
}

.converter-form button:active {
  transform: translateY(1px);
}

.converter-result {
  margin-top: 0.75rem;
  font-weight: 700;
  min-height: 2.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: #eef6ef;
  border-left: 4px solid #58b957;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.converter-result.is-highlighted {
  animation: converterResultFlash 0.5s ease;
}

@keyframes converterResultFlash {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 rgba(88, 185, 87, 0);
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(88, 185, 87, 0.12);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(88, 185, 87, 0);
  }
}

.timer-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 1rem;
  background: #f9f9f9;
}

.timer-presets {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.timer-fields {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timer-field {
  flex: 1;
}

.timer-field span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.timer-field input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.timer-visual {
  display: flex;
  justify-content: center;
  margin: 1rem auto;
}

#progressCircle {
  transition: stroke-dashoffset 0.3s linear, opacity 0.2s ease;
}

.timer-message {
  margin: 1rem auto 0;
  max-width: 320px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-align: center;
  background: #eef3f6;
  color: #1d1d1d;
}

.timer-message:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

.timer-message--success {
  background: #e8f7ea;
  color: #1f6b2c;
  border: 1px solid #b9e2c0;
}

.timer-message--warning {
  background: #fff4e5;
  color: #8a4b00;
  border: 1px solid #f2d2a4;
}

.timer-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.timer-actions button {
  min-width: 7.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

#timerStart {
  background: #0073aa;
  color: #fff !important;
  border-color: #0073aa;
}

#timerStart:hover,
#timerStart:focus {
  background: #005f8d;
  border-color: #005f8d;
}

#timerPause {
  background: #fff;
  color: #ff5200 !important;
  border: 1px solid #ff5200;
}

#timerPause:hover,
#timerPause:focus {
  background: #fff3ec;
}

#timerReset {
  background: #f7f7f7;
  color: #444 !important;
  border: 1px solid #ccc;
}

#timerReset:hover,
#timerReset:focus {
  background: #ececec;
}

.timer-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.equivalence-search-wrap {
  max-width: 680px;
  margin: 0 auto 1rem;
}

.equivalence-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.equivalence-search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.equivalence-search-row input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.equivalence-search-row button {
  padding: 0.5rem 1rem;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.equivalence-intro {
  text-align: center;
  font-style: italic;
  color: #666;
}

.equivalence-no-results {
  color: #c00;
  font-weight: 700;
}

.equivalence-table-wrap {
  overflow-x: auto;
}

.equivalence-table {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1rem;
}

.equivalence-table thead tr {
  background-color: #ff5200;
  color: #fff;
}

.equivalence-table th,
.equivalence-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

.equivalence-table tbody tr {
  background-color: #ffe8cc;
}

.lexique-wrap {
  margin-top: 0.5rem;
}

.csa-separator {
  display: block !important;
  border: none !important;
  height: 2px !important;
  margin: 3rem auto !important;
  max-width: 760px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 82, 0, 0.6),
    transparent
  ) !important;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes flashbg {
  0%   { background-color: #f9f9f9; }
  50%  { background-color: #ffe4e1; }
  100% { background-color: #f9f9f9; }
}

@media (max-width: 600px) {
  .outils-nav__list,
  .timer-presets {
    gap: 0.5rem;
  }

  .outils-nav__list a,
  .timer-preset {
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
  }

  .timer-fields,
  .equivalence-search-row {
    flex-direction: column;
  }

  .equivalence-search-row button {
    width: 100%;
  }
}

.ang-outils-cuisine-preview {
  border: 2px dashed #ff5200;
  padding: 1rem;
  border-radius: 10px;
  background: #fff8f3;
}

.ang-outils-cuisine-preview h3 {
  margin-top: 0;
  color: #ff5200;
}