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

:root {
  --gold:    #b8975a;
  --gold-lt: #d4b87a;
  --cream:   #faf8f4;
  --white:   #ffffff;
  --dark:    #1a1a1a;
  --mid:     #4a4a4a;
  --light:   #8a8a8a;
  --border:  #e8e2d9;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  --section-pad: 100px;
  --radius: 4px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; }

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 40px;
}
h2 em { font-style: italic; color: var(--gold); }

h3 { font-size: 1.3rem; margin-bottom: 10px; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.section-intro {
  max-width: 560px;
  color: var(--mid);
  margin-bottom: 60px;
  font-size: 1.05rem;
}

.center { text-align: center; }
.center.section-intro { margin-left: auto; margin-right: auto; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--gold);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--gold); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 26px;
  border: 1px solid var(--gold);
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }

.link-underline {
  font-size: 0.85rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-lt);
  padding-bottom: 1px;
  transition: color var(--transition);
}
.link-underline:hover { color: var(--gold-lt); }

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}
#navbar ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  list-style: none;
  height: 70px;
}
#navbar a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
}
#navbar.scrolled a { color: var(--dark); }
#navbar a:hover { color: var(--gold); }
#navbar .nav-cta {
  border: 1px solid rgba(255,255,255,0.6);
  padding: 8px 20px;
  color: var(--white);
}
#navbar.scrolled .nav-cta { border-color: var(--gold); color: var(--gold); }
#navbar .nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/hotel-cala-arossa.jpg') center center / cover no-repeat;
  background-color: #2a3a35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 24px;
}
#hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--white);
}
#hero h1 span {
  font-style: italic;
  color: var(--gold-lt);
  display: inline-block;
  margin: 0 16px;
}
.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-lt);
  margin: 32px auto;
}
.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.hero-location {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 48px;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  margin: 0 auto;
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── PRESENTATION ─── */
#presentation {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.presentation-photo {
  position: relative;
}
.parallax-wrap {
  position: relative;
  z-index: 1;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.parallax-wrap img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
  display: block;
}
.photo-frame {
  position: absolute;
  top: 20px; left: 20px;
  right: -20px; bottom: -20px;
  border: 1px solid var(--gold);
  z-index: 0;
}
.presentation-text p {
  color: var(--mid);
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.presentation-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.presentation-en {
  color: var(--light);
  font-size: 0.97rem;
}

.signature {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--gold);
  margin-top: 32px;
}

/* ─── PLANNING ─── */
#planning {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 120px 0 1fr;
  gap: 0 40px;
  margin-bottom: 56px;
  align-items: start;
}
.timeline-time {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  text-align: right;
  padding-top: 2px;
}
.timeline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--cream);
  outline: 1px solid var(--gold);
  margin: 5px -5px;
  position: relative;
  z-index: 1;
}
.timeline-body h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.timeline-body p { color: var(--mid); font-size: 0.95rem; margin-bottom: 8px; }
.timeline-day-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  display: inline-block;
  padding: 6px 16px;
  margin-left: 140px;
  margin-bottom: 8px;
}
.timeline-day-sublabel {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  display: block;
  margin-left: 140px;
  margin-bottom: 36px;
}

.timeline-place {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── HÉBERGEMENTS ─── */
#hebergements {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.hotel-card {
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.hotel-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-3px); }
.hotel-card.featured { border-color: var(--gold); }
.hotel-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  z-index: 2;
}
.hotel-img {
  height: 200px;
  background: #ccc center/cover no-repeat;
  background-color: #d4c9b8;
}
.hotel-info {
  padding: 24px;
}
.hotel-info h3 { font-size: 1.15rem; margin-bottom: 4px; }
.hotel-stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 12px; }
.hotel-info p { font-size: 0.9rem; color: var(--mid); margin-bottom: 16px; }
.hotel-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.hotel-meta span { font-size: 0.82rem; color: var(--light); }

