:root {
  --bg: #f6f9fe;
  --tint: #e3edfa;
  --navy: #12315e;
  --ink: #27374f;
  --sky: #a9cbf0;
  --accent: #2f6db5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--ink); font: 300 1.05rem/1.7 var(--sans); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
[hidden] { display: none !important; }

h1, h2, h3, .brand, .date { font-family: var(--serif); color: var(--navy); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(4rem, 11vw, 8.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.8rem; margin-bottom: .35rem; }
.eyebrow { font-size: .74rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.center { text-align: center; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1.25rem, 5vw, 4rem); transition: background .3s, box-shadow .3s; }
.nav.scrolled, .nav.open { background: rgba(246, 249, 254, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(18, 49, 94, .08); }
.brand { font-size: 1.7rem; font-style: italic; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 2.2rem; }
.nav nav a:not(.btn) { color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 400; padding: .3rem 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav nav a:not(.btn):hover, .nav nav a.active:not(.btn) { border-color: var(--accent); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--navy); margin: 7px auto; transition: transform .25s; }
.nav.open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* Boutons */
.btn { display: inline-block; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 100px; padding: .85rem 1.9rem; font: 500 .92rem var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 49, 94, .2); }
.btn-small { padding: .55rem 1.3rem; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-light { background: var(--bg); border-color: var(--bg); color: var(--navy); }
.btn-wide { width: 100%; padding: 1.05rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Accueil */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); max-width: 1240px; margin: 0 auto; padding: 6.5rem clamp(1.25rem, 5vw, 4rem) 4rem; }
.date { font-size: clamp(1.6rem, 3vw, 2.2rem); font-style: italic; margin: .5rem 0 1.5rem; }
.lead { max-width: 28rem; margin-bottom: 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.arch { justify-self: center; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; outline: 1px solid var(--accent); outline-offset: 14px; }

/* Sections */
.section { padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 4rem); }
.section-tint { background: var(--tint); }

.timeline { list-style: none; max-width: 760px; margin: 0 auto; }
.timeline li { display: grid; grid-template-columns: 11rem 1fr; }
.time { font: italic 500 1.5rem var(--serif); color: var(--accent); text-align: right; padding-right: 2.4rem; }
.timeline li > div { position: relative; border-left: 1px solid rgba(47, 109, 181, .4); padding: 0 0 3.5rem 2.6rem; }
.timeline li > div::before { content: ""; position: absolute; left: -6.5px; top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.timeline li:last-child > div { padding-bottom: 0; }
.tag { display: inline-block; margin-top: .9rem; background: var(--tint); border-radius: 18px; padding: .35rem 1rem; font-size: .85rem; font-weight: 400; }

.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 2.5rem; max-width: 1040px; margin: 0 auto; }
.card { background: var(--bg); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(18, 49, 94, .08); }
.card iframe { display: block; width: 100%; height: 260px; border: 0; }
.card-body { padding: 2rem; }
.links { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; margin-top: 1.2rem; }
.link { display: inline-block; color: var(--navy); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); }

/* Formulaire */
.form { max-width: 680px; margin: 0 auto; display: grid; gap: 1.6rem; }
#details { display: grid; gap: 1.6rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: end; }
label, legend { display: block; font-size: .88rem; font-weight: 500; color: var(--navy); }
fieldset { border: 0; }
legend { margin-bottom: .6rem; }
input:not([type="radio"]), textarea { display: block; width: 100%; margin-top: .45rem; background: #fff; border: 1px solid #c9d9ee; border-radius: 12px; padding: .85rem 1rem; font: 300 1rem var(--sans); color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--sky); border-color: var(--navy); }
textarea { resize: vertical; }
.invalid { border-color: #a3362c !important; }
.choices { display: flex; flex-wrap: wrap; gap: .8rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; background: #fff; border: 1px solid #c9d9ee; border-radius: 100px; padding: .7rem 1.5rem; font-weight: 400; transition: .2s; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.status { text-align: center; min-height: 1.7em; font-weight: 400; color: var(--navy); }

/* Cadeaux */
.section-dark { background: var(--navy); color: #dce8f8; }
.section-dark h2 { color: #fff; text-align: left; margin-bottom: 1.5rem; }
.section-dark strong { color: #fff; font-weight: 500; }
.section-dark p + p { margin-top: .8rem; }
.section-dark .btn { margin-top: 2rem; }
.split { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; max-width: 940px; margin: 0 auto; }
.round { aspect-ratio: 1; border-radius: 50%; overflow: hidden; outline: 1px solid var(--accent); outline-offset: 12px; }
.round img { object-position: center 40%; }

.mail { display: inline-block; margin-top: 1.5rem; font: italic 500 clamp(1.35rem, 5vw, 2.2rem) var(--serif); color: var(--navy); text-underline-offset: 6px; text-decoration-color: var(--accent); overflow-wrap: anywhere; }
footer { text-align: center; padding: 2.5rem 1rem; background: var(--tint); font: italic 1.2rem var(--serif); color: var(--navy); }

@media (max-width: 800px) {
  .burger { display: block; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 1.3rem; padding: 1.5rem 1.25rem 2rem; background: var(--bg); box-shadow: 0 20px 30px rgba(18, 49, 94, .1); }
  .nav.open nav { display: flex; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; }
  .arch { order: -1; max-width: 270px; }
  .lead { margin-inline: auto; }
  .actions { justify-content: center; }
  .row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; }
  .time { text-align: left; padding: 0 0 .4rem 1.6rem; border-left: 1px solid rgba(47, 109, 181, .4); }
  .timeline li > div { padding-left: 1.6rem; }
  .timeline li > div::before { top: -1.5rem; }
  .split { grid-template-columns: 1fr; text-align: center; }
  .round { width: min(260px, 80%); margin: 0 auto; }
  .section-dark h2 { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.section-dark .eyebrow { color: var(--sky); }
.section-dark .round { outline-color: var(--sky); }
