/* =========================================================
   FLEUR DE PLAISIR — Occasions (/occasions)
   Une page éditoriale : choisir le moment, puis le bouquet.
   ========================================================= */

/* ---------- En-tête ---------- */
.ohero {
  position: relative; overflow: hidden; padding: var(--s-6) 0 var(--s-8);
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(235,207,203,.6) 0%, rgba(235,207,203,0) 62%),
    radial-gradient(55% 80% at 0% 100%, rgba(201,163,92,.12) 0%, rgba(201,163,92,0) 60%),
    var(--bg);
}
.ohero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-or) 30%, var(--c-or) 70%, transparent); opacity: .5; }
.ohero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.ohero .crumbs { margin-bottom: var(--s-4); }
.ohero h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-4xl); line-height: var(--lh-tight);
  margin: var(--s-3) 0 var(--s-4); text-wrap: balance; }
.ohero h1 em { font-style: italic; color: var(--c-pivoine); }
.ohero__lede { font-size: var(--t-lg); color: var(--text-mute); max-width: 54ch; margin: 0 0 var(--s-5); }
.ojump { display: flex; flex-wrap: wrap; gap: .45rem; }
.ojump a {
  padding: .5rem .95rem; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--bg-raise);
  font-size: var(--t-sm); color: var(--text); transition: border-color var(--d-fast), background var(--d-fast), color var(--d-fast);
}
.ojump a:hover { border-color: var(--c-or); color: var(--gold-ink); }

.ohero__art { position: relative; height: 470px; }
.ohero__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ohero__a1, .ohero__a2 { position: absolute; overflow: hidden; border-radius: var(--r-arch); box-shadow: var(--sh-2); }
.ohero__a1 { right: 0; top: 0; width: 66%; height: 100%; }
.ohero__a1::after { content: ""; position: absolute; inset: 8px; border-radius: inherit; border: 1px solid rgba(251,247,240,.6); }
.ohero__a2 { left: 0; bottom: 6%; width: 42%; height: 62%; border: 6px solid var(--bg); }
.ohero__seal {
  position: absolute; left: 30%; top: 6%; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--c-nuit); color: var(--c-or-hi); font-family: var(--font-display); font-style: italic; font-size: 1.02rem; line-height: 1.05;
  box-shadow: 0 0 0 5px var(--bg), var(--sh-2);
}

/* ---------- Grille des occasions ---------- */
.occ-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.ocard { display: flex; flex-direction: column; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.ocard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-arch); background: var(--c-poudre); }
.ocard__media::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; border: 1px solid rgba(251,247,240,.55); transition: border-color var(--d-mid); }
.ocard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-slow) var(--e-out); }
.ocard:hover .ocard__media img, .ocard:focus-visible .ocard__media img { transform: scale(1.06); }
.ocard:hover .ocard__media::after { border-color: var(--c-or-hi); }
.ocard__body { display: flex; flex-direction: column; flex: 1; padding: var(--s-4) 2px 0; text-align: center; }
.ocard__tag { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.ocard__name { font-family: var(--font-display); font-size: var(--t-2xl); line-height: 1.1; margin: .35rem 0 .4rem; }
.ocard__txt { color: var(--text-mute); font-size: var(--t-sm); line-height: 1.5; }
.ocard__meta { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-xs);
  letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.ocard__cta { margin-top: var(--s-3); display: inline-flex; align-self: center; align-items: center; gap: .4rem;
  padding: .55rem 1.05rem; border-radius: var(--r-full); background: var(--c-nuit); color: var(--c-ivoire);
  font-size: var(--t-sm); font-weight: 500; transition: background var(--d-fast), gap var(--d-fast); }
.ocard__cta svg { width: 15px; height: 15px; color: var(--c-or-hi); }
.ocard:hover .ocard__cta { background: var(--c-nuit-3); gap: .65rem; }
.ocard:target .ocard__media { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c-or); }

