@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/bodoni-moda-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --ivoire: #fcfbf7;
  --ivoire-soutenu: #f6f0e5;
  --bordeaux: #4c090c;
  --bordeaux-doux: #6f2528;
  --ligne: rgba(76, 9, 12, 0.2);
  --ombre: 0 24px 70px rgba(75, 18, 20, 0.1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ivoire); }
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--ivoire);
  color: var(--bordeaux);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.teaser {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  padding: clamp(1.5rem, 6svh, 4rem) 1.5rem;
  text-align: center;
}
.teaser__monogramme {
  width: clamp(13rem, 31vw, 22rem);
  height: auto;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 82%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0 82%, transparent 100%);
}
.teaser__date {
  margin: 0.75rem 0 0;
  margin: clamp(0.4rem, 1.6svh, 1rem) 0 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-indent: 0.22em;
}
.teaser__message {
  margin: 1.75rem 0 0;
  margin: clamp(1.25rem, 3.5svh, 2.25rem) 0 0;
  font-size: clamp(0.83rem, 1.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.teaser__message::before {
  content: "";
  width: clamp(2.5rem, 8vw, 4rem);
  height: 1px;
  display: block;
  margin: 0 auto clamp(0.85rem, 2.2svh, 1.35rem);
  background: var(--bordeaux);
}
.page-shell {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6.5rem) 0;
}
.page-shell--wide { width: min(100% - 2rem, 86rem); }
.brand-mark {
  width: 5.25rem;
  height: 5.25rem;
  display: block;
  margin: 0 auto 1.75rem;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 82%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 0 82%, transparent 100%);
}
.brand-mark--coordinates {
  width: clamp(10rem, 24vw, 14rem);
  max-width: 100%;
  height: auto;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
}
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--bordeaux-doux);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  text-align: center;
}
.intro {
  max-width: 43rem;
  margin: 1.5rem auto 2.5rem;
  color: #4d3534;
  font-size: clamp(1rem, 2vw, 1.12rem);
  text-align: center;
}
.card {
  padding: clamp(1.35rem, 5vw, 3rem);
  border: 1px solid var(--ligne);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--ombre);
  backdrop-filter: blur(8px);
}
.form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section + .form-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--ligne); }
.form-section legend {
  width: 100%;
  margin: 0 0 1.15rem;
  padding: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
}
.form-section legend span { color: #705b5a; font-family: "Manrope", sans-serif; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.field input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(76, 9, 12, 0.3);
  border-radius: 0.7rem;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
  color: #391d1e;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus { border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(76, 9, 12, 0.1); }
.field input[aria-invalid="true"] { border-color: #a0000b; }
.field__error, .form-error { margin: 0.35rem 0 0; color: #8f0009; font-size: 0.78rem; }
.privacy { margin: 1.5rem 0; color: #634a49; font-size: 0.8rem; text-align: center; }
.form-contact { margin: 1rem 0 0; color: #634a49; font-size: 0.82rem; text-align: center; }
.form-contact a { color: var(--bordeaux); font-weight: 700; }
.button, .link-button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--bordeaux);
  border-radius: 999px;
  background: var(--bordeaux);
  color: var(--ivoire);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.button:hover, .link-button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.58; }
.button--full { width: 100%; }
.button--quiet { background: transparent; color: var(--bordeaux); }
.button--danger { border-color: #8f0009; background: #8f0009; color: var(--ivoire); }
.success {
  min-height: 18rem;
  display: grid;
  place-items: center;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2rem, 7vw, 3.75rem);
  line-height: 1.15;
  text-align: center;
}
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-header h1 { text-align: left; }
.eyebrow--left { text-align: left; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.login-actions { margin-top: 1.25rem; }
.admin-list { display: grid; gap: 1rem; }
.response-summary { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.15rem 1.25rem; border: 1px solid var(--ligne); border-radius: 1rem; background: rgba(255, 255, 255, 0.56); }
.response-summary__content { min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; gap: 1rem; }
.response-summary__content h2 { margin: 0; overflow: hidden; font-family: "Bodoni Moda", serif; font-size: 1.45rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.response-summary__content p { margin: 0; overflow: hidden; color: #634a49; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.response-summary__actions, .confirmation-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0.65rem; }
.confirmation-target { padding: 0.9rem 1rem; border-left: 3px solid var(--bordeaux); background: var(--ivoire-soutenu); }
.confirmation-target p { margin: 0; overflow-wrap: anywhere; }
.confirmation-target p + p { margin-top: 0.2rem; }
.admin-detail { margin-top: 2rem; }
.response-card { padding: 1.25rem; border: 1px solid var(--ligne); border-radius: 1rem; background: rgba(255, 255, 255, 0.56); }
.response-card__top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.response-card__top h2 { margin: 0; font-family: "Bodoni Moda", serif; font-size: 1.55rem; font-weight: 500; }
.response-card__top time { color: #705b5a; font-size: 0.75rem; }
.response-card .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.response-card__footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.8rem; margin-top: 1rem; }
.empty-state { padding: 4rem 1rem; border: 1px dashed var(--ligne); border-radius: 1rem; color: #705b5a; text-align: center; }
.confirmation { margin-top: 2rem; }
.confirmation p:first-child { margin-top: 0; }
.confirmation-actions { justify-content: flex-end; margin-top: 1.5rem; }

@media (max-width: 760px) {
  .form-grid, .response-card .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .admin-header, .response-card__top, .response-summary { align-items: flex-start; flex-direction: column; }
  .admin-actions { width: 100%; }
  .admin-actions > * { flex: 1; }
  .response-summary__actions, .confirmation-actions { width: 100%; }
  .response-summary__actions > *, .confirmation-actions > * { flex: 1; }
  .response-summary__content { width: 100%; grid-template-columns: 1fr; gap: 0.15rem; }
  .response-summary__content h2, .response-summary__content p { overflow: visible; text-overflow: clip; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
