/* ========================================
   PHOTO SOCIAL CLUB - DESIGN SYSTEM
   Design sobre, photo-centrique, intemporel
   ======================================== */

/* ========================================
   1. VARIABLES CSS
   ======================================== */

:root {
  /* Palette Monochrome */
  --primary-black: #0A0A0A;
  --primary-white: #FAFAFA;
  --grey-900: #1A1A1A;
  --grey-800: #2D2D2D;
  --grey-600: #5A5A5A;           /* Assombri pour meilleur contraste */
  --grey-400: #A8A8A8;
  --grey-200: #E5E5E5;
  --grey-100: #F5F5F5;

  /* Accent Or photographique */
  --accent-gold: #D4AF37;
  --accent-gold-hover: #B8941F;
  --accent-gold-light: #F5E6C8;

  /* Sémantiques */
  --success: #2D7A4F;
  --warning: #E67E22;
  --error: #C0392B;
  --info: #3498DB;

  /* Typographie */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Scale typographique */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;

  /* Espacements (base 8px) - Augmentés pour plus de respiration */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;          /* Nouveau */
  --space-12: 6rem;
  --space-16: 8rem;
  --space-20: 10rem;         /* Nouveau pour grandes sections */

  /* Containers */
  --container-mobile: 100%;
  --container-tablet: 768px;
  --container-desktop: 1200px;
  --container-wide: 1400px;

  /* Gaps */
  --gap-grid: 24px;
  --gap-section: 96px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ========================================
   2. RESET & BASE
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--primary-black);
  background: var(--primary-white);
}

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

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

ul, ol {
  list-style: none;
}

/* Focus visible pour accessibilité */
*:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ========================================
   3. TYPOGRAPHIE
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--primary-black);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 700;              /* Plus fort */
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;       /* Légèrement condensé */
}

h2 {
  font-size: var(--text-3xl);
  font-weight: 700;              /* Plus fort */
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.text-serif {
  font-family: var(--font-heading);
}

.text-mono {
  font-family: var(--font-mono);
}

.text-grey {
  color: var(--grey-600);
}

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

/* ========================================
   4. LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-desktop);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-10) 0;      /* Augmenté de 4rem à 5rem */
}

.section-hero {
  padding: var(--space-16) 0;      /* Augmenté pour plus d'impact */
}

/* Espacement renforcé entre sections majeures */
.section + .section {
  margin-top: var(--space-4);      /* Espace supplémentaire entre sections */
}

/* Grid système */
.grid {
  display: grid;
  gap: var(--gap-grid);
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive grids */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

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

/* ========================================
   5. HEADER & NAVIGATION
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
  padding: var(--space-2) 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-black);
}

.nav-menu {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-600);
  transition: color var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-black);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-black);
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile burger */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
}

.burger-btn span {
  width: 24px;
  height: 2px;
  background: var(--primary-black);
  transition: all var(--transition-base);
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }

  .burger-btn {
    display: flex;
  }
}

/* ========================================
   6. BOUTONS
   ======================================== */

.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--primary-black);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--grey-600);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--primary-black);
}

.btn-sm {
  font-size: var(--text-sm);
  padding: 10px 20px;
}

.btn-lg {
  font-size: var(--text-lg);
  padding: 18px 48px;
}

.btn-block {
  width: 100%;
}

/* ========================================
   7. CARTES ÉVÉNEMENTS
   ======================================== */

.event-card {
  background: var(--primary-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  border: 1px solid var(--grey-200);
  display: flex;                       /* Flex pour hauteur uniforme */
  flex-direction: column;
  height: 100%;                        /* Hauteur 100% pour harmoniser */
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--grey-100);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--transition-slow);
}

.event-card:hover .event-image img {
  scale: 1.05;
}

.event-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-gold-light);
  color: var(--primary-black);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-badge-balade {
  background: var(--accent-gold-light);
  color: var(--primary-black);
}

.event-badge-atelier {
  background: #E3F2FD;
  color: #1976D2;
}

.event-badge-reunion {
  background: #E0F2F1;
  color: #00897B;
}

.event-badge-premium {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: var(--primary-white);
}

.event-spots {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary-white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
}

.event-spots-warning {
  background: var(--warning);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.event-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;                             /* Prend tout l'espace disponible */
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.event-date {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--grey-600);
}

.event-level {
  font-size: var(--text-xs);
  color: var(--accent-gold);
  font-weight: 600;
}

.event-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--primary-black);
  line-height: 1.3;
}

.event-description {
  color: var(--grey-600);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  flex: 1;                             /* Pousse le footer vers le bas */
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--grey-200);
}

.event-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-member {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-gold);
}

.price-public {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--grey-600);
  text-decoration: line-through;
}

.price-dual {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-black);
}

/* ========================================
   8. CARTES MEMBRES
   ======================================== */

.member-card {
  background: var(--primary-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.member-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.member-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-3);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--grey-200);
}

.member-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--success);
  border: 3px solid var(--primary-white);
  border-radius: 50%;
}

.member-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: 4px;
  color: var(--primary-black);
}

.member-username {
  font-size: var(--text-sm);
  color: var(--grey-600);
  margin-bottom: var(--space-3);
}

.member-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: var(--space-3);
}

.member-preview img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base);
}

.member-preview img:hover {
  transform: scale(1.05);              /* Zoom doux au hover */
}

/* ========================================
   9. BADGES & TAGS
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-priority {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
  color: var(--primary-black);
  animation: pulse 2s ease-in-out infinite;
}

.badge-success {
  background: var(--success);
  color: white;
}

.badge-warning {
  background: var(--warning);
  color: white;
}

.badge-info {
  background: var(--info);
  color: white;
}

/* ========================================
   10. HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-900);
  color: var(--primary-white);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: var(--space-4);
}

.hero-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
  color: var(--primary-white);
}

.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  color: var(--grey-200);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero {
    min-height: 60vh;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }
}

/* ========================================
   11. FOOTER
   ======================================== */

.footer {
  background: var(--grey-900);
  color: var(--grey-400);
  padding: var(--space-8) 0 var(--space-4);
  margin-top: var(--space-12);
}

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

.footer-section h4 {
  color: var(--primary-white);
  font-size: var(--text-lg);
  font-weight: 700;                    /* Plus fort */
  text-transform: uppercase;           /* Capitales */
  letter-spacing: 0.05em;             /* Espacement lettres */
  margin-bottom: var(--space-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  color: var(--grey-400);
  transition: color var(--transition-base);
  font-size: var(--text-sm);
  font-weight: 400;                    /* Normal pour contraste avec titres */
}

.footer-link:hover {
  color: var(--accent-gold);
}

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

/* ========================================
   12. UTILITAIRES
   ======================================== */

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden {
  display: none;
}

.text-gold {
  color: var(--accent-gold);
}

.bg-grey {
  background: var(--grey-100);
}

/* ========================================
   13. AMÉLIORATIONS GALERIE & INTERACTIONS
   ======================================== */

/* Galerie avec overlay amélioré */
.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  font-weight: 300;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 2;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .gallery-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transition: opacity var(--transition-base);
}

/* Section title - Amélioration hiérarchie */
.section-title {
  font-weight: 700;                   /* Plus fort */
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-weight: 300;                   /* Plus léger pour contraste */
}

/* Month divider sur page calendrier - Plus d'espace */
.month-divider {
  margin-top: var(--space-12);       /* Augmenté pour séparation nette */
  margin-bottom: var(--space-6);
}
