/* File: public/css/custom/style-custom.css | Managed for production maintainability. */
/* Global desktop styles (light + shared behavior) */

/* Legal pages text flow on desktop */
.legal-content {
  text-align: justify;
}

/* Smooth and subtle theme transitions (desktop + mobile) */
:root {
  --theme-transition: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body,
nav,
section,
a,
button,
input,
textarea,
select,
.bg-white,
.bg-coolGray-50,
.bg-coolGray-100,
.text-coolGray-900,
.text-coolGray-800,
.text-coolGray-700,
.text-coolGray-600,
.text-coolGray-500,
.border,
.border-coolGray-100,
.border-coolGray-200,
.border-coolGray-300,
.shadow-sm,
.shadow-md,
.shadow-lg {
  transition:
    background-color var(--theme-transition),
    color var(--theme-transition),
    border-color var(--theme-transition),
    box-shadow var(--theme-transition);
}

#theme-toggle svg,
#theme-toggle-mobile svg {
  transition: transform var(--theme-transition), opacity var(--theme-transition);
}

html:not(.dark) #icon-moon {
  transform: rotate(12deg) scale(1.03);
}

html.theme-changing body {
  animation: theme-soft-fade 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.theme-changing,
html.theme-changing body,
html.theme-changing nav,
html.theme-changing section,
html.theme-changing .bg-white,
html.theme-changing .bg-coolGray-50,
html.theme-changing .bg-coolGray-100,
html.theme-changing .text-coolGray-900,
html.theme-changing .text-coolGray-800,
html.theme-changing .text-coolGray-700,
html.theme-changing .text-coolGray-600,
html.theme-changing .text-coolGray-500,
html.theme-changing .border,
html.theme-changing .border-coolGray-100,
html.theme-changing .border-coolGray-200,
html.theme-changing .border-coolGray-300,
html.theme-changing .shadow-sm,
html.theme-changing .shadow-md,
html.theme-changing .shadow-lg {
  transition-duration: 320ms !important;
}

/* Keep Tailwind transition utilities functional (FAQ accordion, etc.) */
.transition-all {
  transition-property: all !important;
}

.duration-500 {
  transition-duration: 500ms !important;
}

@keyframes theme-soft-fade {
  0% {
    opacity: 0.985;
  }
  100% {
    opacity: 1;
  }
}

/* Theme toggle hover (light mode) */
#theme-toggle.theme-toggle-desktop-hover:hover {
  background-color: rgb(238, 240, 243) !important;
}

#theme-toggle-mobile.theme-toggle-mobile-hover:hover {
  background-color: rgb(247, 248, 249) !important;
}

/* Light mode header blur (match dark mode glass effect) */
nav.fixed.top-0.left-0.w-full.z-50 {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Home feature cards (Securite / Accessible / Support): stronger shadow on scroll */
.feature-scroll-card {
  transition: box-shadow 320ms ease, transform 320ms ease;
}

.feature-scroll-card.is-inview {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22) !important;
}

/* Light mode: align card shadows with dark mode cards */
html:not(.dark) .shadow-md,
html:not(.dark) .shadow-lg,
html:not(.dark) .shadow-sm {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

/* Desktop only: align hover animation for offer cards and testimonials */
@media (min-width: 768px) {
  .pricing-slide > div,
  .testimonials-slide > div {
    transform: translateZ(0);
    transition: transform 500ms ease, box-shadow 500ms ease;
    will-change: transform, box-shadow;
  }

  .pricing-slide > div:hover,
  .testimonials-slide > div:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22) !important;
  }
}

/* ===== PRICING INFO ICON & TOOLTIP ===== */
.info-wrapper {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto !important;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgb(136, 150, 171);
  border-radius: 50%;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: rgb(136, 150, 171);
  cursor: default;
  flex-shrink: 0;
}

.info-tooltip {
  position: absolute;
  top: 110%;
  left: auto;
  right: 100%;
  margin-right: 8px;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.75) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(209, 213, 219, 0.4);
  color: #1f2937;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 10;
  white-space: normal;
}

/* Show tooltip on wrapper hover */
.info-wrapper:hover .info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dark mode adjustments */
html.dark .info-icon {
  border-color: #e5e7eb;
  color: #e5e7eb;
}

html.dark .info-tooltip {
  background: rgba(31, 41, 55, 0.75) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ===== ABOUT TIMELINE (custom) ===== */
.about-timeline {
  position: relative;
}

.about-timeline-axis {
  left: 50%;
  width: 4px !important;
  background: #000 !important;
  opacity: 1 !important;
  z-index: 50 !important;
}

.about-timeline-dot {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 9999px !important;
  background: #111 !important;
  border: 4px solid #fff !important;
  z-index: 60 !important;
}

@media (max-width: 767px) {
  .about-timeline-axis,
  .about-timeline-dot {
    display: none !important;
  }
}
/* Tailwind-like fallback utility: this build has no native text-red-500 */
.text-red-500 {
  color: #ef4444;
}

/* Ensure placeholder utility works with this Tailwind build */
.placeholder-coolGray-400::placeholder {
  color: #8896ab;
  opacity: 1;
}

/* Contact select: aligned with input visual style */
.contact-select {
  background: #fff;
}

.contact-select:focus {
  color: #2a3342;
}

.contact-select-menu {
  background: rgba(247, 248, 249, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Lighter shadows only inside contact form */
.contact-form-field {
  box-shadow: 0 1px 2px rgba(42, 51, 66, 0.05) !important;
}

.contact-form-submit {
  box-shadow: 0 1px 2px rgba(42, 51, 66, 0.05) !important;
}

#vps-custom-dev-cpu-value::-webkit-outer-spin-button,
#vps-custom-dev-cpu-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#vps-custom-dev-cpu-value {
  width: 1.4rem;
  -moz-appearance: textfield;
}

.vps-dropdown .contact-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8L10 12L14 8' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.vps-dropdown .contact-select-menu {
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
