/*
 * Showcase of scolaneo.com: palette « Terre cuite » of the applications (libs/ui/src/styles/
 * theme.scss), with orange, terracotta, ochre, jean blue and a soft sage green (prompt L).
 * Titles in Baloo 2 / Baloo Bhaijaan 2 (rounded, OFL, served by the site itself), text in the
 * fonts of the system. No style attribute anywhere (CSP: style-src 'self').
 */
@font-face {
  font-family: 'Scolaneo Display';
  src: url('fonts/baloo-2-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Scolaneo Display';
  src: url('fonts/baloo-2-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-024F, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Scolaneo Display';
  src: url('fonts/baloo-bhaijaan-2-arabic-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Scolaneo Display';
  src: url('fonts/baloo-bhaijaan-2-arabic-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --navy: #2f5779;
  --navy-soft: #e3ebf2;
  --text: #2a2724;
  --muted: #625d57;
  --border: #e6e0d8;
  --page: #fbf8f3;
  --card: #ffffff;
  --soft: #f3eee7;
  /* Buttons: white text on it stays above 4.5:1. */
  --orange: #b85618;
  --orange-hover: #9d4812;
  /* Doodles and strokes only (never under a text). */
  --orange-bright: #f08a3c;
  --clay: #a84c2b;
  --clay-soft: #f8e4da;
  --ochre: #e8a92a;
  --ochre-soft: #fdf0d2;
  --jean: #3d6a96;
  --jean-soft: #e3ecf4;
  --sage: #7fa37a;
  --sage-soft: #e3efdc;
  --sage-text: #3b6a38;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 0 0 1px rgb(42 39 36 / 5%), 0 6px 18px rgb(42 39 36 / 8%);
  --shadow-hover: 0 0 0 1px rgb(42 39 36 / 5%), 0 14px 32px rgb(42 39 36 / 13%);
  --display: 'Scolaneo Display', system-ui, 'Segoe UI', Tahoma, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  font-family:
    system-ui, 'Segoe UI', Roboto, 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.6;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-block-size: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
}
main {
  flex: 1;
  inline-size: min(1160px, 100%);
  margin-inline: auto;
  padding: 2rem 16px 3rem;
}
a {
  color: var(--navy);
}
h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-block: 0.5rem 0.75rem;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-block: 3rem 1.25rem;
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-inline-size: 38rem;
  margin: 0;
}
.sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.icon {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  fill: currentColor;
  flex: none;
}
/* An anchor (#form, #espaces) is not hidden under the sticky header. */
[id] {
  scroll-margin-block-start: 5.5rem;
}
:focus-visible {
  outline: 3px solid var(--jean);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgb(184 86 24 / 28%);
}
.btn--primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}
.btn--link {
  color: var(--text);
  padding-inline: 0.5rem;
  text-decoration: underline;
  text-decoration-color: var(--orange-bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.btn--soft {
  background: var(--card);
  color: var(--navy);
  box-shadow: var(--shadow);
}

/* Header and footer of every page */
header.site {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding: 0.75rem max(16px, calc((100vw - 1160px) / 2));
  border-block-end: 1px solid var(--border);
  background: rgb(251 248 243 / 92%);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text);
  text-decoration: none;
}
.brand .brand__accent {
  color: var(--orange);
}
header.site > nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.5rem;
  flex: 1;
}
header.site nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding-block: 0.25rem;
  border-block-end: 2px solid transparent;
}
header.site nav a:hover {
  color: var(--orange);
}
header.site nav a.active {
  color: var(--orange);
  border-block-end-color: var(--orange-bright);
}
/* The languages (prompt M): a compact button (globe, FR / EN / ع) opening three real links. */
.langs {
  position: relative;
  flex: none;
}
.langs > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.langs > summary::-webkit-details-marker {
  display: none;
}
.langs > summary .icon {
  inline-size: 1.2rem;
  block-size: 1.2rem;
  color: var(--jean);
}
.langs[open] > summary {
  border-color: var(--jean);
}
header.site .langs > nav {
  position: absolute;
  inset-block-start: calc(100% + 0.4rem);
  inset-inline-end: 0;
  z-index: 10;
  display: grid;
  gap: 0.15rem;
  min-inline-size: 11rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-hover);
}
header.site .langs > nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
}
header.site .langs > nav a:hover,
header.site .langs > nav a:focus-visible {
  background: var(--soft);
  color: var(--text);
}
header.site .langs > nav a[aria-current] {
  background: var(--clay-soft);
  color: var(--clay);
}
.langs__code {
  display: inline-grid;
  place-items: center;
  min-inline-size: 2rem;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  background: var(--soft);
  font-size: 0.8rem;
}
footer.site {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem 2rem;
  padding: 2.5rem max(16px, calc((100vw - 1160px) / 2)) 1.5rem;
  background: #2a2724;
  color: rgb(255 255 255 / 82%);
  font-size: 0.95rem;
}
footer.site .foot-brand p {
  margin: 0.5rem 0 0;
  max-inline-size: 18rem;
}
footer.site .brand {
  color: #fff;
}
footer.site .brand .brand__accent {
  color: var(--ochre);
}
footer.site h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.1rem;
}
footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
footer.site a {
  color: rgb(255 255 255 / 88%);
  text-decoration: none;
}
footer.site a:hover {
  color: var(--ochre);
  text-decoration: underline;
}
footer.site .copyright {
  grid-column: 1 / -1;
  padding-block-start: 1rem;
  border-block-start: 1px solid rgb(255 255 255 / 15%);
  color: rgb(255 255 255 / 65%);
  font-size: 0.85rem;
}

