/* ================================================================
   MON ENVOL — fenêtre de valorisation
   Les mots d'encouragement viennent avant les chiffres.
   ================================================================ */

body.valorisation-ouverte {
  overflow: hidden;
}

.valorisation-rappel {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2200;
  border: 1px solid rgba(92, 54, 63, 0.22);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 5px 18px rgba(54, 28, 42, 0.16);
  color: #5c363f;
  font: 600 0.86rem Georgia, serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.valorisation-rappel::before {
  content: '✦';
  margin-right: 8px;
  color: #b0834f;
}

.valorisation-rappel:hover,
.valorisation-rappel:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 22px rgba(54, 28, 42, 0.23);
  outline: 2px solid rgba(139, 88, 102, 0.42);
  outline-offset: 2px;
}

.valorisation-voile {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(42, 22, 37, 0.76);
  backdrop-filter: blur(5px);
  animation: valorisationVoile 220ms ease-out both;
}

.valorisation-fenetre {
  position: relative;
  width: min(820px, 100%);
  max-height: min(94dvh, 820px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 28px 30px 24px;
  border: 1px solid rgba(147, 100, 87, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 185, 0.62), transparent 34%),
    linear-gradient(155deg, #fffdf7 0%, #fff6ec 58%, #f8e9e6 100%);
  box-shadow: 0 24px 70px rgba(38, 16, 31, 0.34);
  color: #4a2b35;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  animation: valorisationFenetre 420ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.valorisation-fermer {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #68444d;
  font: 400 1.8rem/1 Georgia, serif;
  cursor: pointer;
}

.valorisation-fermer:hover,
.valorisation-fermer:focus-visible {
  background: rgba(109, 65, 77, 0.1);
  outline: 2px solid rgba(109, 65, 77, 0.32);
}

.valorisation-surtitre {
  margin: 0 0 10px;
  color: #9b7254;
  font: 700 0.72rem/1.2 Arial, sans-serif;
  letter-spacing: 0.2em;
}

.valorisation-corps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.78fr);
  align-items: center;
  gap: 26px;
}

.valorisation-introduction {
  min-width: 0;
}

.valorisation-visuel {
  position: relative;
  align-self: stretch;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(155, 114, 84, 0.22);
  border-radius: 22px;
  background: #fae5d1;
  box-shadow: 0 12px 30px rgba(99, 59, 50, 0.16);
  animation: valorisationSymbole 620ms cubic-bezier(0.25, 0.9, 0.3, 1.1) 120ms both;
}

.valorisation-visuel-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.valorisation-coche {
  position: absolute;
  right: 8%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #6f8f63;
  box-shadow: 0 4px 14px rgba(42, 55, 36, 0.28);
  color: white;
  font: 700 1rem/1 Arial, sans-serif;
}

.valorisation-visuel-poussin .valorisation-coche { top: 15%; }
.valorisation-visuel-colvert .valorisation-coche { top: 47%; }
.valorisation-visuel-paille-en-queue .valorisation-coche { top: 80%; }
.valorisation-visuel-parcours .valorisation-coche { display: none; }

.valorisation-titre {
  margin: 0;
  color: #4a2b35;
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
}

.valorisation-recompense {
  margin: 10px 0 0;
  color: #8d5a43;
  font-weight: 700;
  font-size: 1.02rem;
}

.valorisation-texte {
  max-width: 440px;
  margin: 15px auto 0;
  color: #5e4248;
  font-size: 1rem;
  line-height: 1.62;
}

.valorisation-citation {
  position: relative;
  max-width: 430px;
  margin: 22px auto 0;
  padding: 17px 20px 15px 27px;
  border: 0;
  border-left: 3px solid rgba(164, 112, 77, 0.48);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.56);
  color: #654952;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  animation: valorisationCitation 500ms ease-out 260ms forwards;
}

.valorisation-citation::before {
  content: '“';
  position: absolute;
  top: -8px;
  left: 7px;
  color: rgba(151, 99, 70, 0.25);
  font: 700 3.2rem Georgia, serif;
}

.valorisation-citation p {
  margin: 0;
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.55;
}

