/* RCCF Sonomaton 1.1.0 — palette Radio Campus Clermont */
.sono {
  --sono-teal: #144f4c; --sono-panel: #0f3f3d; --sono-teal2: #1d7f7a; --sono-turq: #26aea8;
  --sono-orange: #fb983b; --sono-blue: #035e88; --sono-sky: #b5e1f1; --sono-grey: #b0c8cb;
  --sono-ink: #0b2e2c; --sono-muted: #4a6664; --sono-tint: #e6f4fa; --sono-onteal: #ddebec;
  --sono-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--sono-ink); line-height: 1.5; font-size: 17px; max-width: 1200px;
  margin: clamp(24px, 4vw, 48px) auto clamp(32px, 5vw, 64px); /* espace sous le menu du site */
  display: flex; flex-direction: column; gap: 40px;
}
.sono *, .sono *::before, .sono *::after { box-sizing: border-box; }
.sono [hidden] { display: none !important; }
.sono p { margin: 0; }
.sono button { font-family: inherit; cursor: pointer; }
.sono button:disabled { cursor: default; }
.sono :focus-visible { outline: 3px solid var(--sono-orange); outline-offset: 3px; }

/* ---------- Cabine ---------- */
.sono-booth {
  background: var(--sono-teal); color: #fff; border-radius: 28px; padding: clamp(24px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch;
}
.sono-intro { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; container-type: inline-size; }
.sono-eyebrow, .sono-kicker, .sono-question-label {
  font-family: var(--sono-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.sono-eyebrow, .sono-question-label { color: var(--sono-sky); }
.sono .sono-title {
  margin: 0; color: #fff; font-size: clamp(34px, 6vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -.035em;
  white-space: nowrap; /* toujours sur une seule ligne */
}
/* La taille suit la largeur de la colonne pour que « Le Sonomaton » tienne toujours sur une ligne */
@supports (font-size: 1cqi) {
  .sono .sono-title { font-size: clamp(34px, 14cqi, 96px); }
}
.sono-lead { font-size: 20px; color: var(--sono-onteal); max-width: 520px; }
/* Émission déjà choisie (lien depuis une page émission) */
.sono-for {
  align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  background: var(--sono-orange); color: var(--sono-ink); border-radius: 999px; padding: 8px 18px; font-size: 16px;
}
.sono .sono-for a { color: var(--sono-ink); font-size: 14px; }
.sono-for-line { font-size: 16px; background: var(--sono-tint); border-radius: 10px; padding: 12px 14px; }

.sono-question {
  background: var(--sono-panel); border: 1px solid var(--sono-teal2); border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.sono-question-head { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; }
.sono-question-label { font-size: 12px; }
.sono-question-by { font-size: 13px; color: var(--sono-grey); }
.sono-question-text {
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 700;
  transition: opacity .22s ease, transform .22s ease;
}
.sono-question-text.is-out { opacity: 0; transform: translateY(-14px); }
.sono-question-text.is-in { opacity: 0; transform: translateY(14px); transition: none; }
.sono-question { overflow: hidden; }
.sono .sono-ghost svg { transition: none; }
.sono .sono-ghost.is-spin svg { animation: sono-spin .5s ease; }
@keyframes sono-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.sono .sono-ghost {
  align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff; border: 1px solid var(--sono-turq); border-radius: 999px;
  padding: 8px 18px; font-size: 15px; line-height: 1.2;
}
.sono .sono-ghost:hover { background: rgba(38, 174, 168, .15); }

.sono-cabin {
  flex: 1 1 380px; min-width: 0; background: var(--sono-panel); border: 2px solid var(--sono-orange); border-radius: 24px;
  padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.sono-cabin-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.sono-onair {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sono-mono); font-size: 13px;
  font-weight: 600; letter-spacing: .1em; color: var(--sono-grey);
}
.sono-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.sono.is-rec .sono-onair { color: var(--sono-orange); }
.sono.is-rec .sono-dot { animation: sono-blink 1.2s ease-in-out infinite; }
.sono-max { font-family: var(--sono-mono); font-size: 13px; color: var(--sono-grey); }
.sono-timer { font-family: var(--sono-mono); font-size: clamp(48px, 7vw, 64px); font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.sono-progress { width: 100%; height: 6px; background: var(--sono-teal); border-radius: 3px; overflow: hidden; }
.sono-progress span { display: block; height: 100%; width: 0; background: var(--sono-orange); transition: width .25s linear; }

.sono-vu { width: 100%; height: 72px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.sono-vu span {
  width: 8px; height: 100%; border-radius: 3px; background: var(--sono-turq);
  transform-origin: bottom; transform: scaleY(.08); transition: transform .08s linear;
}
.sono-vu span.is-hot { background: var(--sono-orange); }

.sono .sono-rec-btn {
  width: 176px; height: 176px; border-radius: 50%; border: 10px solid var(--sono-teal2); background: var(--sono-orange);
  color: var(--sono-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-weight: 800; font-size: 18px; line-height: 1.1; padding: 0; transition: transform .15s ease;
}
.sono .sono-rec-btn:hover:not(:disabled) { transform: scale(1.04); }
.sono .sono-rec-btn:disabled { background: var(--sono-grey); }
.sono-rec-btn .sono-i-stop { display: none; }
.sono.is-rec .sono-rec-btn .sono-i-stop { display: block; }
.sono.is-rec .sono-rec-btn .sono-i-mic { display: none; }
.sono-rec-btn svg { display: block; }
.sono-hint { font-size: 14px; color: var(--sono-grey); text-align: center; max-width: 340px; }
.sono-msg { min-height: 1.2em; font-size: 15px; font-weight: 600; }
.sono-cabin .sono-msg { color: var(--sono-orange); text-align: center; }
.sono-cabin .sono-msg:empty, .sono-msg-form:empty { display: none; }
.sono-short { display: none; }

/* ---------- Étape 2 ---------- */
.sono-step2 { display: flex; flex-wrap: wrap; gap: 40px; scroll-margin-top: 120px; }
.sono-step2-intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sono-kicker { color: var(--sono-blue); }
.sono .sono-h3 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--sono-teal); }
.sono-muted { color: var(--sono-muted); }

.sono-form {
  flex: 2 1 520px; min-width: 0; background: #fff; border: 1px solid var(--sono-grey); border-radius: 20px;
  padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 24px;
}
.sono-player { display: flex; align-items: center; gap: 14px; background: var(--sono-tint); border-radius: 14px; padding: 12px 14px; flex-wrap: wrap; }
.sono .sono-play {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; background: var(--sono-teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.sono-play .sono-i-pause { display: none; }
.sono.is-playing .sono-play .sono-i-pause { display: block; }
.sono.is-playing .sono-play .sono-i-play { display: none; }
.sono-wave { flex: 1 1 140px; min-width: 0; height: 40px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.sono-wave span { flex: 1 1 0; min-width: 2px; max-width: 5px; border-radius: 2px; background: var(--sono-grey); }
.sono-wave span.is-played { background: var(--sono-teal); }
.sono-ptime { font-family: var(--sono-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.sono .sono-redo {
  flex: none; min-height: 44px; background: #fff; border: 1px solid var(--sono-grey); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; color: var(--sono-ink);
}

.sono-types { border: 0; margin: 0; padding: 0; min-width: 0; }
.sono-types legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.sono-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.sono-pill { position: relative; }
.sono-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sono-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--sono-grey); background: #fff; color: var(--sono-ink); font-size: 15px; font-weight: 600; cursor: pointer;
}
.sono-pill input:checked + span { background: var(--sono-teal); border-color: var(--sono-teal); color: #fff; }
.sono-pill input:focus-visible + span { outline: 3px solid var(--sono-orange); outline-offset: 2px; }

.sono-row { display: flex; flex-wrap: wrap; gap: 16px; }
.sono-row .sono-field { flex: 1 1 200px; }
.sono-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sono-field label { font-weight: 700; }
.sono-opt { font-weight: 400; color: var(--sono-muted); }
.sono .sono-field input, .sono .sono-field select {
  width: 100%; min-height: 48px; border: 1px solid var(--sono-grey); border-radius: 10px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--sono-ink); background: #fff; margin: 0; height: auto;
}
.sono .sono-field input:focus, .sono .sono-field select:focus { border-color: var(--sono-teal); }

.sono-consents { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #dce7e8; padding-top: 20px; }
.sono-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; cursor: pointer; }
.sono-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--sono-teal); }
.sono-consent-note { font-size: 14px; color: var(--sono-muted); padding-left: 34px; }
.sono a { color: var(--sono-blue); }
.sono a:hover { color: var(--sono-teal); }
.sono-req { color: var(--sono-blue); }
.sono-hp { position: absolute !important; left: -9999px !important; }

.sono .sono-send {
  min-height: 56px; background: var(--sono-blue); color: #fff; border: 0; border-radius: 999px;
  font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 28px;
}
.sono .sono-send:hover:not(:disabled) { background: var(--sono-teal); }
.sono .sono-send:disabled { opacity: .6; }
.sono-msg-form { color: var(--sono-blue); }

/* ---------- Ticket ---------- */
.sono-ticket {
  background: var(--sono-tint); border-radius: 28px; padding: clamp(24px, 5vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; scroll-margin-top: 120px;
}
.sono-ticket:focus { outline: none; }
.sono-ticket-head { display: flex; flex-direction: column; gap: 6px; }
.sono-strip {
  width: 220px; background: var(--sono-teal); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  transform: rotate(-2deg); box-shadow: 0 12px 28px rgba(11, 46, 44, .22);
}
.sono-frame {
  height: 72px; background: var(--sono-panel); border: 1px solid var(--sono-teal2); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 10px;
}
.sono-frame span { flex: 1 1 0; max-width: 5px; border-radius: 2px; background: var(--sono-turq); }
.sono-frame span.is-hot { background: var(--sono-orange); }
.sono-strip-meta { font-family: var(--sono-mono); font-size: 14px; color: var(--sono-muted); }
.sono-next {
  max-width: 460px; background: #fff; border: 1px solid var(--sono-grey); border-radius: 16px; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px; font-size: 15px; text-align: left;
}
.sono-ticket-actions { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.sono .sono-btn-blue, .sono .sono-btn-orange {
  min-height: 52px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 700; padding: 0 24px;
}
.sono .sono-btn-blue { background: var(--sono-blue); color: #fff; }
.sono .sono-btn-orange { background: var(--sono-orange); color: var(--sono-ink); }
.sono .sono-link { min-height: 44px; background: none; border: 0; color: var(--sono-blue); text-decoration: underline; font-size: 15px; }

.sono-rgpd { font-size: 14px; color: var(--sono-muted); border-top: 1px solid var(--sono-grey); padding-top: 20px; }

@keyframes sono-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .sono.is-rec .sono-dot, .sono .sono-ghost.is-spin svg { animation: none; }
  .sono-question-text { transition: none; }
  .sono-vu span, .sono-progress span, .sono .sono-rec-btn { transition: none; }
}
/* ---------- Mobile : moins de cadres imbriqués, tout plus compact ---------- */
@media (max-width: 600px) {
  .sono { gap: 24px; font-size: 16px; margin-top: 16px; }

  /* Cabine */
  .sono-booth { border-radius: 20px; padding: 22px 16px 18px; gap: 20px; }
  .sono-intro { gap: 14px; }
  .sono-eyebrow { font-size: 11px; }
  .sono-lead { font-size: 17px; line-height: 1.45; }
  .sono-for { font-size: 14px; padding: 8px 14px; }
  .sono-question { padding: 14px 16px; gap: 8px; border-radius: 14px; }
  .sono-question-label { font-size: 11px; }
  .sono-question-text { font-size: 20px; }
  .sono .sono-ghost { font-size: 14px; padding: 6px 14px; min-height: 40px; gap: 6px; }
  .sono-long { display: none; }
  .sono-short { display: inline; }
  .sono-cabin { padding: 18px 16px 16px; gap: 14px; border-width: 2px; border-radius: 18px; }
  .sono-onair, .sono-max { font-size: 12px; }
  .sono-timer { font-size: 52px; }
  .sono-vu { height: 48px; gap: 3px; }
  .sono-vu span { flex: 1 1 0; width: auto; max-width: 8px; }
  .sono .sono-rec-btn { width: 136px; height: 136px; border-width: 8px; font-size: 16px; }
  .sono-rec-btn svg { width: 36px; height: 36px; }
  .sono-hint { font-size: 13px; }

  /* Étape 2 : formulaire à plat, sans cadre */
  .sono-step2 { gap: 16px; scroll-margin-top: 80px; }
  .sono-step2-intro { gap: 8px; }
  .sono .sono-h3 { font-size: 26px; }
  .sono-muted { font-size: 15px; }
  .sono-form { border: 0; border-radius: 0; padding: 0; background: transparent; gap: 20px; }
  .sono-player { flex-wrap: wrap; gap: 10px 12px; padding: 10px 12px; }
  .sono .sono-play { width: 44px; height: 44px; }
  .sono-wave { flex: 1 1 0; height: 34px; gap: 1px; }
  .sono-wave span { min-width: 1px; }
  .sono .sono-redo { order: 5; flex-basis: 100%; min-height: 36px; padding: 0; border: 0; background: none; text-align: left; text-decoration: underline; font-size: 14px; color: var(--sono-blue); }
  .sono-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sono-pill span { width: 100%; justify-content: center; text-align: center; font-size: 14px; padding: 8px 10px; line-height: 1.2; }
  .sono-row { gap: 20px; }
  .sono-field label { font-size: 15px; }
  .sono-check { font-size: 14px; gap: 10px; }
  .sono-consent-note { font-size: 13px; padding-left: 32px; }
  .sono .sono-send { font-size: 17px; min-height: 52px; }

  /* Ticket et mentions */
  .sono-ticket { border-radius: 20px; padding: 24px 16px; gap: 18px; }
  .sono-rgpd { font-size: 13px; }
}
