/* ==========================================================================
   STYLE COMMUN — page d'entree des 5 apps (App_compl_1 a 5)
   ========================================================================== */
@import url("../_variables.css");

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--repli-image);
  background-image:
    linear-gradient(165deg, rgba(200,230,201,0.4) 0%, rgba(232,245,233,0.4) 100%),
    url("../../images/bg-layer.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body {
  margin:0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #102018;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Bloc image de couverture, identique sur l'ecran d'accueil des 5 apps */
.intro-hero {
  text-align: center;
  margin-bottom: 0.5rem;
}

.intro-cover {
  max-width: 340px;
  width: 80%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 0 auto 1rem;
  display: block;
}

/* Rangee des 3 logos, identique sur l'ecran d'accueil des 5 apps */
.entree-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 25px 0 10px 0;
}

.entree-logos img {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .entree-logos img { height: 48px; }
  .entree-logos { gap: 18px; }
}


* { box-sizing: border-box; }

.hidden { display: none !important; }

.container, .wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3 {
  color: var(--vert-900);
  font-weight: 700;
  margin-top: 0;
  text-align: center;
}

h1 { font-size: clamp(1.4rem, 4vw, 2.1rem); padding-top: 20px; margin-bottom: 10px; }
h2 { font-size: clamp(1.1rem, 3vw, 1.4rem); margin-bottom: 20px; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.signature {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 25px;
  font-style: italic;
}

.card {
  background: var(--blanc);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--vert-700);
  color: var(--blanc);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin: 0.3rem;
}

.btn:hover { background: var(--vert-900); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border: 2px solid var(--vert-700);
  color: var(--vert-700);
}
.btn-secondary:hover { background: var(--vert-700); color: var(--blanc); }

.btn-sec { background: var(--vert-650); color: var(--blanc); margin-left: 0.4rem; }
.btn-sec:hover { background: var(--vert-900); }

.credits {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--vert-100);
  text-align: center;
}

.credits h3 { color: var(--vert-900); }

.credits p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #123018;
  max-width: 600px;
  margin: 0.15rem auto;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

#page-welcome p,
#welcome-screen p,
#screen-intro p {
  text-align: left;
  margin: 1em 0;
}

#page-end,
#page-fin,
#end-screen,
#screen-fin {
  color: #123018;
}

footer, .footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.8rem;
  margin-top: auto;
  border-top: 1px solid var(--vert-100);
}

/* ==========================================================================
   Ecran "parcours harmonique" (App4/App5) : identique dans les deux apps
   (App5 = App4 + tirage d'image en plus). Verifie sans conflit avec
   App1/2/3 (leurs propres .slider-row/select/input[range] restent
   inchanges, non touches ici). */
@media (min-width: 720px) { .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }

.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.4rem 0; }
label { min-width: 0; font-size: 0.95rem; }
.val { font-weight: 600; color: var(--vert-950); min-width: 2.2rem; display: inline-block; }

.ph-display { font-family: "Consolas", "ui-monospace", monospace; font-size: clamp(0.85rem, 2.8vw, 1.05rem); white-space: pre-wrap; word-break: break-word; background: var(--vert-50); padding: 0.8rem; border-radius: 8px; min-height: 3rem; border: 1px solid var(--vert-200); }
.ph-explain { text-align: center; font-size: clamp(0.95rem, 2.5vw, 1.1rem); font-weight: 600; color: #0d2a12; margin: 0.2rem 0 1rem; }

.time-bar-outer { height: 10px; background: var(--vert-150); border-radius: 5px; overflow: hidden; margin: 0.6rem 0; }
.time-bar-inner { height: 100%; background: linear-gradient(90deg, var(--vert-900), var(--vert-400)); width: 100%; border-radius: 5px; }
.time-bar-outer.sess { background: var(--vert-250); }
.time-bar-inner.sess { background: linear-gradient(90deg, #2d4a6d, #5b8fd8); }   /* bleu, hors palette verte */

.meta { font-size: 0.88rem; color: #1a2e1a; margin: 0.3rem 0; }

.radio-g { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.6rem 0; }

