/* ==========================================
   SUBLIMIA BIOTY - BASE.CSS
   Variables, Reset, Typographie, Animations
   ========================================== */

/* ========== VARIABLES CSS ========== */
:root {
  /* Couleurs principales */
  --color-primary: #7ec8b8;
  --color-primary-dark: #5ba89a;
  --color-secondary: #a8d5a0;
  --color-accent: #f4d996;
  --color-accent-dark: #e8c77d;

  /* Couleurs neutres */
  --color-white: #ffffff;
  --color-light: #f8fafb;
  --color-gray-100: #f3f5f7;
  --color-gray-200: #e8ecef;
  --color-gray-300: #d1d9e0;
  --color-gray-400: #a8b4c0;
  --color-gray-500: #6b7785;
  --color-gray-600: #4a5568;
  --color-gray-700: #2d3748;
  --color-gray-800: #1a202c;
  --color-dark: #1e293b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7ec8b8 0%, #a8d5a0 100%);
  --gradient-secondary: linear-gradient(135deg, #f4d996 0%, #e8c77d 100%);
  --gradient-hero: linear-gradient(
    135deg,
    #ebf4f5 0%,
    #e8f5e9 50%,
    #fff9e6 100%
  );

  /* Typographie */
  --font-heading: "League Spartan", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-gray-700);
  background-color: var(--color-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== SECTIONS COMMUNES ========== */
section {
  position: relative;
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BOUTONS ========== */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.btn-outline-secondary {
  border: 2px solid var(--color-gray-300);
  color: var(--color-gray-700);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--color-gray-700);
  border-color: var(--color-gray-700);
  color: var(--color-white);
  transform: translateY(-3px);
}

.btn-outline-primary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.btn-product {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.btn-product:hover {
  background: var(--color-primary);
  transform: translateX(5px);
}

.btn-link {
  color: var(--color-primary);
  text-decoration: none;
}

.btn-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ========== ANIMATIONS ========== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes zoomInOut {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translate(-50%, -50px);
  }
  50% {
    transform: translate(-50%, 50px);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes cookieWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.delay-1 {
  transition-delay: 0.15s;
}
.reveal-on-scroll.delay-2 {
  transition-delay: 0.3s;
}
.reveal-on-scroll.delay-3 {
  transition-delay: 0.45s;
}

/* ========== ACCESSIBILITÉ ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== RESPONSIVE GLOBAL ========== */
@media (max-width: 767px) {
  section {
    padding: 3rem 0;
  }
}
