/* ==========================================================================
   Naomiie — la boîte en émail rose
   Émail framboise, poudre beige du logo, papier, encre aubergine.
   Lettrage arrondi embossé (Quicksand), texte courant Figtree.
   ========================================================================== */

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Matières */
  --emaille: #a8434f;
  --emaille-haut: #bf5a66;
  --emaille-bas: #7e2e3a;
  --emaille-ombre: #5c1f2a;
  --rose: #d4737a;          /* rose du logo */
  --soie: #df9c9c;          /* papier de soie */
  --poudre: #e5d5c7;        /* fond du logo */
  --poudre-clair: #ede1d5;
  --papier: #f7eee6;
  --papier-ombre: #d9c5b6;
  --encre: #3a1a24;
  --encre-2: #5e3a45;
  --encre-lien: #8e2f3d;
  --fente: #240d14;
  --sur-emaille: #f8ede4;
  --sur-emaille-2: #f6dcd5;

  --ruban: #9e3846;
  --ruban-bord: #f4ddd6;

  /* Type */
  --f-display: "Quicksand", ui-rounded, "Arial Rounded MT Bold", sans-serif;
  --f-text: "Figtree", "Segoe UI", system-ui, sans-serif;

  /* Rythme */
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --band-y: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);

  --focus: var(--encre);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  scrollbar-color: var(--emaille) var(--poudre);
}

body {
  margin: 0;
  background: var(--poudre);
  color: var(--encre);
  font-family: var(--f-text);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.2vw + .6rem, 3.75rem); }
h3 { font-size: clamp(1.3rem, .8vw + 1rem, 1.55rem); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--encre-lien);
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
  transition: color .2s, text-decoration-color .2s;
}
a:hover { text-decoration-thickness: .14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

address { font-style: normal; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.sr-only, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1.1rem;
  background: var(--papier);
  color: var(--encre);
  border-radius: 999px;
  font-weight: 700;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

/* ---------- Boutons ---------- */

.btn {
  --btn-bg: var(--encre);
  --btn-fg: var(--papier);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 3rem;
  padding: .7em 1.35em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 14px -6px rgba(58, 26, 36, .55);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn .icon { transition: transform .3s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(58, 26, 36, .6); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 8px -4px rgba(58, 26, 36, .6); }
.btn-ink { --btn-bg: var(--encre); --btn-fg: var(--papier); }
.btn-ink:hover { --btn-bg: #4d2431; }
.btn-enamel { --btn-bg: var(--emaille); --btn-fg: var(--sur-emaille); background-image: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 55%); }
.btn-enamel:hover { --btn-bg: #9a3a47; }
.btn-paper { --btn-bg: var(--papier); --btn-fg: var(--encre); }
.btn-paper:hover { --btn-bg: #fff8f2; }
.btn-lg { min-height: 3.5rem; font-size: 1.15rem; padding-inline: 1.6em; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--encre-lien);
}
.link-arrow .icon { transition: transform .3s var(--ease-out); }
.link-arrow:hover .icon:last-child { transform: translateX(3px); }

/* ---------- Bandeau d'annonce ---------- */

.annonce {
  background: var(--encre);
  color: var(--papier);
  text-align: center;
  font-size: .95rem;
  padding: .6rem var(--gutter);
}
.annonce a { color: var(--sur-emaille-2); }
.annonce { --focus: var(--papier); }

/* ---------- Couvercle (en-tête) ---------- */

.lid {
  --focus: var(--sur-emaille);
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--sur-emaille);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 38%),
    var(--emaille-bas);
  box-shadow:
    0 10px 24px -14px rgba(40, 8, 16, .8);
}
.lid-inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding: .7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.lid-logo {
  color: var(--sur-emaille);
  margin-right: auto;
  padding: .35rem 0;
}
.lid-logo svg { height: clamp(1.45rem, 1.2vw + 1rem, 1.9rem); width: auto; filter: drop-shadow(0 1px 0 rgba(40, 8, 16, .45)); }

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem clamp(.5rem, 1.6vw, 1.6rem);
}
.menu a:not(.btn) {
  color: var(--sur-emaille);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  padding: .55rem .15rem;
  display: inline-block;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .35rem) / 0 2px no-repeat;
  transition: background-size .35s var(--ease-out);
}
.menu a:not(.btn):hover, .menu a[aria-current="true"] { background-size: 100% 2px; }
.menu .btn { min-height: 2.75rem; padding-block: .55em; font-size: 1rem; }
.menu-cta { margin-left: .4rem; }
.menu .menu-insta a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .2rem; background: none; }
.menu-insta .icon { width: 1.35rem; height: 1.35rem; }
.menu-insta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .5rem .95rem;
  border: 1.5px solid rgba(248, 237, 228, .55);
  border-radius: 999px;
  background: transparent;
  color: var(--sur-emaille);
  font: 700 1rem var(--f-display);
  cursor: pointer;
}

