/* @tailwind directives removed as they are not supported in browser without build step */


body {
  /* antialiased */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1D3557;
  background-color: #ECEADF;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 500ms;
}

/* --- NIGHT MODE (SUPPRIMÉ) --- */



/* Utilities */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* --- ANIMATIONS CINÉMATIQUES --- */
@keyframes pageEnter {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.995);
    /* Léger zoom et montée */
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.animate-page-enter {
  animation: pageEnter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  /* Courbe "Ease-Out-Expo" très douce */
}

/* --- LOADING ANIMATIONS --- */
@keyframes loading-bar {
  0% {
    left: -50%;
    width: 30%;
  }

  50% {
    left: 20%;
    width: 60%;
  }

  100% {
    left: 100%;
    width: 30%;
  }
}

.animate-loading-bar {
  animation: loading-bar 1.5s ease-in-out infinite;
}

/* --- PRINT STYLES (PDF MENU) --- */
/* Default: Hide print layout on screen */
.print-layout {
  display: none !important;
}

@media print {
  @page {
    margin: 0;
    size: A4;
  }

  /* Print Mode: Hide everything but print layout */
  body {
    visibility: hidden;
    background-color: white !important;
  }

  body * {
    visibility: hidden;
  }

  /* Show the print layout container */
  .print-layout {
    visibility: visible !important;
    position: fixed !important;
    /* Fixed ensures it anchors to the page */
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: white !important;
    display: block !important;
    opacity: 1 !important;
    z-index: 99999;
    overflow: visible !important;
  }

  /* Show children of print layout */
  .print-layout * {
    visibility: visible !important;
  }

  /* Ensure text colors print correctly */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .no-print {
    display: none !important;
  }

  .print-bg-gold {
    background-color: #C5A059 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* --- GOOGLE TRANSLATE HACKS --- */

/* Hide the top banner */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

/* Hide the original widget just in case */
#google_translate_element {
  /* Don't use display: none, otherwise it won't load */
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Create the blur/luxurious effect for the floating widget if used */
.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
}

/* Prevent Body Shift */
body {
  top: 0px !important;
}

/* Hide tooltips */
.goog-tooltip {
  display: none !important;
}

.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Ensure clean text rendering during translation */
font {
  background-color: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}