/* Voice S33D : vitrine, posée sur le socle (assets/socle/socle.css). L'administration garde style.css. */

body { background: linear-gradient(var(--nuit-900) 0 var(--barre), var(--glace) var(--barre)) no-repeat, var(--glace); }
code { font-family: var(--mono); font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--glace-2); color: var(--azur-800); }
.s3-zone-nuit code, .s3-verre code { background: rgba(124, 168, 240, .14); color: var(--azur-200); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.v-barre-cle { min-height: 40px; }

/* ── Héros ─────────────────────────────────────────────────────── */
.v-heros { overflow: hidden; }
.v-ondes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.v-heros-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 72px); }
.v-heros-texte .s3-titre-affiche { margin: 18px 0; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.v-heros-texte .s3-chapeau { margin-bottom: 26px; }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.v-chiffres { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(18px, 3vw, 40px); margin-top: 34px; }
.v-chiffres .s3-chiffre-valeur { font-size: clamp(1.4rem, 2.3vw, 2rem); color: #fff; }

/* ── Démo ──────────────────────────────────────────────────────── */
.v-demo { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 28px); }
.v-demo-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v-demo-tete h2 { font-size: 1.35rem; color: #fff; }
.v-demo .s3-direct { color: var(--ambre-400); }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font: 600 12px/1.2 var(--corps); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-nuit-3); }
.v-demo textarea, .v-demo select {
  width: 100%; padding: 12px 14px; border-radius: 16px; resize: vertical; color: #fff;
  background: rgba(16, 36, 74, .55); border: 1px solid var(--trait-nuit); transition: border-color .2s, box-shadow .2s, background .2s;
}
.v-demo select { border-radius: 999px; height: 46px; padding: 0 16px; }
.v-demo select option { background: var(--nuit-850); }
.v-demo textarea:focus, .v-demo select:focus { outline: none; border-color: rgba(143, 200, 255, .55); background: rgba(16, 36, 74, .85); box-shadow: 0 0 0 4px rgba(47, 139, 255, .2); }
.compteur { align-self: flex-end; font-size: 12.5px; color: var(--texte-nuit-4); font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.aide { font-size: 13px; color: var(--texte-nuit-3); }
.v-demo audio, .lecteur { width: 100%; height: 40px; border-radius: 999px; color-scheme: dark; }
.lecteur { margin-top: 16px; color-scheme: light; }
.moteurs { display: flex; flex-wrap: wrap; gap: 6px; }
.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 600 12px/1.3 var(--corps); background: var(--glace-2); color: var(--encre-2); }
.moteurs .pastille { background: var(--verre); border: 1px solid var(--trait-nuit); color: var(--texte-nuit-2); }
.pastille.ok::before, .pastille.refus::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 8px var(--vert); }
.pastille.refus::before { background: var(--rouge); box-shadow: none; }
.pastille.neutre { background: var(--azur-50); color: var(--azur-700); }

/* Barres : au repos, une respiration ; à l'écoute, le spectre réel (ondes.js) */
.onde { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 64px; padding: 0 2px; }
.onde i { flex: 1; height: 100%; border-radius: 99px; transform-origin: center; transform: scaleY(.18); background: linear-gradient(180deg, var(--ambre-300), var(--azur-400) 45%, var(--azur-600)); opacity: .9; animation: v-respire 2.4s var(--ease) infinite; transition: transform .08s linear; }
.onde i:nth-child(3n) { animation-delay: -.6s; }
.onde i:nth-child(3n+1) { animation-delay: -1.3s; }
.onde i:nth-child(4n) { animation-delay: -1.9s; }
.onde i:nth-child(5n+2) { animation-delay: -.3s; }
.onde.en-direct i { animation: none; }
@keyframes v-respire { 0%, 100% { transform: scaleY(.14); } 50% { transform: scaleY(.42); } }

/* ── Sections de jour ──────────────────────────────────────────── */
.v-corps { position: relative; z-index: 2; }
.grille-voix { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.voix-carte { display: flex; flex-direction: column; gap: 10px; }
.voix-carte .tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voix-carte h3 { font-size: 1.12rem; }
.voix-carte p { margin: 0; color: var(--encre-2); font-size: 14.5px; flex: 1; }
.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon-l); box-shadow: var(--ombre-jour); padding: 20px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-jour-forte); border-color: var(--azur-200); }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 var(--corps); cursor: pointer; border: 1px solid transparent; background: linear-gradient(180deg, #49a0ff, var(--azur-600)); color: #04101f; transition: transform .2s var(--ease), border-color .2s, color .2s; }
.bouton.secondaire { background: var(--blanc); border-color: var(--trait); color: var(--encre); box-shadow: var(--ombre-jour); }
.bouton.secondaire:hover { border-color: var(--azur-300); color: var(--azur-700); }
.bouton.petit { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.bouton:disabled { opacity: .6; cursor: progress; }
.vide { color: var(--encre-3); }

.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.atout { display: flex; flex-direction: column; gap: 8px; }
.atout h3 { font-size: 1.1rem; margin-top: 8px; }
.atout p { margin: 0; color: var(--encre-2); font-size: 14.5px; }

.v-api { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.methode { display: inline-block; min-width: 46px; text-align: center; padding: 2px 7px; border-radius: 7px; font: 700 11px/1.5 var(--mono); }
.methode.get { background: var(--vert-doux); color: #0c7a4e; }
.methode.post { background: #fff4d9; color: #8a5600; }
.v-exemples { background: var(--nuit-900); border: 1px solid var(--nuit-700); border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre-jour-forte); }
.onglets { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--trait-nuit); overflow-x: auto; }
.onglets button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--texte-nuit-3); font: 600 13.5px/1 var(--corps); }
.onglets button[aria-selected="true"] { background: rgba(47, 139, 255, .16); color: #fff; box-shadow: inset 0 -2px 0 var(--ambre-400); }
.code { position: relative; margin: 0; padding: 18px 20px; overflow-x: auto; font: 13px/1.65 var(--mono); color: #d7e5ff; }
.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.copier { position: absolute; top: 10px; right: 10px; min-height: 30px; padding: 0 12px; border-radius: 999px; font: 600 12px/1 var(--corps); background: var(--verre); border: 1px solid var(--trait-nuit); color: var(--texte-nuit-2); cursor: pointer; }
.copier:hover { color: #fff; border-color: rgba(143, 200, 255, .45); }
.v-sous-titre { font-size: 1.15rem; margin: 30px 0 12px; }

.v-cle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: clamp(22px, 3vw, 36px); border-radius: var(--rayon-xl); background: radial-gradient(120% 140% at 0% 0%, #12306a 0%, #071634 55%, #05090f 100%); box-shadow: var(--ombre-jour-forte); }
.v-cle h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 6px; }
.v-cle p { margin: 0; color: var(--texte-nuit-2); }
.v-cle .s3-embleme { width: 76px; height: 76px; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 16px; background: rgba(7, 15, 32, .96); border: 1px solid var(--trait-nuit); color: var(--texte-nuit); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9); font-size: 14.5px; }
.toast.erreur { border-color: rgba(224, 65, 47, .6); }
.toast.ok, .toast.succes { border-color: rgba(22, 163, 106, .6); }

@media (max-width: 1000px) {
  .v-heros-grille, .v-api { grid-template-columns: 1fr; }
  .atouts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .atouts { grid-template-columns: 1fr; }
  .v-cle { grid-template-columns: 1fr; text-align: left; }
  .v-barre-cle { display: none; }
  .v-chiffres { grid-template-columns: repeat(3, auto); gap: 10px 22px; }
}
