/* vitrine.css — styles extraits pour la page vitrine */
:root {
  --hero-brightness: 0.6;
  --glass-saturation: 220%;
  --font-sans: 'Google Sans Flex', ui-sans-serif, system-ui, sans-serif;
}
html.site-bg,
body.site-bg {
  background-color: #0e2702;
  background-image: var(--site-bg-image, url('/public/vitrine/img/fond.webp'));
  background-position: center 200px;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-sans);
}
.hero-bg-layer {
  --brightness: var(--hero-brightness);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 35vh;
  z-index: 0;
  pointer-events: none;
  transition: filter 240ms ease;
  overflow: visible;
}

/* Style pour la vraie image hero */
.hero-bg-layer .hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(var(--brightness));
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 65%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* fond.webp positionné EXACTEMENT comme le body pour créer la continuité visuelle */
.hero-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--site-bg-image, url('/public/vitrine/img/fond.webp'));
  /* Alignement IDENTIQUE au body.site-bg pour synchronisation parfaite */
  background-position: center 200px;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  pointer-events: none;
}

@media (max-width: 768px) {
  /* Aucun ajustement mobile nécessaire, l'image responsive gère ça */
}

.frg-title {
  font-size: clamp(1.9rem, 4.5vw + 0.5rem, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border-radius: 24px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  transition:
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  margin-inline: 10vw;
  max-width: calc(100% - 20vw);
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;
  --exit-scale: 1;
  --exit-opacity: 1;
  transform: translateY(0) scale(var(--exit-scale, 1));
  opacity: var(--exit-opacity, 1);
  will-change: transform, opacity;
}
.glass-card--accent {
  border-radius: 2rem !important;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-card-no-exit {
  --exit-scale: 1 !important;
  --exit-opacity: 1 !important;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(var(--exit-scale, 1));
  }
  to {
    opacity: var(--exit-opacity, 1);
    transform: translateY(0) scale(var(--exit-scale, 1));
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.service-item {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition:
    color 200ms ease,
    transform 300ms ease,
    background-color 200ms ease;
  border-radius: 8px;
}
.service-bullet {
  color: #34d399;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 0.6rem;
  display: inline-block;
  width: 1.5rem;
  text-align: center;
}
.service-item.service-active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  padding: 0 0.5rem;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}
.slider-dot {
  width: 8px;
  height: 8px;
  padding: 10px;
  min-width: 24px;
  min-height: 24px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  background-clip: content-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}
.slider-dot:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.6);
}

/* Glassmorphism elements */
.city-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border-radius: 9999px;
  padding: 12px 24px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.city-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.city-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.glass-button {
  display: inline-block;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}
.glass-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-button:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.glass-button--accent {
  background: rgba(26, 60, 37, 0.18);
  color: #fff;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(26, 60, 37, 0.12);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.glass-button--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-button--accent:hover {
  transform: scale(1.06);
  background: rgba(26, 60, 37, 0.25);
  box-shadow: 0 8px 28px rgba(26, 60, 37, 0.18);
}

