/* Presentation du module d'oral. Extrait de oral.astro pour etre partage avec
   /reviser, ou le meme moteur tourne dans une section reveleee : le candidat ne
   change plus de page pour passer son oral. */
.oral-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(32px,5vw,60px) clamp(16px,5vw,40px) 90px; }
  .oral-eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; }
  .oral-h1 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem,4vw,2.7rem); color: var(--heading); line-height: 1.1; margin: 10px 0 12px; letter-spacing: -.02em; }
  .oral-lead { font-size: 1.04rem; line-height: 1.6; color: var(--text); margin: 0 0 24px; max-width: 44em; }

  .oral-cadre { background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0 0 20px; }
  .oral-cadre h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; color: var(--heading); margin: 0 0 10px; }
  .oral-cadre ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
  .oral-cadre li { position: relative; padding-left: 24px; font-size: .95rem; line-height: 1.5; color: var(--text); }
  .oral-cadre li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

  .oral-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 18px; font-size: .92rem; color: var(--text); }
  .oral-note { font-size: .82rem; color: var(--muted); }

  /* Dépôt du dossier (CV + lettre) */
  .oral-dossier { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0 0 20px; }
  .oral-dossier-h { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--heading); margin: 0 0 6px; }
  .oral-dossier-h span { font-family: var(--font-sans); font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); background: var(--tint); border-radius: 100px; padding: 3px 9px; margin-left: 8px; vertical-align: middle; }
  .oral-dossier-note { font-size: .88rem; line-height: 1.5; color: var(--muted); margin: 0 0 14px; }
  /* Ce que le jury a deja du candidat, et par quoi l'effacer. */
  .oral-dossier-etat { font-size: .84rem; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
  /* padding + marge negative : zone de tap decente (~44px) sans bouger le rendu. */
  .oral-dossier-suppr { background: none; border: none; padding: 12px 8px; margin: -12px -8px; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
  .oral-dossier-suppr:hover { text-decoration: none; }
  .oral-dossier-suppr:disabled { opacity: .6; cursor: default; text-decoration: none; }
  .oral-dossier-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .oral-file { display: flex; flex-direction: column; gap: 7px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 13px 15px; cursor: pointer; transition: border-color .14s, background .14s; }
  .oral-file:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--card)); }
  .oral-file-lbl { font-size: .82rem; font-weight: 700; color: var(--heading); }
  .oral-file-st { font-size: .82rem; color: var(--muted); font-weight: 600; word-break: break-word; }
  .oral-file-st.ok { color: var(--ok); }
  .oral-file-st.err { color: var(--bad); }
  .oral-file-st.loading { color: var(--accent); }
  @media (max-width: 620px) { .oral-dossier-slots { grid-template-columns: 1fr; } }

  .oral-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: none; border-radius: 13px; padding: 15px 30px; font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; cursor: pointer; text-decoration: none; box-shadow: 0 12px 26px -8px rgba(var(--accent-rgb), .5); }
  .oral-cta.ghost { background: transparent; color: var(--heading); border: 1px solid var(--line); box-shadow: none; }
  .oral-cta:hover { filter: brightness(1.04); }
  .oral-cta:disabled { opacity: .55; cursor: default; filter: none; }
  /* Oral du jour deja passe : bouton eteint jusqu'a la reouverture (minuit + 1 min, Paris). */
  .oral-cta.rv-off { opacity: .5; cursor: not-allowed; filter: grayscale(.35); box-shadow: none; }
  .rv-oral-quota-note { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
  .oral-err { margin-top: 14px; color: var(--bad); font-weight: 700; font-size: .92rem; }
  .oral-err a { color: var(--accent); }

  /* Scène d'entretien */
  /* top sous l'en-tete : le site a un .topstick sticky de ~62px (z-index 80) ; a top:8px la
     barre chrono glissait DERRIERE lui au defilement, chronometre masque pendant l'epreuve. */
  .oral-bar-wrap { position: sticky; top: calc(var(--rv-hdr-h, 62px) + 8px); z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); margin: 0 0 18px; }
  .oral-bar-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .oral-badge { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); border-radius: 100px; padding: 3px 10px; }
  .oral-phase { font-weight: 700; color: var(--heading); font-size: .9rem; }
  .oral-clock { margin-left: auto; font-family: var(--font-mono); font-weight: 800; font-size: 1.05rem; color: var(--heading); }
  .oral-clock.warn { color: var(--warn); }
  .oral-clock.danger { color: var(--bad); }
  .oral-bar { height: 7px; border-radius: 100px; background: var(--line); overflow: hidden; margin-top: 10px; }
  .oral-bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s linear; }

  /* Orbe vocal */
  .oral-orb-wrap { text-align: center; padding: 26px 0 6px; }
  .oral-orb { position: relative; width: 190px; height: 190px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; }
  .oral-orb .core { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75), rgba(255,255,255,0) 45%), conic-gradient(from 0deg, #E0445F, #EC6E86, #F4A6B4, #B82E48, #E0445F); box-shadow: 0 12px 34px rgba(76,42,52,.28); transition: transform .3s, opacity .3s, background .3s; }
  .oral-orb .ring { position: absolute; width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
  .oral-orb[data-state="speaking"] .core { animation: orbSpeak 1.1s ease-in-out infinite; }
  .oral-orb[data-state="speaking"] .ring { animation: orbWave 1.9s ease-out infinite; border-color: var(--accent); }
  .oral-orb[data-state="listening"] .core { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75), rgba(255,255,255,0) 45%), #3E8A63; animation: orbListen 1.5s ease-in-out infinite; }
  .oral-orb[data-state="listening"] .ring { animation: orbWave 1.7s ease-out infinite; border-color: #3E8A63; }
  .oral-orb[data-state="thinking"] .core { opacity: .82; animation: orbThink 1.5s ease-in-out infinite; }
  .oral-orb[data-state="idle"] .core { opacity: .5; }
  .oral-orb .ring:nth-child(2) { animation-delay: .55s; }
  .oral-orb .ring:nth-child(3) { animation-delay: 1.1s; }
  @keyframes orbSpeak { 0%,100% { transform: scale(1); } 50% { transform: scale(1.13); } }
  @keyframes orbListen { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
  @keyframes orbThink { 0%,100% { transform: scale(.95); } 50% { transform: scale(1.03); } }
  @keyframes orbWave { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
  .oral-orb-label { font-family: var(--font-serif); font-weight: 600; font-size: 1.45rem; color: var(--heading); line-height: 1.2; }
  .oral-orb-hint { font-size: .92rem; color: var(--muted); margin-top: 7px; min-height: 1.3em; padding: 0 10px; }

  .oral-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
  .oral-primary { border: 1.5px solid var(--line); background: var(--card); color: var(--heading); border-radius: 100px; padding: 14px 30px; font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; cursor: pointer; min-width: 250px; transition: .14s; }
  .oral-primary.go { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
  .oral-primary:disabled { opacity: .6; cursor: default; box-shadow: none; }
  /* padding + marge negative : « Terminer l'entretien » se tape en situation d'epreuve, la
     cible de ~20px etait quasi impossible a viser au doigt. */
  .oral-finish { border: none; background: none; color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 12px 10px; margin: -12px -10px; }
  .oral-kb { width: 100%; max-width: 520px; margin: 0 auto 6px; }
  .oral-kb textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 1rem; font-family: var(--font-sans); background: var(--bg); color: var(--heading); min-height: 72px; margin-bottom: 10px; outline: none; }
  .oral-kb textarea:focus { border-color: var(--accent); }

  /* Bilan */
  .oral-bilan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px,3vw,30px); box-shadow: var(--shadow); }
  .oral-bilan h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.4rem; color: var(--heading); margin: 0 0 6px; }
  .oral-bilan .niveau { display: inline-block; font-weight: 800; border-radius: 100px; padding: 5px 14px; margin: 6px 0 14px; text-transform: capitalize; }
  .oral-bilan .niveau.faible { color: var(--bad); background: var(--badbg); }
  .oral-bilan .niveau.moyen { color: var(--warn); background: var(--warnbg); }
  .oral-bilan .niveau.solide { color: var(--ok); background: var(--okbg); }
  .oral-bilan-body { font-size: 1rem; line-height: 1.65; color: var(--text); }
  .oral-bilan-body b, .oral-bilan-body strong { color: var(--heading); }
  .oral-bilan-body h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.06rem; color: var(--heading); margin: 20px 0 6px; padding-top: 4px; border-top: 1px solid var(--line); }
  .oral-bilan-body h3:first-child { border-top: none; margin-top: 0; padding-top: 0; }
  .oral-bilan-body p { margin: 0 0 10px; }
  .oral-bilan-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

  @media (max-width: 620px) { .oral-clock { margin-left: 0; } .oral-orb { width: 160px; height: 160px; } }
  @media (prefers-reduced-motion: reduce) { .oral-orb .core, .oral-orb .ring { animation: none !important; } }
