/* Global CSS Variables and Styles */

:root {
  --primary-orange: #f2594b;
  --orange-dark: #d94a3d;
  --orange-light: #fb6b5f;
  --orange-lighter: #ff8a7d;
  --orange-accent: #ff6b4a;
  --neutral-dark: #1f2937;
  --neutral-darker: #111827;
  --neutral-light: #f9fafb;
  --gray-soft: #6b7280;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.smooth-scroll {
  scroll-behavior: smooth;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
}

* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.text-balance {
  text-wrap: balance;
  word-wrap: break-word;
}

/* ============================================
   BUTTON SYSTEM - Unified & Consistent
   ============================================ */

/* Base Button Styles */
button,
.btn,
[class*="btn"],
input[type="button"],
input[type="submit"] {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.75rem;
}

/* PRIMARY BUTTON - Orange solid */
.btn-primary,
.primary-btn,
a[class*="primary"],
button[class*="bg-\[#F2594b\]"],
button[class*="bg-\[#f2594b\]"] {
  background-color: rgb(242, 89, 75);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(242, 89, 75, 0.2);
  border: 2px solid rgb(242, 89, 75);
}

.btn-primary:hover,
.primary-btn:hover,
a[class*="primary"]:hover,
button[class*="bg-\[#F2594b\]"]:hover,
button[class*="bg-\[#f2594b\]"]:hover {
  background-color: rgb(217, 74, 61);
  border-color: rgb(217, 74, 61);
  box-shadow: 0 6px 12px rgba(242, 89, 75, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active,
.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(242, 89, 75, 0.2);
}

/* SECONDARY BUTTON - Border with hover fill */
.btn-secondary,
.secondary-btn,
button[class*="border-gray-200"],
button[class*="text-gray-6"] {
  background-color: transparent;
  color: rgb(55, 65, 81);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgb(229, 231, 235);
  box-shadow: none;
}

.btn-secondary:hover,
.secondary-btn:hover,
button[class*="border-gray-200"]:hover,
button[class*="text-gray-6"]:hover {
  background-color: rgb(242, 89, 75);
  color: white;
  border-color: rgb(242, 89, 75);
  box-shadow: 0 6px 12px rgba(242, 89, 75, 0.2);
  transform: translateY(-2px);
}

/* TERTIARY BUTTON - Gradient orange */
.btn-tertiary,
.tertiary-btn,
button[class*="bg-gradient-to-r"] {
  background: linear-gradient(
    135deg,
    rgb(242, 89, 75) 0%,
    rgb(217, 74, 61) 100%
  );
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgb(242, 89, 75);
  box-shadow: 0 4px 12px rgba(242, 89, 75, 0.25);
}

.btn-tertiary:hover,
.tertiary-btn:hover,
button[class*="bg-gradient-to-r"]:hover {
  box-shadow: 0 8px 16px rgba(242, 89, 75, 0.35);
  transform: translateY(-2px);
}

/* OUTLINE BUTTON - Dark border */
.btn-outline,
.outline-btn,
button[class*="bg-gray-900"] {
  background-color: rgb(17, 24, 39);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgb(17, 24, 39);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover,
.outline-btn:hover,
button[class*="bg-gray-900"]:hover {
  background-color: rgb(242, 89, 75);
  border-color: rgb(242, 89, 75);
  box-shadow: 0 6px 12px rgba(242, 89, 75, 0.2);
  transform: translateY(-2px);
}

/* LARGE BUTTON - Full width or bigger */
.btn-lg,
.btn-large,
button[class*="px-8 py-4"],
button[class*="w-full"] {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.875rem;
}

/* SMALL BUTTON */
.btn-sm,
.btn-small,
button[class*="px-4 py-2"] {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

/* ROUNDED BUTTON - Pill shape */
.btn-rounded,
button[class*="rounded-full"] {
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
}

/* DISABLED STATE */
button:disabled,
.btn:disabled,
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

button:disabled:hover,
.btn:disabled:hover,
button[disabled]:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* FOCUS STATE - Accessibility */
button:focus,
button:focus-visible {
  outline: 2px solid rgb(242, 89, 75);
  outline-offset: 2px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; /* Taille du cercle */
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.05); /* Couleur par défaut */
  border-radius: 50%; /* Cercle parfait */
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.footer-social-btn i {
  pointer-events: none; /* Évite les conflits de hover sur l’icône */
}

.footer-social-btn:hover {
  background-color: rgb(242, 89, 75); /* Couleur hover */
  transform: scale(1.1); /* Légère expansion */
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 1023px) {
  .lg\:hidden {
    display: block !important;
  }

  .lg\:flex {
    display: none !important;
  }

  .lg\:w-32 {
    width: auto;
  }

  .w-20 {
    width: 5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:hidden {
    display: none !important;
  }

  .lg\:flex {
    display: flex !important;
  }

  .lg\:w-32 {
    width: 8rem;
  }
}

/* Mobile menu improvements */
#mobile-menu.hidden {
  display: none !important;
}

#mobile-menu:not(.hidden) {
  display: block !important;
}

/* Ensure button styles work everywhere */
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Ensure proper link styling */
a {
  text-decoration: none;
  color: inherit;
}

/* Fix for older Firefox versions */
@-moz-document url-prefix() {
  html {
    overflow-y: scroll;
  }
}
