/* ========================================
   GRAINS D'ESPOIR - MAIN STYLES
   ======================================== */

/* Import Design System */
@import url('design-system.css');
@import url('components.css');

/* ========================================
   1. PAGE-SPECIFIC STYLES
   ======================================== */

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

.hero {
  padding: var(--space-16) 0;
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-10);
  letter-spacing: var(--letter-spacing-tight);
}

.hero-image {
  margin-bottom: var(--space-8);
}

.hero-image img {
  width: 100%;
  max-width: var(--container-max-width);
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2xl);
}

.mission-statement {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-normal);
}

/* ========================================
   PODCASTS SECTION
   ======================================== */

.podcasts {
  padding: var(--space-20) 0;
  background-color: var(--bg-secondary);
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-10);
  max-width: 800px;
  margin: 0 auto;
}

.podcast-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.podcast-card:hover {
  transform: translateY(-5px);
}

.podcast-card:active {
  transform: translateY(0);
}

.podcast-card .podcast-button {
  pointer-events: none;
}

.podcast-image {
  margin-bottom: var(--space-5);
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.podcast-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.podcast-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.podcast-hosts {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-base);
}

/* ========================================
   LATEST EPISODE SECTION
   ======================================== */

.latest-episode {
  padding: var(--space-20) 0;
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.video-thumbnail img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  text-indent: -9999px;
  font-size: 0;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-normal);
}

.video-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-logo {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-inverse);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
}

.video-title {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  color: var(--text-inverse);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
}

.youtube-player {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.youtube-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.youtube-channel {
  text-align: center;
  margin-top: var(--space-8);
}

.shop-boutique {
  text-align: center;
  margin-top: var(--space-8);
}

/* ========================================
   SHOP SECTION
   ======================================== */

.shop {
  padding: var(--space-20) 0;
  background-color: var(--bg-secondary);
}

.shop-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-12);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.product-image {
  margin-bottom: var(--space-5);
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.product-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.product-price {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.original-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.sale-price {
  color: var(--color-secondary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ========================================
   PAGE STYLES
   ======================================== */

.page-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-5);
  letter-spacing: var(--letter-spacing-tight);
}

.page-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-12);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   PODCASTS PAGE
   ======================================== */

.podcasts-page {
  padding: var(--space-20) 0;
  background-color: var(--bg-secondary);
}

.podcast-episodes {
  margin: var(--space-5) 0;
  text-align: left;
}

.podcast-episodes h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-base);
}

.podcast-episodes ul {
  list-style: none;
  padding: 0;
}

.podcast-episodes li {
  padding: var(--space-1) 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.podcast-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

/* ========================================
   RESSOURCES PAGE
   ======================================== */

.ressources-page {
  padding: var(--space-20) 0;
}

.ressources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.ressource-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
}

.ressource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3xl);
}

