/* === VARIABLES CSS === */
:root {
  --primary-gold: #d4af37;
  --secondary-gold: #f4d03f;
  --dark-bg: #1e1e1e;
  --light-bg: #fdfdfd;
  --text-dark: #222;
  --text-light: #666;
  --accent-blue: #4a90e2;
  --success-green: #27ae60;
  --warning-red: #e74c3c;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
  --card-bg: #ffffff;
  --border-radius: 15px;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--light-bg);
  scroll-behavior: smooth;
}

/* === LAYOUT UTILITAIRES === */
.flex {
  display: flex;
}

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

.flex-column {
  flex-direction: column;
}

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

/* === LOADING STATES === */
.loading-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  text-align: center;
  background: rgba(255,255,255,0.95);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top: 4px solid var(--primary-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.section-loading .spinner {
  width: 30px;
  height: 30px;
  border-width: 3px;
}

.section-loading {
  min-height: 300px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0.6;
}

.loading-text {
  color: var(--primary-gold);
  font-size: 1.1rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state i {
  font-size: 3rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.9));
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 70px;
}

.navbar.scrolled {
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.98), rgba(15, 15, 15, 0.95));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  min-height: 60px;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  position: relative;
  min-height: inherit;
}

.logo img {
  height: 32px;
  object-fit: contain;
}

.menu-toggle {
  display: block;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(244, 208, 63, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.menu-toggle:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(244, 208, 63, 0.2));
  border-color: var(--primary-gold);
  transform: scale(1.05);
  color: var(--primary-gold);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 4rem 1.5rem;
  background: rgba(10,10,10,0.98);
  list-style: none;
  transition: right 0.3s ease;
}

.nav-menu.show {
  right: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 25px;
}

.nav-link:hover {
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.nav-link:hover::before {
  opacity: 1;
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 1rem 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://firebasestorage.googleapis.com/v0/b/tokutana-f2b47.firebasestorage.app/o/IMG-20250704-WA0052.jpg?alt=media&token=0be09201-3a80-4d48-9157-d0dc50ba5202') center/cover;
  opacity: 0.4;
  z-index: 1;
}

.hero-content {
  text-align: center;
  z-index: 3;
  max-width: 900px;
  position: relative;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 7vw, 6rem);
  font-weight: 300;
  background: linear-gradient(135deg, #fff 0%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: fadeInUp 1.2s ease 0.5s both;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 3.5vw, 2rem);
  color: var(--secondary-gold);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.2s ease 1s both;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: fadeInUp 1.2s ease 2s both;
}

.hero-btn {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-soft);
  min-width: 160px;
  text-align: center;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === SECTIONS === */
.section {
  padding: 4rem 1rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--text-dark), var(--primary-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}

/* === LIVE SECTION === */
.live-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.live-badge,
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(244,208,63,0.15));
  border: 1px solid rgba(212,175,55,0.4);
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.live-banner {
  padding: 1.2rem 2rem;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.live-banner.online {
  background: linear-gradient(135deg, #e74c3c, #d4af37);
  color: #fff;
  animation: glowPulse 2s infinite;
}

.live-banner.offline {
  background: linear-gradient(135deg, #2c2c2c, #444);
  color: #ccc;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(231,76,60,0.6); }
  50% { box-shadow: 0 0 25px rgba(212,175,55,0.8); }
}

.live-player {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  margin-bottom: 2rem;
}

.live-player.online {
  border: 3px solid var(--primary-gold);
  box-shadow: 0 0 25px rgba(212,175,55,0.6);
}

.responsive-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: calc(var(--border-radius) - 1rem);
}

.responsive-iframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-player iframe,
.live-player video {
  width: 100%;
  height: 300px;
  border: none;
}

.live-placeholder {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  border-radius: 16px;
  padding: 3rem 2rem;
  color: #ccc;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.live-placeholder i {
  font-size: 3rem;
  color: #666;
  margin-bottom: 1rem;
}

/* === GRIDS UNIVERSELLES === */
.portfolio-grid,
.memories-grid,
.videos-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  justify-items: center;
}

/* === CARDS UNIVERSELLES === */
.portfolio-card,
.memory-card,
.video-card,
.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover,
.memory-card:hover,
.video-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.testimonial-card {
  cursor: default;
  min-height: 250px;
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.2);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

/* === IMAGES === */
.portfolio-card-image,
.memory-card-image,
.video-thumbnail {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card-image img,
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.memory-card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.portfolio-card:hover .portfolio-card-image img,
.memory-card:hover .memory-card-image img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary-gold);
}

