@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-variable.woff2') format('woff2-variations'),
       url('../fonts/cormorant-garamond-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-variable.woff2') format('woff2-variations'),
       url('../fonts/manrope-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-blue: #005486;
  --color-gold: #bc823c;
  --color-dark: #383838;
  --color-bg: #F7F2EA;
  --color-white: #ffffff;
  --color-track: #ece2d1;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(0, 84, 134, 0.05), transparent 42%),
    radial-gradient(circle at 88% 30%, rgba(188, 130, 60, 0.07), transparent 38%),
    radial-gradient(circle at 20% 85%, rgba(188, 130, 60, 0.05), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(0, 84, 134, 0.05), transparent 38%),
    var(--color-bg);
  background-attachment: fixed;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

@media (min-width: 900px) {
  .container {
    max-width: 680px;
    padding-top: 64px;
  }
}

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-blue);
  margin: 0 0 20px;
  line-height: 1.25;
}

h1 {
  font-size: 1.7rem;
  text-align: center;
}

h2 {
  font-size: 1.3rem;
  text-align: center;
}

p {
  margin: 0 0 16px;
}

/* Logo */

.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo {
  width: 64px;
  height: auto;
  display: block;
}

/* Portrait */

.portrait-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.portrait {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Audio player */

.audio-player {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 2px 14px rgba(56, 56, 56, 0.06);
}

.play-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.play-btn svg[hidden] {
  display: none;
}

.audio-progress {
  flex: 1;
  cursor: pointer;
  padding: 10px 0;
  outline-offset: 4px;
}

.audio-progress-track {
  position: relative;
  height: 6px;
  background: var(--color-track);
  border-radius: 3px;
}

.audio-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--color-gold);
  border-radius: 3px;
}

.audio-time {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--color-dark);
  white-space: nowrap;
  min-width: 84px;
  text-align: right;
}

/* Transcript */

.transcript {
  margin-top: 32px;
}

.transcript-toggle {
  display: block;
  width: 100%;
  background: none;
  border: 1px solid var(--color-blue);
  color: var(--color-blue);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 24px;
  cursor: pointer;
}

.transcript-content {
  margin-top: 16px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.transcript-content p {
  margin: 0 0 16px;
}

.transcript-content p:last-child {
  margin-bottom: 0;
}

/* Form section */

.form-section {
  margin-top: 40px;
}

.form-locked-message {
  text-align: center;
  color: var(--color-dark);
  opacity: 0.75;
  background: var(--color-white);
  border-radius: 12px;
  padding: 28px 20px;
  margin: 0;
}

.tally-container iframe {
  width: 100%;
  border: none;
  display: block;
}

/* Page 2 : confirmation + calendrier */

.confirmation {
  text-align: center;
  margin-bottom: 32px;
}

.cal-embed {
  width: 100%;
  min-height: 700px;
  overflow: hidden;
}

@media (min-width: 600px) {
  h1 {
    font-size: 1.9rem;
  }

  .portrait {
    width: 200px;
    height: 200px;
  }
}
