/* Use one variable for the pink so it’s consistent */
:root {
  --wedding-pink: #ffb6c1;
}

/* Navbar styling */
.navbar {
  background-color: var(--wedding-pink) !important;
}

.navbar a.navbar-item {
  color: black !important;
}

.navbar a.navbar-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.horizontal-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-top: 3rem;
  padding: 0 2rem;
}

/* The horizontal line */
.horizontal-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2rem;
  right: 2rem;
  height: 4px;
  background-color: var(--wedding-pink);
  z-index: 0;
}

.timeline-event {
  position: relative;
  text-align: center;
  flex: 1;
}

/* Event name above */
.timeline-event .event-name {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* The dot */
.timeline-event .dot {
  width: 20px;
  height: 20px;
  background-color: var(--wedding-pink);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  border: 3px solid white; /* adds a white outline */
}

/* Date below */
.timeline-event .event-date {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.timeline-event {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.timeline-event:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  /* NAVBAR MOBILE: use Bulma .is-active behavior */
  .navbar-burger {
    display: block;
    cursor: pointer;
  }
  .navbar-burger span {
    background-color: black; /* change si tu veux blanc */
  }
  /* hide menu by default on very small screens, show when .is-active */
  .navbar-menu {
    display: none;
  }
  .navbar-menu.is-active {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .navbar-start, .navbar-end {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}

.modal-card-head {
  background-color: var(--wedding-pink) !important;
}

.modal-card-foot {
  background-color: #ffe0e4 !important;
}

::selection {
  background-color: var(--wedding-pink);
  color: black; /* Keep text readable */
}

::-moz-selection {
  background-color: var(--wedding-pink);
  color: black;
}

/* Primary button = pink */
.button.is-primary {
  background-color: var(--wedding-pink);
  border-color: var(--wedding-pink);
  color: black;
}
.button.is-primary:hover {
  background-color: #ff99aa;
  border-color: #ff99aa;
  color: black;
}

/* Rounded form box */
.box {
  border-radius: 16px;
  padding: 2rem;
}

.modal-card {
  max-width: 500px;
  max-height: 80vh;
}

.modal-card-body {
  overflow-y: auto;
  padding: 1rem;
  text-align: center;
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 1rem; /* space between images */
  margin-top: 1rem;
  flex-wrap: wrap; /* allows stacking on very small screens */
}

.image-row img {
  max-width: 48%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.main-section {
    height: 100vh; /* full height of the viewport */
    background-image: url('../img/background.jpg'); /* adjust filename */
    background-size: cover; /* image covers the section */
    background-position: center; /* centered */
    background-repeat: no-repeat; /* no tiling */
    display: flex;
    align-items: center; /* vertical centering of content */
    justify-content: center; /* horizontal centering of content */
    color: white; /* text color */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
  .horizontal-timeline {
    display: grid !important;
    grid-template-columns: 1fr 40px 1fr !important;
    grid-auto-rows: minmax(56px, auto) !important;
    gap: 0.8rem 0 !important;
    padding: 1rem !important;
  }

  /* remove the horizontal pseudo-line that was used on desktop */
  .horizontal-timeline::before {
    content: none !important;
    display: none !important;
  }

  .horizontal-timeline .timeline-line {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Commence exactement au centre du premier point */
    top: calc(0.6rem + 10px) !important; /* 0.6rem = padding du 1er event, 10px = moitié du point (20px/2) */
    bottom: 1rem !important;
    width: 4px !important;
    background-color: var(--wedding-pink) !important;
    border-radius: 2px !important;
    z-index: 0 !important;
  }

  /* Supprimer toute marge supplémentaire sur le premier event */
  .timeline-event:first-child {
    margin-top: 0 !important;
    padding-top: 0.6rem !important; /* ou 0 si besoin */
  }

  .timeline-event { display: contents !important; }

  .timeline-event .event-name {
    grid-column: 1 / 2 !important;
    justify-self: end !important;
    padding-right: 12px !important;
    text-align: right !important;
  }

  .timeline-event .dot {
    grid-column: 2 / 3 !important;
    justify-self: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 3px solid white !important;
    z-index: 2 !important;
  }

  .timeline-event .event-date {
    grid-column: 3 / 4 !important;
    justify-self: start !important;
    padding-left: 12px !important;
    text-align: left !important;
  }
}