/* === CONTENU DES CARDS === */
.portfolio-card-content,
.memory-card-content,
.video-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card-category {
  color: var(--primary-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.portfolio-card-title,
.memory-card-title,
.video-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-card-description,
.memory-card-description,
.video-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.memory-card-date {
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.portfolio-card-meta,
.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 1rem;
  margin-top: auto;
}

/* === PRICING DISPLAY === */
.pricing-display {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.pricing-country {
  margin-bottom: 1rem;
}

.pricing-country:last-child {
  margin-bottom: 0;
}

.pricing-country-title {
  font-weight: 600;
  color: var(--primary-gold);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.pricing-category {
  margin-bottom: 0.5rem;
}

.pricing-category-title {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.pricing-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pricing-item {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--primary-gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
  white-space: nowrap;
}

/* === VIDEOS SECTION === */
#videos {
  background: var(--dark-bg);
  color: white;
}

#videos h2 {
  background: linear-gradient(135deg, #fff, var(--primary-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.video-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.video-content {
  color: white;
}

/* === TESTIMONIALS === */
.testimonial-rating {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.star {
  color: var(--primary-gold);
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 1.5rem;
  margin-top: auto;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info h4 {
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* === COMMENTS === */
.comments {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.comment-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 4px solid var(--primary-gold);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  animation: fadeIn 0.4s ease;
}

.comment-card strong {
  color: var(--primary-gold);
}

#commentForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

#commentForm input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}

#commentForm button {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

#commentForm button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212,175,55,0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CONTACT FORM === */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  display: none;
}

.form-message.success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-green);
  border: 1px solid var(--success-green);
}

.form-message.error {
  background: rgba(231, 76, 60, 0.1);
  color: var(--warning-red);
  border: 1px solid var(--warning-red);
}

/* === IMAGE MODAL === */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 95%;
  max-height: 95%;
  background: white;
  border-radius: var(--border-radius);
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

.modal-image {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  object-position: center;
}

.modal-info {
  padding: 1.5rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.modal-category {
  color: var(--primary-gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-gold);
  transform: scale(1.2);
}

/* === TESTIMONIAL FORM === */
.testimonial-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.testimonial-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.testimonial-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.testimonial-form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.star-rating {
  display: flex;
  gap: 5px;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.star-rating i {
  color: #ccc;
  transition: color 0.2s ease;
}

/* === PAGINATION CONTROLS === */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination-btn {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.pagination-btn.secondary {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
}

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

.pagination-info {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* === BOUTONS SPÉCIAUX === */
.btn-porno {
  background: #e91e63;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-porno:hover {
  background: #d81b60;
}

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

/* Tablette portrait - 2 colonnes */
@media (min-width: 480px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .logo img {
    height: 36px;
  }
  
  .hero {
    padding: 90px 1rem 2rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-btn {
    min-width: auto;
  }
  
  .portfolio-grid,
  .memories-grid,
  .videos-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .live-player iframe,
  .live-player video {
    height: 400px;
  }

  #commentForm {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
  }

  #commentForm input {
    flex: 1;
    padding: 0.9rem;
  }

  #commentForm button {
    width: auto;
    padding: 0.9rem 1.5rem;
    flex-shrink: 0;
  }
}

/* Tablette paysage - 3 colonnes */
@media (min-width: 768px) {
  .section {
    padding: 6rem 2rem;
  }
  
  .navbar {
    min-height: 80px;
  }
  
  .nav-container {
    padding: 1rem 2rem;
  }
  
  .logo img {
    height: 40px;
  }
  
  .hero {
    padding: 100px 2rem 2rem;
  }
  
  .hero-subtitle {
    letter-spacing: 2px;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .nav-menu {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 50px;
    right: 0;
  }
  
  .nav-menu.show {
    right: 0;
  }
  
  .portfolio-grid,
  .memories-grid,
  .videos-grid,
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .live-player iframe,
  .live-player video {
    height: 500px;
  }
  
  .modal-info {
    padding: 2rem;
  }
  
  .modal-close {
    font-size: 3rem;
    top: 20px;
    right: 30px;
  }
}

/* Desktop - 4 colonnes */
@media (min-width: 1200px) {
  .nav-container {
    padding: 1rem 2.5rem;
  }
  
  .hero {
    padding: 120px 2rem 2rem;
  }
  
  .hero-subtitle {
    letter-spacing: 3px;
  }
  
  .portfolio-grid,
  .memories-grid,
  .videos-grid,
  .testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === OPTIMISATIONS IMAGES ET MÉDIAS === */
img, iframe, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === AMÉLIORATIONS PERFORMANCE === */
* {
  -webkit-tap-highlight-color: transparent;
}

.portfolio-card,
.memory-card,
.video-card,
.testimonial-card {
  will-change: transform;
}

.portfolio-card-image img,
.memory-card-image img,
.video-thumbnail img {
  will-change: transform;
}

/* === ÉTATS D'ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
  :root {
    --light-bg: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-dark: #ffffff;
    --text-light: #cccccc;
  }
}

/* === PRINT STYLES === */
@media print {
  .navbar,
  .menu-toggle,
  .hero-buttons,
  .pagination-controls,
  .testimonial-btn,
  .submit-btn {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .portfolio-grid,
  .memories-grid,
  .videos-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* === UTILITIES FINALES === */
.sr-only {
  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;
}

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

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* === POPUP PUBLICITAIRE === */
.ad-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  z-index: 9999;
  max-width: 300px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}
.ad-popup h3 {
  color: var(--primary-gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.ad-popup button {
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--primary-gold);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.ad-popup button:hover {
  background: var(--secondary-gold);
}

/* === FORMULAIRE NOUS REJOINDRE === */
.join-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.join-modal-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-strong);
}
.join-modal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-gold);
  margin-bottom: 1.5rem;
}
.join-modal-content .form-group label {
  color: var(--text-dark);
}
.join-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
.join-modal-close:hover {
  color: var(--primary-gold);
}

/* === MODALE NOUS REJOINDRE UNIFIÉE === */
.join-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease forwards;
}

.join-container {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-strong);
  padding: 2rem;
  animation: fadeInUp 0.4s ease forwards;
}

.join-container h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-gold);
}

.join-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.join-tab {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--primary-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--primary-gold);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.join-tab.active,
.join-tab:hover {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: white;
}

.join-form {
  display: none;
}

.join-form.active {
  display: block;
}

.join-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text-dark);
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.3);
  outline: none;
}

