@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Pinyon+Script&display=swap');

/* =========================================================
   Palette inspirée des photos
   Ivoire (drapés) · Bordeaux (robe, rouge à lèvres)
   Espresso (velours noir, costumes) · Champagne (or doux)
   Sauge (robe verte)
   ========================================================= */
:root {
  --ivory: #FAF6EF;
  --cream: #F4ECDF;
  --sand: #EADFCD;
  --border: #E2D4BF;

  --burgundy: #7A2234;
  --burgundy-dark: #5C1626;
  --espresso: #2A211E;
  --text: #3B312C;
  --muted: #7D6E63;
  --gold: #B08D57;
  --gold-light: #D6BC8C;
  --sage: #8E9B82;

  /* Alias conservés pour les styles en ligne existants */
  --orange: var(--burgundy);
  --orange-dark: var(--burgundy-dark);
  --brown: var(--espresso);
  --green: var(--gold);

  --radius: 1.25rem;
  --shadow-sm: 0 2px 10px rgba(42, 33, 30, .05);
  --shadow: 0 18px 40px -18px rgba(42, 33, 30, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse at top left, rgba(214, 188, 140, .12), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(122, 34, 52, .05), transparent 60%);
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--burgundy); color: var(--ivory); }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 500; }

.font-display { font-family: 'Playfair Display', serif; }
.font-accent { font-family: 'Cormorant Garamond', serif; }
.font-script { font-family: 'Pinyon Script', cursive; font-weight: 400; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 720px; }
.section { padding: 4.5rem 1.5rem; }
.center { text-align: center; }

.uppercase-label {
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* Ornement : ligne dorée + losange */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: .9rem; color: var(--gold); margin: 0 auto 1.75rem;
}
.ornament::before, .ornament::after {
  content: ''; width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 14px; height: 14px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 246, 239, .85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(176, 141, 87, .25);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--espresso);
  letter-spacing: .04em;
}
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  position: relative;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .3s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--burgundy); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--burgundy);
  color: var(--ivory) !important;
  padding: .6rem 1.3rem;
  border-radius: 999px;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-cta:hover { background: var(--burgundy-dark); box-shadow: 0 6px 18px -6px rgba(122, 34, 52, .6); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--espresso); margin: 6px 0; transition: .3s;
}
#nav-check { display: none; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column-reverse;
  min-height: 100vh;
  padding-top: 4.5rem;
}
.hero-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
}
.hero-text-inner { max-width: 500px; }
.hero-image {
  flex: 1;
  position: relative;
  min-height: 60vh;
  padding: 1.5rem 1.5rem 0;
}
.hero-image .arch {
  position: relative;
  height: 100%;
  min-height: 60vh;
  max-width: 520px;
  margin: 0 auto;
}
.hero-image .arch::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 1.5rem 1.5rem;
  opacity: .7;
  pointer-events: none;
}
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 999px 999px 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: stretch; }
  .hero-image { padding: 3rem 4rem 3rem 1rem; min-height: calc(100vh - 4.5rem); }
  .hero-image .arch { min-height: 0; height: calc(100vh - 10.5rem); }
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--muted);
  margin-bottom: .25rem;
}
.hero .names {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(2.6rem, 11vw, 5.6rem);
  line-height: 1.1;
  color: var(--burgundy);
  margin-bottom: 1.25rem;
}
.hero .place {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.hero .date {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--espresso);
  margin-bottom: 2.25rem;
}
.orange-dot {
  width: 56px; height: 1px;
  background: var(--gold); margin: 0 auto 1.5rem;
}

/* ---------- Countdown ---------- */
.countdown {
  display: inline-flex;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.countdown .unit {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 1.4rem;
  min-width: 4.8rem;
}
.countdown .unit + .unit { border-left: 1px solid var(--border); }
.countdown .num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  color: var(--espresso);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown .lbl {
  font-size: .62rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-top: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--burgundy);
  color: var(--ivory);
  padding: 1rem 2.1rem;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(122, 34, 52, .7);
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(122, 34, 52, .8);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  box-shadow: none;
}
.btn-outline:hover { background: var(--burgundy); color: var(--ivory); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--burgundy); font-weight: 700; font-size: .9rem;
  border-bottom: 1px solid rgba(176, 141, 87, .5);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.link-arrow:hover { color: var(--burgundy-dark); border-color: var(--burgundy); }

/* ---------- Page headers ---------- */
.page { padding-top: 5rem; min-height: 100vh; }
.page-head { text-align: center; padding: 4.5rem 1.5rem 2rem; }
.page-head h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  color: var(--espresso);
  letter-spacing: .01em;
  margin-bottom: .75rem;
}
.page-head h1::after {
  content: '\25C6';
  display: block;
  width: 120px;
  margin: 1.1rem auto 0;
  font-size: .75rem;
  line-height: 14px;
  color: var(--gold);
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 48px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 48px 1px no-repeat;
}
.page-head p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.cream { background: rgba(255, 255, 255, .7); }
.card.cream::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(176, 141, 87, .22);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--espresso);
  margin-bottom: .75rem;
}
.card .muted { color: var(--muted); font-size: .92rem; }
.icon-circle {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--cream);
  border: 1px solid rgba(176, 141, 87, .35);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--burgundy);
}
.ic {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.tl-icon { color: var(--burgundy); }
.tl-icon .ic { width: 26px; height: 26px; }
.note-box .ic { width: 18px; height: 18px; }
.upload .ic { width: 28px; height: 28px; margin: 0 auto .5rem; color: var(--gold); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--espresso);
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title::after {
  content: '';
  display: block; width: 48px; height: 1px;
  background: var(--gold); margin: 1rem auto 0;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 34px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}
.tl-item { text-align: center; position: relative; }
.tl-icon {
  width: 68px; height: 68px;
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--ivory);
  transition: background .3s, color .3s;
}
.tl-item:hover .tl-icon { background: var(--burgundy); color: var(--ivory); border-color: var(--burgundy); }
.tl-icon img { width: 32px; height: 32px; object-fit: contain; }
.tl-time { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--burgundy); }
.tl-title { color: var(--espresso); font-weight: 700; font-size: .95rem; margin: .3rem 0; }
.tl-desc { color: var(--muted); font-size: .88rem; }

