/* ============================================
   Thème : Noël traditionnel
   Palette : sapin #0B3D2E, bordeaux #7A1F2B,
             or #C9A24B, neige #F7F1E6, encre #241C14
   Display : "Cormorant Garamond" / Corps : "EB Garamond"
   ============================================ */

:root {
  --pine: #0b3d2e;
  --pine-dark: #072922;
  --wine: #7a1f2b;
  --gold: #c9a24b;
  --gold-soft: #e4cd8f;
  --snow: #f7f1e6;
  --ink: #241c14;
  --radius: 2px;
}

/* police achetée, déposée dans fonts/ (voir fonts/README.md) — seules les
   pages qui l'utilisent réellement la téléchargent.
   Note : « Coco Gothic » n'est PAS intégrée — les fichiers présents dans
   fonts/ sont des versions d'essai (noms en "-trial.ttf") dont la licence
   n'autorise a priori pas l'usage web. Poppins (Google Fonts, libre) sert
   d'équivalent visuel en attendant une licence web achetée. */
@font-face {
  font-family: "Symphony";
  src: url("fonts/Symphony.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "EB Garamond", Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201,162,75,0.15), transparent 60%),
    linear-gradient(180deg, var(--pine) 0%, var(--pine-dark) 100%);
  position: relative;
  overflow-x: hidden;
}

h1, h2, .eyebrow, .seal {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* --- neige discrète en fond, CSS pur, désactivée si mouvement réduit --- */
.snowfall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.snowfall span {
  position: absolute;
  top: -10px;
  width: 4px;
  height: 4px;
  background: var(--gold-soft);
  border-radius: 50%;
  opacity: 0.55;
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translateY(110vh); }
}
@media (prefers-reduced-motion: reduce) {
  .snowfall { display: none; }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.card {
  background: var(--snow);
  border: 1px solid rgba(201,162,75,0.5);
  border-radius: var(--radius);
  padding: 56px 44px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.eyebrow {
  display: block;
  text-align: center;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--wine);
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 6px;
  text-align: center;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
  color: var(--pine-dark);
}

.date {
  text-align: center;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 6px;
}

.place {
  text-align: center;
  font-size: 16px;
  color: #5b5346;
  margin-bottom: 8px;
}

.divider {
  display: flex;
  justify-content: center;
  margin: 28px 0;
  color: var(--gold);
}
.divider svg { width: 120px; height: auto; }

.intro {
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: #3a3126;
  margin: 0 0 36px;
}

form {
  margin-top: 8px;
}

label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-dark);
  margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 17px;
  border: 1px solid #c9bfa8;
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  margin-bottom: 24px;
}
input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

#eventTypeChecks {
  margin-bottom: 4px;
}

#guestCountRow { display: none; }
#guestCountRow.show { display: block; }

#allergyRow, #childrenRow, #vegetarianRow, #lodgingRow {
  margin-bottom: 8px;
}
#childrenDetails {
  margin-left: 4px;
  padding-left: 22px;
  border-left: 2px solid rgba(201,162,75,0.4);
}

#guestNamesInputs {
  margin-left: 4px;
  padding-left: 22px;
  border-left: 2px solid rgba(201,162,75,0.4);
}
#guestNamesInputs label {
  font-size: 12px;
  margin-bottom: 4px;
}
.guest-name-slot {
  margin-bottom: 12px;
}
.guest-name-slot select {
  margin-bottom: 8px;
}
.guest-name-slot .guest-name-other {
  margin-bottom: 8px;
}
.guest-name-slot .guest-name-menu-label {
  font-size: 13px;
  color: #6a6153;
  margin-bottom: 0;
}

.child-name-slot { margin-bottom: 4px; }
.child-name-slot .checkbox-label { font-size: 13px; }

.allergy-row { margin-bottom: 8px; }
.allergy-people {
  margin: 4px 0 8px 4px;
  padding-left: 22px;
  border-left: 2px solid rgba(122,31,43,0.25);
}
.allergy-people-hint { margin: 0 0 4px; }
.allergy-people .allergy-person-label {
  font-size: 13px;
  color: #6a6153;
  margin-bottom: 4px;
}

.lodging-option {
  border: 1px solid #e2d9c4;
  border-radius: var(--radius);
  padding: 16px 16px 4px;
  margin-bottom: 16px;
  background: #fffdf8;
}
.lodging-option .checkbox-label { margin-bottom: 12px; }
.lodging-nights-row {
  margin-left: 26px;
  max-width: 160px;
}
.lodging-nights-row label { font-size: 12px; }
.lodging-option .hint { margin: -10px 0 16px; }

