/* MOOV Studio : apparence commune à tous les écrans */

:root {
  --fond: #07070b;
  --carte: rgba(255, 255, 255, 0.045);
  --bord: rgba(255, 255, 255, 0.09);
  --texte: #f5f2ee;
  --doux: #a9a5b6;
  --rose: #ff2e93;
  --bleu: #19b6ff;
  --orange: #ff9b21;
  --violet: #8b5cff;
  --degrade: linear-gradient(100deg, var(--bleu), var(--violet) 35%, var(--rose) 65%, var(--orange));
  --rayon: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
/* Les éclaboussures du logo débordent de l'écran : on les coupe au bord, sinon les téléphones dézooment la page. */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  background: var(--fond);
  color: var(--texte);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lueurs colorées en arrière-plan, comme les éclaboussures du logo */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 12% 18%, rgba(255, 46, 147, 0.16), transparent 70%),
    radial-gradient(38% 32% at 88% 22%, rgba(255, 155, 33, 0.12), transparent 70%),
    radial-gradient(45% 40% at 70% 90%, rgba(25, 182, 255, 0.14), transparent 70%);
  filter: blur(20px);
  animation: respire 14s ease-in-out infinite alternate;
}

@keyframes respire {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.08) rotate(3deg); }
}

h1, h2, h3 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
.doux { color: var(--doux); }

/* Le logo a un fond noir : "screen" le fait disparaître */
.logo { display: block; mix-blend-mode: screen; max-width: 100%; height: auto; }

.page {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.carte {
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Champs et boutons ---------- */

label { display: block; font-weight: 600; margin-bottom: 8px; }

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 16px 18px;
  font: inherit;
  font-size: 1.1rem;
  color: var(--texte);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--bord);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.25);
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  background: var(--degrade);
  background-size: 160% 100%;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 30px -8px rgba(255, 46, 147, 0.55);
  transition: background-position 0.4s, transform 0.15s, opacity 0.2s;
}

.bouton:hover { background-position: 100% 0; }
.bouton:active { transform: scale(0.97); }
.bouton:disabled { opacity: 0.5; cursor: default; }
.bouton.large { width: 100%; }

.bouton.discret {
  background: transparent;
  border: 1px solid var(--bord);
  box-shadow: none;
  font-weight: 600;
  padding: 11px 20px;
  font-size: 0.95rem;
}
.bouton.discret:hover { border-color: rgba(255, 255, 255, 0.3); }

.message-erreur { color: #ff7a9c; min-height: 1.5em; margin: 10px 0 0; font-size: 0.95rem; }

/* ---------- Petits éléments ---------- */

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--bord);
  font-size: 0.9rem;
  color: var(--doux);
}

.point-direct {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.texte-degrade {
  background: var(--degrade);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.apparait { animation: apparait 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes apparait {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }

/* ---------- Champs supplémentaires ---------- */

textarea, select, input[type="number"], input[type="date"], input[type="time"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--texte);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--bord);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
textarea:focus, select:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="time"]:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.25);
}
select option { background: #15141c; }

.bouton.petit { padding: 9px 16px; font-size: 0.9rem; }

.icone-bouton {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid var(--bord); background: transparent; color: var(--doux);
  font-size: 1rem; cursor: pointer;
}
.icone-bouton:hover:not(:disabled) { color: var(--texte); border-color: rgba(255, 255, 255, 0.3); }
.icone-bouton:disabled { opacity: 0.3; cursor: default; }

/* Barre du haut commune aux écrans animateur */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.barre .logo { width: 150px; }
.barre nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* Pastille d'état d'un atelier */
.etat { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--bord); color: var(--doux); }
.etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.etat.accueil { color: var(--bleu); }
.etat.en-cours { color: #3ddc97; }
.etat.termine { color: var(--orange); }

/* Texte d'un module tel que le voit le participant */
.contenu-module p { margin: 0 0 0.8em; }
.contenu-module ul { margin: 0 0 0.9em; padding-left: 1.2em; }
.contenu-module li { margin-bottom: 0.4em; }
.contenu-module li::marker { color: var(--rose); }
