/* CalculTool Custom CSS — supplements Tailwind (light mode) */

/* ============================================================
   Global: supprime tous les coins arrondis
   ============================================================ */
*,
*::before,
*::after {
  border-radius: 0 !important;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Nav link hover underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: #c25926;
  border-radius: 1px;
  transition: left 0.2s, right 0.2s;
}

.nav-link:hover::after {
  left: 12px;
  right: 12px;
}

/* Calculator tab buttons (light mode) */
.pct-tab,
.unit-btn,
.temp-btn {
  padding: 0.4rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pct-tab:hover,
.unit-btn:hover,
.temp-btn:hover {
  color: #8f3e18;
  background: #fdf0e8;
  border-color: #f0b99a;
}

.active-tab {
  background: #fdf0e8 !important;
  border-color: #e8915e !important;
  color: #c25926 !important;
}

/* Select styling — light */
.calc-select {
  width: 100%;
  padding: 0.625rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  color: #1e293b;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.calc-select:focus {
  border-color: #c25926;
  box-shadow: 0 0 0 3px rgba(194, 89, 38, 0.15);
}

.calc-select option {
  background: #fff;
  color: #1e293b;
}

/* Calculator inputs — light */
.calc-input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  color: #1e293b;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-input:focus {
  outline: none;
  border-color: #c25926;
  box-shadow: 0 0 0 3px rgba(194, 89, 38, 0.12);
  background: #fff;
}

.calc-input::placeholder {
  color: #94a3b8;
}

/* Result box */
.result-box {
  animation: fadeIn 0.3s ease;
}

/* Hero stat items */
.stat-item {
  animation: slideUp 0.5s ease both;
}

.stat-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
  animation-delay: 0.4s;
}

/* Article prose — light */
.prose {
  max-width: none;
}