.join-form button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.join-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

#joinMessage {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  display: none;
}

#joinMessage.success {
  display: block;
  color: var(--success-green);
}

#joinMessage.error {
  display: block;
  color: var(--warning-red);
}

#photoLabel {
  display: block;
  padding: 1rem;
  text-align: center;
  border: 2px dashed var(--primary-gold);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#photoLabel:hover {
  background: rgba(212,175,55,0.05);
}

.join-container .modal-close,
#closeJoinModal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease, transform 0.2s ease;
}

.join-container .modal-close:hover,
#closeJoinModal:hover {
  color: var(--primary-gold);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 480px) {
  .join-container {
    padding: 1.2rem;
  }
  
  .join-tab {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
}

/* === Améliorations Mobile First === */
@media (max-width: 480px) {
  .join-container {
    width: 95%;
    max-height: 95vh;
    padding: 1rem;
  }

  .join-container h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .join-tabs {
    flex-direction: column;
    gap: 0.6rem;
  }

  .join-tab {
    font-size: 0.9rem;
    padding: 0.7rem;
    text-align: center;
  }

  .join-form input,
  .join-form select,
  .join-form textarea {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .join-form button {
    font-size: 1rem;
    padding: 0.9rem;
  }
}

/* === MODALE NOUS REJOINDRE (ancienne logique multi-étapes) === */
#joinChoiceStep,
#partnerFormContainer,
#providerFormContainer {
  display: none; /* cachés par défaut */
}

#joinChoiceStep.active,
#partnerFormContainer.active,
#providerFormContainer.active {
  display: block; /* s'affichent quand JS ajoute .active */
}

#joinChoiceStep button {
  display: block;
  width: 100%;
  margin: 0.8rem 0;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid var(--primary-gold);
  background: transparent;
  color: var(--primary-gold);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#joinChoiceStep button:hover {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: #fff;
}

#partnerFormContainer form,
#providerFormContainer form {
  display: flex;
  flex-direction: column;
}

#partnerFormContainer input,
#partnerFormContainer textarea,
#providerFormContainer input,
#providerFormContainer textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 1rem;
}

#partnerFormContainer button,
#providerFormContainer button {
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#partnerFormContainer button:hover,
#providerFormContainer button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}
/* === BOUTON RETOUR (dans la modale rejoindre) === */
#partnerFormContainer .back-btn,
#providerFormContainer .back-btn {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--primary-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--primary-gold);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

#partnerFormContainer .back-btn:hover,
#providerFormContainer .back-btn:hover {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: #fff;
  box-shadow: var(--shadow-strong);
}

/* === INPUT FILE (Sélectionner un fichier) === */
#partnerFormContainer input[type="file"],
#providerFormContainer input[type="file"] {
  display: none; /* on masque l'input brut */
}

#partnerFormContainer label[for="partnerFile"],
#providerFormContainer label[for="providerFile"] {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px dashed var(--primary-gold);
  border-radius: 12px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#partnerFormContainer label[for="partnerFile"]:hover,
#providerFormContainer label[for="providerFile"]:hover {
  background: rgba(212, 175, 55, 0.05);
  color: var(--primary-gold);
}
#partnerFormContainer .back-btn,
#providerFormContainer .back-btn {
  display: block;
  width: 100%;
  margin-top: 0.8rem;
  padding: 1rem;
  border: none; /* plus de bordure */
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(244, 208, 63, 0.2)); /* léger gradient */
  color: var(--primary-gold);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#partnerFormContainer .back-btn:hover,
#providerFormContainer .back-btn:hover {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}
/* === BOUTON RETOUR PREMIUM === */
#partnerFormContainer .back-btn,
#providerFormContainer .back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1); /* léger fond doré */
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(8px); /* effet glass */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#partnerFormContainer .back-btn::before,
#providerFormContainer .back-btn::before {
  content: "←"; /* flèche de retour */
  font-weight: bold;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Animation de la flèche au hover */
#partnerFormContainer .back-btn:hover::before,
#providerFormContainer .back-btn:hover::before {
  transform: translateX(-5px);
}

/* Hover premium */
#partnerFormContainer .back-btn:hover,
#providerFormContainer .back-btn:hover {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

/* Version mobile */
@media (max-width: 480px) {
  #partnerFormContainer .back-btn,
  #providerFormContainer .back-btn {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}