/* Home: welcome */
.hero2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding-block: 1.5rem 1rem;
}
.hero2__text {
  position: relative;
}
.hero2 h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-block: 0 1rem;
}
.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.mark__line {
  position: absolute;
  inset-inline: -0.1em;
  inset-block-end: -0.12em;
  inline-size: calc(100% + 0.2em);
  block-size: 0.38em;
  color: var(--orange-bright);
  pointer-events: none;
}
.doodle {
  position: absolute;
  color: var(--jean);
  pointer-events: none;
}
.doodle--arrow {
  inset-inline-end: -1.5rem;
  inset-block-start: 4.5rem;
  inline-size: 7.5rem;
  block-size: auto;
  opacity: 0.85;
}
/* Arabic: the underline and the arrow drawn the other way. */
[dir='rtl'] .mark__line,
[dir='rtl'] .doodle--arrow {
  transform: scaleX(-1);
}
.hero2__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-block-start: 1.75rem;
}
/* The blocks and doodles, the photo standing on them (bottom aligned, never turned). */
.hero2__art {
  position: relative;
  inline-size: 100%;
  max-inline-size: 540px;
  margin-inline: auto;
  aspect-ratio: 560 / 620;
}
.hero2__blocks {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}
[dir='rtl'] .hero2__blocks {
  transform: scaleX(-1);
}
.hero2__photo {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  translate: -50% 0;
  block-size: 104%;
  inline-size: auto;
  max-inline-size: none;
  filter: drop-shadow(0 14px 24px rgb(42 39 36 / 22%));
}
[dir='rtl'] .hero2__photo {
  translate: 50% 0;
}

/* Floating cards of the real advantages */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.perk {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}
.perk:nth-child(2) {
  animation-delay: -1.5s;
}
.perk:nth-child(3) {
  animation-delay: -3s;
}
.perk:nth-child(4) {
  animation-delay: -4.5s;
}
@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}
.perk__icon {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  flex: none;
  border-radius: 14px;
}
.perk__icon .icon {
  inline-size: 1.4rem;
  block-size: 1.4rem;
}
.perk__icon--sage {
  background: var(--sage-soft);
  color: var(--sage-text);
}
.perk__icon--jean {
  background: var(--jean-soft);
  color: var(--jean);
}
.perk__icon--ochre {
  background: var(--ochre-soft);
  color: #875800;
}
.perk__icon--clay {
  background: var(--clay-soft);
  color: var(--clay);
}