.ressource-image {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.ressource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.ressource-content {
  padding: var(--space-6);
}

.ressource-content h3 {
  margin: 0 0 var(--space-4) 0;
  color: var(--text-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.ressource-content p {
  margin: 0 0 var(--space-4) 0;
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.ressource-link {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.ressource-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-xl);
}

.ressource-content p {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

/* ========================================
   BOUTIQUE PAGE
   ======================================== */

.boutique-page {
  padding: var(--space-20) 0;
  background-color: var(--bg-secondary);
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

.boutique-info {
  margin-top: var(--space-16);
  text-align: center;
  background: var(--bg-primary);
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.boutique-info h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-2xl);
}

.boutique-info p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

/* ========================================
   À PROPOS PAGE
   ======================================== */

.apropos-page {
  padding: var(--space-20) 0;
}

.apropos-content {
  max-width: 1000px;
  margin: 0 auto;
}

.mission-section,
.team-section,
.values-section,
.impact-section {
  margin-bottom: var(--space-16);
  background: var(--bg-primary);
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.mission-section h2,
.team-section h2,
.values-section h2,
.impact-section h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-3xl);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-bottom: var(--space-4);
}

.team-member h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
}

.team-member p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.values-section ul {
  list-style: none;
  padding: 0;
}

.values-section li {
  padding: var(--space-4) 0;
  border-bottom: var(--border-width-1) solid var(--border-light);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.values-section li:last-child {
  border-bottom: none;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-page {
  padding: var(--space-16) 0;
  background-color: var(--bg-secondary);
  min-height: calc(100vh - 200px);
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.contact-info {
  background: var(--bg-primary);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  height: fit-content;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.contact-card.primary {
  background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
  border: var(--border-width-2) solid var(--color-primary);
}

.contact-card.urgent {
  background: linear-gradient(135deg, #ffe8e8, #fff0f0);
  border: var(--border-width-2) solid var(--color-secondary);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
}

.card-content h3 {
  color: var(--color-gray-800);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.contact-value {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.contact-card.urgent .contact-value {
  color: var(--color-secondary);
}

.contact-note {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin: var(--space-1) 0 0 0;
}

.contact-form {
  background: var(--bg-primary);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  height: fit-content;
}

.contact-item {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-width-1) solid var(--border-light);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-item h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
}

.contact-item p {
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.contact-item small {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}


/* ========================================
   ANIMATIONS ÉLÉGANTES - TOUT EN UN
   ======================================== */

/* ========================================
   1. KEYFRAMES SOBRES ET ÉLÉGANTS
   ======================================== */

/* Flip Vertical pour l'image hero - SOBRE ET ÉLÉGANT */
@keyframes flipInVertical {
  0% {
    opacity: 0;
    transform: perspective(400px) rotateX(-90deg);
  }
  100% {
    opacity: 1;
    transform: perspective(400px) rotateX(0deg);
  }
}

/* Slide depuis la gauche pour les cartes podcasts */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide depuis la droite pour les cartes podcasts */
@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in pour la boutique */
@keyframes fadeInElegant {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Slide up pour le player YouTube */
@keyframes slideUpElegant {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide down pour le bandeau */
@keyframes slideDownElegant {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale in subtil pour les titres */
@keyframes scaleInSubtle {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade in + zoom out pour YouTube */
@keyframes fadeInZoomOut {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   2. CLASSES D'ANIMATION ÉLÉGANTES
   ======================================== */

/* Animation de base - caché par défaut */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animation visible */
.animate-on-scroll.animate-visible {
  opacity: 1;
}

/* ========================================
   3. ANIMATIONS SPÉCIFIQUES
   ======================================== */

/* Hero Image - Flip vertical sobre et élégant */
.hero-image {
  opacity: 0;
  animation: flipInVertical 0.8s ease-in-out 0.5s forwards;
}

/* Hero Title - Scale in subtil */
.hero-title {
  opacity: 0;
  animation: scaleInSubtle 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

/* Mission Statement - Slide up */
.mission-statement {
  opacity: 0;
  animation: slideUpElegant 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

/* CTA Button - Slide up */
.cta-button {
  opacity: 0;
  animation: slideUpElegant 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

/* Sponsors - Fade in */
.sponsors {
  opacity: 0;
  animation: fadeInElegant 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

/* Bandeau - Slide down */
.banner {
  opacity: 0;
  animation: slideDownElegant 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

/* Section Titles - Scale in subtil */
.section-title {
  opacity: 0;
  animation: scaleInSubtle 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

/* ========================================
   4. CARTES PODCASTS - ANIMATIONS AU SCROLL
   ======================================== */

.podcast-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
}

/* Première carte - Slide depuis la gauche */
.podcast-card:nth-child(1) {
  transform: translateX(-50px);
}

/* Deuxième carte - Slide depuis la droite */
.podcast-card:nth-child(2) {
  transform: translateX(50px);
}

/* Animation visible */
.podcast-card.animate-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ========================================
   5. BOUTIQUE - SLIDE UP + FADE IN ÉLÉGANT
   ======================================== */

.shop {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-in-out;
}

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

.shop-description,
.section-subtitle {
  opacity: 0;
  animation: fadeInElegant 0.8s ease-in-out 0.5s forwards;
}

.shop-boutique {
  opacity: 0;
  animation: fadeInElegant 0.8s ease-in-out 0.7s forwards;
  margin: var(--space-8) 0;
  text-align: center;
}

/* Cartes produits - Animations au scroll */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-in-out;
}

/* Animation visible */
.product-card.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   6. YOUTUBE PLAYER - FADE IN + ZOOM OUT ÉLÉGANT
   ======================================== */

.latest-episode {
  opacity: 0;
  animation: fadeInElegant 0.8s ease-in-out 0.2s forwards;
}

.youtube-player {
  opacity: 0;
  transform: scale(1.1);
  transition: all 0.8s ease-in-out;
}

.youtube-player.animate-visible {
  opacity: 1;
  transform: scale(1);
}

.youtube-button {
  opacity: 0;
  animation: slideUpElegant 0.8s ease-in-out 0.6s forwards;
}


/* ========================================
   8. EFFETS HOVER SOBRES
   ======================================== */

/* Hover subtil pour les cartes */
.podcast-card:hover,
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover subtil pour les boutons */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   9. PERFORMANCE ET ACCESSIBILITÉ
   ======================================== */

/* Respecter les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimisation des performances */
.animate-on-scroll {
  will-change: transform, opacity;
}

/* Animation d'entrée de page subtile */
@keyframes pageEnter {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body {
  animation: pageEnter 0.5s ease-out;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.partnership-banner {
  text-align: center;
  padding: var(--space-6) 0;
  margin-bottom: var(--space-8);
  background: linear-gradient(135deg, var(--color-primary), #1b5e20);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.partnership-text {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--color-white);
  font-weight: 500;
}

.partnership-text strong {
  color: var(--color-white);
  font-weight: 700;
}

/* ========================================
   MENU BURGER - MOBILE NAVIGATION
   ======================================== */

/* Burger Menu Button */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: var(--z-modal);
  position: relative;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

/* Animation du burger en X */
.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Navigation Mobile */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-content {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: var(--space-8);
  padding: var(--space-2);
  border-radius: var(--radius-base);
  transition: var(--transition-normal);
}

.nav-close:hover {
  background-color: var(--color-gray-100);
  color: var(--color-primary);
}

/* Navigation mobile ouverte */
.nav.mobile-open .nav-overlay {
  display: block;
  opacity: 1;
}

.nav.mobile-open .nav-content {
  right: 0;
}

/* Styles des liens dans le menu mobile */
.nav-content .nav-link {
  display: block;
  padding: var(--space-4) var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-base);
  transition: var(--transition-normal);
  text-align: left;
}

.nav-content .nav-link:hover {
  background-color: var(--color-gray-100);
  color: var(--color-primary);
  transform: translateX(5px);
}

.nav-content .nav-link.active {
  background-color: var(--color-primary);
  color: var(--text-inverse);
}

.nav-content .nav-link[data-page="boutique"] {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: var(--text-inverse);
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-4);
  text-align: center;
}

.nav-content .nav-link[data-page="boutique"]:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
  transform: translateX(0) translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
}

/* Prévenir le scroll du body quand le menu est ouvert */
body.menu-open {
  overflow: hidden;
}

/* ========================================
   STYLES PAR DÉFAUT - NAVIGATION
   ======================================== */

/* Par défaut, cacher le menu burger */
.burger-menu {
  display: none;
}

/* Par défaut, cacher la navigation mobile */
.nav-mobile {
  display: none;
}

/* Par défaut, afficher la navigation desktop */
.nav-desktop {
  display: flex;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  
  /* ========================================
     NAVIGATION MOBILE
     ======================================== */
  
  /* Afficher le menu burger sur mobile */
  .burger-menu {
    display: flex;
  }
  
  /* Cacher la navigation desktop sur mobile */
  .nav-desktop {
    display: none;
  }
  
  /* Afficher la navigation mobile */
  .nav-mobile {
    display: block;
  }
  
  /* Masquer les éléments du menu mobile par défaut */
  .nav-mobile .nav-overlay,
  .nav-mobile .nav-content {
    display: none;
  }
  
  /* Afficher le menu mobile quand il est ouvert */
  .nav-mobile.mobile-open .nav-overlay {
    display: block;
  }
  
  .nav-mobile.mobile-open .nav-content {
    display: flex;
  }
  
  /* Header mobile optimisé */
  .header .container {
    padding: 0 var(--space-4);
  }
  
  /* ========================================
     HERO SECTION MOBILE
     ======================================== */
  
  .hero {
    padding: var(--space-12) 0;
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-8);
    line-height: 1.1;
    padding: 0 var(--space-2);
  }
  
  .hero-image {
    margin-bottom: var(--space-6);
  }
  
  .hero-image img {
    object-fit: contain;
    height: auto;
    max-height: 300px;
    background: transparent;
    border-radius: var(--radius-lg);
  }
  
  .mission-statement {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-6);
    padding: 0 var(--space-4);
    line-height: var(--line-height-relaxed);
  }
  
  /* ========================================
     SECTIONS MOBILE
     ======================================== */
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-10);
    padding: 0 var(--space-4);
    line-height: 1.2;
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
    padding: 0 var(--space-4);
    margin-bottom: var(--space-8);
  }
  
  /* ========================================
     GRIDS MOBILE
     ======================================== */
  
  .podcast-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: 0 var(--space-4);
  }
  
  .podcast-card {
    padding: var(--space-6);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }
  
  .product-card {
    padding: var(--space-5);
  }
  
  .ressources-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-6);
  }
  
  /* ========================================
     MEDIA MOBILE
     ======================================== */
  
  .youtube-player {
    width: 100%;
    margin: 0 var(--space-4);
    border-radius: var(--radius-md);
  }
  
  .video-container {
    padding: 0 var(--space-4);
  }
  
  /* ========================================
     BUTTONS MOBILE
     ======================================== */
  
  .btn {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
    min-height: 44px; /* Touch target minimum */
  }
  
  .btn-lg {
    padding: var(--space-5) var(--space-8);
    font-size: var(--font-size-lg);
    min-height: 48px;
  }
  
  .boutique-button,
  .btn-full {
    width: 100%;
    justify-content: center;
  }
  
  /* ========================================
     SPONSORS MOBILE
     ======================================== */
  
  .sponsors {
    padding: 0 var(--space-4);
  }
  
  .sponsor-logos {
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .sponsor-logo {
    font-size: var(--font-size-sm);
    min-width: 60px;
  }
  
  /* ========================================
     FOOTER MOBILE
     ======================================== */
  
  .footer {
    padding: var(--space-10) 0 var(--space-5);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: 0 var(--space-4);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-4) 0;
  }
  
  .partnership-banner {
    margin: 0 var(--space-4) var(--space-8);
  }
  
  .partnership-text {
    font-size: var(--font-size-base);
    padding: 0 var(--space-2);
  }
  
  .social-links {
    justify-content: center;
    gap: var(--space-6);
  }
  
  /* ========================================
     CONTACT PAGE MOBILE
     ======================================== */
  
  .contact-page {
    padding: var(--space-10) 0;
  }
  
  .contact-header {
    margin-bottom: var(--space-8);
    padding: 0 var(--space-4);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 100%;
    padding: 0 var(--space-4);
  }
  
  .contact-info,
  .contact-form {
    padding: var(--space-5);
  }
  
  .contact-cards {
    gap: var(--space-4);
  }
  
  .contact-card {
    padding: var(--space-4);
    min-height: 44px;
  }
  
  .form-notice {
    padding: var(--space-4);
    margin-bottom: var(--space-5);
  }
  
  .notice-content h3 {
    font-size: var(--font-size-base);
  }
  
  .notice-content p {
    font-size: var(--font-size-sm);
  }
}

/* ========================================
   TABLETTES (LANDSCAPE ET PORTRAIT)
   ======================================== */

@media (max-width: 1024px) and (min-width: 769px) {
  
  /* ========================================
     LAYOUT TABLETTE
     ======================================== */
  
  .container {
    padding: 0 var(--space-5);
  }
  
  /* ========================================
     NAVIGATION TABLETTE
     ======================================== */
  
  .nav {
    gap: var(--space-6);
  }
  
  .nav-link {
    font-size: var(--font-size-sm);
  }
  
  /* ========================================
     HERO TABLETTE
     ======================================== */
  
  .hero-title {
    font-size: var(--font-size-5xl);
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  /* ========================================
     GRIDS TABLETTE
     ======================================== */
  
  .podcast-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .ressources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
  
  /* ========================================
     MEDIA TABLETTE
     ======================================== */
  
  .video-thumbnail img {
    height: 350px;
  }
  
  .youtube-player {
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* ========================================
     FOOTER TABLETTE
     ======================================== */
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }
}

/* ========================================
   DESKTOP ET TABLETTES (≥769px)
   ======================================== */

@media (min-width: 769px) {
  
  /* ========================================
     NAVIGATION DESKTOP
     ======================================== */
  
  /* Cacher le menu burger sur desktop */
  .burger-menu {
    display: none;
  }
  
  /* Cacher la navigation mobile sur desktop */
  .nav-mobile {
    display: none !important;
  }
  
  /* Afficher la navigation desktop */
  .nav-desktop {
    display: flex;
    gap: var(--space-8);
  }
  
  .nav-desktop .nav-link {
    display: inline-flex;
  }
}

/* ========================================
   GRANDS ÉCRANS DESKTOP
   ======================================== */

@media (min-width: 1025px) {
  
  /* Navigation desktop améliorée */
  .nav-desktop {
    gap: var(--space-8);
  }
  
  .nav-desktop .nav-link {
    position: relative;
    transition: all var(--transition-normal);
  }
  
  .nav-desktop .nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
  }
  
  .nav-desktop .nav-link:hover::after,
  .nav-desktop .nav-link.active::after {
    width: 100%;
  }
  
  /* Amélioration des grids sur grand écran */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   TRÈS PETITS ÉCRANS (MOBILE PORTRAIT)
   ======================================== */

@media (max-width: 480px) {
  
  /* ========================================
     LAYOUT GÉNÉRAL
     ======================================== */
  
  .container {
    padding: 0 var(--space-3);
  }
  
  /* ========================================
     TYPOGRAPHY MOBILE PORTRAIT
     ======================================== */
  
  .hero-title {
    font-size: var(--font-size-3xl);
    line-height: 1.1;
    padding: 0 var(--space-1);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
    line-height: 1.2;
    padding: 0 var(--space-2);
  }
  
  .mission-statement {
    font-size: var(--font-size-base);
    padding: 0 var(--space-2);
  }
  
  /* ========================================
     NAVIGATION BURGER MOBILE PORTRAIT
     ======================================== */
  
  .nav-content {
    width: 100vw;
    right: -100vw;
    padding: var(--space-6) var(--space-4);
  }
  
  .nav-content .nav-link {
    font-size: var(--font-size-base);
    padding: var(--space-3) var(--space-2);
    text-align: center;
  }
  
  /* ========================================
     HERO MOBILE PORTRAIT
     ======================================== */
  
  .hero {
    padding: var(--space-10) 0;
  }
  
  .hero-image img {
    max-height: 250px;
    background: transparent;
    border-radius: var(--radius-md);
  }
  
  .hero-image {
    background: transparent;
    margin-bottom: var(--space-5);
  }
  
  /* ========================================
     SECTIONS MOBILE PORTRAIT
     ======================================== */
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .section-subtitle {
    font-size: var(--font-size-sm);
    padding: 0 var(--space-2);
  }
  
  /* ========================================
     GRIDS MOBILE PORTRAIT
     ======================================== */
  
  .podcast-grid,
  .products-grid,
  .ressources-grid {
    padding: 0 var(--space-3);
    gap: var(--space-5);
  }
  
  .podcast-card,
  .product-card {
    padding: var(--space-4);
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* ========================================
     BUTTONS MOBILE PORTRAIT
     ======================================== */
  
  .btn {
    font-size: var(--font-size-sm);
    padding: var(--space-3) var(--space-5);
    min-height: 44px;
  }
  
  .btn-lg {
    font-size: var(--font-size-base);
    padding: var(--space-4) var(--space-6);
    min-height: 48px;
  }
  
  .boutique-button {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
  }
  
  /* ========================================
     SPONSORS MOBILE PORTRAIT
     ======================================== */
  
  .sponsors {
    padding: 0 var(--space-2);
  }
  
  .sponsor-logos {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }
  
  .sponsor-logo {
    font-size: var(--font-size-xs);
    min-width: 50px;
  }
  
  /* ========================================
     MEDIA MOBILE PORTRAIT
     ======================================== */
  
  .youtube-player,
  .video-container {
    margin: 0 var(--space-3);
  }
  
  .youtube-channel {
    padding: 0 var(--space-3);
  }
  
  /* ========================================
     FOOTER MOBILE PORTRAIT
     ======================================== */
  
  .footer-content {
    padding: 0 var(--space-3);
    gap: var(--space-6);
  }
  
  .partnership-banner {
    margin: 0 var(--space-3) var(--space-6);
    padding: var(--space-4);
  }
  
  .partnership-text {
    font-size: var(--font-size-sm);
    padding: 0;
  }
  
  .footer-bottom {
    padding: var(--space-4) var(--space-3) 0;
  }
  
  .social-links {
    gap: var(--space-4);
  }
  
  /* ========================================
     CONTACT PAGE MOBILE PORTRAIT
     ======================================== */
  
  .contact-page {
    padding: var(--space-8) 0;
  }
  
  .contact-header,
  .contact-grid {
    padding: 0 var(--space-3);
  }
  
  .contact-info,
  .contact-form {
    padding: var(--space-4);
  }
  
  .contact-card {
    padding: var(--space-3);
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }
  
  .card-content h3 {
    font-size: var(--font-size-sm);
  }
  
  .contact-value {
    font-size: var(--font-size-base);
  }
}