@media (max-width: 62rem) {
  .js .menu-toggle { display: inline-flex; }
  .js .menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--emaille-bas);
    box-shadow: 0 18px 30px -18px rgba(40, 8, 16, .85);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .45s var(--ease-out), visibility 0s .45s;
  }
  .js .lid.is-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease-out); }
  .js .menu ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.5rem; gap: 0; }
  .js .menu li { border-top: 1px solid rgba(248, 237, 228, .16); }
  .js .menu a:not(.btn) { display: block; padding: .95rem 0; font-size: 1.15rem; background: none; }
  .js .menu-cta { margin: 1rem 0 0; border: 0 !important; }
  .js .menu-insta-label { position: static; width: auto; height: auto; clip-path: none; }
  .js .menu-cta .btn { width: 100%; justify-content: center; }
  .menu ul { justify-content: flex-end; }
}
@media (max-width: 62rem) {
  html:not(.js) .lid-inner { flex-wrap: wrap; }
  html:not(.js) .menu { width: 100%; }
  html:not(.js) .menu ul { justify-content: flex-start; }
}

/* ---------- Face avant de la boîte (premier écran) ---------- */

.face {
  --focus: var(--sur-emaille);
  position: relative;
  color: var(--sur-emaille);
  background:
    radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(60, 10, 22, .35), transparent 65%),
    var(--emaille);
  border-radius: 0 0 clamp(22px, 3.5vw, 44px) clamp(22px, 3.5vw, 44px);
  margin-inline: clamp(0rem, 1.6vw, 1.75rem);
  box-shadow: 0 30px 50px -34px rgba(58, 26, 36, .85), 0 2px 6px -2px rgba(58, 26, 36, .35);
  overflow: clip;
}
.face-inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3.5rem) var(--gutter) clamp(1.75rem, 3vw, 2.5rem);
  min-height: min(calc(100svh - 4.25rem), 52rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: clamp(1.25rem, 2.4vw, 2rem);
}

.emboss {
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, .28),
    0 2px 1px rgba(70, 14, 26, .45),
    0 8px 18px rgba(70, 14, 26, .28);
}

