:root {
  --bg-main: #f6f1ea;
  --bg-soft: #efe7dd;
  --text-main: #3e3a36;
  --text-muted: #7a746d;
  --accent: #c86b3c;
  --accent-soft: #d9a28f;
  --green-soft: #7f8f7a;
  --card-bg: #ffffff;
  --border-soft: #e6ddd2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.section {
  position: relative;
  margin: 84px 0;
}

.section + .section {
  border-top: 1px solid var(--border-soft);
  padding-top: 72px;
}

.section + .section::before {
  content: none;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  color: #c86b3c;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #c86b3c;
}

p {
  margin: 0 0 14px;
  color: var(--text-main);
}

.muted {
  color: var(--text-muted);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) max(1rem, env(safe-area-inset-right))
    clamp(1.5rem, 4vw, 2rem) max(1rem, env(safe-area-inset-left));
  min-height: min(70vh, 52rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  border-radius: 28px;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: 980px;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
}

.hero-photo-col,
.hero-names-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.hero-names-col {
  padding: clamp(0.5rem, 2vw, 1rem) 0;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #c86b3c;
}

.hero-name {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero-name-primary {
  font-size: clamp(2.75rem, 5vw + 1.5rem, 6.25rem);
  line-height: 1.02;
  color: #c86b3c;
}

.hero-name-amp {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3.25rem);
  line-height: 1;
  margin: clamp(0.35rem, 1.5vw, 0.65rem) 0;
  color: #c86b3c;
}

.hero-couple {
  display: block;
  width: clamp(13rem, 28vw, 21rem);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  border: 10px solid #f2e7dc;
  box-shadow: 0 20px 40px rgba(113, 86, 69, 0.15);
}

.hero-couple img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-intro {
  width: min(100%, 38rem);
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 3vw, 1rem);
  text-align: center;
}

.hero-intro p {
  margin: 0;
  font-size: clamp(0.95rem, 2.8vw + 0.55rem, 1.14rem);
  line-height: 1.75;
  color: #4f4944;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.hero::before {
  width: 170px;
  height: 170px;
  top: 12px;
  left: -20px;
  background: radial-gradient(circle, #ead7bf 0%, rgba(234, 215, 191, 0) 70%);
}

.hero::after {
  width: 140px;
  height: 140px;
  right: 18px;
  top: 36px;
  background: radial-gradient(circle, #e6d5b8 0%, rgba(230, 213, 184, 0) 70%);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split-visual img {
  border-radius: 28px;
  background: #f4ece4;
  border: 1px solid var(--border-soft);
}

.ceremony {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}

.ceremony::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./Capture d’écran 2026-03-24 à 21.07.05.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.ceremony-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.ceremony-text {
  max-width: 600px;
  text-align: left;
}

.ceremony-side {
  width: 100%;
  max-width: 420px;
}

.ceremony-side .info-card {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ceremony .split-content,
.ceremony .ceremony-text {
  position: relative;
  max-width: 600px;
}

.info-card,
.place-card,
.faq-item,
.hotel-card,
.confirmation-card {
  background: rgba(255, 255, 255, 0.35) !important;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.info-card {
  margin-top: 20px;
  padding: 22px;
}

.info-address-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.info-address-row::before,
.info-address-row::after {
  content: none !important;
}

.info-address-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1.2;
  margin-top: 1px;
}

.info-address-row a {
  color: inherit;
  text-decoration: none;
}

.info-address-row a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.btn-terracotta {
  background: var(--accent);
  color: #fff;
}

.btn-terracotta:hover {
  background: #ae5b3e;
}

.btn-soft {
  background: var(--bg-soft);
  color: #5b4d41;
  border-color: #ddcfc2;
}

.btn-soft:hover {
  background: #e5dacd;
}

.btn-olive {
  background: var(--green-soft);
  color: #fff;
}

.btn-olive:hover {
  background: #70806b;
}

.section.pause {
  margin: 52px 0 0;
}

.section + .section.pause {
  padding-top: 48px;
}

.pause {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(52vh, 28rem);
  padding: clamp(2rem, 5vh, 3.25rem) clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  overflow: hidden;
}

.pause::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./pause-bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.pause-copy {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.pause-visual {
  display: none;
}

.visual-stack {
  max-width: 560px;
  margin-left: auto;
}

.fete-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 22px;
}

.fete-left {
  display: grid;
  gap: 18px;
}

.fete-text {
  max-width: 620px;
  text-align: left;
}

.fete-subphotos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fete-subphotos img,
.fete-right img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  object-fit: cover;
}

.fete-subphotos img {
  aspect-ratio: 16 / 10;
}

.fete-right img {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.fete-right {
  height: 100%;
}

.hotel-grid.lodging-bento,
.magic-bento-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 12px;
}

.lodging-bento .hotel-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: fit-content;
}

.lodging-bento .hotel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(90, 70, 57, 0.09);
}

