/* ======================================
   L'amour en Provence — Léonie & Olivier
   Charte graphique DA officielle
   ====================================== */

/* ---- Palette DA officielle ---- */
:root {
  --bg:           #fff5e9;
  --yellow:       #ffdf7b;
  --peach:        #ffc98e;
  --salmon:       #f2a070;
  --orange:       #ea835a;
  --terracotta:   #c25a35;
  --mint:         #dceeed;
  --blue:         #79a4d7;
  --blue-dark:    #4d68b0;
  --sage:         #a5bba7;
  --sage-dark:    #778e76;
  --green:        #49956c;
  --text-body:    #4d68b0;
  --text-light:   #fbf5e9;
  --card-green:   #dceeed;
  --card-warm:    #ffc98e;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}
.section-title.orange { color: var(--orange); }
.section-title.green  { color: var(--green); }

/* ======================================
   HERO
   ====================================== */
.hero {
  padding: 3rem 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  max-width: 550px;
  width: 100%;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.hero-subtitle .en {
  font-weight: 600;
  font-style: italic;
  color: var(--blue-dark);
}

.hero-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--orange);
  margin-top: 0.3rem;
  letter-spacing: 0.1em;
}

/* ======================================
   MOOD GALLERY
   ====================================== */
.mood-gallery {
  max-width: 1100px;
  margin: 1rem auto 2rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.mood-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
}

/* ======================================
   INVITATION
   ====================================== */
.invitation {
  max-width: 900px;
  margin: 2rem auto 3rem;
  padding: 0 2rem;
  text-align: center;
}
.invitation .section-title {
  margin-bottom: 1.5rem;
  color: var(--terracotta);
}
.invitation-text {
  text-align: left;
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--blue-dark);
}
.invitation-text p { margin-bottom: 1rem; }

/* ======================================
   RSVP
   ====================================== */
.rsvp {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}
.rsvp-block { margin-bottom: 2.5rem; }
.rsvp-block .section-title { margin-bottom: 0.8rem; }
.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 500px;
}
.rsvp-field select,
.rsvp-field input,
.rsvp-field textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--sage);
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
  color: var(--blue-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rsvp-field select:focus,
.rsvp-field input:focus,
.rsvp-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,131,90,0.15);
}
.rsvp-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2349956c' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.btn-submit {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.85rem 3rem;
  background-color: var(--green);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.btn-submit:hover { background-color: var(--sage-dark); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.btn-add-musique {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: none;
  border: 1.5px dashed var(--sage);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-add-musique:hover { border-color: var(--orange); color: var(--orange); }
.musique-entry + .musique-entry {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sage);
}

/* ======================================
   INFORMATIONS PRATIQUES
   ====================================== */
.infos {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}
.infos > .section-title { margin-bottom: 2rem; }

.day-section { margin-bottom: 3rem; }
.day-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.3rem;
}
.day-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}
.day-note {
  font-size: 0.9rem;
  color: var(--blue);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.day-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.timeline-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}
.timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.timeline-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.15rem;
}
.timeline-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--blue-dark);
}
.timeline-text .lieu {
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

/* Info cards */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.info-card {
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.info-card.green-card { background-color: var(--card-green); color: var(--sage-dark); }
.info-card.warm-card  { background-color: var(--card-warm);  color: var(--terracotta); }
.info-card h4 { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.info-card p  { margin-bottom: 0.3rem; }
.info-card ul { margin: 0.5rem 0 0.5rem 1.2rem; }
.info-card li { margin-bottom: 0.2rem; }
.info-card .warning { font-weight: 700; color: var(--terracotta); margin-top: 0.5rem; }

/* ======================================
   ILLUSTRATION
   ====================================== */
.illustration-section {
  max-width: 400px;
  margin: 0 auto 2rem;
  text-align: center;
}
.illustration-section img { max-width: 100%; height: auto; }

/* ======================================
   FOOTER
   ====================================== */
.footer {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(73,149,108,0.2);
}
.contact {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
}
.logo-footer { flex: 0 0 auto; }
.logo-footer img {
  width: 100px;
  height: auto;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 860px) {
  .day-content { grid-template-columns: 1fr; }
  .info-cards  { order: -1; }
  .mood-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-logo { max-width: 320px; }
  .hero-subtitle { font-size: 1.3rem; }
  .section-title { font-size: 1.5rem; }
  .day-title { font-size: 1.15rem; }
  .timeline-icon { flex: 0 0 48px; width: 48px; height: 48px; }
  .mood-gallery { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .mood-gallery img { height: 140px; }
  .footer { flex-direction: column; align-items: center; text-align: center; }
}