.face-top {
  display: grid;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.face h1 {
  font-size: clamp(2.4rem, 4.6vw + .5rem, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.face-lead {
  max-width: 34rem;
  font-size: clamp(1.08rem, .45vw + .98rem, 1.28rem);
  line-height: 1.55;
  color: var(--sur-emaille);
  margin: 0;
}
@media (min-width: 64rem) {
  .face-top { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .face-lead { padding-bottom: .5rem; }
}

/* La fente et le billet */
.slot-zone {
  position: relative;
  align-self: end;
  display: grid;
  justify-items: center;
  padding-top: 1rem;
}
.slip-window {
  position: relative;
  width: min(100%, 44rem);
  overflow: hidden;
  /* Le billet disparaît exactement au milieu de la fente. */
  margin-bottom: -15px;
  padding: 1.25rem 1.25rem 0;
  z-index: 1;
}
.slip {
  position: relative;
  background:
    url("../img/papier.svg"),
    linear-gradient(180deg, #fbf5ef, var(--papier) 60%, #efe2d6);
  color: var(--encre);
  --focus: var(--encre);
  border-radius: 6px 6px 0 0;
  padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.25rem, 3.5vw, 2.25rem) calc(clamp(1.5rem, 3vw, 2.2rem) + 15px);
  box-shadow: 0 18px 40px -18px rgba(40, 8, 16, .75), 0 2px 6px rgba(40, 8, 16, .2);
  transform: rotate(-1.2deg);
  transform-origin: 50% 100%;
  transition: transform .9s var(--ease-in);
}
.slip::before {
  /* pli du papier */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  border-radius: 6px 6px 0 0;
  pointer-events: none;
}
.slip-head {
  position: relative;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem);
  line-height: 1.1;
  margin: 0 0 .25rem;
  letter-spacing: -0.01em;
}
.slip-q {
  position: relative;
  color: var(--encre-2);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
.slip-choices {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(58, 26, 36, .55);
  background: rgba(255, 255, 255, .45);
  color: var(--encre);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease-out);
}
.chip:hover { background: var(--emaille); border-color: var(--emaille); color: var(--sur-emaille); transform: translateY(-2px); }
.chip:active { transform: translateY(1px); }

.slot {
  position: relative;
  z-index: 2;
  width: min(100%, 50rem);
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(60% 140% at 50% 0%, #3b1520, var(--fente) 70%);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, .55) inset,
    0 -3px 6px rgba(60, 10, 22, .35),
    0 4px 6px -1px rgba(255, 225, 220, .22);
}

/* Le billet s'enfonce dans la fente */
.slip.is-posted { transform: translateY(calc(100% + 30px)) rotate(0deg); }
.slip.is-back { transition: transform .8s var(--ease-out); }

.plaque {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #e08d93, var(--rose) 55%, #c4636b);
  color: var(--fente);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(.98rem, .4vw + .9rem, 1.12rem);
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 10px 18px -10px rgba(40, 8, 16, .75);
}

/* ---------- Ruban continu ---------- */

main { position: relative; }
.ribbon-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.ribbon-layer svg { position: absolute; left: 0; top: 0; overflow: visible; }
.ribbon-edge { stroke: var(--ruban-bord); }
.ribbon-core { stroke: var(--ruban); }
.ribbon-shine { stroke: rgba(255, 220, 220, .35); }

/* ---------- Bandes de contenu ---------- */

.band { padding-block: var(--band-y); position: relative; }
.band-head {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.band-head h2 { margin-bottom: 1.1rem; }
.band-head p { font-size: clamp(1.08rem, .4vw + 1rem, 1.25rem); color: var(--encre-2); max-width: 38rem; }
.band-cta { position: relative; z-index: 2; margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.band-aide { background: var(--poudre); }
.band-joie {
  background:
    url("../img/papier.svg"),
    linear-gradient(180deg, #e3a4a3, var(--soie));
  --focus: var(--encre);
}
.band-joie .band-head p { color: var(--encre); }
.band-rdv { background: var(--poudre-clair); }
.band-news { background: var(--poudre); }
.band-fond { background: var(--poudre); }
.band-join { background: var(--poudre-clair); }
.band-photos { background: var(--poudre); }

/* ---------- Étiquettes-cadeaux ---------- */

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1.25rem, 2vw, 2rem);
  align-items: start;
}
.tag {
  position: relative;
  z-index: 2;
  padding: 3.4rem 1.25rem 1.6rem;
  color: var(--encre);
  /* l'ombre reste sur l'élément, la découpe va sur le papier (::before) */
  filter: drop-shadow(0 10px 14px rgba(58, 26, 36, .16)) drop-shadow(0 1px 1px rgba(58, 26, 36, .2));
  transform: rotate(var(--tilt, 0deg)) translateY(var(--drop, 0));
  transition: transform .6s var(--ease-out);
}
.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    url("../img/papier.svg"),
    linear-gradient(180deg, #fbf6f1, var(--papier));
  /* coins coupés d'une étiquette, trou perforé */
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
  -webkit-mask: radial-gradient(circle 9px at 50% 1.55rem, transparent 8.5px, #000 9.5px);
  mask: radial-gradient(circle 9px at 50% 1.55rem, transparent 8.5px, #000 9.5px);
}
.tag:nth-child(3n + 1) { --tilt: -1.4deg; --drop: .4rem; }
.tag:nth-child(3n + 2) { --tilt: .9deg; --drop: 0rem; }
.tag:nth-child(3n + 3) { --tilt: -.5deg; --drop: 1rem; }
.tag:hover { --tilt: 0deg; }
.tag-hole {
  position: absolute;
  left: 50%; top: 1.55rem;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212, 115, 122, .55), 0 0 0 4px rgba(58, 26, 36, .12);
  pointer-events: none;
}
.tag h3 { margin-bottom: .55rem; }
.tag p { color: var(--encre-2); font-size: 1.02rem; line-height: 1.55; margin: 0; }

.tags-joie .tag::before { background: url("../img/papier.svg"), linear-gradient(180deg, #fffaf6, #fbf1ea); }

/* ---------- Moment fort ---------- */

.moment {
  position: relative;
  z-index: 2;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: 18px;
  color: var(--sur-emaille);
  --focus: var(--sur-emaille);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(255, 255, 255, .14), transparent 55%),
    var(--emaille);
  box-shadow: 0 24px 40px -24px rgba(58, 26, 36, .8);
}
.moment-text {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw + .5rem, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: balance;
}
.moment-sign {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sur-emaille-2);
}
.moment-sign::before { content: ""; width: 2.25rem; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Invitations (rendez-vous) ---------- */

.invites {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 52rem) { .invites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.invite {
  position: relative;
  z-index: 2;
  background: url("../img/papier.svg"), var(--papier);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 1px 1px rgba(58, 26, 36, .14), 0 18px 34px -22px rgba(58, 26, 36, .55);
}
.invite::before {
  /* double filet de faire-part */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid rgba(212, 115, 122, .75);
  outline: 1px solid rgba(212, 115, 122, .4);
  outline-offset: 4px;
  border-radius: 3px;
  pointer-events: none;
}
.invite article { position: relative; display: grid; gap: 1.25rem; height: 100%; align-content: start; }
.invite-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--emaille);
}
.invite-media img { width: 100%; height: 100%; object-fit: cover; }
.invite-date {
  position: absolute;
  left: .85rem; bottom: .85rem;
  margin: 0;
  display: grid;
  justify-items: center;
  min-width: 4.4rem;
  padding: .55rem .6rem .6rem;
  border-radius: 12px;
  background: var(--emaille);
  color: var(--sur-emaille);
  font-family: var(--f-display);
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(40, 8, 16, .7);
}
.invite-day { font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.invite-month { font-size: .95rem; }
.invite-media.is-date {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .14), transparent 60%),
    var(--emaille);
}
.invite-media.is-date .invite-date {
  position: static;
  background: none;
  box-shadow: none;
  text-shadow: 0 2px 1px rgba(70, 14, 26, .45), 0 8px 18px rgba(70, 14, 26, .25);
}
.invite-media.is-date .invite-day { font-size: clamp(4rem, 7vw, 5.5rem); }
.invite-media.is-date .invite-month { font-size: clamp(1.3rem, 1.6vw, 1.6rem); margin-top: .2rem; }
.invite-body h3 { margin-bottom: .5rem; }
.invite-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; color: var(--encre-2); font-size: 1rem; }
.invite-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.invite-meta .icon { color: var(--encre-lien); }

.invite-empty { max-width: 46rem; padding: clamp(2rem, 4vw, 3rem); }
.invite-empty > * { position: relative; }
.invite-empty-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); line-height: 1.15; margin-bottom: .75rem; }
.invite-empty p { color: var(--encre-2); }
.invite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.5rem; }

.past { position: relative; z-index: 2; margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 40rem; }
.past h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.past ul { list-style: none; margin: 0; padding: 0; }
.past li { padding: .65rem 0; border-top: 1px solid rgba(58, 26, 36, .15); }
.past-date { display: inline-block; min-width: 10rem; color: var(--encre-2); font-variant-numeric: tabular-nums; }

/* ---------- Nouvelles ---------- */

.news { position: relative; z-index: 2; display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.news-item img { border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.news-date { color: var(--encre-2); font-size: .95rem; margin-bottom: .35rem; }
.news-item h3 { margin-bottom: .6rem; }

/* ---------- Plaques des fondatrices ---------- */

.plates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.plate {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem 1rem 1rem;
  border-radius: 12px;
  color: var(--sur-emaille);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), transparent 50%),
    var(--emaille);
  box-shadow: 0 14px 24px -16px rgba(58, 26, 36, .85);
}
.plate-mono {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--sur-emaille);
  color: var(--emaille);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .02em;
  box-shadow: 0 2px 4px rgba(40, 8, 16, .45) inset;
}
.plate-name {
  display: grid;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.2rem, .6vw + 1rem, 1.45rem);
  line-height: 1.15;
  text-shadow: 0 1px 1px rgba(60, 12, 22, .45);
}

