/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Poppins font is imported from Google Fonts in the tailwind CSS file */

/* Définition de la police par défaut pour tout le site */
:root {
--font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html, body {
font-family: var(--font-sans);
}

/* Assurer que Tailwind utilise Poppins */
.font-sans {
font-family: var(--font-sans);
}

/* Fix minimal pour le bouton notifications */
#notifications-badge:focus,
#notifications-badge:active,
#notifications-badge:focus-visible {
  outline: none !important;
}

/* Force responsive behavior for search forms */
@media (min-width: 1024px) {
  .search-form-responsive {
    flex-direction: row !important;
  }
  .search-form-responsive > * {
    flex: 1 !important;
  }
}

/* Custom hover effects - desktop only */
@media (min-width: 1024px) {
  .desktop-hover-scale:hover,
  .desktop-hover-scale:focus {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
    z-index: 10 !important;
  }
}

/* No transform on mobile/tablet */
@media (max-width: 1023px) {
  .desktop-hover-scale,
  .desktop-hover-scale:hover,
  .desktop-hover-scale:focus {
    transform: none !important;
  }
}

/* Fix curseur pointer pour tous les boutons */
input[type="submit"], 
button, 
.btn {
  cursor: pointer;
}

/* CSS fixes for console warnings suppression */

/* Fallback for MS pseudo-elements (suppress warnings) */
input::-ms-input-placeholder,
textarea::-ms-input-placeholder {
  color: #9ca3af;
  opacity: 1;
}

input::-ms-clear {
  display: none;
}

/* Legacy browser support fallbacks */
@supports not (-webkit-text-size-adjust: 100%) {
  html {
    -webkit-text-size-adjust: 100%;
  }
}

/* Modern fullscreen fallback */
@supports not (selector(:fullscreen)) {
  :-webkit-full-screen {
    width: 100vw;
    height: 100vh;
  }
}

/* Mobile iOS optimizations for touch interactions */
@media only screen and (max-width: 768px) {
  /* Ensure minimum touch target size of 44px for iOS */
  button, 
  input[type="submit"], 
  input[type="button"],
  .btn,
  a[role="button"],
  [data-action*="click"] {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }
  
  /* Improve tap targets for small elements */
  .touch-target-small {
    min-height: 48px;
    min-width: 48px;
  }
  
  /* Prevent zoom on form inputs for iOS */
  input[type="text"],
  input[type="email"], 
  input[type="password"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px;
  }
  
  /* Better visual feedback for active states */
  button:active,
  input[type="submit"]:active,
  .btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  /* Prevent callout on touch hold */
  .touch-manipulation {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Smooth scrolling for iOS */
  .scroll-smooth {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix popup positioning on mobile */
  .mobile-popup {
    max-width: calc(100vw - 2rem);
    margin: 0 1rem;
  }
}

/* iPhone specific optimizations */
@media only screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
  /* Safe area adjustments for notched iPhones */
  .safe-area-top {
    padding-top: env(safe-area-inset-top);
  }
  
  .safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  /* Better visual feedback for touch */
  button:active,
  input[type="submit"]:active {
    background-color: rgba(0, 0, 0, 0.1);
  }
}