/* ---------- Offres du moment (Unique Owls CP → Offres) ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-4); }
.promo { display: grid; gap: .5rem; padding: var(--s-5); border-radius: var(--r-xl); background: var(--grad-nuit); color: var(--c-ivoire); position: relative; }
.promo::before { content: ""; position: absolute; inset: 6px; border-radius: calc(var(--r-xl) - 6px); border: 1px solid rgba(201,163,92,.35); pointer-events: none; }
.promo__tag { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--c-or-hi); }
.promo h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl); margin: 0; color: var(--c-ivoire); }
.promo p { margin: 0; color: rgba(251,247,240,.8); font-size: var(--t-sm); }
.promo__price { font-family: var(--font-display); font-size: var(--t-xl); color: var(--c-or-hi) !important; }
.promo .btn { justify-self: start; position: relative; z-index: 1; margin-top: .4rem; }

/* ---------- Guide ---------- */
.og-wrap { overflow-x: auto; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-raise); box-shadow: var(--sh-1); }
.og { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 720px; }
.og th, .og td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.og thead th { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; background: var(--bg-alt); }
.og tbody th { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 500; white-space: nowrap; }
.og tbody tr:last-child th, .og tbody tr:last-child td { border-bottom: 0; }
.og tbody tr:hover { background: var(--bg-alt); }
.og__price { white-space: nowrap; font-weight: 500; }
.og td { color: var(--text-mute); }

/* ---------- Grandes dates ---------- */
.odates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s-8); align-items: start; }
.odates__head { position: sticky; top: calc(var(--header-h) + 24px); }
.odates__head h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-3xl); margin: var(--s-2) 0 var(--s-3); }
.odates__head p { color: var(--text-mute); margin: 0 0 var(--s-5); }
.odates__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.odate { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center;
  padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raise); transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.odate:hover { border-color: var(--c-or); box-shadow: var(--sh-1); }
.odate__d { display: grid; justify-items: center; padding: .6rem .3rem; border-radius: var(--r-md); background: var(--c-poudre); color: var(--c-nuit); text-align: center; }
.odate__d b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-weight: 600; }
.odate__d small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.odate__t { display: grid; gap: .15rem; }
.odate__t b { font-family: var(--font-display); font-size: var(--t-xl); font-weight: 500; }
.odate__t span { color: var(--text-mute); font-size: var(--t-sm); }
.odate__a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-ink); }
.odate__a svg { width: 18px; height: 18px; }
.odate:hover .odate__a { background: var(--c-nuit); color: var(--c-or-hi); border-color: var(--c-nuit); }

/* ---------- Mariage & entreprises ---------- */
.octa { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.octa__item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-5); align-items: center;
  padding: var(--s-5); border-radius: var(--r-xl); background: var(--grad-nuit); color: var(--c-ivoire); }
.octa__item img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-arch);
  box-shadow: 0 0 0 1px rgba(201,163,92,.5), 0 0 0 6px var(--c-nuit), 0 0 0 7px rgba(201,163,92,.3); }
.octa__item .eyebrow { color: var(--c-or-hi); }
.octa__item h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2xl); margin: var(--s-2) 0; color: var(--c-ivoire); }
.octa__item p { color: rgba(251,247,240,.8); font-size: var(--t-sm); margin: 0 0 var(--s-4); }

/* ---------- Mode sombre ---------- */
[data-theme="dark"] .ohero { background: radial-gradient(70% 110% at 100% 0%, rgba(180,86,106,.18) 0%, transparent 62%), var(--bg); }
[data-theme="dark"] .ohero h1 em { color: var(--c-poudre); }
[data-theme="dark"] .ocard__cta { background: var(--c-or); color: var(--c-nuit); }
[data-theme="dark"] .ocard__cta svg { color: var(--c-nuit); }
[data-theme="dark"] .odate__d { background: var(--bg-alt); color: var(--text); }

/* ---------- Largeurs ---------- */
@media (max-width: 1180px) {
  .occ-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .octa { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .ohero__grid, .odates { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .ohero__art { height: 340px; max-width: 520px; width: 100%; justify-self: center; }
  .odates__head { position: static; }
  .occ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-3); }
}
@media (max-width: 640px) {
  .ohero { padding-bottom: var(--s-6); }
  .ohero h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .ohero__lede { font-size: var(--t-base); }
  .ojump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .ojump::-webkit-scrollbar { display: none; }
  .ojump a { flex: none; }
  .ohero__art { height: 280px; }
  .ohero__seal { width: 84px; height: 84px; font-size: .88rem; left: 26%; }
  .ocard__name { font-size: var(--t-xl); }
  .ocard__txt { display: none; }
  .ocard__meta { font-size: .66rem; letter-spacing: .04em; }
  .ocard__cta { padding: .45rem .8rem; font-size: .78rem; }
  .odate { grid-template-columns: 72px minmax(0, 1fr); }
  .odate__a { display: none; }
  .octa__item { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .octa__item img { width: 130px; }
}
@media (prefers-reduced-motion: reduce) { .ocard__media img { transition: none; } }