/* ---------- Nous rejoindre ---------- */

.join { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 60rem) { .join { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.join-main { position: relative; z-index: 2; }
.join-main h2 { margin-bottom: 1.25rem; max-width: 16ch; }
.join-main p { max-width: 38rem; color: var(--encre-2); font-size: clamp(1.08rem, .4vw + 1rem, 1.22rem); }
.join-main p:last-child { margin-top: 2rem; }
.join-don {
  position: relative;
  z-index: 2;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: url("../img/papier.svg"), var(--papier);
  border-radius: 6px;
  box-shadow: 0 1px 1px rgba(58, 26, 36, .14), 0 18px 34px -22px rgba(58, 26, 36, .55);
}
.join-don h3 { font-size: clamp(1.6rem, 1vw + 1.2rem, 2rem); margin-bottom: .75rem; }
.join-don p { color: var(--encre-2); }
.join-don-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

/* ---------- Galerie ---------- */

.gallery {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 16rem;
  column-gap: 1.25rem;
}
.gallery li { break-inside: avoid; margin-bottom: 1.25rem; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; background: var(--papier-ombre); }
.gallery img { width: 100%; transition: transform .6s var(--ease-out), filter .4s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .95rem; color: var(--encre-2); padding-top: .5rem; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 70rem);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(36, 13, 20, .88); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 6px; }
.lightbox p { color: var(--papier); text-align: center; margin-top: .75rem; }
.lightbox-close {
  position: absolute;
  top: -3.25rem; right: 0;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 0;
  background: var(--papier);
  color: var(--encre);
  cursor: pointer;
}

/* ---------- Écrire (le billet revient) ---------- */

.band-ecrire {
  --focus: var(--sur-emaille);
  color: var(--sur-emaille);
  background:
    radial-gradient(110% 70% at 85% 0%, rgba(255, 255, 255, .1), transparent 60%),
    var(--emaille);
  padding-top: calc(var(--band-y) * .7);
}
.band-ecrire a:not(.btn) { color: var(--sur-emaille); }
.ecrire { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 64rem) { .ecrire { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.ecrire-intro { position: relative; z-index: 2; padding-top: 2.5rem; }
.ecrire-intro h2 { margin-bottom: 1.25rem; }
.ecrire-intro > p { font-size: clamp(1.08rem, .4vw + 1rem, 1.22rem); max-width: 30rem; }

.coords { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.coords li { display: flex; gap: .9rem; align-items: flex-start; line-height: 1.5; }
.coords .icon { width: 1.4rem; height: 1.4rem; margin-top: .1rem; color: var(--sur-emaille-2); }

.ecrire-slot { position: relative; z-index: 2; display: grid; justify-items: center; }
.slot-top { width: 100%; }
.letter-window {
  width: 100%;
  overflow: hidden;
  margin-top: -15px;
  padding: 0 clamp(.5rem, 2vw, 1.25rem) 2rem;
}
.letter {
  --focus: var(--encre);
  position: relative;
  color: var(--encre);
  background: url("../img/papier.svg"), linear-gradient(180deg, #efe2d6, var(--papier) 8%, #fbf6f1);
  border-radius: 0 0 8px 8px;
  padding: calc(15px + clamp(1.5rem, 3vw, 2.25rem)) clamp(1.25rem, 3.5vw, 2.5rem) clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: 0 26px 40px -24px rgba(40, 8, 16, .9), 0 2px 6px rgba(40, 8, 16, .25);
  transform-origin: 50% 0;
  transition: transform .85s var(--ease-in), opacity .3s .55s;
}
.band-ecrire .letter a { color: var(--encre-lien); }
.letter.is-posted { transform: translateY(calc(-100% - 40px)); }
.letter-done { text-align: left; }
.letter-done-title {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); line-height: 1.15;
  margin-bottom: .75rem;
}
.letter-done-title .icon { color: #2f7a4e; width: 1.6rem; height: 1.6rem; flex: none; }
.letter-done.is-arriving { animation: letter-in .9s var(--ease-out) both; }
@keyframes letter-in { from { transform: translateY(calc(-100% - 40px)); } to { transform: none; } }

/* Champs */
.field { margin-bottom: 1.25rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .45rem;
  padding: 0;
}
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: .75rem .95rem;
  border: 1.5px solid rgba(58, 26, 36, .38);
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: var(--encre);
  font: inherit;
  font-size: max(1rem, 16px);
  line-height: 1.45;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  caret-color: var(--emaille);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover { border-color: rgba(58, 26, 36, .6); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--encre);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(168, 67, 79, .35);
}
.field [aria-invalid="true"] { border-color: #a12a3a; background: #fff6f5; }
.field-row { display: grid; gap: .9rem 1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row .field { margin-bottom: .35rem; }
.field-hint { font-size: .95rem; color: var(--encre-2); margin: 0 0 1.25rem; }
.field-error {
  display: flex; gap: .4rem; align-items: baseline;
  color: #8f1f2f;
  font-weight: 700;
  font-size: .98rem;
  margin: .45rem 0 0;
}
.field-error::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; transform: translateY(-.05rem); }

.intent-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.field .intent { position: relative; display: inline-block; margin: 0; cursor: pointer; font: inherit; }
.intent input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.intent span {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(58, 26, 36, .45);
  background: rgba(255, 255, 255, .55);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  transition: background-color .2s, color .2s, border-color .2s;
}
.intent:hover span { border-color: var(--encre); }
.intent input:checked + span { background: var(--emaille); border-color: var(--emaille); color: var(--sur-emaille); }
.intent input:focus-visible + span { outline: 3px solid var(--encre); outline-offset: 3px; }

.field-check label { display: flex; gap: .75rem; align-items: flex-start; font-family: var(--f-text); font-weight: 400; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.field-check input {
  flex: none;
  appearance: none;
  width: 1.5rem; height: 1.5rem;
  margin: .05rem 0 0;
  border: 1.5px solid rgba(58, 26, 36, .55);
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.field-check input::after { content: ""; width: .5rem; height: .85rem; border: solid var(--sur-emaille); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px) scale(0); transition: transform .2s var(--ease-out); }
.field-check input:checked { background: var(--emaille); border-color: var(--emaille); }
.field-check input:checked::after { transform: rotate(45deg) translate(-1px, -2px) scale(1); }
.field-check .field-error { margin-left: 2.25rem; }

.form-alert {
  padding: .85rem 1rem;
  border-radius: 10px;
  background: #fbe3e1;
  color: #7a1626;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.letter-submit { margin: 1.75rem 0 0; }
.form-status:empty { display: none; }
.form-status { margin-top: 1rem; color: var(--encre-2); }

/* ---------- Pied de page ---------- */

.foot {
  --focus: var(--papier);
  background: var(--encre);
  color: #ead9d0;
  padding: clamp(3rem, 6vw, 4.5rem) 0 3rem;
  font-size: 1rem;
}
.foot-inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: 2rem 3rem;
}
@media (min-width: 56rem) { .foot-inner { grid-template-columns: 1.6fr 1fr 1fr; align-items: start; } }
.foot-logo { width: min(15rem, 70%); height: auto; color: var(--rose); margin-bottom: 1.25rem; }
.foot p { color: #d9c3bb; font-size: .95rem; }
.foot a { color: #f3e4dc; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot-links a { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Mentions légales ---------- */

.legal { padding-block: clamp(3rem, 8vw, 6rem); }
.legal-wrap { max-width: calc(46rem + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal-back { margin-top: 3rem; }

/* ---------- Apparitions (avec JS seulement, contenu visible par défaut) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tag.reveal { transform: rotate(var(--tilt, 0deg)) translateY(calc(var(--drop, 0px) - 26px)); }
.js .tag.reveal.is-in { transform: rotate(var(--tilt, 0deg)) translateY(var(--drop, 0)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal, .js .tag.reveal { opacity: 1; transform: rotate(var(--tilt, 0deg)) translateY(var(--drop, 0)); }
  .js .reveal:not(.tag) { transform: none; }
}

@media print {
  .lid, .ribbon-layer, .slot-zone, .ecrire-slot, .foot-links { display: none; }
  body, .face, .band-ecrire, .band-joie { background: #fff; color: #000; }
}

/* ---------- Ajustements petits écrans ---------- */
@media (max-width: 47.99rem) {
  .face-inner { min-height: 0; row-gap: 1.25rem; }
  .slot-zone { padding-top: 0; }
  .slip-window { padding-top: 1.5rem; padding-inline: .5rem; }
  .slip-choices { gap: .5rem; }
  .chip { min-height: 2.75rem; padding: .45rem .85rem; font-size: .98rem; }
  .slip-q { margin-bottom: .75rem; }
  .plaque { padding: .7rem 1.1rem; border-radius: 18px; }
}
.nowrap { white-space: nowrap; }
