/* Pages /demande-de-conference/ and /merci/. Built on the site's tokens (styles.css): navy, gold, ivory,
   Cormorant Garamond for titles, Poppins for text. */

.page-top {
  padding-top: calc(5.25rem + clamp(2.5rem, 6vw, 5rem));
}

.page-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.page-lead {
  max-width: 36rem;
  margin: 0 0 1rem;
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-lead--muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Demande : the form on the navy ground, his stage photograph as the one rich element ---- */

.demande {
  padding-top: calc(5.25rem + clamp(2rem, 4vw, 3rem));
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.demande-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

@media (min-width: 960px) {
  .demande-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 80px;
    align-items: center;
  }
}

.demande-copy .page-lead {
  max-width: 32rem;
  margin-bottom: 32px;
}

.demande-form {
  display: grid;
  gap: 16px;
  max-width: 32rem;
}

.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 560px) {
  .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: rgba(248, 243, 234, 0.86);
  font-size: 0.8125rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(248, 243, 234, 0.14);
  border-radius: 10px;
  background: rgba(248, 243, 234, 0.04);
  color: var(--cream);
  font: inherit;
  /* 16px keeps iOS from zooming into the field */
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
  line-height: 1.6;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(169, 184, 200, 0.75);
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(248, 243, 234, 0.24);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--gold);
  outline: none;
  background: rgba(248, 243, 234, 0.06);
  box-shadow: 0 0 0 3px rgba(213, 173, 54, 0.22);
}

.field [aria-invalid="true"] {
  border-color: #e58b7a;
}

.field-error {
  margin: 0;
  color: #f0a898;
  font-size: 0.8125rem;
}

/* Kept in the form for bots, removed for people and screen readers. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demande-form .btn {
  justify-self: start;
  height: 52px;
  margin-top: 4px;
  padding: 0 28px;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 559px) {
  .demande-form .btn {
    justify-self: stretch;
  }
}

.demande-form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form-status {
  margin: 0;
  color: #f0a898;
  font-size: 0.875rem;
}

.form-status:empty {
  display: none;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.demande-photo {
  display: block;
  width: 100%;
  height: auto;
  /* 4:3 crop anchored left keeps him on stage and enough of the full house, and matches the form's height */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left center;
  border-radius: 16px;
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
}

.figures div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.figures dt {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.figures dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 559px) {
  .figures {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* One entrance on load, then nothing moves. */
@keyframes demande-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.demande [data-enter] {
  animation: demande-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.demande [data-enter] + [data-enter] {
  animation-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  .demande [data-enter] {
    animation: none;
  }
}

.form-note a,
.page-lead a,
.merci-end a:not(.btn) {
  color: var(--gold-2);
  border-bottom: 1px solid rgba(231, 197, 107, 0.4);
}

/* ---- Merci ---- */

.merci-hero {
  max-width: 46rem;
}

.merci-video {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.merci-video video {
  display: block;
  width: 100%;
  aspect-ratio: 848 / 464;
  background: #000;
}

.merci-video figcaption {
  padding: 0.9rem 1.1rem;
  background: var(--navy-900);
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.timeline li {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 243, 234, 0.03);
}

.timeline .when {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--navy-900);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 739 / 416;
  object-fit: cover;
}

@media (max-width: 559px) {
  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.press-quote {
  margin: 0 0 2.5rem;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--gold);
}

.press-quote p {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
}

.press-quote cite {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
}

.press-quote cite a {
  color: var(--gold-2);
}

.press-list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

@media (min-width: 760px) {
  .press-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.press-list dt {
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.press-list dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.3;
}

.book-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 759px) {
  .book-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.book-row a {
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  transition: color 0.2s ease, transform 0.25s ease;
}

.book-row a:hover {
  color: var(--cream);
  transform: translateY(-3px);
}

.book-row img {
  width: 100%;
  aspect-ratio: 224 / 348;
  object-fit: cover;
  border-radius: 0.4rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.merci-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.merci-end p {
  margin: 0;
}

.section--tight {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

/* .section--tight comes later in this file and would otherwise cancel the room left for the fixed header. */
.section--tight.page-top {
  padding-top: calc(5.25rem + clamp(2.5rem, 6vw, 4.5rem));
}

/* Even line lengths on titles, no lone last word in short paragraphs (both pages only; the home page is untouched). */
.page-title,
.section-head h2 {
  text-wrap: balance;
}

.page-lead,
.timeline p {
  text-wrap: pretty;
}
