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

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, #ff9a76 0%, #fefae0 40%, #e0f7fa 100%);
  background-attachment: fixed;
  font-family: 'Lato', sans-serif;
  color: #2d3436;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0 1rem;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #0abbb5;
  text-decoration: none;
  font-weight: bold;
}
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { text-decoration: none; color: #555; font-weight: 500; position: relative; }
.nav-links a:hover { color: #0abbb5; }
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #0abbb5;
  transition: width 0.3s;
}
.nav-links a:hover::before { width: 100%; }

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(135deg, #0abbb5 0%, #00a8cc 50%, #2a9d8f 100%);
  color: white;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "🌺";
  position: absolute;
  font-size: 20rem;
  opacity: 0.05;
  top: -50px;
  right: -50px;
  transform: rotate(15deg);
}
.hero-content { max-width: 600px; z-index: 1; }
.flower-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.hero .subtitle { font-size: 1.2rem; margin-bottom: 1rem; opacity: 0.9; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-visual { flex: 1; min-width: 250px; display: flex; justify-content: center; }
.phone-mockup {
  width: 220px; height: 400px;
  background: white;
  border-radius: 30px;
  padding: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.phone-screen {
  width: 100%; height: 100%;
  background: #f9f7f3;
  border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  color: #2d3436;
  padding: 1rem;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block; padding: 0.8rem 2rem;
  border-radius: 30px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 0.3s ease; border: none; font-size: 1rem;
}
.btn-primary { background: #f4a261; color: white; box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4); position: relative; overflow: hidden; }
.btn-primary:hover { background: #e9c46a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244, 162, 97, 0.6); }
.btn-primary::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-primary:active::after { width: 300px; height: 300px; }
.btn-outline { background: transparent; border: 2px solid #f4a261; color: #f4a261; }
.btn-outline:hover { background: #f4a261; color: white; }
.btn-outline-white { background: transparent; border: 2px solid white; color: white; }
.btn-outline-white:hover { background: white; color: #0abbb5; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ===== ÉTAPES ===== */
.steps { padding: 4rem 2rem; text-align: center; background: white; }
.steps h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #0abbb5; margin-bottom: 3rem; }
.steps-grid { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.step-card {
  background: #f9f7f3; padding: 2rem; border-radius: 20px;
  flex: 1; min-width: 250px; max-width: 300px; position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease;
}
.step-card:hover { transform: translateY(-5px); }
.step-number {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: #0abbb5; color: white; width: 35px; height: 35px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 1.2rem;
}
.step-icon { font-size: 3rem; margin: 1rem 0; }
.step-card h3 { font-family: 'Playfair Display', serif; color: #2d3436; margin-bottom: 0.5rem; }

/* ===== PRICING ===== */
.pricing { padding: 4rem 2rem; text-align: center; }
.pricing h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #0abbb5; margin-bottom: 2rem; }
.pricing-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.pricing-card {
  background: white; border-radius: 20px; padding: 2rem; width: 300px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); position: relative;
  transition: transform 0.3s ease;
}
.pricing-card:hover { transform: translateY(-5px); }
.pricing-card.popular { border: 3px solid #f4a261; transform: scale(1.05); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-5px); }
.pricing-card h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 2.5rem; font-weight: bold; color: #0abbb5; }
.pricing-card .once { font-size: 0.9rem; color: #888; margin-bottom: 1rem; }
.pricing-card ul { list-style: none; padding: 0; text-align: left; margin: 1.5rem 0; }
.pricing-card ul li { padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; }
.pricing-note { margin-top: 2rem; color: #777; }

/* Badges */
.badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.badge-admin { background: #f4a261; color: white; }
.badge-plan { background: #e9c46a; color: #333; }
.popular-badge { background: #f4a261; color: white; padding: 5px 15px; border-radius: 20px; display: inline-block; font-size: 0.9rem; margin-bottom: 1rem; }

/* ===== CTA ===== */
.cta { padding: 4rem 2rem; text-align: center; background: white; }
.cta h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: #0abbb5; margin-bottom: 1rem; }

/* ===== FOOTER ===== */
footer { text-align: center; padding: 2rem; background: #2d3436; color: white; font-size: 0.9rem; }

/* ===== FORMULAIRES ===== */
.form-page { max-width: 500px; margin: 6rem auto 4rem; background: white; padding: 2rem; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.form-header { text-align: center; margin-bottom: 2rem; }
.form-header h2 { font-family: 'Playfair Display', serif; color: #0abbb5; font-size: 2rem; }
.form-page input { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; font-family: 'Lato', sans-serif; }
.form-page input[type="color"] { height: 50px; cursor: pointer; padding: 5px; }

/* ===== EVENT HEADER ===== */
.event-header { text-align: center; padding: 4rem 2rem; color: white; margin-top: 60px; }
.event-header-content { max-width: 600px; margin: 0 auto; }
.event-header h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 0.5rem; }
.event-date { font-size: 1.2rem; opacity: 0.9; }
.event-counter { font-size: 1.3rem; font-weight: bold; margin: 1rem 0; background: rgba(255,255,255,0.2); display: inline-block; padding: 0.5rem 1.5rem; border-radius: 30px; }

/* ===== UPLOAD ===== */
.upload-section-full { text-align: center; padding: 2rem; background: white; }
.upload-form { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.custom-file-upload { display: inline-block; background: #2a9d8f; color: white; padding: 1.2rem 2.5rem; border-radius: 30px; cursor: pointer; font-weight: 600; }
.custom-file-upload:hover { background: #21867a; }
.upload-icon { font-size: 1.5rem; margin-right: 0.5rem; }
input[type="file"] { display: none; }

/* ===== GALLERY ===== */
.gallery-full { padding: 2rem; background: #f9f7f3; }
.gallery-full h2 { text-align: center; font-family: 'Playfair Display', serif; color: #0abbb5; font-size: 2rem; }
.empty-gallery { text-align: center; font-size: 1.2rem; color: #999; padding: 3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; max-width: 1000px; margin: 0 auto; }
.media-card { border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.media-card:hover { transform: scale(1.03); }
.media-card img, .media-card video { width: 100%; height: 200px; object-fit: cover; display: block; cursor: pointer; }

/* ===== DASHBOARD ===== */
.dashboard-container { max-width: 900px; margin: 80px auto 2rem; padding: 2rem; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dashboard-header h1 { font-family: 'Playfair Display', serif; color: #0abbb5; }
.dashboard-actions { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 3rem; }
.empty-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.event-card { background: white; border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.event-card:hover { transform: translateY(-3px); }
.event-card-header { padding: 1.5rem; color: white; }
.event-card-header h3 { font-family: 'Playfair Display', serif; }
.event-card-body { padding: 1.5rem; }
.event-card-actions { margin: 1rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.qr-small { width: 80px; margin-top: 1rem; }
.qr-large { max-width: 200px; margin: 1.5rem auto; display: block; border-radius: 10px; background: white; padding: 10px; }

/* ===== ADMIN ===== */
.admin-panel { max-width: 1100px; margin: 80px auto 2rem; padding: 2rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; background: linear-gradient(135deg, #2d3436, #434a54); color: white; padding: 1.5rem 2rem; border-radius: 16px; }
.admin-header h1 { font-family: 'Playfair Display', serif; margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: white; padding: 1.5rem; border-radius: 16px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.stat-card h3 { font-size: 2rem; color: #0abbb5; }
.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 2rem; }
.admin-table th { background: #0abbb5; color: white; padding: 1rem; text-align: left; }
.admin-table td { padding: 0.8rem 1rem; border-bottom: 1px solid #eee; }
.admin-table tr:hover { background: #f0fdfa; }
hr { border: none; border-top: 2px solid #e0f7fa; margin: 2rem 0; }
.admin-panel h2 { font-family: 'Playfair Display', serif; color: #0abbb5; }

/* ===== LIGHTBOX ===== */
#lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; justify-content: center; align-items: center; cursor: pointer; }
#lightbox.active { display: flex; }
#lightbox-img { max-width: 90%; max-height: 90%; object-fit: contain; }

/* ===== LOADER ===== */
.loader-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 9999; justify-content: center; align-items: center; flex-direction: column; }
.loader-overlay.active { display: flex; }
.loader-spinner { width: 60px; height: 60px; border: 5px solid rgba(255,255,255,0.3); border-top: 5px solid #0abbb5; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: white; margin-top: 1rem; font-size: 1.2rem; font-weight: bold; }

/* ===== BRUME TROPICALE ===== */
@keyframes fogFade {
  0% { opacity: 1; }
  80% { opacity: 0.3; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}
.fog-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, 
    rgba(255, 154, 118, 0.9) 0%, 
    rgba(244, 162, 97, 0.7) 40%, 
    rgba(254, 250, 224, 0.4) 80%, 
    transparent 100%);
  z-index: 9999; pointer-events: none;
  animation: fogFade 3s ease-out forwards;
}
.fog-star {
  position: fixed; width: 4px; height: 4px;
  background: white; border-radius: 50%;
  z-index: 10000; pointer-events: none;
  box-shadow: 0 0 8px 3px rgba(255, 255, 200, 0.9);
  animation: starTwinkle 2s ease-in-out forwards;
}

/* ===== MODE SOMBRE ===== */
body.dark-mode { background: #1a1a2e !important; color: #e0e0e0; }
body.dark-mode .navbar { background: #16213e; }
body.dark-mode .navbar a, body.dark-mode .nav-logo { color: #e0e0e0; }
body.dark-mode .hero { background: linear-gradient(135deg, #0f3460, #16213e) !important; }
body.dark-mode .btn-primary { background: #e94560; }
body.dark-mode .step-card, body.dark-mode .pricing-card, body.dark-mode .event-card,
body.dark-mode .upload-section-full, body.dark-mode .gallery-full, body.dark-mode .cta,
body.dark-mode .form-page, body.dark-mode .admin-panel { background: #0f3460; color: #e0e0e0; }
body.dark-mode footer { background: #16213e; }
body.dark-mode .badge-admin { background: #e94560; }
body.dark-mode .admin-table th { background: #e94560; }

/* ===== FILIGRANE ===== */
.media-card::after {
  content: "SouvenirLive"; position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.5); color: white; padding: 3px 8px;
  border-radius: 5px; font-size: 0.7rem; opacity: 0.7; pointer-events: none;
}

/* ===== BLURRED ===== */
.blurred-media img, .blurred-media video { filter: blur(20px); pointer-events: none; }
.blurred-message { text-align: center; padding: 1rem; background: #f8d7da; color: #721c24; border-radius: 10px; margin-bottom: 1rem; font-weight: bold; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { flex-direction: column; min-height: auto; padding: 5rem 1rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .steps-grid { flex-direction: column; align-items: center; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .nav-links { gap: 0.5rem; }
}
