:root {
  --sage: #7c8c62;
  --sage-dark: #5c6b46;
  --terracotta: #c17c58;
  --cream: #f7f2e9;
  --ivory: #fffdf8;
  --gold: #b7935f;
  --ink: #3a352c;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--sage-dark);
  margin: 0 0 0.5em;
}

a {
  color: var(--terracotta);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-nav nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--sage-dark);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--sage-dark);
  border-radius: 2px;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav nav {
    position: relative;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 16px -8px rgba(0, 0, 0, 0.15);
    padding: 0 1rem 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.hero {
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, #efe8d6 0%, var(--cream) 60%);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--sage-dark);
  margin: 0 0 0.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin: 0;
}

.hero-date {
  font-size: 1.2rem;
  margin: 0.5rem 0 2rem;
  color: var(--terracotta);
  font-weight: 700;
}

.hero-photo-frame {
  max-width: 420px;
  margin: 0 auto 2rem;
  padding: 0.6rem;
  background: var(--ivory);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(58, 53, 44, 0.15);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  min-width: 4.5rem;
  box-shadow: 0 4px 10px rgba(58, 53, 44, 0.08);
}

.countdown-item span {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.countdown-item small {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--sage);
}

.timeline li {
  display: flex;
  gap: 1.25rem;
  padding: 0 0 2rem 1.25rem;
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-time {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--terracotta);
  min-width: 4.5rem;
}

.timeline h3 {
  margin: 0 0 0.2rem;
  font-size: 1.3rem;
}

.timeline p {
  margin: 0 0 0.3rem;
}

.map-link {
  font-size: 0.9rem;
  text-decoration: underline;
}

.infos-pratiques {
  text-align: center;
}

.placeholder-note {
  background: var(--ivory);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-style: italic;
}

.accordion {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-group-label {
  margin: 1rem 0 -0.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--sage-dark);
  text-align: left;
}

.accordion-item {
  background: var(--ivory);
  border: 1px solid #e5ddca;
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sage-dark);
  text-align: left;
}

.accordion-chevron {
  flex-shrink: 0;
  color: var(--terracotta);
  transition: transform 0.25s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-trigger[aria-expanded="true"] + .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-content-inner {
  overflow: hidden;
}

.accordion-content .placeholder-note {
  margin: 0 1.25rem 1.25rem;
}

.accordion-content-inner p {
  margin: 0 1.25rem 0.9rem;
  line-height: 1.6;
}

.accordion-content-inner p:last-child {
  margin-bottom: 1.25rem;
}

.accordion-image-zoom {
  display: block;
  width: calc(100% - 2.5rem);
  margin: 0 1.25rem 0.9rem;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}

.accordion-image {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-image-zoom::after {
  content: "🔍 Agrandir";
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(58, 53, 44, 0.75);
  color: var(--ivory);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.airbnb-highlight {
  margin: 1.1rem 1.25rem 1.25rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #fff6ea, #fdf0e3);
  border: 1px solid var(--gold);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
}

.airbnb-highlight-title {
  margin: 0 0 0.3rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.airbnb-highlight p {
  margin: 0 0 0.7rem;
}

.airbnb-highlight p:last-of-type {
  margin-bottom: 0;
}

.airbnb-btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ivory);
  background: var(--terracotta);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  text-decoration: none;
  line-height: 1.4;
}

.airbnb-btn:hover {
  background: var(--sage-dark);
}

.lodging-list {
  list-style: none;
  margin: 0 1.25rem 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lodging-item {
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid #e5ddca;
  border-radius: 8px;
}

.lodging-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.6rem;
}

.lodging-name {
  font-weight: 700;
  color: var(--sage-dark);
}

.lodging-type {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.75;
}

.lodging-price {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--terracotta);
  white-space: nowrap;
}

.lodging-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.lodging-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage-dark);
  background: var(--cream);
  border: 1px solid #d8d0bf;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}

.lodging-btn:hover {
  background: #efe8d6;
}

.lodging-map-toggle[aria-expanded="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.lodging-map {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.lodging-map.open {
  grid-template-rows: 1fr;
}

.lodging-map-inner {
  overflow: hidden;
}

.lodging-map-inner iframe {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 6px;
  margin-top: 0.75rem;
  display: block;
}

.gallery-page {
  max-width: 1100px;
}

.gallery-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gallery-toolbar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.select-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery-checkbox {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 0.3rem;
  display: flex;
}

