/* ===== 147 Éclats de Lumière — Styles ===== */

/* === RESET & VARIABLES === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #C8A951;
  --gold-light: #D4B56A;
  --gold-pale: #F5E6B8;
  --navy: #1B2A4A;
  --navy-deep: #0D1B2A;
  --cream: #FFF8E7;
  --silver: #E8E8E8;
  --green: #2D4A2D;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-ui: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* === SPARKLES === */
.sparkle-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.sparkle { position: absolute; width: 3px; height: 3px; background: var(--gold); border-radius: 50%; animation: sparkleFloat linear infinite; opacity: 0; }
@keyframes sparkleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  20%  { opacity: 1; transform: translateY(-20vh) scale(1); }
  80%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.3); }
}

/* === NAV === */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(13,27,42,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(200,169,81,0.2); transition: transform 0.3s ease; }
nav.hidden { transform: translateY(-100%); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 2rem; }
.nav-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); text-decoration: none; letter-spacing: 2px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 400; color: var(--cream); text-decoration: none; letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); transition: all 0.3s; }

/* === HERO === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(ellipse at 50% 40%, rgba(27,42,74,1) 0%, var(--navy-deep) 70%); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(1px 1px at 20% 30%, rgba(200,169,81,0.4) 0%, transparent 100%), radial-gradient(1px 1px at 40% 70%, rgba(200,169,81,0.3) 0%, transparent 100%), radial-gradient(1.5px 1.5px at 60% 20%, rgba(200,169,81,0.5) 0%, transparent 100%), radial-gradient(1px 1px at 80% 50%, rgba(200,169,81,0.3) 0%, transparent 100%); animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { 0% { opacity: 0.6; } 100% { opacity: 1; } }
.hero-content { position: relative; z-index: 2; padding: 2rem; }
.hero-ornament { font-size: 1.4rem; color: var(--gold); margin-bottom: 1rem; letter-spacing: 8px; opacity: 0.7; }
.hero-number { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 12rem); font-weight: 700; color: var(--gold); line-height: 1; text-shadow: 0 0 40px rgba(200,169,81,0.3), 0 0 80px rgba(200,169,81,0.15); animation: glowPulse 3s ease-in-out infinite alternate; }
@keyframes glowPulse { 0% { text-shadow: 0 0 40px rgba(200,169,81,0.3), 0 0 80px rgba(200,169,81,0.15); } 100% { text-shadow: 0 0 60px rgba(200,169,81,0.5), 0 0 120px rgba(200,169,81,0.25); } }
.hero-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2.6rem); font-weight: 400; letter-spacing: 10px; text-transform: uppercase; color: var(--gold-pale); margin-top: 0.5rem; }
.hero-subtitle { font-family: var(--font-body); font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 300; font-style: italic; color: var(--cream); margin-top: 2rem; opacity: 0.85; line-height: 2; }
.hero-subtitle span { display: inline-block; margin: 0 0.6rem; }
.hero-subtitle .dot { color: var(--gold); font-style: normal; }
.hero-date { font-family: var(--font-ui); font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(200,169,81,0.3); display: inline-block; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; animation: bounce 2s ease-in-out infinite; }
.hero-scroll svg { width: 28px; height: 28px; stroke: var(--gold); opacity: 0.6; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* === SECTIONS === */
section { position: relative; z-index: 1; padding: 6rem 2rem; }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-label { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 0.8rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400; text-align: center; color: var(--cream); margin-bottom: 1rem; }
.section-divider { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 3rem; }

/* === EVENT === */
#evenement { background: var(--navy-deep); }
.event-story { font-size: 1.2rem; font-weight: 300; text-align: center; max-width: 700px; margin: 0 auto 3rem; color: rgba(255,248,231,0.85); }
.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.event-card { background: rgba(27,42,74,0.6); border: 1px solid rgba(200,169,81,0.2); border-radius: 12px; padding: 2rem 1.5rem; text-align: center; transition: border-color 0.3s, transform 0.3s; }
.event-card:hover { border-color: rgba(200,169,81,0.5); transform: translateY(-4px); }
.event-card .card-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.event-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); margin-bottom: 0.5rem; }
.event-card p { font-size: 1rem; color: rgba(255,248,231,0.7); }

/* === TIMELINE === */
#programme { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-deep) 100%); }
.timeline { position: relative; padding-left: 3rem; margin-top: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent); }
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item::before { content: ''; position: absolute; left: -3rem; top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--navy-deep); box-shadow: 0 0 12px rgba(200,169,81,0.4); }
.timeline-time { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; letter-spacing: 2px; color: var(--gold); margin-bottom: 0.4rem; }
.timeline-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); margin-bottom: 0.4rem; }
.timeline-desc { font-size: 1.05rem; color: rgba(255,248,231,0.7); }