.prose h2,
.prose h3 {
  color: #1e293b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose p,
.prose ul,
.prose li {
  color: #475569;
}

.prose strong {
  color: #1e293b;
}

.prose ul {
  padding-left: 1.25rem;
}

/* Smooth transitions */
input[type="number"],
input[type="date"],
input[type="search"],
input[type="text"] {
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.5;
}

/* Hamburger animation */
#ham-1,
#ham-2,
#ham-3 {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Sidebar quick-calc inputs */
.sb-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sb-input:focus {
  outline: none;
}

/* ============================================================
   Override Tailwind blue-* palette → brand color #c25926
   ============================================================ */

/* Backgrounds */
.bg-blue-50 {
  background-color: #fdf0e8 !important;
}

.bg-blue-100 {
  background-color: #fce0cc !important;
}

.bg-blue-200 {
  background-color: #f0b99a !important;
}

.bg-blue-300 {
  background-color: #e8915e !important;
}

.bg-blue-400 {
  background-color: #d97034 !important;
}

.bg-blue-500 {
  background-color: #c25926 !important;
}

.bg-blue-600 {
  background-color: #c25926 !important;
}

.bg-blue-700 {
  background-color: #a04820 !important;
}

.bg-blue-800 {
  background-color: #7d3818 !important;
}

.bg-blue-900 {
  background-color: #5a2810 !important;
}

/* Text */
.text-blue-50 {
  color: #fdf0e8 !important;
}

.text-blue-100 {
  color: #fce0cc !important;
}

.text-blue-200 {
  color: #f0b99a !important;
}

.text-blue-300 {
  color: #e8915e !important;
}

.text-blue-400 {
  color: #d97034 !important;
}

.text-blue-500 {
  color: #c25926 !important;
}

.text-blue-600 {
  color: #c25926 !important;
}

.text-blue-700 {
  color: #a04820 !important;
}

.text-blue-800 {
  color: #7d3818 !important;
}

.text-blue-900 {
  color: #5a2810 !important;
}

/* Borders */
.border-blue-50 {
  border-color: #fdf0e8 !important;
}

.border-blue-100 {
  border-color: #fce0cc !important;
}

.border-blue-200 {
  border-color: #f0b99a !important;
}

.border-blue-300 {
  border-color: #e8915e !important;
}

.border-blue-400 {
  border-color: #d97034 !important;
}

.border-blue-500 {
  border-color: #c25926 !important;
}

.border-blue-600 {
  border-color: #c25926 !important;
}

.border-blue-700 {
  border-color: #a04820 !important;
}

/* Ring (focus) */
.ring-blue-400,
.focus\:ring-blue-400:focus {
  --tw-ring-color: rgba(194, 89, 38, 0.3) !important;
}

.ring-blue-500,
.focus\:ring-blue-500:focus {
  --tw-ring-color: rgba(194, 89, 38, 0.3) !important;
}

/* Hover backgrounds */
.hover\:bg-blue-50:hover {
  background-color: #fdf0e8 !important;
}

.hover\:bg-blue-100:hover {
  background-color: #fce0cc !important;
}

.hover\:bg-blue-500:hover {
  background-color: #a04820 !important;
}

.hover\:bg-blue-600:hover {
  background-color: #c25926 !important;
}

.hover\:bg-blue-700:hover {
  background-color: #a04820 !important;
}

/* Hover text */
.hover\:text-blue-300:hover {
  color: #e8915e !important;
}

.hover\:text-blue-500:hover {
  color: #c25926 !important;
}

.hover\:text-blue-600:hover {
  color: #c25926 !important;
}

.hover\:text-blue-700:hover {
  color: #a04820 !important;
}

/* Hover borders */
.hover\:border-blue-300:hover {
  border-color: #e8915e !important;
}

.hover\:border-blue-500:hover {
  border-color: #c25926 !important;
}

/* Focus borders */
.focus\:border-blue-400:focus {
  border-color: #c25926 !important;
}

.focus\:border-blue-500:focus {
  border-color: #c25926 !important;
}

/* Gradients — from / via / to */
.from-blue-500 {
  --tw-gradient-from: #c25926 !important;
}

.from-blue-600 {
  --tw-gradient-from: #c25926 !important;
}

.via-blue-700 {
  --tw-gradient-via: #a04820 !important;
}

.to-blue-500 {
  --tw-gradient-to: #c25926 !important;
}

.to-blue-600 {
  --tw-gradient-to: #c25926 !important;
}

.to-blue-700 {
  --tw-gradient-to: #a04820 !important;
}

/* Opacity variants (background) */
.bg-blue-500\/10 {
  background-color: rgba(194, 89, 38, 0.10) !important;
}

.bg-blue-500\/20 {
  background-color: rgba(194, 89, 38, 0.20) !important;
}

.border-blue-500\/20 {
  border-color: rgba(194, 89, 38, 0.20) !important;
}

.border-blue-500\/50 {
  border-color: rgba(194, 89, 38, 0.50) !important;
}

/* Group-hover text */
.group:hover .group-hover\:text-blue-300 {
  color: #e8915e !important;
}

.group:hover .group-hover\:text-blue-500 {
  color: #c25926 !important;
}

.group:hover .group-hover\:text-blue-700 {
  color: #a04820 !important;
}

/* Group-hover background */
.group:hover .group-hover\:bg-blue-500\/20 {
  background-color: rgba(194, 89, 38, 0.20) !important;
}

/* Indigo overrides (used alongside blue in gradients) */
.to-indigo-600,
.to-indigo-700 {
  --tw-gradient-to: #a04820 !important;
}

.from-indigo-600 {
  --tw-gradient-from: #c25926 !important;
}

.bg-gradient-to-r.from-blue-600.to-indigo-600 {
  background: linear-gradient(to right, #c25926, #a04820) !important;
}

/* ============================================================
   Footer — responsive mobile
   ============================================================ */

/* Trust badges: always horizontal wrap */
#footer-grid>div:first-child>div[style*="flex-wrap"] {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

/* Tablet (≤ 1024px): 2 columns */
@media (max-width: 1024px) {
  #footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    padding: 40px 20px 32px !important;
  }
}

/* Mobile (≤ 640px): 1 full-width column */
@media (max-width: 640px) {
  #footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 32px 16px 24px !important;
  }

  /* Bottom bar stacks vertically */
  footer>div:last-child>div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 14px 16px !important;
  }

  /* Logo in footer brand: slightly smaller */
  #footer-grid>div:first-child img {
    height: 38px !important;
  }
}