/* Refonte de l'accueil : paysage clair, la soignante et le centre de santé au même niveau, micro géant, lecteur de présentation en haut.
   Ce fichier passe après accueil.css : il redessine seulement l'accueil (le panneau de réponse garde son thème pour l'instant). */

body.orbe { --sauge: #B9DBCB; --vert-app: #0B6E4F; --encre: #16242A; background: #E1F0E9; color: var(--encre); }
body.orbe .ruban-benin { display: none; }

/* Barre du haut : guide à gauche, lecteur de présentation au milieu, état à droite. */
body.orbe header.haut-accueil {
  position: absolute; top: 0; left: 0; right: 0; z-index: 8; padding: 22px 16px 0; border: 0; background: transparent; color: var(--encre);
  display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 8px;
}
body.orbe .b-guide { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 20px; background: var(--vert-app); color: #fff; display: grid; place-items: center; cursor: pointer; }
body.orbe .b-guide svg { width: 32px; height: 32px; }
body.orbe header .droite { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
body.orbe .etat { font-size: 0; color: transparent; padding: 0; background: transparent; }
body.orbe .etat::before { width: 12px; height: 12px; background: #9FB0AA; }
body.orbe .etat.pret::before { background: #3DB87A; }
body.orbe header .bascule { background: #fff; color: var(--vert-app); border: 0; box-shadow: 0 2px 8px #0002; }

.lecteur { justify-self: center; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 0; border-radius: 30px; background: #fff; box-shadow: 0 6px 20px #0002; cursor: pointer; }
.lecteur-bouton { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--vert-app); display: grid; place-items: center; flex: none; }
.lecteur-bouton .l-lire { width: 17px; height: 17px; fill: #fff; margin-left: 2px; }
.lecteur-bouton .l-stop { display: none; width: 15px; height: 15px; border-radius: 4px; background: #fff; }
.lecteur .onde { display: flex; align-items: center; gap: 3px; height: 28px; }
.lecteur .onde span { width: 3px; height: var(--h); border-radius: 2px; background: #9CCFB5; }
.lecteur.joue .l-lire { display: none; }
.lecteur.joue .l-stop { display: block; }
.lecteur.joue .lecteur-bouton::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #0B6E4F44; animation: lecteur-pouls 1.4s ease-out infinite; }
.lecteur.joue .onde span { background: var(--vert-app); animation: lecteur-onde .7s ease-in-out infinite alternate; }
.lecteur.joue .onde span:nth-child(2n) { animation-delay: .2s; }
.lecteur.joue .onde span:nth-child(3n) { animation-delay: .4s; }
@keyframes lecteur-pouls { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
@keyframes lecteur-onde { to { transform: scaleY(.35); } }

/* Paysage : tout se pose sur la ligne du sol (54 % de la hauteur), la soignante et le centre de santé côte à côte. */
body.orbe .gauche { position: relative; flex: 1; min-height: 100dvh; padding: 0; overflow: hidden; background: #E1F0E9; }
.paysage { position: absolute; inset: 0; pointer-events: none; }
.paysage > * { position: absolute; }
.paysage .sol { left: 0; right: 0; top: 54%; bottom: 0; background: var(--sauge); }
.paysage .colline { left: -16%; right: -16%; bottom: 40%; height: 23%; border-radius: 50%; background: var(--sauge); }
.paysage .soleil { right: 10%; top: 17%; width: min(23vw, 92px); aspect-ratio: 1; border-radius: 50%; background: #FBE3A6; }
.paysage .centre-sante { right: 8%; bottom: 46%; width: min(44%, 190px); height: auto; }
.paysage .soignante { left: -2%; bottom: 46%; width: min(62%, 250px); }
.paysage .soignante svg { display: block; width: 100%; height: auto; }
.paysage .fondu { left: 0; right: 0; bottom: 46%; height: 42px; background: linear-gradient(#B9DBCB00, var(--sauge) 92%); }

/* Micro géant, centré dans la bande verte. */
body.orbe .orbe-zone { position: absolute; left: 0; right: 0; top: 75%; z-index: 3; display: block; width: auto; }
body.orbe .gauche #btn-question {
  position: absolute; left: 50%; top: 0; translate: -50% -50%; width: 150px; height: 150px; margin: 0;
  border: 12px solid #fff; background: var(--vert-app); box-shadow: 0 16px 36px #0b6e4f66;
}
body.orbe .gauche #btn-question::before, body.orbe .gauche #btn-question::after { inset: -22px; border: 4px solid #0B6E4F26; }
body.orbe .gauche #btn-question .rond-micro, body.orbe .gauche #btn-question .rond-micro svg { width: 80px; height: 80px; }
body.orbe .gauche #btn-question .rond-micro svg { fill: #fff; }
body.orbe .gauche #btn-question.enregistre { background: #D63A2F !important; box-shadow: 0 16px 36px #d63a2f66; }
body.orbe .gauche #btn-question.enregistre::before, body.orbe .gauche #btn-question.enregistre::after { border-color: #D63A2F55; }
body.orbe .gauche #btn-question.enregistre .rond-micro::after { width: 44px; height: 44px; margin: 18px; }
body.orbe .zone-etat { position: absolute; left: 0; right: 0; top: 108px; height: auto; color: var(--encre); }
body.orbe .zone-etat .info { color: #3b5148; margin: 0; }
body.orbe .attente { margin: 0; }
body.orbe .attente-fon { color: var(--encre); }
body.orbe .ondes i { background: var(--vert-app); }

body.orbe .secours { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; margin: 0; color: #3b5148; }
body.orbe .secours input { background: #fff; color: var(--encre); border: 1px solid #0b6e4f44; }
body.orbe .question-resultat { position: absolute; left: 14px; right: 14px; bottom: 56px; z-index: 4; max-width: none; margin: 0; padding: 12px; border-radius: 20px; background: #fff; color: var(--encre); box-shadow: 0 6px 20px #0002; }

html.guide-actif body.orbe .gauche { padding-bottom: 0; }
html.guide-actif body.orbe .gauche { min-height: calc(100dvh + var(--guide-h, 0px)); }

/* PC : colonne de gauche = écran de téléphone, panneau à droite. */
@media (min-width: 900px) {
  body.orbe header.haut-accueil { right: auto; width: max(420px, 45%); }
  body.orbe .gauche { border-right: 0; min-height: 0; height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lecteur.joue .onde span, .lecteur.joue .lecteur-bouton::after { animation: none; }
}
body.orbe header #btn-guide.b-guide { width: 56px; height: 56px; padding: 0; border-radius: 20px; background: var(--vert-app); color: #fff; box-shadow: none; }
body.orbe { padding-bottom: 0; margin-bottom: 0; }
@media (min-width: 900px) { body.orbe { background: #cfdcd5; } }
