/* Le Passage - École de Gong Yoga - Design Optimisé v3 - SEO & IA */

/* Google Fonts - Polices optimisées pour lisibilité */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Lato:wght@300;400;700&display=swap' );
@import url('https://fonts.googleapis.com/css2?family=Prata&family=Quicksand:wght@300;400;600;700&display=swap' );



/* Variables CSS - Palette Lumineuse avec meilleur contraste */
:root {
  --color-primary: #c9a961;
  --color-secondary: #8b7355;
  --color-accent: #d4a574;
  --color-dark: #1a1410;
  --color-darker: #0d0a08;
  --color-light: #faf8f3;
  --color-bg-white: #ffffff;
  --color-text: #2c2416;
  --color-text-strong: #1a1410;
  --color-text-light: #5a5a5a;
  --color-border: rgba(201, 169, 97, 0.25);
  
  /* --font-serif: 'Cinzel', serif;
  --font-sans: 'Cormorant Garamond', serif; */
  /*--font-serif: 'Prata', serif;
  --font-sans: 'Quicksand', sans-serif;*/
  --font-serif: 'Playfair Display', serif;  
  --font-sans: 'Lato', sans-serif;
  
 
  
  --shadow-sm: 0 2px 8px rgba(201, 169, 97, 0.12);
  --shadow-md: 0 4px 16px rgba(201, 169, 97, 0.18);
  --shadow-lg: 0 8px 32px rgba(201, 169, 97, 0.25);
  
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

/* Headings - Meilleur contraste et hiérarchie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-darker);
  letter-spacing: -0.5px;
}

h1 { 
  font-size: 3.5rem; 
  font-weight: 800;
  letter-spacing: -1px;
}

h2 { 
  font-size: 2.75rem; 
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

h3 { 
  font-size: 2.1rem; 
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h4 { 
  font-size: 1.6rem; 
  font-weight: 700;
}

h5 { 
  font-size: 1.35rem; 
  font-weight: 600;
}

h6 { 
  font-size: 1.1rem; 
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  font-weight: 400;
}

strong, b {
  font-weight: 700;
  color: var(--color-darker);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-section:hover,
.logo-section:focus-visible {
  text-decoration: none;
}

.logo-swap {
  position: relative;
  width: 60px;
  height: 60px;
  display: inline-block;
  flex: 0 0 60px;
}

.logo-swap .logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.3));
  transform-origin: center center;
  transition: opacity 460ms ease, transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-swap .logo-img-default { opacity: 1; transform: scale(1); }
.logo-swap .logo-img-hover { opacity: 0; transform: scale(0.55); }

.logo-section:hover .logo-swap .logo-img-default,
.logo-section:focus-visible .logo-swap .logo-img-default {
  opacity: 0;
  transform: scale(0.88);
}

.logo-section:hover .logo-swap .logo-img-hover,
.logo-section:focus-visible .logo-swap .logo-img-hover {
  opacity: 1;
  transform: scale(1);
}

.logo-text h1 {
  font-size: 1.75rem;
  color: var(--color-darker);
  margin: 0;
  font-weight: 800;
}

.logo-text p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-menu li a {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  display: block;
  color: var(--color-text-strong);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--color-primary);
  color: white;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-darker);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--color-light) 0%, #f5f0e8 50%, #ede6d8 100%);
}

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

.hero-text h1 {
  font-size: 3.75rem;
  color: var(--color-darker);
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-text .subtitle {
  font-size: 1.85rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.hero-text p {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.85;
  font-weight: 400;
}

.hero-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  color: var(--color-dark);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(201, 169, 97, 0.1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card-icon {
  width: 150px;
  height: 150px;
  background: rgba(201, 169, 97, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--color-darker);
  font-weight: 700;
}

.card p {
  text-align: center;
  color: var(--color-text-light);
  font-weight: 400;
}

/* Activités (page d'accueil) : description repliable + bouton paiement */
.activity-desc {
  position: relative;
  /* Hauteur d'aperçu (desktop + mobile). Ajustable ici. */
  --activity-desc-collapsed-height: 11.5rem;
  --activity-desc-fade-height: 3.6rem;
}

.activity-desc-content {
  line-height: 1.55; /* plus compact */ /* un peu plus compact */
}

/* Resserre légèrement les paragraphes dans la description */
.activity-desc-content p {
  margin-bottom: 0.65rem;
}

/* Resserre légèrement les listes dans la description */
.activity-desc-content ul,
.activity-desc-content ol {
  margin: 0.35rem 0 0.6rem 1.2rem;
  padding-left: 1.2rem;
}

.activity-desc-content li {
  margin: 0.15rem 0;
}


/* État replié : on coupe et on affiche un dégradé */
.activity-desc.is-collapsed {
  max-height: var(--activity-desc-collapsed-height);
  overflow: hidden;
}

.activity-desc.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--activity-desc-fade-height);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}