/* ---------- Dress code / info banner ---------- */
.banner {
  position: relative;
  background: var(--espresso);
  background-image: radial-gradient(ellipse at top, rgba(122, 34, 52, .45), transparent 70%);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.banner::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid rgba(214, 188, 140, .4);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.banner h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.banner p { color: rgba(244, 236, 223, .88); margin-bottom: .5rem; }

/* ---------- Image grid ---------- */
.img-grid { display: grid; gap: 1.25rem; }
.img-grid.two { grid-template-columns: 1fr 1fr; }
.img-grid img {
  width: 100%; height: 30rem; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.img-grid img:nth-child(2) { margin-top: 3rem; }
.img-grid img:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* Galerie en mosaïque (respecte le format portrait des photos) */
.gallery {
  columns: 3 280px;
  column-gap: 1.25rem;
}
.gallery img {
  width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
  break-inside: avoid;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  filter: saturate(.95);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), filter .6s var(--ease);
}
.gallery img:hover { transform: translateY(-6px); box-shadow: var(--shadow); filter: saturate(1.05); }

/* ---------- Hotels ---------- */
.hotel-list { display: grid; gap: 1rem; }
.hotel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem;
  align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.hotel:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.hotel .name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--espresso); }
.hotel .addr { color: var(--muted); font-size: .9rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.offer {
  background: rgba(142, 155, 130, .15); color: #5E6B55;
  border-radius: .75rem; padding: .55rem 1rem; font-size: .82rem; text-align: right;
}
.offer .code { font-weight: 700; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.4rem; text-align: left; }
.field { display: grid; gap: .45rem; }
.field label {
  color: var(--espresso); font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.field .opt { color: var(--muted); font-size: .72rem; letter-spacing: 0; text-transform: none; }
.field input, .field textarea {
  font-family: 'Lato', sans-serif;
  padding: .9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(176, 141, 87, .15);
}
.upload {
  border: 1px dashed var(--gold); border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
  padding: 2rem; text-align: center; color: var(--muted); cursor: pointer;
  transition: background .3s;
}
.upload:hover { background: #fff; }
.note-box {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(122, 34, 52, .08); color: var(--burgundy);
  padding: .65rem 1.2rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--espresso);
  background-image: radial-gradient(ellipse at top, rgba(122, 34, 52, .35), transparent 70%);
  color: var(--cream);
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
  border-top: 1px solid rgba(176, 141, 87, .35);
}
.footer .fnames {
  font-family: 'Pinyon Script', cursive;
  font-size: 2.8rem;
  color: var(--gold-light);
  margin-bottom: .5rem;
  line-height: 1.2;
}
.footer .fdate {
  font-size: .74rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(244, 236, 223, .75);
}

/* ---------- Animations ---------- */
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(14px); animation: fadeIn .9s var(--ease) forwards; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; opacity: 1; transform: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 0; max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  #nav-check:checked ~ .nav-links { max-height: 520px; padding: .5rem 0; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .95rem 1.5rem; width: 100%; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { border-radius: 0; }
  .cards-3, .cards-2, .timeline, .img-grid.two { grid-template-columns: 1fr; }
  .timeline { gap: 2rem; }
  .timeline::before { display: none; }
  .img-grid img { height: 26rem; }
  .img-grid img:nth-child(2) { margin-top: 0; }
  .countdown .unit { padding: 0 .7rem; min-width: 0; }
  .countdown .lbl { letter-spacing: .12em; font-size: .58rem; }
  .hero-text { padding: 2.5rem 1rem 3.5rem; }
  .hero-image { padding: 1.5rem 1.25rem 0; }
  .section { padding: 3.5rem 1.25rem; }
}

/* ---------- RSVP : choix seul / couple ---------- */
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend {
  color: var(--espresso); font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: .45rem; padding: 0;
}
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem; border: 1px solid var(--border); border-radius: .75rem;
  background: #fff; color: var(--text); font-size: .95rem;
  transition: border-color .3s, background .3s, color .3s, box-shadow .3s;
}
.choice span .ic { width: 20px; height: 20px; color: var(--gold); }
.choice:hover span { border-color: var(--gold); }
.choice input:checked + span {
  border-color: var(--burgundy); background: rgba(122, 34, 52, .06);
  color: var(--burgundy); box-shadow: 0 0 0 3px rgba(122, 34, 52, .1);
}
.choice input:checked + span .ic { color: var(--burgundy); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.guest-group { display: grid; gap: 1.4rem; }
.guest-group[hidden] { display: none; }
.field label.choice, .field label.upload { text-transform: none; letter-spacing: normal; font-size: .95rem; }
.field label.upload .opt { font-size: .8rem; }
.field .hint {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.05rem; line-height: 1.4; color: var(--muted); margin-top: -.15rem;
}