/* Videos */
.band {
  margin-block-start: 3rem;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.25rem;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.band h2 {
  margin-block-start: 0;
}
.band .lead {
  margin-inline: auto;
}
.hero-video {
  position: relative;
  inline-size: min(900px, 100%);
  margin: 1.5rem auto 1rem;
}
.hero-video video {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: 0 10px 30px rgb(42 39 36 / 18%);
}
.hero-video video:not([controls]) {
  object-fit: cover;
}
/* The sound of the short video (prompt O): a small, discreet button over its corner. */
.sound {
  position: absolute;
  inset-block-end: 0.75rem;
  inset-inline-start: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgb(42 39 36 / 62%);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.sound .icon {
  inline-size: 1.1rem;
  block-size: 1.1rem;
}
.sound:hover,
.sound:focus-visible {
  background: rgb(42 39 36 / 85%);
}
.sound[aria-pressed='true'] {
  background: var(--orange);
}

/* The cycle of an exam */
.cycle {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.cycle li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
  padding: 1.5rem 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.cycle li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--border);
}
/* A dashed stroke from one step to the next (drawn the other way in Arabic). */
.cycle li:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-block-start: 2.9rem;
  inset-inline-end: -1rem;
  inline-size: 1rem;
  border-block-start: 3px dashed var(--orange-bright);
}
.cycle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.cycle strong {
  font-family: var(--display);
  font-size: 1.25rem;
}
.blob {
  display: grid;
  place-items: center;
  inline-size: 3.6rem;
  block-size: 3.6rem;
  border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%;
}
.blob .icon {
  inline-size: 1.7rem;
  block-size: 1.7rem;
}
.blob--clay {
  background: var(--clay-soft);
  color: var(--clay);
}
.blob--ochre {
  background: var(--ochre-soft);
  color: #875800;
}
.blob--jean {
  background: var(--jean-soft);
  color: var(--jean);
}
.blob--sage {
  background: var(--sage-soft);
  color: var(--sage-text);
}
.blob--orange {
  background: #fde6d6;
  color: var(--orange);
}

/* The three spaces */
.spaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.space2 {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  border-block-start: 6px solid var(--accent, var(--jean));
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.space2:hover,
.space2:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.space2 strong {
  font-family: var(--display);
  font-size: 1.35rem;
}
.space2 em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent, var(--jean));
}
.space2 span {
  color: var(--muted);
}
.space2 .space2__go {
  margin-block-start: 0.5rem;
  color: var(--accent, var(--jean));
  font-weight: 700;
}
.space2--etablissement {
  --accent: #365f86;
}
.space2--enseignant {
  --accent: #a84c2b;
}
.space2--eleve {
  --accent: #875800;
}
.register {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  margin-block-start: 1.5rem;
  text-align: center;
}
.register a {
  font-weight: 700;
}
.register p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Reminder: ask for a demonstration */
.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-block-start: 3.5rem;
  padding: 2.5rem 1.5rem;
  border-radius: 32px;
  background: var(--clay-soft);
  text-align: center;
  overflow: hidden;
}
.cta h2 {
  margin: 0;
}
.cta p {
  margin: 0;
  max-inline-size: 36rem;
  color: var(--muted);
}

/* Animations when the page scrolls (only with JS and without reduced motion). */
.js-reveal .reveal {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.6s ease,
    translate 0.6s ease;
}
.js-reveal .reveal.in {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .perk {
    animation: none;
  }
  .btn,
  .space2 {
    transition: none;
  }
  .btn--primary:hover,
  .space2:hover,
  .space2:focus-visible {
    transform: none;
  }
}

/* Overview */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  counter-reset: step;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  inline-size: 1.75rem;
  block-size: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.steps .icon,
