@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --background: #ffffff;
  --foreground: #171717;
  user-select: none;
  touch-action: pan-x pan-y; /* Empêche le zoom par pincement mais permet le défilement */
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

/* Optimisations pour WebView */
html, body, #__next, main, div {
  -webkit-tap-highlight-color: transparent; /* Supprime le flash bleu sur tap */
  overscroll-behavior: none !important; /* Empêche le rebond/pull-to-refresh */
  -webkit-overflow-scrolling: touch; /* Défilement fluide sur iOS */
  -webkit-user-select: none; /* Empêche la sélection de texte sur WebKit */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Masquer les scrollbars pour Chrome, Safari et Opera */
*::-webkit-scrollbar {
  display: none;
}

html, body {
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: pan-x pan-y !important; /* Empêche le zoom par pincement mais permet le défilement */
  overflow: auto;
  max-width: 100vw; /* Empêche le débordement horizontal */
  max-height: 100vh; /* Empêche le débordement vertical */
}


.home {
  font-family: 'Karla', sans-serif;
  background-color: #006B88;
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: 90%;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-custom {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  margin-bottom: 20px;
  background-color: #006B88;
  color: white;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 107, 136, 0.2);
}

.btn-custom:hover {
  background-color: #005f7a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 107, 136, 0.3);
}

@media (min-width: 640px) {
  .btn-custom {
    font-size: 20px;
    padding: 18px;
  }
}

@media (min-width: 1024px) {
  .btn-custom {
    font-size: 22px;
    padding: 20px;
  }
}
/*Animations*/
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes wobble {
  0% { transform: translateX(0); }
  15% { transform: translateX(-10px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.wobble {
  animation: wobble 0.8s ease-in-out;
}

.touch-action-pan-x-pan-y {
  touch-action: pan-x pan-y !important;
  -webkit-touch-callout: none !important; /* Empêche le menu contextuel sur iOS */
  -webkit-user-drag: none !important; /* Empêche le drag & drop sur iOS */
}

.back {
  font-size: 24px;
  cursor: pointer;
  padding-top: 32px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  height: 250px;
  animation: fadeIn 1s ease-in-out;
  cursor: pointer;
}
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}
.card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.card-title {
  font-weight: 600;
}
.form-group {
  margin-bottom: 25px;
}
label {
  font-size: 18px;
  font-weight: bold;
}

.custom-file-upload {
  display: block;
  width: 100%;
  height: 50px;
  line-height: 50px;
  border: 2px solid #006B88;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  color: #006B88;
  background-color: #fff;
  margin-top: 10px;
}

.custom-file-upload:hover {
  background-color: #f0f0f0;
}

.preview {
  margin-top: 10px;
  height: 100px;
  border-radius: 5px;
  border: 1px solid #ddd;
  object-fit: cover;
  border-radius: 5 px;
  display:flex

}

.guarantee {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 20px;
  animation: slideIn 0.5s ease-in-out forwards;
  opacity: 0;
}
.guarantee:nth-child(3) { animation-delay: 0.5s; }
.guarantee:nth-child(4) { animation-delay: 1s; }
.guarantee:nth-child(5) { animation-delay: 1.5s; }
.guarantee span {
  margin-left: 10px;
}
.guarantee-title {
  font-size: 26px;
  font-weight: bold;
}
.info {
  font-size: 20px;
  margin-top: 20px;
}
.price {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
}
.btn-custom {
  background-color: #006B88;
  color: white;
  border: none;
  border-radius: 5px;
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  animation: fadeIn 1s ease-in-out;
}
.btn-custom:hover {
  background-color: #005f7a;
}
.btn-secondary {
  background-color: white;
  color: #006B88;
  border: 2px solid #006B88;
  border-radius: 5px;
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  animation: fadeIn 1s ease-in-out;
}
.btn-secondary:hover {
  background-color: #f0f0f0;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 120px;
}

.payment-method:hover {
  border-color: #006B88;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.payment-method.selected {
  border-color: #006B88;
  background-color: rgba(0,107,136,0.1);
}

.payment-method img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  object-fit: contain;
}

.payment-method span {
  font-size: 16px;
  text-align: center;
}