/* === DRESSCODE === */
#dresscode { background: var(--navy-deep); }
.dresscode-content { text-align: center; max-width: 650px; margin: 0 auto; }
.dresscode-content p { font-size: 1.15rem; color: rgba(255,248,231,0.85); margin-bottom: 1.5rem; }
.dresscode-ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
.dresscode-tag { font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 1px; padding: 0.5rem 1.2rem; border: 1px solid rgba(200,169,81,0.4); border-radius: 30px; color: var(--gold-pale); background: rgba(200,169,81,0.08); }

/* === RSVP === */
#rsvp { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%); }
.rsvp-intro { text-align: center; font-size: 1.15rem; color: rgba(255,248,231,0.8); max-width: 600px; margin: 0 auto 2.5rem; }
.rsvp-form { max-width: 550px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: flex; gap: 1rem; }
.form-row > * { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.form-group input, .form-group select, .form-group textarea { font-family: var(--font-body); font-size: 1rem; padding: 0.8rem 1rem; background: rgba(255,248,231,0.06); border: 1px solid rgba(200,169,81,0.25); border-radius: 8px; color: var(--cream); outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--navy); color: var(--cream); }
.form-group textarea { resize: vertical; min-height: 80px; }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.8rem; margin-top: 0.5rem; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.checkbox-group label { font-size: 0.95rem; color: rgba(255,248,231,0.8); font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.btn-submit { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; padding: 1rem 2.5rem; background: var(--gold); color: var(--navy-deep); border: none; border-radius: 8px; cursor: pointer; transition: background 0.3s, transform 0.2s; margin-top: 0.5rem; }
.btn-submit:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Messages */
.msg-success { text-align: center; padding: 2rem; }
.msg-success h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); margin-bottom: 0.5rem; }
.msg-success p { color: rgba(255,248,231,0.8); }
.msg-error { background: rgba(200,50,50,0.15); border: 1px solid rgba(200,50,50,0.3); padding: 1rem; border-radius: 8px; color: #ff9999; text-align: center; margin-bottom: 1rem; }

/* === INFOS === */
#infos { background: var(--navy-deep); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.info-block h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.info-block p, .info-block li { font-size: 1.05rem; color: rgba(255,248,231,0.8); margin-bottom: 0.5rem; }
.info-block ul { list-style: none; padding: 0; }
.info-block ul li::before { content: '\2726 '; color: var(--gold); font-size: 0.7rem; margin-right: 0.4rem; }
.info-block a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(200,169,81,0.3); transition: border-color 0.3s; }
.info-block a:hover { border-color: var(--gold); }
.map-embed { margin-top: 2.5rem; border-radius: 12px; overflow: hidden; border: 1px solid rgba(200,169,81,0.2); }
.map-embed iframe { width: 100%; height: 300px; border: 0; filter: saturate(0.6) brightness(0.8) contrast(1.1); }

/* === HÉBERGEMENTS === */
#hebergements { background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-deep) 100%); }
.hebergement-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.heb-card { background: rgba(27,42,74,0.5); border: 1px solid rgba(200,169,81,0.15); border-radius: 12px; padding: 1.8rem; transition: border-color 0.3s, transform 0.3s; }
.heb-card:hover { border-color: rgba(200,169,81,0.4); transform: translateY(-3px); }
.heb-card .heb-type { font-family: var(--font-ui); font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.heb-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--cream); margin-bottom: 0.6rem; }
.heb-card p { font-size: 0.95rem; color: rgba(255,248,231,0.7); margin-bottom: 0.4rem; }
.heb-card a { color: var(--gold); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid rgba(200,169,81,0.3); }

/* === FOOTER === */
footer { position: relative; z-index: 1; text-align: center; padding: 3rem 2rem; border-top: 1px solid rgba(200,169,81,0.15); background: var(--navy-deep); }
.footer-logo { font-family: var(--font-display); font-size: 2rem; color: var(--gold); margin-bottom: 0.5rem; }
.footer-tagline { font-family: var(--font-body); font-style: italic; font-size: 1rem; color: rgba(255,248,231,0.5); margin-bottom: 1rem; }
.footer-heart { font-size: 0.85rem; color: rgba(255,248,231,0.35); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-links.open { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,27,42,0.97); padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid rgba(200,169,81,0.2); }
  .hamburger { display: flex; }
  .event-cards { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .info-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 2rem; }
  .timeline::before { left: 0; }
  .timeline-item::before { left: -2rem; }
  section { padding: 4rem 1.5rem; }
}

/* === FADE IN === */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
