:root {
  --tempo-paper: #f1eee7;
  --tempo-ink: #11100f;
  --tempo-orange: #e35e25;
  --tempo-rule: #aaa49b;
  --tempo-muted: #5f5b56;
}

body {
  color: var(--tempo-ink);
  background: var(--tempo-paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.timer-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  min-height: 78px;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 2px solid var(--tempo-ink);
}

.timer-header > a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  text-transform: uppercase;
}

.timer-header nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.interval-poster {
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(26rem, 1.5fr);
  
  border-bottom: 2px solid var(--tempo-ink);
}

.poster-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 3vw, 3.5rem);
}

.poster-copy > p:first-child,
.mode-list header > p,
.workout-credits header > p,
.timer-contact header > p {
  margin: 0 0 1rem;
  color: var(--tempo-orange);
  font: 800 0.72rem/1.3 ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poster-copy h1 {
  margin: 0;
  font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  font-size: clamp(3.2rem, 4.6vw, 5.1rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.8;
  text-transform: uppercase;
}

.timer-subtitle {
  margin: 1rem 0 0;
  color: var(--tempo-orange);
  font-size: clamp(1.25rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
}

.timer-pitch {
  max-width: 32rem;
  margin: 1.6rem 0 0;
  color: #45413d;
  line-height: 1.6;
}

.poster-copy .app-store-action {
  margin-top: 1rem;
  margin-left: -10px;
}

.timer-screens {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr;
  align-items: end;
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
  padding: clamp(1.6rem, 3.4vw, 3rem) clamp(1.2rem, 2.4vw, 2.4rem);
  border-left: 2px solid var(--tempo-ink);
}

.timer-shot {
  margin: 0;
}

.timer-shot:not(.timer-shot--lead) {
  padding-bottom: clamp(0.8rem, 3vw, 2.6rem);
}

.timer-screens picture {
  display: block;
}

.timer-screens img {
  width: 100%;
  height: auto;
}

.timer-screens-note {
  grid-column: 1 / -1;
  justify-self: end;
  margin: 0.4rem 0 0;
  padding: 0.55rem 0.75rem;
  color: var(--tempo-paper);
  background: var(--tempo-orange);
  font: 800 0.64rem/1.3 ui-monospace, monospace;
  text-transform: uppercase;
}

.timing-facts {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 2px solid var(--tempo-ink);
}

.timing-facts > p {
  margin: 0;
  color: var(--tempo-muted);
  font: 800 0.68rem/1.4 ui-monospace, monospace;
  text-transform: uppercase;
}

.timing-facts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.mode-list,
.workout-credits,
.timer-contact,
.timer-footer {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.mode-list {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2.5rem, 8vw, 8rem);
  padding-block: clamp(5rem, 10vw, 9rem);
}

.mode-list h2,
.workout-credits h2,
.timer-contact h2 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}

.mode-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--tempo-ink);
}

.mode-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--tempo-rule);
}

.mode-list li > span {
  color: var(--tempo-orange);
  font: 800 0.72rem/1.6 ui-monospace, monospace;
}

.mode-list h3,
.mode-list li p {
  margin: 0;
}

.mode-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.mode-list li p,
.timer-detail,
.workout-credits > p {
  color: var(--tempo-muted);
  line-height: 1.65;
}

.timer-detail {
  grid-column: 2;
  max-width: 48rem;
  margin: 1.25rem 0 0;
}

.workout-credits {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-top: 2px solid var(--tempo-ink);
}

.workout-credits ol {
  margin: 2rem 0 1rem;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--tempo-ink);
}

.workout-credits li {
  border-bottom: 1px solid var(--tempo-rule);
}

.workout-credits li a {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
  text-decoration: none;
}

.workout-credits li a > span {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.workout-credits small {
  color: var(--tempo-muted);
}

.timer-contact {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 9vw, 8rem);
  border-top: 2px solid var(--tempo-ink);
}

.timer-contact header > p:last-child {
  color: var(--tempo-muted);
  line-height: 1.6;
}

.timer-contact .support-form {
  grid-template-columns: 1fr 1fr;
}

.timer-contact .message-field,
.timer-contact button,
.timer-contact .form-status {
  grid-column: 1 / -1;
}

.timer-contact button {
  color: var(--tempo-paper);
  border-color: var(--tempo-orange);
  background: var(--tempo-orange);
}

.timer-footer {
  padding-block: 2rem 3rem;
  color: var(--tempo-muted);
  border-top: 2px solid var(--tempo-ink);
}

@media (max-width: 980px) {
  .interval-poster {
    grid-template-columns: 1fr;
  }

  .poster-copy {
    grid-column: 1 / -1;
    min-height: 430px;
  }

  .timer-screens {
    border-top: 2px solid var(--tempo-ink);
  }

}

@media (max-width: 680px) {
  /* une seule colonne : le rail de captures prend toute la largeur */
  .interval-poster {
    grid-template-columns: 1fr;
  }

  .timer-screens {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 64%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 1.4rem 1.25rem;
  }

  .timer-shot {
    scroll-snap-align: center;
  }

  .timer-shot:not(.timer-shot--lead) {
    padding-bottom: 0;
  }

  .timer-screens-note {
    display: none;
  }

  .timer-header {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .timer-header nav {
    display: none;
  }

  .poster-copy {
    min-height: auto;
    padding: 3rem 1.25rem 2rem;
  }

  .poster-copy h1 {
    font-size: 4rem;
  }

  .timing-facts,
  .mode-list,
  .timer-contact {
    grid-template-columns: 1fr;
  }

  .timing-facts {
    gap: 1rem;
  }

  .timing-facts ul {
    display: grid;
    gap: 0.45rem;
  }

  .mode-list {
    gap: 2rem;
  }

  .timer-detail {
    grid-column: auto;
  }

  .workout-credits li a {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .timer-contact .support-form {
    grid-template-columns: 1fr;
  }

  .timer-contact .message-field,
  .timer-contact button,
  .timer-contact .form-status {
    grid-column: auto;
  }
}
.time-out {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  min-height: 100vh;
}

.time-out header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vw, 7rem);
  border-right: 2px solid var(--tempo-ink);
}

.time-out header > p:first-child {
  color: var(--tempo-orange);
  font: 800 0.72rem/1.3 ui-monospace, monospace;
}

.time-out h1 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.8;
  text-transform: uppercase;
}

.time-out figure {
  margin: 0; display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem); }

.time-out figure img { width: auto; max-width: 100%; max-height: 82vh; height: auto; margin-inline: auto; }
