/* Formules film : bloc des micros sans fil (Discours, Cinéma), bloc des trois films livrés (Cinéma)
   et lien depuis les conseils. Les deux blocs reprennent le gabarit de la pellicule
   « Durée du film livré » (film-duration.css), qui doit être chargée avant cette feuille. */
.speech-capture {
  width: 100%;
  box-sizing: border-box;
  margin: 0.2rem 0 1rem;
  padding: 0.72rem 0.78rem 0.72rem;
  border: 1px solid rgba(113, 83, 232, 0.3);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(247, 244, 255, 0.92), rgba(255, 248, 252, 0.92));
  box-shadow: 0 8px 20px rgba(91, 61, 180, 0.1);
}

.speech-capture__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.speech-capture__heading > span {
  min-width: 0;
  color: #746b82;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.speech-capture__heading strong {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.24rem;
  color: #6847ef;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}

.speech-capture__heading strong svg {
  width: 0.9rem;
  height: 0.9rem;
}

.speech-capture svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.speech-capture__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  height: 2.7rem;
  padding: 0 0.48rem;
  border-radius: 9px;
  background-color: #2d2733;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 5px 12px rgba(35, 25, 45, 0.15);
}

/* Micro : deux ondes radio partent en continu vers la caméra. */
.speech-capture__source {
  position: relative;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #7153e8, #a254d2);
  color: #fff;
}

.speech-capture__source svg {
  width: 1rem;
  height: 1rem;
}

.speech-capture__source::before,
.speech-capture__source::after {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(190, 150, 255, 0.5);
  border-radius: 50%;
  content: "";
  animation: speech-capture-ring 3.6s ease-out infinite;
}

.speech-capture__source::after { display: none; }

/* Onde vocale : la forme d'une phrase reste fixe ; une lueur douce la parcourt
   de gauche à droite, comme une lecture, sans agiter la carte. */
.speech-capture__wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 1.8rem;
}

.speech-capture__wave i {
  flex: 0 1 3px;
  min-width: 2px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #d9c9ff, #9d7cf2);
  opacity: 0.5;
  transform: scaleY(var(--hi, 0.6));
  animation: speech-capture-read 4.8s ease-in-out var(--delay, 0s) infinite;
}

.speech-capture__wave i:nth-child(1) { --hi: 0.53; --delay: 0.0s; }
.speech-capture__wave i:nth-child(2) { --hi: 0.8; --delay: 0.1s; }
.speech-capture__wave i:nth-child(3) { --hi: 0.94; --delay: 0.2s; }
.speech-capture__wave i:nth-child(4) { --hi: 0.83; --delay: 0.3s; }
.speech-capture__wave i:nth-child(5) { --hi: 0.55; --delay: 0.4s; }
.speech-capture__wave i:nth-child(6) { --hi: 0.16; --delay: 0.5s; }
.speech-capture__wave i:nth-child(7) { --hi: 0.48; --delay: 0.6s; }
.speech-capture__wave i:nth-child(8) { --hi: 0.71; --delay: 0.7s; }
.speech-capture__wave i:nth-child(9) { --hi: 0.93; --delay: 0.8s; }
.speech-capture__wave i:nth-child(10) { --hi: 0.9; --delay: 0.9s; }
.speech-capture__wave i:nth-child(11) { --hi: 0.8; --delay: 1.0s; }
.speech-capture__wave i:nth-child(12) { --hi: 0.49; --delay: 1.1s; }
.speech-capture__wave i:nth-child(13) { --hi: 0.16; --delay: 1.2s; }
.speech-capture__wave i:nth-child(14) { --hi: 0.56; --delay: 1.3s; }
.speech-capture__wave i:nth-child(15) { --hi: 0.91; --delay: 1.4s; }
.speech-capture__wave i:nth-child(16) { --hi: 0.85; --delay: 1.5s; }
.speech-capture__wave i:nth-child(17) { --hi: 0.57; --delay: 1.6s; }
.speech-capture__wave i:nth-child(18) { --hi: 0.16; --delay: 1.7s; }
.speech-capture__wave i:nth-child(19) { --hi: 0.49; --delay: 1.8s; }
.speech-capture__wave i:nth-child(20) { --hi: 0.71; --delay: 1.9s; }
.speech-capture__wave i:nth-child(21) { --hi: 0.82; --delay: 2.0s; }
.speech-capture__wave i:nth-child(22) { --hi: 0.91; --delay: 2.1s; }
.speech-capture__wave i:nth-child(23) { --hi: 0.73; --delay: 2.2s; }
.speech-capture__wave i:nth-child(24) { --hi: 0.51; --delay: 2.3s; }

/* Caméra qui enregistre : le point rouge clignote comme un voyant REC. */
.speech-capture__rec {
  position: relative;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #efe9ff;
}

.speech-capture__rec svg {
  width: 1rem;
  height: 1rem;
}

.speech-capture__rec::after {
  position: absolute;
  top: 0.12rem;
  right: 0.12rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 2px #2d2733;
  content: "";
  animation: speech-capture-rec 2.8s ease-in-out infinite;
}

.speech-capture p {
  margin: 0.48rem 0 0;
  color: #655b70;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.015em;
  text-align: center;
}