/* Bouton "Voir plus..." (desktop) */
.activity-desc-toggle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* Positionné dans la dernière ligne estompée */
  bottom: 0.55rem;
  z-index: 2;

  background: transparent;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  text-decoration: none;
}

/* "Lire la suite" : petit chevron comme sur les cartes d'articles */
.activity-desc-toggle::after {
  content: " ˅";
  color: var(--color-text-light);
  font-weight: 700;
}

.activity-desc-toggle[aria-expanded="true"]::after {
  content: " ˄";
}

.activity-desc-toggle:hover {
  text-decoration: none;
}

/* Galerie : hero plus compact + moins de marge avant les sections */
.hero.hero-compact {
  /* L'en-tête est en position fixed : garder assez d'espace pour que le titre reste visible */
  padding: 6.25rem 0 2rem;
}

.section.section-gallery {
  padding-top: 2.25rem;
}

/* État déplié */
.activity-desc.is-expanded {
  max-height: none;
  overflow: visible;
}

.activity-desc.is-expanded::after {
  display: none;
}

/* Quand déplié, on remet le bouton dans le flux (sous le texte) */
.activity-desc.is-expanded .activity-desc-toggle {
  position: static;
  transform: none;
  display: inline-block;
  margin: 0.25rem auto 0;
}

/* Actions : inscription + paiement */
.activity-actions {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.6rem;
}

.activity-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto; /* override mobile rule */
}

.activity-actions.has-pay .btn-inscription {
  padding: 1rem 1.6rem; /* un peu moins large */
}

.btn-pay {
  /* Le bouton image doit avoir la même hauteur que INSCRIPTION (flex: stretch)
     et l'image doit remplir tout le bouton. */
  padding: 0;
  width: auto;
  min-width: 3.8rem;
  overflow: hidden;
  align-items: stretch;
  justify-content: stretch;
}

.btn-pay-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Mobile : pas de texte "Voir plus...", on clique sur la description */
@media (max-width: 768px) {
  .activity-desc {
    --activity-desc-collapsed-height: 10.25rem;
    --activity-desc-fade-height: 3.3rem;
  }

  .activity-desc-toggle {
    display: none;
  }

  .activity-desc.is-collapsed .activity-desc-content {
    cursor: pointer;
  }
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-light {
  background: var(--color-light);
}

.section-white {
  background: white;
}

.section-warm {
  background: linear-gradient(135deg, var(--color-light) 0%, #f5f0e8 50%, #ede6d8 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-header h2 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-darker);
  font-weight: 800;
}

.section-header p {
  font-size: 1.3rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.85;
}

/* Footer */
.footer {
  background: var(--color-darker);
  color: white;
  padding: 3.5rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3.5rem;
  margin-bottom: 2.5rem;
}

.footer h3 {
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Utilities */
.text-center {
  text-align: center;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero {
    padding: 6rem 0 3rem;
  }
  
  .hero-text h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }

  /* Contact page: stack columns on mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
  }
  
  .logo-swap {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  
  .card {
    padding: 1.75rem;
  }
}

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

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

/* Print Styles */
@media print {
  .navigation,
  .footer,
  .btn {
    display: none;
  }
}
