/**
 * LunaCycle - Stylesheet principal
 * Projet Web Statique & Accessible
 */

@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,500;0,600;0,700;0,800;1,600;1,700&family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --color-primary: #FF6B9D;
  --color-primary-dark: #B9082C;
  --color-secondary: #4ECDC4;
  --color-secondary-dark: #006A65;
  --color-yellow: #FFE66D;
  --color-purple: #A78BFA;
  --color-peach: #FFA07A;
  --color-mint: #98D8C8;

  --bg-app: #F4FAFD;
  --bg-surface: #FFFFFF;
  --text-main: #161D1F;
  --text-muted: #5B403F;
  --border-light: #E2E8F0;
  --radius-card: 1.5rem;
  --radius-btn: 9999px;
  --shadow-soft: 0 4px 24px -2px rgba(22, 29, 31, 0.06);
  --shadow-hover: 0 10px 30px -4px rgba(255, 107, 157, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-app);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Epilogue', 'Poppins', sans-serif;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F4FAFD;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B9D;
}

/* Components and Utilities */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(185, 8, 44, 0.25);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background-color: #DD2D42;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(185, 8, 44, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
}

.card-luna {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-luna:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive Navigation Helpers */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 16rem;
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #EDF2F7;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

/* Animations */
@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.pulse-ovulation {
  animation: pulseSubtle 3s ease-in-out infinite;
}

/* Print Optimization */
@media print {
  header, footer, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}