.invite-banner {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pine-dark);
  background: rgba(201,162,75,0.15);
  border: 1px solid rgba(201,162,75,0.5);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 28px;
}

.hint {
  margin: -14px 0 24px;
  font-size: 13px;
  color: #6a6153;
}

.calendar-actions {
  text-align: center;
  margin-top: 20px;
}
.ics-btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(201,162,75,0.12);
  color: var(--pine-dark);
  font-size: 15px;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
}
.ics-btn:hover { background: rgba(201,162,75,0.25); }

.change-name {
  text-align: center;
  margin-top: 16px;
}
.change-name button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: #6a6153;
  text-decoration: underline;
  cursor: pointer;
}
.change-name button:hover { color: var(--wine); }

.seal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 8px auto 0;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, #8f2536, var(--wine) 70%);
  color: var(--gold-soft);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35), inset 0 0 0 6px rgba(201,162,75,0.15);
  transition: transform 0.15s ease;
}
.seal-btn:hover { transform: scale(1.04); }
.seal-btn:active { transform: scale(0.98); }
.seal-btn:disabled { opacity: 0.6; cursor: wait; }

.note {
  text-align: center;
  font-size: 14px;
  color: #6a6153;
  margin-top: 28px;
}

.status {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  min-height: 24px;
}
.status.ok { color: var(--pine-dark); }
.status.err { color: var(--wine); }

.confirmation {
  display: none;
  text-align: center;
}
.confirmation.show { display: block; }
.confirmation h2 {
  font-size: 34px;
  color: var(--pine-dark);
  margin-bottom: 12px;
}
.confirmation p {
  font-size: 17px;
  color: #3a3126;
}

/* ---- Admin ---- */
.wrap-admin { max-width: 1200px; }
.admin-card { max-width: none; }
#loginCard { max-width: 620px; margin: 0 auto; }
.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-header h1 { font-size: 34px; margin: 0; text-align: left; }
.logout {
  font-family: "EB Garamond", serif;
  font-size: 14px;
  color: var(--wine);
  background: none;
  border: 1px solid var(--wine);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}
