:root {
  --fond: #fbf6ef;
  --rouge: #7a0d24;
  --or: #b8873b;
  --noir: #1a1512;
  --gris: #8a7d6e;
  --clair: #fbf6ef;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--noir);
  font-family: 'Nunito', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

h1, h2 { font-family: 'Cormorant Garamond', serif; margin: 0; }
a { color: var(--rouge); }
a:hover { color: var(--or); }
input, textarea { font-family: 'Nunito', sans-serif; }
input:focus, textarea:focus { outline: none; border-color: var(--or) !important; }

.wrap { max-width: 1000px; margin: 0 auto; }
.wrap-narrow { max-width: 600px; margin: 0 auto; }

.eyebrow {
  letter-spacing: 0.3em;
  font-size: 11px;
  color: var(--rouge);
  font-weight: 700;
  text-transform: uppercase;
}

.section { padding: 110px 48px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: var(--fond);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
}

.kicker {
  letter-spacing: 0.35em;
  font-size: 12px;
  color: var(--rouge);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-weight: 700;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.hero-copy h1 em { font-style: italic; font-weight: 500; color: var(--rouge); }

.hero-meta {
  margin-top: 32px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: #4a4038;
}

.hero-pill {
  margin-top: 24px;
  display: inline-flex;
  width: fit-content;
  padding: 9px 20px;
  border: 1px solid var(--or);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rouge);
  text-transform: uppercase;
}

.countdown { display: flex; gap: 28px; margin-top: 56px; flex-wrap: wrap; }
.cd-num { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 700; }
.cd-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gris); margin-top: 2px; }

.hero-visual {
  position: relative;
  min-height: 360px;
  background: var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

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

@media (max-width: 860px) {
  .hero-visual {
    display: none;
  }
}
/* ---------- Infos pratiques ---------- */
.infos-pratiques { background: var(--noir); color: var(--clair); }

.infos-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }

.infos-grid h2 { font-style: italic; font-weight: 600; font-size: clamp(34px, 4vw, 48px); margin-top: 14px; line-height: 1.05; }

.infos-details { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }

.info-item { border-top: 1px solid rgba(184,135,59,0.4); padding-top: 16px; }
.info-item--wide { grid-column: span 2; }
.info-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--or); margin-bottom: 8px; }
.info-value { font-size: 20px; font-family: 'Cormorant Garamond', serif; }
.link-gold { font-size: 13px; color: var(--or); text-decoration: underline; display: inline-block; margin-top: 8px; }

.discretion-note {
  margin-top: 56px;
  padding: 22px 26px;
  border: 1px solid rgba(184,135,59,0.35);
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(251,246,239,0.85);
  max-width: 600px;
}

/* ---------- Galerie ---------- */
.galerie h2 { font-style: italic; font-weight: 600; font-size: clamp(34px, 4vw, 48px); margin: 12px 0 40px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  grid-auto-rows: 206px;
  gap: 8px;
}

.gallery-grid > div:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid > div { overflow: hidden; }

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.gallery-grid img:hover { filter: grayscale(0%); transform: scale(1.02); }

/* ---------- Cadeau commun ---------- */
.cadeau { background: #f1e6d3; }
.cadeau-head { text-align: center; margin-bottom: 56px; }
.cadeau-head h2 { font-style: italic; font-weight: 600; font-size: clamp(34px, 4vw, 48px); margin: 12px 0 0; }
.cadeau-head p { font-size: 16px; color: #4a4038; margin-top: 16px; max-width: 560px; margin: 16px auto 0; line-height: 1.7; }

.cadeau-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--noir); max-width: 1000px; margin: 0 auto; }
.cadeau-item { background: #f1e6d3; padding: 32px; min-width: 0; }
.cadeau-photo { height: 260px; width: 100%; margin-bottom: 20px; overflow: hidden; }
.cadeau-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: filter 0.5s ease; }
.cadeau-item:hover .cadeau-photo img { filter: grayscale(0%); }
.cadeau-caption { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-style: italic; }

/* ---------- Cagnotte ---------- */
.cagnotte { background: var(--noir); color: var(--clair); }
.cagnotte h2 { font-style: italic; font-weight: 600; font-size: clamp(34px, 4vw, 48px); margin: 12px 0 40px; text-align: center; }
.cagnotte .eyebrow { text-align: center; display: block; }

.jauge-wrap { margin-bottom: 44px; text-align: center; }
.jauge-total { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 44px; color: var(--or); }
.jauge-sub { font-size: 13px; color: rgba(251,246,239,0.75); margin-top: 4px; letter-spacing: 0.05em; }
.jauge-track { height: 2px; background: rgba(251,246,239,0.15); margin-top: 14px; }
.jauge-fill { height: 100%; background: var(--or); transition: width 0.6s ease; }

.rib-box {
  border: 1px solid rgba(184,135,59,0.35);
  padding: 20px 24px;
  margin-bottom: 36px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(251,246,239,0.85);
}

.rib-label { font-weight: 700; color: var(--or); margin-bottom: 6px; }

/* ---------- Formulaires ---------- */
.form-dark, .form-light { display: flex; flex-direction: column; gap: 18px; }

.form-dark label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251,246,239,0.6); }
.form-dark input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(251,246,239,0.3);
  color: var(--clair);
  font-size: 16px;
  padding: 10px 0;
  margin-top: 4px;
}

.form-dark button {
  margin-top: 8px;
  background: var(--rouge);
  color: var(--clair);
  border: none;
  padding: 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.form-dark button:hover { background: #93132c; }

.rsvp { background: var(--fond); }
.rsvp h2 { font-style: italic; font-weight: 600; font-size: clamp(34px, 4vw, 48px); margin: 12px 0 40px; text-align: center; }
.rsvp .eyebrow { text-align: center; display: block; }

.form-light label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.form-light input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d8cbb8;
  font-size: 16px;
  padding: 10px 0;
  margin-top: 4px;
}
.form-light textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d8cbb8;
  font-size: 15px;
  padding: 10px;
  margin-top: 4px;
  resize: vertical;
  font-family: inherit;
}

.form-light button {
  margin-top: 8px;
  background: var(--noir);
  color: var(--clair);
  border: none;
  padding: 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.presence-toggle { display: flex; gap: 12px; margin-top: 8px; }
.form-light .presence-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--noir);
  background: transparent;
  color: var(--noir);
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.form-light .presence-btn.active { background: var(--noir); color: var(--clair); }

.form-status { font-size: 13px; color: var(--or); text-align: center; min-height: 1.2em; }
.form-status--dark { color: var(--rouge); }

/* ---------- Footer ---------- */
.footer {
  background: var(--noir);
  color: rgba(251,246,239,0.4);
  text-align: center;
  padding: 32px 24px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section { padding: 64px 24px; }
  .hero { grid-template-columns: minmax(0,1fr); min-height: auto; }
  .hero-copy { padding: 56px 24px 40px; }
  .hero-visual { display: none; }
  .countdown { gap: 16px; flex-wrap: wrap; }
  .infos-grid { grid-template-columns: 1fr; gap: 28px; }
  .infos-details { grid-template-columns: minmax(0,1fr); }
  .info-item--wide { grid-column: span 1; }
  .gallery-grid { display: flex; flex-direction: column; gap: 12px; }
  .gallery-grid > div { width: 100%; height: 240px; grid-column: auto; grid-row: auto; }
  .cadeau-grid { grid-template-columns: minmax(0,1fr); }
  .cadeau-item { text-align: center; }
}
