/* ============================================================================
   Omar & Jean-Luc — Feuille de style
   Palette douce, design éditorial inspiré des magazines de mariage haut de gamme.
   ============================================================================ */

:root {
  /* Palette douce */
  --ivoire:      #fbf8f3;
  --sable:       #f3ece1;
  --beige:       #ece1d2;
  --lin:         #e4d7c5;
  --champagne:   #e8d9c0;
  --rose-poudre: #ecd9d2;
  --vieux-rose:  #cda395;
  --terracotta:  #c98b6e;
  --taupe:       #b9a890;
  /* Accents */
  --eucalyptus:  #8a9a83;
  --olive:       #6e744f;
  --dore:        #b69963;
  /* Texte */
  --encre:       #4a4035;
  --encre-doux:  #7a6f60;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", -apple-system, "Segoe UI", sans-serif;
  --script:"Tangerine", cursive;

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

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

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

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--encre);
  background: var(--ivoire);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

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

::selection { background: var(--rose-poudre); color: var(--encre); }

/* ----------------------------- BOUTONS ----------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--encre);
  color: var(--encre);
  background: transparent;
  padding: 0.95em 2.4em;
  border-radius: 2px;
  transition: all 0.5s var(--ease);
}
.btn:hover { background: var(--encre); color: var(--ivoire); letter-spacing: 0.3em; }

.btn--hero { border-color: rgba(255,255,255,0.85); color: #fff; margin-top: 2.6rem; }
.btn--hero:hover { background: rgba(255,255,255,0.95); color: var(--encre); }

.btn--solid { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn--solid:hover { background: var(--encre); border-color: var(--encre); color: #fff; }

.btn--ghost { border-color: var(--taupe); color: var(--encre-doux); margin-top: 1.6rem; }

/* ----------------------------- NAVIGATION -------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease), padding 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(74,64,53,0.08);
  padding-top: 0.55rem; padding-bottom: 0.55rem;
}
.nav__brand {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0.05em; color: #fff; text-decoration: none;
  transition: color 0.6s var(--ease);
}
.nav.is-scrolled .nav__brand { color: var(--encre); }

.nav__links { display: flex; gap: clamp(0.8rem, 1.8vw, 1.9rem); }
.nav__links a {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; text-decoration: none; position: relative; padding: 0.2rem 0;
  transition: color 0.5s var(--ease), opacity 0.5s var(--ease);
  white-space: nowrap;
}
.nav.is-scrolled .nav__links a { color: var(--encre-doux); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--dore); transition: width 0.4s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--dore); }
.nav.is-scrolled .nav__links a.is-active { color: var(--olive); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 110; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: all 0.4s var(--ease); }
.nav.is-scrolled .nav__toggle span { background: var(--encre); }
.nav__toggle.is-open span { background: var(--encre); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------- HÉRO ------------------------------------ */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -8% 0 0 0; height: 116%;
  background-size: cover; background-position: center;
  will-change: transform; z-index: 0;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 52%, rgba(40,33,26,0.42) 0%, rgba(40,33,26,0) 70%),
    linear-gradient(180deg, rgba(40,33,26,0.46) 0%, rgba(40,33,26,0.30) 45%, rgba(40,33,26,0.52) 100%);
}
.hero__content { position: relative; z-index: 2; color: #fff; padding: 1.5rem; max-width: 900px; }
.hero__surtitle { font-size: 0.8rem; letter-spacing: 0.42em; text-transform: uppercase; margin-bottom: 1.4rem; opacity: 0.92; }
.hero__names { font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 500; letter-spacing: 0.02em; display: flex; align-items: center; justify-content: center; gap: 0.35em; flex-wrap: wrap; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero__amp { font-family: var(--script); font-size: 1.15em; font-weight: 700; color: var(--champagne); line-height: 0; }
.hero__date { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: 0.32em; text-transform: uppercase; margin-top: 1.2rem; }
.hero__place { font-size: 0.85rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.9; margin-top: 0.6rem; }

.countdown { display: flex; justify-content: center; gap: clamp(0.7rem, 2.4vw, 2.2rem); margin-top: 2.8rem; }
.countdown__item { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.countdown__num { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.7rem); font-weight: 500; line-height: 1; }
.countdown__label { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; margin-top: 0.5rem; }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 24px; height: 38px; border: 1px solid rgba(255,255,255,0.7); border-radius: 12px; }
.hero__scroll span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* ----------------------------- CITATION ---------------------------------- */
.quote { background: var(--sable); padding: clamp(4.5rem, 10vw, 8rem) 1.5rem; text-align: center; }
.quote__inner { max-width: 880px; margin: 0 auto; position: relative; }
.quote__mark { font-family: var(--serif); font-size: 6rem; color: var(--vieux-rose); opacity: 0.5; line-height: 0.4; display: block; height: 2.2rem; }
.quote__text { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.55; color: var(--encre); font-weight: 400; }

/* ----------------------------- SECTIONS ---------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 5vw, 3rem); }
.section__head { text-align: center; margin-bottom: clamp(2.8rem, 6vw, 4.5rem); }
.section__kicker { font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--vieux-rose); margin-bottom: 1rem; }
.section__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 500; }
.section__title::after { content: ""; display: block; width: 54px; height: 1px; background: var(--dore); margin: 1.3rem auto 0; }
.section__intro { max-width: 620px; margin: 1.6rem auto 0; color: var(--encre-doux); font-size: 1.05rem; }

/* --------------------------- NOTRE HISTOIRE ------------------------------ */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--lin), var(--vieux-rose), var(--lin)); transform: translateX(-50%); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.tl-item:nth-child(even) .tl-item__media { order: 2; }
.tl-item__media { position: relative; }
.tl-item__media img { width: 100%; height: 440px; object-fit: cover; border-radius: 3px; box-shadow: 0 24px 50px -24px rgba(74,64,53,0.45); }
.tl-item__text { padding: 0 0.5rem; }
.tl-item:nth-child(even) .tl-item__text { text-align: right; }
.tl-item__date { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--terracotta); }
.tl-item__title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0.6rem 0 0.9rem; }
.tl-item__txt { color: var(--encre-doux); }
.tl-item::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; background: var(--ivoire); border: 1px solid var(--dore); border-radius: 50%; transform: translate(-50%, -50%); }

