/* Custom animations */
@keyframes sz-float {
  0%, 100% {
    transform: translateY(0) rotate(var(--sz-rot, 0deg));
  }
  50% {
    transform: translateY(-18px) rotate(var(--sz-rot, 0deg));
  }
}

@keyframes sz-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(14px, -22px) scale(1.08);
  }
  66% {
    transform: translate(-10px, 12px) scale(0.95);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(40px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInScaleLogo {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInScaleText {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animations */
.sz-float {
  animation: sz-float var(--animation-duration, 6s) ease-in-out infinite;
}

.sz-drift {
  animation: sz-drift var(--animation-duration, 12s) ease-in-out infinite;
}

.sz-card {
  background: white;
  border-radius: 2rem;
  border: 3px solid #000;
  overflow: hidden;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}

.sz-card:hover {
  transform: translateY(-10px) rotate(-2deg) scale(1.04);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45);
}

/* Wobble animation for button */
@keyframes wobble {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.03); }
}

.sz-wobble {
  animation: wobble 5s ease-in-out infinite;
}

/* Fix for Tailwind custom colors */
.bg-sz-blue { background-color: #1a9bd7; }
.text-sz-blue { color: #1a9bd7; }
.bg-sz-blue-dark { background-color: #147bb0; }
.text-sz-blue-dark { color: #147bb0; }
.bg-sz-red { background-color: #e2312a; }
.text-sz-red { color: #e2312a; }
.bg-sz-orange { background-color: #f26b1d; }
.text-sz-orange { color: #f26b1d; }
.bg-sz-cream { background-color: #fff7ee; }
.text-sz-cream { color: #fff7ee; }

/* Font family */
.font-heading {
  font-family: 'Permanent Marker', cursive;
}

.font-body {
  font-family: 'Poppins', sans-serif;
}

.font-display {
  font-family: 'Permanent Marker', cursive;
}

/* Responsive visibility classes for Tailwind CDN compatibility */
.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .sm\:block {
    display: block !important;
  }
  .sm\:top-16 {
    top: 4rem !important;
  }
}

/* Animation classes for fade in effects */
.animate-fadeInUp {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.2s forwards;
}

.animate-fadeInUp-delayed {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 0.4s forwards;
}

/* Halo bleu pulsatif pour le bouton "En savoir plus" */
@keyframes sz-glow {
  0%, 100% { box-shadow: 0 14px 36px -10px rgba(26, 155, 215, 0.8); }
  50% { box-shadow: 0 22px 64px -4px rgba(26, 155, 215, 1); }
}

.sz-glow {
  animation: sz-glow 2.6s ease-in-out infinite;
}

/* Liseuse vocale : surlignage du passage lu */
.sz-liseuse-active {
  background-color: rgba(26, 155, 215, 0.12);
  box-shadow: 0 0 0 6px rgba(26, 155, 215, 0.12);
  border-radius: 0.75rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Variante pour la carte bleue "Notre conviction" (texte blanc sur fond bleu) */
.sz-liseuse-active-dark {
  background-color: rgba(255, 247, 238, 0.22);
  box-shadow: 0 0 0 6px rgba(255, 247, 238, 0.22);
  border-radius: 0.75rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Fallbacks Tailwind (classes de la liseuse absentes du tailwind.css compile) */
.top-20 { top: 5rem; }
.right-4 { right: 1rem; }
.z-40 { z-index: 40; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pl-4 { padding-left: 1rem; }
.pr-2 { padding-right: 0.5rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.leading-none { line-height: 1; }

@media (min-width: 640px) {
  .sm\:top-24 { top: 6rem; }
  .sm\:right-8 { right: 2rem; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:inline { display: inline !important; }
}

/* Fallbacks Tailwind (image de valeur dans le ValeurHero) */
.rounded-lg { border-radius: 0.5rem; }

@media (min-width: 640px) {
  .sm\:w-6 { width: 1.5rem; }
  .sm\:h-6 { height: 1.5rem; }
}
/* Bandeau cookies : uniquement des cookies essentiels */
.sz-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #fff7ee;
  border-top: 3px solid #000;
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.35);
  padding: 1rem 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s 0.8s forwards;
}

.sz-cookie-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  text-align: center;
}

.sz-cookie-inner > * {
  margin: 0;
}

.sz-cookie-icon {
  font-size: 1.75rem;
  color: #f26b1d;
}

.sz-cookie-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1a9bd7;
}

.sz-cookie-p {
  font-size: 0.9rem;
  color: #334155;
}

.sz-cookie-link {
  color: #1a9bd7;
  font-weight: 600;
  text-decoration: underline;
}

.sz-cookie-btn {
  font-family: 'Permanent Marker', cursive;
  background: #1a9bd7;
  color: #fff;
  border: 3px solid #000;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.4;
  cursor: pointer;
  transition: filter 0.2s;
  white-space: nowrap;
}

.sz-cookie-btn:hover {
  filter: brightness(1.1);
}
