/*
Theme Name: Les Maraudeurs
Theme URI: https://lesmaraudeurs.org
Description: Thème personnalisé pour l'association Les Maraudeurs
Version: 1.0
Author: Les Maraudeurs
*/

/* ============================================
   VARIABLES CSS - Charte graphique
   ============================================ */
:root {
  --color-cream: #FFF6D8;
  --color-orange: #FAC34B;
  --color-pink: #ED117F;
  --color-ink: #5B2C91;
  --color-ink-muted: #7C3AED;
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;
  --color-blue: #0A66C2;
  --color-black: #000000;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--color-ink);
}

h2 {
  font-size: 2rem;
  color: var(--color-ink);
}

h3 {
  font-size: 1.5rem;
  color: var(--color-pink);
}

p {
  margin-bottom: 1rem;
  color: var(--color-gray-600);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  gap: 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-wrapper:hover {
  transform: scale(1.02);
}

.logo-image {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  object-fit: contain;
}

.logo-text {
  font-weight: 600;
  color: var(--color-ink);
  display: none;
}

@media (min-width: 1024px) {
  .logo-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }
}

.logo-heart {
  color: var(--color-pink);
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 12px;
  color: var(--color-pink);
  transition: all 0.3s ease;
  background-color: transparent;
  font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--color-orange);
  opacity: 0.9;
}

.nav-link.active {
  opacity: 1;
}

/* Action Buttons */
.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .header-actions {
    display: flex;
  }
}

.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background-color: var(--color-pink);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 16px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--color-ink);
  text-align: left;
  transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
  background-color: var(--color-cream);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: radial-gradient(100% 60% at 50% 0%, #fff, rgba(255, 246, 216, 0.85));
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-ink);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

.hero-content .highlight {
  color: var(--color-pink);
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  height: 360px;
}

@media (min-width: 640px) {
  .hero-image {
    height: 460px;
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.02);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--color-pink);
}

.carousel-btn:hover {
  background-color: var(--color-pink);
  color: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 1rem;
}

.carousel-btn-next {
  right: 1rem;
}

@media (max-width: 640px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.carousel-indicator.active {
  background-color: var(--color-white);
  width: 24px;
  border-radius: 5px;
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-pink);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--color-gray-600);
  line-height: 1.6;
}

.card-date {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 0.5rem;
}

/* News Card with Image */
.news-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.news-card-image {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 1.25rem;
}

.news-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.news-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-card-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-pink);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-ink);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: var(--color-white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-pink);
  box-shadow: 0 0 0 3px rgba(237, 17, 127, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--color-orange);
  background-color: var(--color-white);
}

.footer-content {
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-ink);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-gray-600);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-pink);
  text-decoration: underline;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-pink);
  font-style: italic;
}

.footer-description {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.75rem;
  color: var(--color-gray-600);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-pink { color: var(--color-pink); }
.text-orange { color: var(--color-orange); }
.text-ink { color: var(--color-ink); }

.bg-cream { background-color: var(--color-cream); }
.bg-pink { background-color: var(--color-pink); }
.bg-white { background-color: var(--color-white); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }

.shadow-lg { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

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

/* ============================================
   VIDEO & CTA SECTION
   ============================================ */
.video-cta-section {
  background-color: var(--color-white);
  padding: 4rem 0;
}

.video-content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .video-content-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.video-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container blockquote {
  margin: 0 !important;
}

.video-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-text h3 {
  margin-bottom: 1rem;
}

.video-text p {
  line-height: 1.8;
}

.video-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .video-cta-actions {
    flex-direction: column;
  }
  
  .video-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background-color: var(--color-pink);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .cta-content {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-text {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 600;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Video Grid in CTA Band */
.cta-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-video-grid {
    grid-template-columns: 0.8fr 1.5fr;
    gap: 2.5rem;
  }
}

.cta-video-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cta-video-player {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.cta-video-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767px) {
  .cta-video-grid {
    gap: 1.5rem;
  }
  
  .cta-video-player {
    max-width: 280px;
  }
  
  .cta-actions {
    margin-bottom: 1.5rem;
  }
}

/* ============================================
   STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-pink);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-top: 0.25rem;
}

/* ============================================
   SOCIAL CARDS
   ============================================ */
.social-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.social-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.social-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-card:hover .social-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.social-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.social-card-handle {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.social-card-description {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .container { padding: 0 1rem; }
  .section { padding: 2rem 0; }
  
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}