/* ---------------------------- LE WEEK-END -------------------------------- */
.weekend__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.day { background: var(--ivoire); border: 1px solid var(--lin); border-radius: 4px; padding: clamp(1.8rem, 3.5vw, 3rem); }
.day__title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); text-align: center; }
.day__subtitle { text-align: center; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--vieux-rose); margin: 0.5rem 0 2rem; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--sable); }
.event:first-of-type { border-top: none; }
.event__time { font-family: var(--serif); font-size: 1.25rem; color: var(--olive); font-weight: 600; }
.event__name { font-family: var(--serif); font-size: 1.25rem; }
.event__detail { font-size: 0.92rem; color: var(--encre-doux); }

/* ----------------------------- LE CHÂTEAU -------------------------------- */
.chateau__layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.chateau__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.chateau__gallery img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: 3px; box-shadow: 0 16px 40px -22px rgba(74,64,53,0.5); }
.chateau__gallery img:first-child:nth-last-child(1) { grid-column: 1 / -1; }
.chateau__text p { color: var(--encre-doux); margin-bottom: 1.1rem; font-size: 1.08rem; }
.chateau__infos { list-style: none; margin-top: 1.8rem; }
.chateau__infos li { padding: 0.9rem 0; border-top: 1px solid var(--sable); }
.chateau__infos strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--encre); }
.chateau__infos span { color: var(--encre-doux); font-size: 0.95rem; }
.chateau__map { margin-top: clamp(2.5rem, 6vw, 4rem); border-radius: 4px; overflow: hidden; box-shadow: 0 20px 50px -28px rgba(74,64,53,0.5); }
.chateau__map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ------------------------------ GALERIE ---------------------------------- */
.galerie__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; background: none; border: 1px solid var(--lin); color: var(--encre-doux); padding: 0.55em 1.4em; border-radius: 50px; cursor: pointer; transition: all 0.4s var(--ease); }
.filter:hover { border-color: var(--vieux-rose); color: var(--encre); }
.filter.is-active { background: var(--vieux-rose); border-color: var(--vieux-rose); color: #fff; }
.galerie__grid { columns: 3; column-gap: 14px; }
.galerie__grid figure { break-inside: avoid; margin: 0 0 14px; overflow: hidden; border-radius: 3px; cursor: pointer; position: relative; }
.galerie__grid img { width: 100%; transition: transform 0.9s var(--ease); }
.galerie__grid figure::after { content: ""; position: absolute; inset: 0; background: rgba(74,64,53,0); transition: background 0.5s var(--ease); }
.galerie__grid figure:hover img { transform: scale(1.06); }
.galerie__grid figure:hover::after { background: rgba(74,64,53,0.12); }

/* ----------------------------- LIGHTBOX ---------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(33,28,23,0.92); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: 88vw; max-height: 84vh; border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); transform: scale(0.96); transition: transform 0.45s var(--ease); }
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close { position: absolute; top: 22px; right: 28px; background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: 0.8; transition: opacity 0.3s; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 3.5rem; cursor: pointer; opacity: 0.6; padding: 0 1rem; transition: opacity 0.3s; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 1vw; } .lightbox__next { right: 1vw; }

/* ------------------------------- FORMS ----------------------------------- */
.form { max-width: 720px; margin: 0 auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__field { margin-bottom: 1.3rem; display: flex; flex-direction: column; }
.form__field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--encre-doux); margin-bottom: 0.5rem; }
.form input, .form textarea { font-family: var(--sans); font-size: 1rem; color: var(--encre); background: var(--ivoire); border: 1px solid var(--lin); border-radius: 3px; padding: 0.85em 1em; transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--vieux-rose); box-shadow: 0 0 0 3px rgba(205,163,149,0.15); }
.form textarea { resize: vertical; }
.form__choices { display: flex; gap: 1rem; flex-wrap: wrap; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; border: 1px solid var(--lin); border-radius: 50px; padding: 0.7em 1.6em; font-size: 0.85rem; letter-spacing: 0.08em; transition: all 0.4s var(--ease); }
.choice input:checked + span { background: var(--rose-poudre); border-color: var(--vieux-rose); color: var(--encre); }
.form .btn { margin-top: 0.6rem; border: none; }
.form__status { margin-top: 1.2rem; font-size: 0.95rem; min-height: 1.2em; }
.form__status.is-error { color: var(--terracotta); }
.form__status.is-ok { color: var(--olive); }
.form__thanks { text-align: center; padding: 2.5rem 1rem; }
.form__thanks .heart { font-size: 2.4rem; color: var(--vieux-rose); }
.form__thanks p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; color: var(--encre); max-width: 560px; margin: 1rem auto 0; }
.is-hidden { display: none !important; }