.valorisation-citation footer {
  margin-top: 7px;
  color: #8e6b61;
  font-size: 0.8rem;
  text-align: right;
}

.valorisation-progression {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(112, 72, 82, 0.14);
}

.valorisation-progression-titre {
  margin: 0 0 10px;
  color: #76555e;
  font: 700 0.75rem/1.2 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.valorisation-piste {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.valorisation-poussin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px dashed rgba(122, 87, 68, 0.27);
  border-radius: 50%;
  background-image: url("../asset/valorisation-envol-v1.png?v=22OCT2026");
  background-position: 21% -3%;
  background-size: 275% auto;
  filter: grayscale(1);
  opacity: 0.23;
}

.valorisation-poussin.est-gagne {
  border-style: solid;
  background-color: rgba(255, 231, 166, 0.46);
  filter: none;
  opacity: 1;
}

.valorisation-fleche {
  color: #a17c6a;
}

.valorisation-plume {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(167, 112, 74, 0.24);
  border-radius: 50%;
  background-image: url("../asset/valorisation-envol-v1.png?v=22OCT2026");
  background-position: 94% 2%;
  background-size: 275% auto;
  box-shadow: 0 4px 12px rgba(99, 59, 50, 0.12);
}

.valorisation-chiffres {
  margin: 12px 0 0;
  color: #563943;
  font-size: 0.94rem;
  font-weight: 700;
}

.valorisation-suite,
.valorisation-bilan {
  margin: 5px 0 0;
  color: #80636b;
  font: 400 0.8rem/1.4 Arial, sans-serif;
}

.valorisation-bilan {
  font-size: 0.72rem;
}

.valorisation-boutons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.valorisation-bouton {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font: 700 0.88rem Georgia, serif;
  cursor: pointer;
}

.valorisation-bouton-principal {
  border: 1px solid #563441;
  background: #563441;
  color: #fff;
}

.valorisation-bouton-secondaire {
  border: 1px solid rgba(86, 52, 65, 0.27);
  background: rgba(255, 255, 255, 0.68);
  color: #563441;
}

.valorisation-bouton:hover,
.valorisation-bouton:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(67, 34, 48, 0.16);
  outline: 2px solid rgba(139, 88, 102, 0.38);
  outline-offset: 2px;
}

@keyframes valorisationVoile {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes valorisationFenetre {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes valorisationSymbole {
  from { opacity: 0; transform: scale(0.72) rotate(-4deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes valorisationCitation {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .valorisation-voile { padding: 10px; }
  .valorisation-fenetre { padding: 24px 17px 20px; border-radius: 20px; }
  .valorisation-corps { grid-template-columns: 1fr; gap: 18px; }
  .valorisation-visuel { min-height: 310px; }
  .valorisation-visuel-image { min-height: 310px; }
  .valorisation-piste { gap: 5px; }
  .valorisation-poussin { width: 33px; height: 33px; font-size: 1.05rem; }
  .valorisation-boutons { flex-direction: column; }
  .valorisation-bouton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .valorisation-rappel,
  .valorisation-voile,
  .valorisation-fenetre,
  .valorisation-visuel,
  .valorisation-citation,
  .valorisation-bouton {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .valorisation-citation { opacity: 1; }
}


/* === MON ENVOL SUR TÉLÉPHONE — 07/11/2026 ===

   Objet : le bouton « Mon envol » se réduit à son icône dans la barre latérale, sous 768 px de large.
   Contexte : ce bouton mesurait 125 px de large en bas à gauche de l'écran.
   Constat : le 07/11/2026, ce bouton recouvrait le bouton de collage et le début du champ.
   Limite : le nom « Mon envol » n'est plus écrit sur téléphone. */

@media (max-width: 768px) {

  /* Le bouton garde 44 px, la taille d'un doigt, et son texte est masqué. */
  .valorisation-rappel {
    left: 8px;
    bottom: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    text-align: center;
  }

  /* L'icône ✦ retrouve une taille lisible. */
  .valorisation-rappel::before {
    margin: 0;
    font-size: 18px;
  }
}