.gallery-checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.gallery-thumb {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.upload-box {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.upload-box h2 {
  text-align: center;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upload-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.upload-form input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #d8d0bf;
  border-radius: 6px;
  background: #fff;
}

.upload-form button {
  align-self: center;
  background: var(--sage);
  color: #fff;
  border: none;
  padding: 0.65rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
}

.upload-form button:hover {
  background: var(--sage-dark);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
}

#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 480px) {
  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
  .lightbox-prev {
    left: 0.25rem;
  }
  .lightbox-next {
    right: 0.25rem;
  }
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--ivory);
  padding: 2rem;
  border-radius: var(--radius);
}

.rsvp-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.rsvp-form input,
.rsvp-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d8d0bf;
  border-radius: 6px;
  background: #fff;
}

.rsvp-form fieldset {
  border: 1px solid #d8d0bf;
  border-radius: 6px;
  padding: 0.75rem;
}

.rsvp-form .radio {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
}

.rsvp-form button,
.button-secondary {
  align-self: center;
  background: var(--sage);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.rsvp-form button:hover,
.button-secondary:hover {
  background: var(--sage-dark);
}

.gift-registry-page {
  max-width: 900px;
}

.gift-registry-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gift-card {
  background: #fff;
  border: 1px solid #e5ddca;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.gift-card h3 {
  margin-bottom: 0.5rem;
}

.gift-description {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.2rem;
}

.gift-progress-bar {
  background: var(--cream);
  border: 1px solid #e5ddca;
  border-radius: 999px;
  height: 0.6rem;
  overflow: hidden;
}

.gift-progress-fill {
  background: var(--sage);
  height: 100%;
  width: 0;
  border-radius: 999px;
}

.gift-progress-label {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.8;
}

.gift-contribute-form {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.gift-amount-field,
.gift-donor-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.gift-amount-field input,
.gift-donor-field input {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: normal;
  padding: 0.5rem 0.7rem;
  border: 1px solid #d8d0bf;
  border-radius: 6px;
  color: var(--ink);
}

.gift-contribute-btn {
  align-self: flex-start;
  background: var(--terracotta);
  color: var(--ivory);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.gift-contribute-btn:hover {
  background: var(--sage-dark);
}

.gift-contribute-btn:disabled {
  background: #c7c0ae;
  cursor: wait;
}

.guestbook-page {
  max-width: 700px;
}

.guestbook-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.guestbook-messages {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guestbook-message {
  background: #fff;
  border: 1px solid #e5ddca;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}

.guestbook-message-content {
  margin: 0 0 0.5rem;
  white-space: pre-wrap;
}

.guestbook-message-author {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.form-success {
  text-align: center;
  background: #eaf2e3;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-errors {
  background: #fbe9e7;
  border: 1px solid #c1543f;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  color: #8a2f22;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--sage-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}

.admin-body {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-login {
  background: var(--ivory);
  padding: 2.5rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 360px;
}

.admin-login form,
.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-login label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-login input {
  padding: 0.6rem 0.7rem;
  border: 1px solid #d8d0bf;
  border-radius: 6px;
}

.admin-dashboard {
  width: 100%;
  max-width: 1100px;
  background: var(--ivory);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  background: #efe8d6;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.filters input,
.filters select {
  padding: 0.4rem 0.5rem;
  border: 1px solid #d8d0bf;
  border-radius: 6px;
  font-size: 0.85rem;
  min-width: 8rem;
}

#filters-reset {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e5ddca;
  font-size: 0.9rem;
}

th {
  background: #efe8d6;
}

tr.row-attending {
  background: #eaf2e3;
}

tr.row-not-attending {
  background: #fbe9e7;
}

tr[hidden] {
  display: none;
}

.button-delete {
  background: #c1543f;
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.button-delete:hover {
  background: #9e402e;
}

.button-approve {
  background: var(--sage);
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.button-approve:hover {
  background: var(--sage-dark);
}

.badge {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.photo-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.photo-review-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(58, 53, 44, 0.08);
}

.photo-review-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-meta {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem 0;
  margin: 0;
  color: var(--ink);
}

.photo-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
}

@media (max-width: 480px) {
  .countdown-item {
    min-width: 3.6rem;
    padding: 0.5rem 0.6rem;
  }
  .section {
    padding: 2.5rem 1rem;
  }
}