/* Reviews */
.sos-widget-container {
  flex: 1 1 300px;
  max-width: 400px;
  min-width: 280px;
}
.sos-widget {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.92)
  );
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 100%;
  color: #333;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.sos-widget:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.1);
}
.sos-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  height: 4px;
  opacity: 0.8;
  width: 100%;
  background-size: 200% 100%;
  background-repeat: repeat-x;
  animation: sos-gradient-slide 8s linear infinite;
  will-change: background-position;
}
.sos-widget--google::before {
  background-image: linear-gradient(
    90deg,
    #4285f4 0%,
    #4285f4 3%,
    #ea4335 9.5%,
    #ea4335 15.5%,
    #fbbc05 22%,
    #fbbc05 28%,
    #34a853 34.5%,
    #34a853 40.5%,
    #4285f4 47%,
    #4285f4 53%,
    #ea4335 59.5%,
    #ea4335 65.5%,
    #fbbc05 72%,
    #fbbc05 78%,
    #34a853 84.5%,
    #34a853 90.5%,
    #4285f4 97%,
    #4285f4 100%
  );
  background-size: 200% 100%;
  background-position: 0 0;
  background-repeat: repeat-x;
  animation: sos-gradient-marquee 10s linear infinite;
}
.sos-widget--starofservice::before {
  background: linear-gradient(
    90deg,
    #f5f6f8 0%,
    #2f78f9 25%,
    #f5f6f8 50%,
    #2f78f9 75%,
    #f5f6f8 100%
  );
  background-size: 200% 100%;
  animation: sos-gradient-marquee 10s linear infinite;
}
.sos-widget--travaux::before {
  background: linear-gradient(
    90deg,
    #f5f6f8 0%,
    #9df15a 20%,
    #9df15a 30%,
    #f5f6f8 50%,
    #9df15a 70%,
    #9df15a 80%,
    #f5f6f8 100%
  );
  background-size: 200% 100%;
  animation: sos-gradient-marquee 10s linear infinite;
}
.sos-logo {
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.sos-badge {
  background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #1f2937;
}
.sos-rating {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sos-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
}
@keyframes sos-gradient-slide {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -100% 0;
  }
}
@keyframes sos-gradient-marquee {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}
.sos-review-box {
  text-align: center;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  height: 210px;
  min-height: 210px;
  max-height: 210px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 8px;
  transition: opacity 0.7s ease-in-out;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
.sos-review-box::-webkit-scrollbar {
  width: 6px;
}
.sos-review-box::-webkit-scrollbar-track {
  background: transparent;
}
.sos-review-box::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.sos-review-box::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.3);
}
.sos-review-author {
  margin-top: 12px;
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  color: #111827;
  letter-spacing: 0.01em;
  text-align: center;
}
.sos-nav {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.sos-nav-arrow {
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  background-color: #f3f4f6;
  border: none;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sos-nav-arrow:hover {
  color: #111827;
  background-color: #e5e7eb;
  transform: scale(1.05);
}
.sos-nav-arrow:active {
  transform: scale(0.95);
  background-color: #d1d5db;
}

/* small responsive tweaks */
@media (max-width: 1024px) {
  .glass-card {
    margin-inline: 7vw;
    max-width: calc(100% - 14vw);
  }
}
@media (max-width: 640px) {
  .glass-card {
    margin-inline: 1rem;
    max-width: calc(100% - 2rem);
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* CESU checkbox (adapted from uiverse.io) */
.checkbox-wrapper-31 {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.checkbox-wrapper-31 .background {
  fill: rgba(255, 255, 255, 0.12);
  transition: ease all 0.25s;
}
.checkbox-wrapper-31 .stroke {
  fill: none;
  stroke: #ffffff;
  stroke-miterlimit: 10;
  stroke-width: 1.5px;
  stroke-dashoffset: 100;
  stroke-dasharray: 100;
  transition: ease all 0.25s;
}
.checkbox-wrapper-31 .check {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8px;
  stroke-dashoffset: 22;
  stroke-dasharray: 22;
  transition: ease all 0.25s;
}
.checkbox-wrapper-31 input[type='checkbox'] {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  margin: 0;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.checkbox-wrapper-31 input[type='checkbox']:hover {
  cursor: pointer;
}
.checkbox-wrapper-31 input[type='checkbox']:checked + svg .background {
  fill: #6cbe45;
}
.checkbox-wrapper-31 input[type='checkbox']:checked + svg .stroke {
  stroke-dashoffset: 0;
}
.checkbox-wrapper-31 input[type='checkbox']:checked + svg .check {
  stroke-dashoffset: 0;
}
.checkbox-wrapper-31:hover .check,
.checkbox-wrapper-31:hover .stroke {
  stroke-dashoffset: 0;
}

/* Custom file upload (CESU photo) — adapted */
.custum-file-upload {
  position: relative;
  width: 100%;
  height: 100%; /* allow the control to fill the column */
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 12px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 140ms ease;
  box-sizing: border-box;
  overflow: hidden;
}
.custum-file-upload .preview-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20; /* Au-dessus de l'icône et du texte */
}
.custum-file-upload .upload-preview {
  display: none; /* hidden by default, shown only when .has-preview */
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.custum-file-upload.has-preview .upload-preview {
  display: block;
}
.custum-file-upload .upload-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.custum-file-upload .upload-remove.hidden {
  display: none;
}
.custum-file-upload.has-preview .icon,
.custum-file-upload.has-preview .text {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}
.custum-file-upload:hover {
  background-color: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.custum-file-upload:focus-within {
  outline: 2px solid rgba(108, 190, 69, 0.12);
}
.custum-file-upload:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(108, 190, 69, 0.08);
  border-color: rgba(108, 190, 69, 0.32);
}
.custum-file-upload:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(108, 190, 69, 0.12);
  border-color: rgba(108, 190, 69, 0.45);
}
.custum-file-upload.invalid {
  border-color: rgba(220, 38, 38, 0.7);
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.06);
}
.custum-file-upload .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.custum-file-upload .upload-icon {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.85);
}
.custum-file-upload .text {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.custum-file-upload .upload-text {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.custum-file-upload .upload-text.small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.custum-file-upload input {
  display: none;
}

.upload-error {
  color: #fecaca; /* red-300 */
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .custum-file-upload {
    min-height: 120px;
  }
  .custum-file-upload .upload-icon {
    width: 48px;
    height: 48px;
  }
}

/* Make contact form columns equal height */
.contact-columns {
  align-items: stretch;
}
.contact-columns > div {
  height: 100%;
}
.contact-columns textarea {
  /* allow textarea to shrink/grow inside flex container */
  flex: 1 1 auto;
  min-height: 0;
}
.custum-file-upload {
  /* ensure it fills the parent column height */
  height: 100%;
}

/* Contact page specific overrides */
.contact-page .glass-card {
  margin-inline: auto !important;
  max-width: 920px !important;
}
/* hide decorative accent cards on contact page */
.contact-page .glass-card--accent {
  display: none !important;
}
/* ensure upload area matches message height exactly */
.contact-page .custum-file-upload {
  min-height: 140px;
  height: 100%;
}

.rdv-login-field.rdv-login-field--turnstile {
  display: flex;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 16px auto;
  width: 100%;
  max-width: 100%;
}

#clientTurnstile {
  border-radius: 12px;
  overflow: visible;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px #232323;
  background: transparent;
  width: 300px;
  max-width: 100%;
  position: relative;
}

#clientTurnstile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid #232323;
  pointer-events: none;
  z-index: 1;
}

#clientTurnstile iframe {
  display: block !important;
  border-radius: 12px !important;
  border: none !important;
  background: transparent !important;
}

#clientTurnstile > div {
  border-radius: 12px !important;
  overflow: hidden !important;
  line-height: 0 !important;
}

#clientTurnstile * {
  border-radius: 12px !important;
}

/* Slider Caption Gradient */
.slider-caption-gradient {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    transparent 100%
  );
  padding-top: 5rem;
  padding-bottom: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Modern List Style Manual Overrides */
.service-item-modern.active span:first-child {
  font-size: 1.25rem; /* text-xl */
  color: #ffffff;
  font-weight: 700;
}
.service-item-modern.active span:last-child {
  opacity: 1;
}

/* Force sticky track height on desktop since JIT misses arbitrary values */
@media (min-width: 768px) {
  .track-height {
    height: 400vh;
  }
}