/* ─── INFOS UTILES ─── */
#infos {
  padding: var(--section-pad) 0;
  background: var(--cream);
}
.infos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px 28px;
  transition: box-shadow var(--transition);
}
.info-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.info-icon { font-size: 1.8rem; margin-bottom: 16px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.info-card p { font-size: 0.9rem; color: var(--mid); margin-bottom: 8px; }

/* ─── MAP ─── */
#map {
  padding: var(--section-pad) 0 0;
  background: var(--white);
}
#leaflet-map {
  height: 480px;
  width: 100%;
  margin-top: 40px;
  filter: saturate(0.85);
}
.map-legend {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: var(--section-pad);
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--mid);
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-gold  { background: var(--gold); }
.dot-rose  { background: #b56a6a; }
.dot-blue  { background: #4a7fb5; }
.dot-green { background: #5a8a5a; }

/* ─── RSVP ─── */
#rsvp {
  padding: var(--section-pad) 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.rsvp-container { max-width: 680px; }

#rsvp-form { margin-top: 48px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 13px 16px;
  transition: border-color var(--transition);
  appearance: none;
  outline: none;
  border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 110px; }

.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.radio-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--mid);
  border: 1px solid var(--border);
  padding: 9px 18px;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  user-select: none;
}
.radio-label:hover {
  border-color: var(--gold);
  color: var(--dark);
}
.radio-label input[type="radio"] {
  display: none;
}
.radio-label:has(input:checked) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* Checkboxes en style chips */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--mid);
  border: 1px solid var(--border);
  padding: 9px 18px;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  user-select: none;
}
.checkbox-label:hover {
  border-color: var(--gold);
  color: var(--dark);
}
.checkbox-label input[type="checkbox"] {
  display: none;
}
.checkbox-label:has(input:checked) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.form-submit { text-align: center; margin-top: 8px; }
.form-submit .btn-primary { font-size: 0.75rem; padding: 18px 48px; border: none; cursor: pointer; }

.form-success {
  text-align: center;
  margin-top: 32px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gold);
  color: var(--mid);
  font-size: 1rem;
}
.hidden { display: none; }

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 60px 40px;
  text-align: center;
}
.footer-names {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--gold-lt);
  margin-bottom: 8px;
}
.footer-date {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-love { font-size: 0.78rem; opacity: 0.4; }

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HERO ENTRANCE ─── */
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow              { animation: heroEnter 0.9s ease both; animation-delay: 0.3s; }
#hero h1                   { animation: heroEnter 1s ease both;   animation-delay: 0.6s; }
.hero-divider              { animation: heroEnter 0.8s ease both; animation-delay: 1s; }
.hero-date                 { animation: heroEnter 0.8s ease both; animation-delay: 1.15s; }
.hero-location             { animation: heroEnter 0.8s ease both; animation-delay: 1.3s; }
.hero-content .btn-primary { animation: heroEnter 0.8s ease both; animation-delay: 1.5s; }

/* ─── TIMELINE LINE DRAW ─── */
.timeline::before {
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline.line-visible::before {
  transform: scaleY(1);
}

/* ─── HOTEL IMAGE ZOOM ─── */
.hotel-card { overflow: hidden; }
.hotel-img { transition: transform 0.55s ease; }
.hotel-card:hover .hotel-img { transform: scale(1.06); }

/* ─── NAV ACTIVE ─── */
#navbar a.active { color: var(--gold); }
#navbar.scrolled a.active { color: var(--gold); }

/* ─── BUTTON RIPPLE ─── */
.btn-primary,
.btn-outline { position: relative; overflow: hidden; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { width: 220px; height: 220px; opacity: 0; }
}

/* ─── REDUCE MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── NAV TOGGLE (hamburger) ─── */
.nav-toggle { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 820px) {
  #navbar ul { gap: 22px; padding: 0 16px; }
  #navbar a { font-size: 0.65rem; }
}

@media (max-width: 900px) {
  .presentation-grid { grid-template-columns: 1fr; gap: 60px; }
  .photo-frame { display: none; }
  .hotels-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .infos-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 80px; }
  .timeline-item { grid-template-columns: 80px 0 1fr; }
  .timeline-day-label,
  .timeline-day-sublabel { margin-left: 100px; }
}

@media (max-width: 640px) {
  :root { --section-pad: 70px; }
  .container { padding: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .infos-grid { grid-template-columns: 1fr; }
  .map-legend { flex-direction: column; gap: 16px; }
  .timeline::before { left: 50px; }
  .timeline-item { grid-template-columns: 50px 0 1fr; gap: 0 20px; }
  .timeline-day-label { font-size: 1.5rem; margin-left: 70px; }
  .timeline-day-sublabel { margin-left: 70px; }
  #hero h1 { font-size: clamp(3rem, 14vw, 6rem); }

  /* Chips : pleine largeur sur mobile */
  .radio-group,
  .checkbox-group { gap: 10px; }
  .radio-label,
  .checkbox-label { width: 100%; justify-content: center; }

  /* Hamburger */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 110;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  #navbar.scrolled .nav-toggle span { background: var(--dark); }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(0, 6.5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(0, -6.5px); }

  #navbar ul {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    height: 100dvh;
    z-index: 105;
  }
  #navbar ul.open { display: flex; }
  #navbar ul.open a { color: var(--dark); font-size: 0.75rem; letter-spacing: 0.2em; }
  #navbar ul.open .nav-cta { border-color: var(--gold); color: var(--gold); }
}