.logout:hover { background: var(--wine); color: var(--snow); }

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e2d9c4;
}
.tab-btn {
  font-family: "EB Garamond", serif;
  font-size: 15px;
  color: #6a6153;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 4px;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab-btn:hover { color: var(--pine-dark); }
.tab-btn.active {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

.invite-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.invite-forms h2 {
  font-size: 22px;
  color: var(--pine-dark);
  margin: 0 0 16px;
  text-align: left;
}
.invite-import .hint {
  margin: -4px 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #6a6153;
}
.invite-import code {
  font-size: 12px;
  background: rgba(201,162,75,0.15);
  padding: 1px 4px;
  border-radius: var(--radius);
}
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #c9bfa8;
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  margin-bottom: 20px;
  resize: vertical;
}
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.csv-import-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
input[type="file"] {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

.type-form-wrap {
  max-width: 480px;
  margin-bottom: 36px;
}
.type-form-wrap h2 {
  font-size: 22px;
  color: var(--pine-dark);
  margin: 0 0 16px;
  text-align: left;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 20px;
  cursor: pointer;
}
.checkbox-label input { width: auto; margin: 0; }
input[type="date"],
input[type="time"] {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #c9bfa8;
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  margin-bottom: 20px;
}
#typeTimeRow.hidden { display: none; }

@media (max-width: 640px) {
  .invite-forms { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat {
  text-align: center;
  border: 1px solid rgba(201,162,75,0.5);
  border-radius: var(--radius);
  padding: 18px 8px;
  background: #fffdf8;
}
.stat .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  color: var(--wine);
  display: block;
}
.stat .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6153;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #e2d9c4;
}
th {
  font-family: "EB Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pine-dark);
}
tr.absent td { color: #9a9184; }
.details-row td {
  background: #fbf7ee;
  font-size: 14px;
  line-height: 1.6;
  color: #4a4234;
  padding: 10px 16px;
}
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.tag.yes { background: rgba(11,61,46,0.12); color: var(--pine-dark); }
.tag.no { background: rgba(122,31,43,0.1); color: var(--wine); }
.tag.people { background: rgba(201,162,75,0.2); color: #7a5c1e; }
.tag.allergy { background: rgba(191,90,40,0.15); color: #8a3f12; }
.tag.children { background: rgba(45,90,120,0.14); color: #2d5a78; }
.tag.veg { background: rgba(11,61,46,0.12); color: var(--pine-dark); }
.tag.lodging { background: rgba(120,100,60,0.15); color: #5c4a1e; }

.detail-item {
  display: block;
  margin-bottom: 6px;
}
.detail-item:last-child { margin-bottom: 0; }
.detail-item .tag { margin-right: 8px; }
.del {
  background: none;
  border: none;
  color: #a99e8a;
  cursor: pointer;
  font-size: 14px;
}
.del:hover { color: var(--wine); }

.alias-list {
  margin-top: 4px;
  font-size: 12px;
  color: #8a8071;
}
.alias-del {
  background: none;
  border: none;
  color: #a99e8a;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.alias-del:hover { color: var(--wine); }

.empty {
  text-align: center;
  padding: 40px 0;
  color: #8a8071;
}

@media (max-width: 480px) {
  .card { padding: 40px 24px; }
  h1 { font-size: 40px; }
  .stats { grid-template-columns: 1fr; }
}

/* ============================================
   Landing page (index.html)
   ============================================ */

.back-home {
  text-align: center;
  margin: 0 0 16px;
}
.back-home a {
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.back-home a:hover { text-decoration: underline; }

.hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(201,162,75,0.4);
}
.hero-inner { max-width: 720px; }
.hero h1 {
  color: var(--snow);
  font-size: 64px;
}
.hero .eyebrow { color: var(--gold); }
.hero-eyebrow-image {
  display: block;
  max-height: 70px;
  width: auto;
  margin: 0 auto 14px;
}
.hero-date {
  font-size: 22px;
  color: var(--gold-soft);
  margin: 0 0 4px;
}
.hero-location {
  font-size: 17px;
  color: rgba(247,241,230,0.8);
  margin: 0 0 24px;
}
.hero-tagline {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(247,241,230,0.92);
  margin: 0 0 32px;
}
.hero.has-image .hero-inner h1,
.hero.has-image .hero-date,
.hero.has-image .hero-location,
.hero.has-image .hero-tagline {
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

main {
  position: relative;
  z-index: 1;
  padding: 72px 24px 0;
}

.landing-section {
  max-width: 880px;
  margin: 0 auto 56px;
  padding: 56px 48px;
  background: var(--snow);
  border: 1px solid rgba(201,162,75,0.5);
  border-radius: var(--radius);
  box-shadow: 0 24px 55px rgba(0,0,0,0.3);
}
.landing-section.bg-pine-soft { background: #e6ece8; }
.landing-section.bg-gold-soft { background: #f5ecd7; }
.landing-section.bg-wine-soft { background: #f3e4e3; }
.landing-section .eyebrow { text-align: center; }
.landing-section h2 {
  text-align: center;
  font-size: 34px;
  color: var(--pine-dark);
  margin: 0 0 8px;
}

.countdown-section { text-align: center; }
.countdown-text {
  font-size: 18px;
  line-height: 1.7;
  color: #3a3126;
  margin: 0 0 28px;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}
.countdown-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--wine);
  line-height: 1;
}
.countdown-label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a6153;
}

/* --- duo tampon/étiquette décoratif, façon scrapbook, renvoyant vers la
   réponse (voir confirm-tag) --- */
.confirm-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 24px;
}
.confirm-stamp-wrap { display: inline-block; }
.confirm-stamp {
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  line-height: 1.3;
  color: var(--pine-dark);
  background: var(--gold-soft);
  border: 2px dashed var(--pine-dark);
  outline: 1px solid var(--gold-soft);
  outline-offset: -8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  padding: 28px 32px;
  max-width: 260px;
  text-align: center;
  transform: rotate(-7deg);
}
.confirm-stamp-image {
  display: block;
  max-width: 240px;
  max-height: 240px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.3));
  transform: rotate(-7deg);
}
.confirm-tag {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  line-height: 1.3;
  color: var(--pine-dark);
  background: var(--gold-soft);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  padding: 32px 36px;
  max-width: 260px;
  text-align: center;
  text-decoration: none;
  border-radius: 45% 55% 52% 48% / 55% 48% 52% 45%;
  transform: rotate(6deg);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.confirm-tag:hover { transform: rotate(6deg) scale(1.04); }
.confirm-tag::after {
  content: "🎄";
  display: block;
  font-size: 22px;
  margin-top: 8px;
}
.confirm-tag.has-image {
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.confirm-tag.has-image::after { display: none; }
.confirm-tag-image {
  display: block;
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.3));
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.story-section.no-image { grid-template-columns: 1fr; }
.story-section.no-image .story-media { display: none; }
.story-media img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.story-copy .eyebrow,
.story-copy h2 { text-align: left; }
.story-copy p {
  font-size: 17px;
  line-height: 1.8;
  color: #3a3126;
  margin: 0 0 0.8em;
}
.story-copy p:last-child { margin-bottom: 0; }

.programme-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.programme-item { border-left: 3px solid var(--gold); padding-left: 18px; }
.programme-time {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 6px;
}
.programme-item h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--pine-dark);
}
.programme-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #5b5346;
}
.programme-desc p { margin: 0 0 0.5em; }
.programme-desc p:last-child { margin-bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.gallery-grid figcaption {
  font-size: 12px;
  color: #6a6153;
  margin-top: 6px;
  text-align: center;
}

.practical-copy {
  font-size: 17px;
  line-height: 1.8;
  color: #3a3126;
}
.practical-copy p, .hero-tagline p { margin: 0 0 0.8em; }
.practical-copy p:last-child, .hero-tagline p:last-child { margin-bottom: 0; }

.cta-section { text-align: center; }
.cta-section p {
  font-size: 16px;
  color: #5b5346;
  margin: 0 0 24px;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 24px 72px;
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .hero { background-image: var(--hero-image-mobile, var(--hero-image, none)); }
  .hero h1 { font-size: 44px; }
  .landing-section { padding: 40px 24px; }
  .story-section { grid-template-columns: 1fr; }
  .story-media img { max-height: 280px; }
  .countdown-num { font-size: 34px; }
  .countdown-timer { gap: 16px; }
  .confirm-section { gap: 28px; }
  .confirm-stamp, .confirm-tag { font-size: 24px; padding: 22px 24px; max-width: 210px; }
}

/* --- texte enrichi (éditeur Quill, onglet admin "Page d'accueil") ---
   mêmes classes utilisées dans l'éditeur et dans le rendu public, pour un
   résultat identique des deux côtés --- */
.ql-font-garamond { font-family: "EB Garamond", serif; }
.ql-font-cormorant { font-family: "Cormorant Garamond", serif; }
.ql-font-playfair { font-family: "Playfair Display", serif; }
.ql-font-greatvibes { font-family: "Great Vibes", cursive; }
.ql-font-montserrat { font-family: "Montserrat", sans-serif; }
.ql-font-lato { font-family: "Lato", sans-serif; }
.ql-font-symphony { font-family: "Symphony", cursive; }
.ql-font-poppins { font-family: "Poppins", sans-serif; }
.ql-size-small { font-size: 0.75em; }
.ql-size-large { font-size: 1.5em; }
.ql-size-huge { font-size: 2.5em; }

/* aperçu de chaque police dans le menu déroulant de l'éditeur admin */
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="garamond"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="garamond"]::before {
  content: "Garamond"; font-family: "EB Garamond", serif;
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="cormorant"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="cormorant"]::before {
  content: "Cormorant"; font-family: "Cormorant Garamond", serif;
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="playfair"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="playfair"]::before {
  content: "Playfair"; font-family: "Playfair Display", serif;
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="greatvibes"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="greatvibes"]::before {
  content: "Manuscrite"; font-family: "Great Vibes", cursive;
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="montserrat"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="montserrat"]::before {
  content: "Montserrat"; font-family: "Montserrat", sans-serif;
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="lato"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="lato"]::before {
  content: "Lato"; font-family: "Lato", sans-serif;
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="symphony"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="symphony"]::before {
  content: "Symphony"; font-family: "Symphony", cursive;
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="poppins"]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="poppins"]::before {
  content: "Poppins"; font-family: "Poppins", sans-serif;
}
.rich-editor { margin-bottom: 20px; background: #fffdf8; }
.rich-editor .ql-editor { min-height: 120px; font-size: 16px; font-family: "EB Garamond", Georgia, serif; }
.rich-editor-inline .ql-editor { min-height: 44px; }

/* --- admin : éditeur de la page d'accueil (listes programme / galerie) --- */
.site-list-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.site-list-row input[type="text"] {
  flex: 1 1 160px;
  margin-bottom: 0;
}
.site-list-row .del { flex: 0 0 auto; }

.site-list-row-rich {
  display: block;
  border: 1px solid #e2d9c4;
  border-radius: var(--radius);
  padding: 14px 16px 2px;
  background: #fffdf8;
}
.site-list-row-rich label {
  font-size: 12px;
  margin: 0 0 4px;
}
.site-list-row-rich input[type="text"] { margin-bottom: 12px; }
.site-list-row-rich .rich-editor { margin-bottom: 12px; }

/* --- blocs personnalisés (texte/image) insérables n'importe où dans
   l'ordre de la page publique --- */
.custom-block-text p {
  margin: 0 0 0.8em;
  font-size: 17px;
  line-height: 1.8;
  color: #3a3126;
}
.custom-block-text p:last-child { margin-bottom: 0; }
.custom-block-image { text-align: center; padding: 24px; }
.custom-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 0 auto;
}
.custom-block-image figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: #6a6153;
}

/* --- admin : liste d'ordre de la page (sections + blocs), glisser-déposer
   via SortableJS --- */
.order-list { margin-bottom: 16px; }
.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fffdf8;
  border: 1px solid #e2d9c4;
  border-radius: var(--radius);
}
.order-row.order-row-block { align-items: flex-start; flex-wrap: wrap; }
.order-row .drag-handle {
  cursor: grab;
  color: #a99e8a;
  font-size: 18px;
  line-height: 1;
  padding: 4px 2px;
  user-select: none;
  flex: 0 0 auto;
}
.order-row .drag-handle:active { cursor: grabbing; }
.order-row-section .order-label {
  font-size: 15px;
  color: var(--pine-dark);
}
.order-row-block { width: 100%; }
.order-row-block .order-block-body { flex: 1 1 260px; min-width: 0; }
.order-row-block .order-block-type {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8071;
  margin-bottom: 6px;
}
.order-row-block input[type="text"] { margin-bottom: 8px; }
.order-row-block .rich-editor { margin-bottom: 8px; }
.order-row.sortable-ghost { opacity: 0.4; }


/* Conteneur global */
.interactive-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
}

