/* ============================================
   21 JOURS DE PRIÈRE - LANDING PAGE STYLES
   ============================================ */

/* CSS Custom Properties */
:root {
  /* Primary Colors */
  --primary-blue: #1a365d;
  --primary-gold: #d69e2e;
  --primary-white: #ffffff;

  /* Secondary Colors */
  --secondary-teal: #319795;
  --secondary-cream: #fffef0;
  --secondary-light-blue: #ebf8ff;

  /* Text Colors */
  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --text-light: #718096;

  /* CTA Colors */
  --cta-primary: #d69e2e;
  --cta-hover: #b7791f;
  --cta-secondary: #319795;

  /* Support Colors */
  --success: #48bb78;
  --warning: #ed8936;
  --error: #e53e3e;
  --background: #f7fafc;
  --card-bg: #ffffff;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--primary-white);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

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

p {
  line-height: var(--leading-relaxed);
}

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

/* ============================================
   HEADER STYLES
   ============================================ */

.header-scrolled {
  box-shadow: var(--shadow-md);
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/pattern-light.png') repeat;
  opacity: 0.03;
  pointer-events: none;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--cta-primary);
  color: var(--primary-white);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ============================================
   CARD STYLES
   ============================================ */

.card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ============================================
   PROBLEM CARDS
   ============================================ */

.problem-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary-teal);
  transition: all var(--transition-normal);
}

.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

/* ============================================
   WEEK ACCORDION
   ============================================ */

.week-accordion {
  border-bottom: 1px solid #e2e8f0;
}

.week-accordion:last-child {
  border-bottom: none;
}

.week-header {
  cursor: pointer;
  user-select: none;
}

.week-header svg {
  transition: transform var(--transition-normal);
}

.week-accordion.active .week-header svg {
  transform: rotate(180deg);
}

.week-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-normal);
}

.week-accordion.active .week-content {
  max-height: 500px;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
  overflow: hidden;
}

.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */

.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--primary-gold);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

/* ============================================
   OFFER BOX
   ============================================ */

.offer-box {
  animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(214, 158, 46, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(214, 158, 46, 0.2);
  }
}

/* ============================================
   GUARANTEE BADGE
   ============================================ */

.guarantee-badge {
  animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* ============================================
   STICKY CTA
   ============================================ */

#sticky-cta.visible {
  transform: translateY(0);
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-medium);
}

/* ============================================
   SELECTION STYLES
   ============================================ */

::selection {
  background-color: var(--primary-gold);
  color: var(--primary-white);
}

/* ============================================
   FOCUS STYLES (Accessibility)
   ============================================ */

a:focus,
button:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

.loading {
  opacity: 0;
  animation: fadeIn var(--transition-slow) forwards;
}

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

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  html {
    scroll-padding-top: 70px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }

  /* Adjust padding for mobile sticky CTA */
  body {
    padding-bottom: 80px;
  }

  /* Reduce section padding on mobile */
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* FAQ adjustments */
  .faq-question {
    padding: 1rem;
  }

  .faq-answer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  /* Further reduce spacing */
  section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header,
  #sticky-cta,
  .btn-primary,
  footer {
    display: none !important;
  }

  body {
    padding: 0;
    font-size: 12pt;
  }

  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: var(--text-light);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Smooth entrance for elements */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation for mockup */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}

/* Text balance for headings */
h1, h2, h3 {
  text-wrap: balance;
}

/* Better paragraph spacing */
p + p {
  margin-top: 1em;
}

/* ============================================
   COOKIE BANNER (if needed)
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: var(--primary-white);
  padding: 1rem 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: var(--text-sm);
  margin: 0;
}

.cookie-banner button {
  background: var(--primary-gold);
  color: var(--primary-white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.cookie-banner button:hover {
  background: var(--cta-hover);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}