.strength .icon {
  fill: var(--jean);
}
.steps p,
.strength p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-block-end: 1.5rem;
}
@media (min-width: 800px) {
  .profile {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}
.profile h3 {
  margin: 0 0 0.5rem;
}
.profile img {
  inline-size: 100%;
  block-size: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.strength {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-inline-start: 4px solid var(--orange-bright);
  background: var(--card);
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
}

/* Guides */
.guide {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.guide h3 {
  margin: 0;
}
.guide .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.player {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--navy-soft);
}
.player video {
  inline-size: 100%;
  block-size: 100%;
  border-radius: var(--radius);
  background: #000;
}
.player .play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.player .soon {
  color: var(--muted);
}
/* The guides (prompt N): the button under the name of the space drawn on the poster. */
.guide .player--poster .play {
  align-self: end;
  margin-block-end: 1.2rem;
}
/* Over a poster (the guides, prompt N): a pill, readable on the picture. */
.player--poster .soon {
  align-self: end;
  margin-block-end: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}
.player--poster {
  margin-block: 1rem 0.5rem;
  overflow: hidden;
}
.player--poster > * {
  grid-area: 1 / 1;
}
.player--poster img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.player--poster .play {
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
}

/* Contact */
.contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}
.contact-form {
  display: grid;
  gap: 0.9rem;
  max-inline-size: 44rem;
  margin-block-start: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.contact-form h2 {
  margin: 0;
}
.contact-form .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
}
.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
}
.contact-form textarea {
  resize: vertical;
}
.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
}
.contact-form .consent input {
  margin-block-start: 0.3rem;
  inline-size: 1.1rem;
  block-size: 1.1rem;
}
.contact-form .hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.contact-form .trap {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.contact-form .submit {
  justify-self: start;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 16px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.contact-form .submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-message {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}
.form-message.success {
  background: var(--sage-soft);
  color: var(--sage-text);
}
.form-message.error {
  background: #fae3df;
  color: #9b2f22;
}

/* A video in a window over the page (prompt H): full screen on a phone. */
.video-dialog {
  inline-size: min(960px, 92vw);
  max-inline-size: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 20px 60px rgb(0 0 0 / 45%);
  overflow: visible;
}
.video-dialog::backdrop {
  background: rgb(42 39 36 / 70%);
}
.video-dialog video {
  display: block;
  inline-size: 100%;
  max-block-size: 80vh;
  border-radius: var(--radius);
  background: #000;
}
.video-close {
  position: absolute;
  inset-block-start: -0.9rem;
  inset-inline-end: -0.9rem;
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--navy);
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 1;
}
.video-close:focus-visible {
  outline: 2px solid var(--orange);
}

/* Tablet: the cycle on two lines, without the strokes between the steps. */
@media (max-width: 960px) {
  .cycle {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  }
  .cycle li::after {
    display: none;
  }
}

/* Phone: the illustration under the title, the button full width, the menu on its own line. */
@media (max-width: 760px) {
  header.site {
    position: static;
    justify-content: space-between;
  }
  header.site > nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 0.25rem 1rem;
    font-size: 0.95rem;
  }
  .hero2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero2__art {
    max-inline-size: 380px;
  }
  .doodle--arrow {
    display: none;
  }
  .hero2__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero2__actions .btn--primary {
    inline-size: 100%;
  }
  .hero2__actions .btn--link {
    align-self: center;
  }
  .sound {
    inset-block-end: 0.5rem;
    inset-inline-start: 0.5rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
  }
  .video-dialog {
    inline-size: 100vw;
    block-size: 100dvh;
    max-block-size: none;
    border-radius: 0;
  }
  .video-dialog video {
    block-size: 100%;
    max-block-size: none;
    border-radius: 0;
  }
  .video-close {
    inset-block-start: 0.75rem;
    inset-inline-end: 0.75rem;
  }
}