/* 1. Carte crantée à gauche (Serez-vous à nos côtés ?), bord ondulé façon timbre */
.card-left-postag {
  position: absolute;
  left: 9%;
  top: 15%;
  width: 220px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='300' viewBox='0 0 220 300'%3E%3Cmask id='m'%3E%3Crect width='220' height='300' fill='white'/%3E%3Cg fill='black'%3E%3Ccircle cx='0' cy='0' r='9.17'/%3E%3Ccircle cx='0' cy='300' r='9.17'/%3E%3Ccircle cx='18.33' cy='0' r='9.17'/%3E%3Ccircle cx='18.33' cy='300' r='9.17'/%3E%3Ccircle cx='36.67' cy='0' r='9.17'/%3E%3Ccircle cx='36.67' cy='300' r='9.17'/%3E%3Ccircle cx='55' cy='0' r='9.17'/%3E%3Ccircle cx='55' cy='300' r='9.17'/%3E%3Ccircle cx='73.33' cy='0' r='9.17'/%3E%3Ccircle cx='73.33' cy='300' r='9.17'/%3E%3Ccircle cx='91.67' cy='0' r='9.17'/%3E%3Ccircle cx='91.67' cy='300' r='9.17'/%3E%3Ccircle cx='110' cy='0' r='9.17'/%3E%3Ccircle cx='110' cy='300' r='9.17'/%3E%3Ccircle cx='128.33' cy='0' r='9.17'/%3E%3Ccircle cx='128.33' cy='300' r='9.17'/%3E%3Ccircle cx='146.67' cy='0' r='9.17'/%3E%3Ccircle cx='146.67' cy='300' r='9.17'/%3E%3Ccircle cx='165' cy='0' r='9.17'/%3E%3Ccircle cx='165' cy='300' r='9.17'/%3E%3Ccircle cx='183.33' cy='0' r='9.17'/%3E%3Ccircle cx='183.33' cy='300' r='9.17'/%3E%3Ccircle cx='201.67' cy='0' r='9.17'/%3E%3Ccircle cx='201.67' cy='300' r='9.17'/%3E%3Ccircle cx='220' cy='0' r='9.17'/%3E%3Ccircle cx='220' cy='300' r='9.17'/%3E%3Ccircle cx='0' cy='17.65' r='8.82'/%3E%3Ccircle cx='220' cy='17.65' r='8.82'/%3E%3Ccircle cx='0' cy='35.29' r='8.82'/%3E%3Ccircle cx='220' cy='35.29' r='8.82'/%3E%3Ccircle cx='0' cy='52.94' r='8.82'/%3E%3Ccircle cx='220' cy='52.94' r='8.82'/%3E%3Ccircle cx='0' cy='70.59' r='8.82'/%3E%3Ccircle cx='220' cy='70.59' r='8.82'/%3E%3Ccircle cx='0' cy='88.24' r='8.82'/%3E%3Ccircle cx='220' cy='88.24' r='8.82'/%3E%3Ccircle cx='0' cy='105.88' r='8.82'/%3E%3Ccircle cx='220' cy='105.88' r='8.82'/%3E%3Ccircle cx='0' cy='123.53' r='8.82'/%3E%3Ccircle cx='220' cy='123.53' r='8.82'/%3E%3Ccircle cx='0' cy='141.18' r='8.82'/%3E%3Ccircle cx='220' cy='141.18' r='8.82'/%3E%3Ccircle cx='0' cy='158.82' r='8.82'/%3E%3Ccircle cx='220' cy='158.82' r='8.82'/%3E%3Ccircle cx='0' cy='176.47' r='8.82'/%3E%3Ccircle cx='220' cy='176.47' r='8.82'/%3E%3Ccircle cx='0' cy='194.12' r='8.82'/%3E%3Ccircle cx='220' cy='194.12' r='8.82'/%3E%3Ccircle cx='0' cy='211.76' r='8.82'/%3E%3Ccircle cx='220' cy='211.76' r='8.82'/%3E%3Ccircle cx='0' cy='229.41' r='8.82'/%3E%3Ccircle cx='220' cy='229.41' r='8.82'/%3E%3Ccircle cx='0' cy='247.06' r='8.82'/%3E%3Ccircle cx='220' cy='247.06' r='8.82'/%3E%3Ccircle cx='0' cy='264.71' r='8.82'/%3E%3Ccircle cx='220' cy='264.71' r='8.82'/%3E%3Ccircle cx='0' cy='282.35' r='8.82'/%3E%3Ccircle cx='220' cy='282.35' r='8.82'/%3E%3C/g%3E%3C/mask%3E%3Crect width='220' height='300' fill='%23e8e3d5' mask='url(%23m)'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: rotate(-12deg);
  z-index: 3;
  padding: 20px;
  filter: drop-shadow(3px 6px 10px rgba(0,0,0,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.card-left-content {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #1b4332;
  line-height: 1.3;
}

/* 2. Cadre Central / Calendrier */
.card-main-calendar {
  position: relative;
  width: 360px;
  background: #fdfbf7;
  border: 12px solid #8b2626;
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 2;
  text-align: center;
}
.calendar-header {
  letter-spacing: 4px;
  color: #2d6a4f;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}
.day-name { color: #555; font-style: italic; }
.day-num { position: relative; display: flex; justify-content: center; align-items: center; height: 30px; }
.active-day .heart-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 1;
}
.active-day #calendarDayNumber {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Pied du calendrier */
.calendar-footer h3 { letter-spacing: 3px; font-size: 1.2rem; color: #2d6a4f; margin: 5px 0; }
.calendar-date-sub { letter-spacing: 2px; font-size: 0.75rem; color: #555; margin-bottom: 15px; }
.calendar-note { font-size: 0.65rem; letter-spacing: 1px; color: #888; text-transform: uppercase; }

.holly-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
}

/* 3. Tampon de cire (Superposé) */
.wax-seal-wrapper {
  position: absolute;
  top: 5px;
  right: 28%;
  z-index: 4;
}
.wax-seal-img {
  width: 110px;
  height: auto;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}

/* 4. Étiquette Droite (Je confirme ma venue...) */
.card-right-tag {
  position: absolute;
  right: 5%;
  bottom: 20%;
  width: 260px;
  height: 160px;
  background: #f4eee0;
  border-radius: 80px / 50px; /* Forme festonnée/ovale */
  box-shadow: 4px 6px 15px rgba(0,0,0,0.15);
  transform: rotate(6deg);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-decoration: none;
  border: 1px solid #d4c5b0;
}
.tag-content {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #1b4332;
  text-align: center;
  line-height: 1.2;
}
.tree-icon { font-size: 1.5rem; vertical-align: middle; display: inline-block; }