/* ==========================================
   1. POLICES LOCALES & GOOGLE FONTS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'Daydream';
  src: url('fonts/daydream FREE.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Simonetta';
  src: url('fonts/Simonetta-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   2. VARIABLES ET RÉINITIALISATION
   ========================================== */
:root {
  --lie-de-vin: #690E37;
  --vert-olive: #938E63;
  --bg-cream: #FAF8F5;
  --card-bg: #FFFFFF;
  --text-dark: #2C2C2C;
  --text-muted: #6B6B6B;
  --border-light: #EBE6DF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, .nav-logo {
  font-family: 'Simonetta', serif;
}

h2 {
  color: var(--lie-de-vin);
  font-size: 2rem;
  margin-bottom: 15px;
}

/* ==========================================
   3. NAVIGATION (NAVBAR)
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 2px solid var(--vert-olive);
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--lie-de-vin);
  text-decoration: none;
  font-family: 'Simonetta', serif;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--lie-de-vin);
  font-weight: 600;
}

/* COMPTE À REBOURS */
.nav-countdown {
  font-size: 0.85rem;
  background-color: rgba(147, 142, 99, 0.15);
  color: var(--lie-de-vin);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid var(--vert-olive);
}

/* SÉLECTEUR DE LANGUE */
.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--vert-olive);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.lang-btn.active {
  background-color: var(--lie-de-vin);
  color: white;
  border-color: var(--lie-de-vin);
}

/* ==========================================
   4. SECTIONS D'EN-TÊTE
   ========================================== */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 60px 20px;
}

.hero-subtitle {
  font-family: 'Daydream', cursive, sans-serif;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 500;
  margin-bottom: 15px;
  font-family: 'Simonetta', serif;
}

.event-details-box {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 15px 30px;
  border-radius: 10px;
  display: inline-block;
}

.event-date {
  font-family: 'Simonetta', serif;
  font-size: 2rem;
  font-weight: 600;
}

.event-location {
  font-size: 1.1rem;
  color: #F3EBDD;
}

.page-header-small {
  background-color: var(--lie-de-vin);
  color: white;
  padding: 25px 20px;
  text-align: center;
}

.page-header-small h1 {
  font-size: 2rem;
  color: var(--bg-cream);
  font-family: 'Simonetta', serif;
}

/* ==========================================
   5. CONTENUS & CARTES
   ========================================== */
.main-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border-top: 4px solid var(--vert-olive);
}

/* ==========================================
   6. CARROUSEL PHOTOS
   ========================================== */
.carousel-box {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid var(--vert-olive);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-track img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(105, 14, 55, 0.7);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: var(--lie-de-vin);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.map-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ==========================================
   7. FORMULAIRES & BOUTONS
   ========================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: inherit;
  background-color: var(--bg-cream);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s;
}

.btn-primary, .btn-submit {
  background-color: var(--vert-olive);
  color: white;
}

.btn-submit {
  width: 100%;
  font-size: 1rem;
  margin-top: 20px;
}

.btn:hover {
  opacity: 0.9;
}

.hidden {
  display: none !important;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .card { padding: 22px; }
  .nav-container { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .nav-links { gap: 12px; font-size: 0.85rem; }
}