/* --------------------------- CARTES (hébergements/parking) --------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.card { background: var(--ivoire); border: 1px solid var(--lin); border-radius: 4px; padding: 2rem; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -28px rgba(74,64,53,0.45); }
.card__tag { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--vieux-rose); }
.card__title { font-size: 1.45rem; margin: 0.6rem 0; }
.card__meta { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); margin-bottom: 0.8rem; }
.card__text { color: var(--encre-doux); font-size: 0.98rem; }
.card a.card__link { display: inline-block; margin-top: 1rem; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); text-decoration: none; border-bottom: 1px solid var(--olive); padding-bottom: 2px; }
.hebergements__note { text-align: center; margin-top: 2.5rem; font-style: italic; font-family: var(--serif); font-size: 1.2rem; color: var(--encre-doux); }

/* ----------------------------- CONTACT ----------------------------------- */
/* Champs obligatoires & menu déroulant */
.req { color: var(--terracotta); margin-left: 3px; }
.select-wrap { position: relative; }
.select-wrap::after { content: "\25BE"; position: absolute; right: 1.1em; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--encre-doux); font-size: 0.85rem; }
.form select { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--encre); background: var(--ivoire); border: 1px solid var(--lin); border-radius: 3px; padding: 0.85em 2.6em 0.85em 1em; appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.form select:focus { outline: none; border-color: var(--vieux-rose); box-shadow: 0 0 0 3px rgba(205,163,149,0.15); }

/* Hébergements : texte d'intro centré */
.heberg__details { max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.heberg__details p { color: var(--encre-doux); font-size: 1.08rem; margin-bottom: 0.6rem; }

/* Lien dans une intro de section */
.section__intro a { color: var(--olive); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color 0.3s; }
.section__intro a:hover { color: var(--encre); }

.contact { background: var(--sable); max-width: none; }
.contact__layout.contact__layout--single { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.contact__layout--single .contact__coords { max-width: 520px; }
.contact__layout--single .contact__coords h3 { font-size: 1.7rem; }
.contact > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.contact__layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__coords h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.contact__coords a { color: var(--olive); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact__coords a:hover { border-color: var(--olive); }
.contact__line { margin-bottom: 1.2rem; }
.contact__line span { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-doux); }

/* ----------------------------- PIED DE PAGE ------------------------------ */
.footer { background: var(--encre); color: var(--ivoire); text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem; }
.footer__script { font-family: var(--script); font-size: 2.6rem; color: var(--champagne); line-height: 1; }
.footer__names { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.1em; margin: 0.6rem 0; }
.footer__date { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8; }
.footer__credits { font-size: 0.72rem; letter-spacing: 0.1em; opacity: 0.5; margin-top: 2rem; }

/* ----------------------- ANIMATIONS AU DÉFILEMENT ------------------------ */
.reveal, [data-fade] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible, [data-fade].is-visible { opacity: 1; transform: none; }
[data-fade]:nth-child(2) { transition-delay: 0.1s; }
[data-fade]:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-fade] { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
}

/* ------------------------------ RESPONSIVE -------------------------------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100vh;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background: var(--ivoire); padding: 2rem; transform: translateX(100%);
    transition: transform 0.5s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a, .nav.is-scrolled .nav__links a { color: var(--encre); font-size: 0.95rem; }
  .nav__toggle { display: flex; }

  .timeline::before { left: 18px; }
  .tl-item { grid-template-columns: 1fr; gap: 1.2rem; padding-left: 44px; }
  .tl-item:nth-child(even) .tl-item__media { order: 0; }
  .tl-item:nth-child(even) .tl-item__text { text-align: left; }
  .tl-item::after { left: 18px; top: 220px; }
  .tl-item__media img { height: 300px; }

  .weekend__grid { grid-template-columns: 1fr; }
  .chateau__layout { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; }
  .galerie__grid { columns: 2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .form__row, .form__guests { grid-template-columns: 1fr; }
  .countdown { gap: 0.5rem; }
  .countdown__item { min-width: 40px; }
  .galerie__grid { columns: 1; }
  .tl-item::after { display: none; }
  .hero__amp { width: 100%; }
}