/* Formule Complète : même bloc, éteint, pour lire la différence d'un coup d'œil. */
.speech-capture--off {
  border-color: rgba(111, 83, 212, 0.14);
  background: #f8f7fb;
  box-shadow: none;
}

.speech-capture--off .speech-capture__heading strong {
  color: #8d8599;
  font-size: 0.72rem;
}

.speech-capture--off .speech-capture__source {
  background: #554e5b;
  color: #b7b0bf;
}

.speech-capture--off .speech-capture__source::before {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 2px;
  border: 0;
  border-radius: 2px;
  background: #b7b0bf;
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: none;
}

.speech-capture--off .speech-capture__source::after,
.speech-capture--off .speech-capture__rec::after {
  display: none;
}

.speech-capture--off .speech-capture__wave i {
  background: #554e5b;
  opacity: 1;
  transform: scaleY(0.1);
  animation: none;
}

.speech-capture--off .speech-capture__rec {
  color: #8d8599;
}

@keyframes speech-capture-ring {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes speech-capture-read {
  0%, 30%, 100% { opacity: 0.5; }
  12% { opacity: 1; }
}

@keyframes speech-capture-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Lien des conseils (« ce qu'ils regrettent ») vers la formule Discours. */
.qr-step__formula-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #6847ef, #9b53d8);
  box-shadow: 0 6px 14px rgba(88, 58, 184, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-step__formula-link:hover,
.qr-step__formula-link:focus-visible {
  color: #fff;
  box-shadow: 0 9px 20px rgba(88, 58, 184, 0.26);
  transform: translateY(-1px);
}

.qr-step__formula-link:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.35);
  outline-offset: 3px;
}

/* Formule Cinéma : les trois films livrés, chacun avec une pellicule à sa longueur. */
.film-deliverables {
  width: 100%;
  box-sizing: border-box;
  margin: 0.2rem 0 1rem;
  padding: 0.72rem 0.78rem 0.78rem;
  border: 1px solid rgba(113, 83, 232, 0.3);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(247, 244, 255, 0.92), rgba(255, 248, 252, 0.92));
  box-shadow: 0 8px 20px rgba(91, 61, 180, 0.1);
  text-align: left;
}

.film-deliverables__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.film-deliverables__heading > span,
.film-deliverables__meta > span {
  color: #746b82;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.film-deliverables__heading strong {
  color: #6847ef;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.film-deliverables__heading small,
.film-deliverables__meta small {
  color: #6e6479;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.film-deliverables__list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.film-deliverables__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.film-deliverables__meta > span {
  color: #4e367e;
}

.film-deliverables__meta em {
  display: block;
  margin-top: 0.08rem;
  color: #8a7f98;
  font-size: 0.92em;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: none;
}

.film-deliverables__meta strong {
  flex: none;
  color: #6847ef;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

/* Longueurs relatives : mini-film court, film monté moyen, film intégral sur toute la largeur. */
.film-deliverables .film-duration__strip {
  box-sizing: border-box;
  width: 64%;
  padding-block: 0.36rem;
}

.film-deliverables .film-duration__strip span {
  height: 1.25rem;
}

.film-deliverables__strip--long.film-duration__strip {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  width: 100%;
  gap: 0.18rem;
}

.film-deliverables__strip--long.film-duration__strip span {
  height: 0.95rem;
  border-radius: 3px;
}

.film-deliverables__strip--long.film-duration__strip span.is-filled::before {
  border-top-width: 0.2rem;
  border-bottom-width: 0.2rem;
  border-left-width: 0.3rem;
}

.film-deliverables__strip--long.film-duration__strip span:nth-child(n + 6) { animation-delay: 0.7s; }

.film-deliverables__mini-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.film-deliverables__strip--mini.film-duration__strip {
  grid-template-columns: minmax(0, 1fr);
  flex: none;
  width: 3.1rem;
}

.film-deliverables__night {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #2d2733;
  color: #f3eaff;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  animation: film-deliverables-glow 3.6s ease-in-out infinite;
}

.film-deliverables__night svg {
  width: 0.72rem;
  height: 0.72rem;
  fill: #ffd98a;
}

.film-deliverables__play {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(104, 71, 239, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #5b3fd6;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.film-deliverables__play svg {
  width: 0.62rem;
  height: 0.62rem;
  fill: currentColor;
}

.film-deliverables__play:hover,
.film-deliverables__play:focus-visible {
  background: #6847ef;
  color: #fff;
  transform: translateY(-1px);
}

.film-deliverables__play:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.35);
  outline-offset: 2px;
}

@keyframes film-deliverables-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 217, 138, 0); }
  50% { box-shadow: 0 0 0 3px rgba(255, 217, 138, 0.25); }
}

@media (max-width: 420px) {
  .film-deliverables { padding-inline: 0.62rem; }
  .speech-capture { padding-inline: 0.62rem; }
  .speech-capture__stage { gap: 0.4rem; padding-inline: 0.4rem; }
  .speech-capture__wave { gap: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .speech-capture__source::before,
  .speech-capture__source::after,
  .speech-capture__rec::after,
  .film-deliverables__night {
    animation: none;
  }

  .speech-capture__wave i {
    opacity: 0.8;
    animation: none;
  }

  .speech-capture--off .speech-capture__wave i {
    transform: scaleY(0.1);
  }
}
