/* =========================================================
   Hadia & Loris — Fiançailles
   Palette inspirée du moodboard : crème, or, terracotta, vert
   ========================================================= */

:root {
  --cream:        #FBF1E3;
  --cream-deep:   #F4E6D2;
  --cream-card:   #FCF6EC;
  --gold:         #BF9B54;
  --gold-light:   #D8BC81;
  --gold-deep:    #9C7C3A;
  --terracotta:   #C7642C;
  --terracotta-d: #A84E20;
  --green:        #2F4A38;
  --ink:          #2C2A22;
  --muted:        #6E6452;

  --serif-display: 'Cinzel', serif;
  --serif-text: 'Cormorant Garamond', Georgia, serif;

  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--serif-text);
  color: var(--ink);
  background: var(--cream);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px clamp(20px, 5vw, 56px);
  /* Toujours visible, sans fondu : fond crème permanent */
  background: rgba(251, 241, 227, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(191, 155, 84, 0.30);
}
.nav__brand {
  font-family: var(--serif-display);
  font-size: 1.4rem; letter-spacing: .12em;
  color: var(--ink); text-decoration: none;
}
.nav__brand .amp, .nav__brand { color: var(--ink); }
.nav__links { list-style: none; display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav__links a {
  font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; transition: color .25s;
}
.nav__links a:hover { color: var(--terracotta); }
.nav__cta {
  border: 1px solid var(--gold);
  padding: 7px 18px; border-radius: 2px;
  color: var(--gold-deep) !important;
}
.nav__cta:hover { background: var(--gold); color: #fff !important; }
.nav__right { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.nav__lang { display: flex; align-items: center; gap: 7px; }
.nav__lang-sep { color: var(--gold); opacity: .6; }
.lang-btn {
  background: none; border: none; cursor: pointer; padding: 2px 2px;
  font-family: var(--serif-display); font-size: .9rem; letter-spacing: .1em;
  color: var(--muted); transition: color .25s;
}
.lang-btn:hover { color: var(--terracotta); }
.lang-btn.is-active { color: var(--terracotta); border-bottom: 1.5px solid var(--gold); }

/* =========================================================
   ARCHE ORIENTALE (cadre doré multifoil)
   ========================================================= */
.arch {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
}
.arch__inner {
  position: relative;
  background: var(--cream);
  border: 1.5px solid var(--gold);
  border-radius: 48% 48% 8px 8px / 26% 26% 8px 8px;
  padding: clamp(40px, 7vw, 76px) clamp(26px, 5vw, 54px) clamp(36px, 6vw, 56px);
  text-align: center;
  box-shadow: 0 26px 60px rgba(28, 20, 10, .38);
}
.arch__inner::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1px solid var(--gold-light);
  border-radius: 46% 46% 6px 6px / 24% 24% 6px 6px;
  pointer-events: none;
}

/* =========================================================
   HERO / ACCUEIL
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px 20px 60px;
  background:
    linear-gradient(rgba(22, 30, 18, .52), rgba(18, 24, 14, .58)),
    url('assets/pattern.jpg') center / cover no-repeat;
}
.hero__ornament { position: absolute; opacity: .9; pointer-events: none; }
.hero__ornament--top { top: 64px; width: clamp(90px, 16vw, 150px); }
.hero__ornament img { filter: drop-shadow(0 6px 14px rgba(166,98,40,.18)); }

.hero__eyebrow {
  font-style: italic; color: var(--muted);
  font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 6px;
}
.hero__occasion {
  font-family: var(--serif-display);
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--terracotta); font-size: 1.05rem; margin-bottom: 18px;
}
.hero__names {
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 1.04;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: .04em;
  color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hero__names .amp { color: var(--terracotta); font-size: .62em; margin: 2px 0; }

.hero__rule { color: var(--gold); font-size: 1.1rem; margin: 22px 0; }

.hero__details {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 34px;
}
.hero__details li { display: flex; justify-content: center; gap: 12px; font-size: 1.18rem; }
.hero__details .label {
  font-family: var(--serif-display); font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
  align-self: center; min-width: 60px; text-align: right;
}
.hero__details .value { color: var(--ink); }

.hero__scroll {
  margin-top: 38px; color: var(--gold-light); font-style: italic;
  letter-spacing: .05em; animation: float 2.4s ease-in-out infinite;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(7px);} }

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--serif-display);
  font-size: .9rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: none;
  transition: transform .25s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn--hero {
  background: var(--terracotta); color: #fff7ef;
  padding: 15px 38px; border-radius: 2px;
  box-shadow: 0 8px 22px rgba(167, 78, 32, .26);
}
.btn--hero:hover { background: var(--terracotta-d); transform: translateY(-2px); }
.btn--submit {
  background: var(--gold-deep); color: #fff7ef;
  padding: 15px 30px; border-radius: 2px; width: 100%; margin-top: 8px;
}
.btn--submit:hover { background: var(--terracotta); transform: translateY(-2px); }
.btn--submit:disabled { opacity: .6; cursor: progress; transform: none; }

/* =========================================================
   BANDEAU DÉCORATIF (motif sombre)
   ========================================================= */
.band {
  height: clamp(70px, 11vw, 110px);
  /* Position verticale calée sur le cœur des fleurs */
  background: url('assets/pattern.jpg') center 79% / cover no-repeat;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  box-shadow: inset 0 0 0 4px rgba(251, 241, 227, .35);
}

/* =========================================================
   MOT D'ACCUEIL
   ========================================================= */
.words { padding: clamp(72px, 12vw, 130px) 20px; text-align: center; }
.words__inner { max-width: 660px; margin: 0 auto; }
.motif { color: var(--gold); font-size: 1.4rem; display: block; margin-bottom: 26px; }
.words__poem {
  font-style: italic; font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.5; color: var(--green); margin-bottom: 30px;
}
.words__text { font-size: 1.2rem; color: var(--muted); }

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head__eyebrow {
  font-style: italic; color: var(--terracotta); font-size: 1.1rem; margin-bottom: 6px;
}
.section-head__title {
  font-family: var(--serif-display); font-weight: 500;
  font-size: clamp(2rem, 6vw, 3rem); letter-spacing: .05em; color: var(--ink);
}
.section-head__motif { display: block; color: var(--gold); margin-top: 14px; font-size: 1.2rem; }
.section-head--light .section-head__eyebrow { color: var(--gold-light); }
.section-head--light .section-head__title { color: var(--ink); }

/* =========================================================
   PROGRAMME / TIMELINE
   ========================================================= */
.programme {
  padding: clamp(72px, 11vw, 130px) 20px;
  background:
    linear-gradient(var(--cream-deep), var(--cream-deep)) ,
    var(--cream);
}
.timeline {
  list-style: none; max-width: 640px; margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(var(--gold-light), var(--gold), var(--gold-light));
}
.timeline__item {
  position: relative; display: grid; grid-template-columns: 92px 1fr;
  gap: 28px; padding: 18px 0;
}
.timeline__item::before {
  content: "\2766"; position: absolute; left: 92px; top: 22px;
  transform: translate(-50%, -50%); color: var(--terracotta);
  background: var(--cream-deep); font-size: 1.1rem; line-height: 1; padding: 4px 0;
}
.timeline__time {
  font-family: var(--serif-display); font-size: 1.15rem; color: var(--gold-deep);
  text-align: right; padding-top: 2px; padding-right: 16px; letter-spacing: .04em;
}
.timeline__body { padding-left: 24px; }
.timeline__body h3 {
  font-family: var(--serif-text); font-weight: 600; font-size: 1.6rem;
  color: var(--green); line-height: 1.2; margin-bottom: 2px;
}
.timeline__body p { color: var(--muted); font-size: 1.1rem; }

/* =========================================================
   À TUNIS / CARTES
   ========================================================= */
.tunis { padding: clamp(72px, 11vw, 130px) 20px; max-width: var(--maxw); margin: 0 auto; }
.tunis__group { margin-bottom: clamp(48px, 7vw, 80px); }
.tunis__group:last-child { margin-bottom: 0; }
.tunis__subtitle {
  font-family: var(--serif-display); font-weight: 500;
  text-align: center; font-size: 1.4rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 36px;
}
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--cream-card);
  border: 1px solid rgba(191, 155, 84, .35);
  border-radius: 4px 4px 4px 4px;
  padding: 30px 28px;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: "\2766"; position: absolute; top: 16px; right: 18px;
  color: var(--gold-light); font-size: .95rem;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(156, 124, 58, .15);
  border-color: var(--gold);
}
.card h4 {
  font-family: var(--serif-display); font-weight: 500; font-size: 1.28rem;
  color: var(--green); letter-spacing: .03em; margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 1.08rem; line-height: 1.55; }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp {
  padding: clamp(72px, 11vw, 130px) 20px;
  background:
    linear-gradient(rgba(22, 30, 18, .52), rgba(18, 24, 14, .58)),
    url('assets/pattern.jpg') center / cover no-repeat;
}
.arch--rsvp { max-width: 660px; }
.form { text-align: left; margin-top: 8px; }
.field { margin-bottom: 22px; }
.field label, .field legend {
  display: block; font-family: var(--serif-display); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--serif-text); font-size: 1.12rem; color: var(--ink);
  background: var(--cream-card);
  border: 1px solid rgba(191,155,84,.5); border-radius: 3px;
  padding: 12px 14px; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(199, 100, 44, .12);
}
.field textarea { resize: vertical; }
.field--choice legend { margin-bottom: 12px; }
.choice { display: flex; flex-wrap: wrap; gap: 12px; }
.choice__opt {
  flex: 1 1 180px; display: flex; align-items: center; gap: 10px;
  background: var(--cream-card); border: 1px solid rgba(191,155,84,.5);
  border-radius: 3px; padding: 13px 16px; cursor: pointer;
  font-size: 1.1rem; color: var(--ink);
  text-transform: none; letter-spacing: 0; font-family: var(--serif-text);
  transition: border-color .25s, background .25s;
}
.choice__opt:hover { border-color: var(--gold); }
.choice__opt input { width: auto; accent-color: var(--terracotta); }
.choice__opt:has(input:checked) { border-color: var(--terracotta); background: #fbeede; }

.form__status { margin-top: 16px; text-align: center; font-size: 1.1rem; min-height: 1.2em; }
.form__status.is-error { color: var(--terracotta-d); }
.form__status.is-ok { color: var(--green); font-style: italic; font-size: 1.25rem; }

/* =========================================================
   LE DOMAINE TARENTI + CARTE
   ========================================================= */
.domaine {
  padding: clamp(72px, 11vw, 130px) 20px;
  max-width: var(--maxw); margin: 0 auto;
}
.domaine__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.domaine__text p { color: var(--muted); font-size: 1.18rem; margin-bottom: 20px; }
.domaine__text p:first-child::first-letter {
  font-family: var(--serif-display); font-size: 2.4em; line-height: .8;
  float: left; color: var(--terracotta); padding: 6px 10px 0 0;
}
.btn--ghost {
  border: 1px solid var(--gold); color: var(--gold-deep);
  padding: 13px 30px; border-radius: 2px; background: transparent;
  margin-top: 4px;
}
.btn--ghost:hover { background: var(--gold); color: #fff7ef; transform: translateY(-2px); }
.domaine__map {
  position: relative; border: 2px solid var(--gold); border-radius: 6px;
  padding: 6px; background: var(--cream-card);
  box-shadow: 0 16px 38px rgba(156, 124, 58, .18);
}
.domaine__map iframe {
  display: block; width: 100%; height: clamp(300px, 42vw, 420px);
  border: 0; border-radius: 3px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  text-align: center; padding: clamp(54px, 8vw, 84px) 20px clamp(40px, 6vw, 60px);
  background: var(--cream-deep);
}
.footer__monogram { width: 168px; margin: 0 auto 10px; }
.footer__names {
  font-family: var(--serif-display); font-size: 1.5rem; letter-spacing: .1em; color: var(--ink);
}
.footer__date { color: var(--muted); margin: 8px 0 18px; letter-spacing: .02em; }
.footer__love { font-style: italic; color: var(--terracotta); font-size: 1.2rem; }
/* Mots cliquables fondus dans le texte (aucune indication visuelle de lien) */
.footer__plain { color: inherit; text-decoration: none; cursor: text; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px) {
  body { font-size: 18px; }
  .nav__brand { font-size: 1.2rem; }
  /* Arche mobile : dôme à rayon vertical fixe (plus rond, non étiré) + plus
     d'espace en haut pour que le texte ne déborde pas de la courbe. */
  .arch__inner {
    border-radius: 46% 46% 6px 6px / 120px 120px 6px 6px;
    padding-top: 128px;
    padding-left: 32px; padding-right: 32px;
  }
  .arch__inner::before {
    border-radius: 44% 44% 5px 5px / 114px 114px 5px 5px;
  }
  .hero__eyebrow { font-size: 0.9rem; }
  .timeline::before { left: 70px; }
  .timeline__item { grid-template-columns: 70px 1fr; gap: 16px; }
  .timeline__item::before { left: 70px; }
  .timeline__body { padding-left: 16px; }
  .hero__details li { flex-direction: column; gap: 0; }
  .hero__details .label { text-align: center; min-width: 0; }
}
@media (max-width: 760px) {
  .domaine__inner { grid-template-columns: 1fr; }
  .domaine__text { text-align: center; }
  .domaine__text p:first-child::first-letter { float: none; padding: 0; font-size: 1em; color: inherit; }
}
@media (max-width: 420px) {
  .nav__links { gap: 14px; }
  .nav__links li:not(:last-child) { display: none; }
}