.lodging-bento .hotel-card:nth-child(5) {
  grid-column: span 2;
}

.programme {
  position: relative;
  overflow: hidden;
  padding: 86px 0 74px;
}

.programme::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./photo4.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: clamp(620px, 86%, 1020px) auto;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.programme-inner {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin: 0 auto;
}

.programme h2 {
  text-align: center;
  margin-bottom: 40px;
}

.programme-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.programme-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 2px;
  transform: translateX(-50%);
  background: #d8cfc4;
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
}

.timeline-badge {
  width: 42px;
  height: 42px;
  justify-self: center;
  align-self: center;
  border-radius: 12px;
  border: 1px solid #dccfc0;
  background: #f8f2eb;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: #c86b3c;
}

.timeline-card {
  width: fit-content;
  max-width: 330px;
  position: relative;
  background: rgba(255, 255, 255, 0.35) !important;
  border: 1px solid #e4d9cd;
  border-radius: 14px;
  padding: 10px 13px;
  color: #4c4642;
  line-height: 1.45;
  justify-self: start;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.timeline-row.is-left .timeline-card {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.timeline-row.is-right .timeline-card {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.timeline-row .timeline-badge {
  grid-column: 2;
}

.timeline-row.is-left .timeline-card::after,
.timeline-row.is-right .timeline-card::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 1px;
  background: #ccbba8;
}

.timeline-row.is-left .timeline-card::after {
  right: -16px;
}

.timeline-row.is-right .timeline-card::after {
  left: -16px;
}

.timeline-empty {
  min-height: 1px;
}

.programme-note {
  margin: 30px auto 0;
  max-width: 760px;
  text-align: center;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hotel-card {
  padding: 16px 16px 14px;
}

.hotel-card p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.hebergements {
  display: block;
  overflow: hidden;
  padding-right: 0;
}

.hebergements::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./photo7.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.hebergements .split-content {
  width: min(980px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hebergements .hotel-grid {
  width: min(860px, 100%);
  margin: 0 auto;
}

.infos {
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.infos::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./Capture d’écran 2026-03-24 à 21.07.53.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.infos .split-content {
  position: relative;
  z-index: 2;
}

.place-card {
  padding: 22px;
  margin-bottom: 14px;
}

.faq-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.faq-item {
  padding: 18px;
}

.section.liste {
  margin: 52px 0 0;
}

.section + .section.liste {
  padding-top: 48px;
}

.liste {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(52vh, 28rem);
  padding: clamp(2rem, 5vh, 3.25rem) clamp(1rem, 3vw, 1.5rem);
  text-align: center;
}

.liste::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./Capture d’écran 2026-03-24 à 21.10.10.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.19;
  pointer-events: none;
  z-index: 0;
}

.liste .liste-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.liste .btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.confirmation {
  display: flex;
  justify-content: center;
}

.confirmation-card {
  max-width: 760px;
  padding: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5) !important;
}

.confirmation-card .mail-label {
  margin-top: 12px;
  font-weight: 600;
  color: #c86b3c;
}

.confirmation-card a {
  color: #865b46;
}

.confirmation-card .btn-terracotta {
  color: #ffffff;
}

.confirmation-card .btn.large {
  margin-top: 14px;
  padding-left: 24px;
  padding-right: 24px;
}

.questions {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}

.questions::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./photo8.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.questions-content {
  width: min(860px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.finale {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 20px;
}

/* Test visuel: centrage global des rubriques non deja centrees */
.ceremony-text,
.fete-left,
.hebergements .split-content,
.infos .split-content,
.questions-content {
  margin-left: auto;
  margin-right: auto;
}

.ceremony-text,
.fete-text,
.hebergements .split-content,
.infos .split-content,
.questions-content {
  text-align: center;
}

.signature {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  color: #c86b3c;
  margin-top: 26px;
}

@media (max-width: 1040px) {
  .hero {
    padding: clamp(1.75rem, 4vw, 2.5rem) max(1rem, env(safe-area-inset-right))
      clamp(1.25rem, 3vw, 1.75rem) max(1rem, env(safe-area-inset-left));
    min-height: 0;
  }

  .split {
    gap: 32px;
  }

  .hotel-grid {
    grid-template-columns: 1fr;
  }

  .hotel-grid.lodging-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lodging-bento .hotel-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .hebergements {
    padding-right: 230px;
  }

  .hebergements::after {
    background-size: cover;
    opacity: 0.2;
  }

  .liste::after {
    opacity: 0.18;
  }

  .programme {
    padding: 72px 0 64px;
  }

  .timeline-row {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  }

  .fete-shell {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .page {
    padding: 16px 16px 60px;
  }

  .section {
    margin: 38px 0;
  }

  .section.pause,
  .section.liste {
    margin: 28px 0 0;
  }

  .section + .section.pause,
  .section + .section.liste {
    padding-top: 22px;
  }

  .section + .section {
    padding-top: 28px;
  }

  .section + .section::before {
    content: none;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .ceremony {
    padding: 42px 0;
  }

  .ceremony::after {
    background-size: 82% auto;
    opacity: 0.16;
  }

  .ceremony-layout {
    flex-direction: column;
    gap: 18px;
  }

  .ceremony-side {
    max-width: 100%;
  }

  .ceremony-side .info-card {
    margin-top: 0;
  }

  .split-visual {
    order: -1;
  }

  .questions {
    padding: 42px 0;
  }

  .pause {
    min-height: min(42vh, 22rem);
    padding: clamp(1.5rem, 6vw, 2.25rem) clamp(0.75rem, 4vw, 1rem);
  }

  .liste {
    min-height: min(42vh, 22rem);
    padding: clamp(1.5rem, 6vw, 2.25rem) clamp(0.75rem, 4vw, 1rem);
  }

  .hebergements {
    padding-right: 0;
  }

  .hebergements::after {
    background-size: cover;
    opacity: 0.11;
  }

  .infos::after {
    background-size: cover;
    opacity: 0.12;
  }

  .questions::after {
    background-size: 80% auto;
    opacity: 0.14;
  }

  .liste::after {
    background-size: 72% auto;
    opacity: 0.13;
  }

  .programme {
    padding: 42px 0 36px;
  }

  .programme::after {
    background-size: 90% auto;
    opacity: 0.15;
  }

  .programme h2 {
    margin-bottom: 18px;
  }

  .programme-timeline::before {
    display: none;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .timeline-empty {
    display: none;
  }

  .timeline-badge {
    grid-column: auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.92rem;
    justify-self: start;
  }

  .timeline-row .timeline-card {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    text-align: left;
    justify-self: start;
    padding: 16px;
  }

  .timeline-row.is-left .timeline-card::after,
  .timeline-row.is-right .timeline-card::after {
    display: none;
  }

  .programme-note {
    text-align: left;
    margin-top: 16px;
  }

  .hotel-grid.lodging-bento {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lodging-bento .hotel-card:nth-child(5) {
    grid-column: auto;
  }

  .fete-subphotos {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fete-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fete-right img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .pause::after {
    background-size: 78% auto;
    background-position: center center;
    opacity: 0.15;
  }

  .hero {
    padding: clamp(1.5rem, 5vw, 2rem) max(0.75rem, env(safe-area-inset-right))
      clamp(1.25rem, 4vw, 1.75rem) max(0.75rem, env(safe-area-inset-left));
    text-align: center;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 4vw, 1.75rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  .hero-names-col {
    padding: 0;
  }

  .hero-couple {
    width: clamp(9rem, 52vw, 14rem);
    max-width: min(100%, 14rem);
  }

  .hero-name-primary {
    font-size: clamp(2.15rem, 9vw, 3.75rem);
  }

  .hero-name-amp {
    font-size: clamp(1.5rem, 5vw, 2.35rem);
  }

  .hero-intro p {
    font-size: clamp(0.92rem, 3.5vw + 0.45rem, 1.05rem);
    line-height: 1.65;
  }

  .confirmation-card {
    padding: 24px;
  }
}
