/* =====================================================================
   Enzo Cartier - page "Outils pour les artistes" (/outils/ et /en/tools/)
   Le haut de page reprend le style du site, les outils reprennent
   le style de l'app : fond gris fonce, panneaux, un seul bouton orange.
   Arrondis : 6 (controles), 10 (panneaux), 14 (fenetres et apercus).
   ===================================================================== */

.ot {
  --ot-fond: #141416;
  --ot-panneau: #1B1B1F;
  --ot-controle: #26262B;
  --ot-actif: #303036;
  --ot-creux: #111113;
  --ot-trait: #2A2A30;
  --ot-texte: #EDEDF0;
  --ot-texte2: #A3A3AB;
  --ot-texte3: #8E8E96;
  --ot-orange: #F0701C;
  --ot-orange-clair: #FF8A3D;
  --ot-orange-fonce: #C95A10;
  --ot-sur-orange: #1A0D04;
  --ot-voile: rgba(240, 112, 28, .16);
  --ot-voile-bord: rgba(240, 112, 28, .55);
  --ot-ok: #5FD394;
  --ot-erreur: #FF7D77;
  --ot-degrade: linear-gradient(90deg, #E8481C, #F0701C, #FF9A3C);
  --ot-titre: "Neue Machina", "Switzer Variable", "Helvetica Neue", Arial, sans-serif;
  --ot-police: "Switzer Variable", "Helvetica Neue", Arial, sans-serif;
  position: relative;
  z-index: 20;
  background: #000;
  color: var(--ot-texte);
  font-family: var(--ot-police);
  font-weight: 400;
  padding: 0 2%;
}
.ot *, .ot *::before, .ot *::after { box-sizing: border-box; }
.ot [hidden] { display: none !important; }
.ot button { font-family: inherit; cursor: pointer; border: 0; margin: 0; }
.ot input { font-family: inherit; margin: 0; }
.ot p { margin: 0; }
.ot label { font-weight: 400; margin: 0; display: block; }
.ot label.ot-case { display: inline-flex; }
.ot :focus-visible { outline: 2px solid var(--ot-orange-clair); outline-offset: 2px; }

/* ---------- Haut de page (style du site) ---------- */
.ot-hero { display: flex; flex-direction: column; gap: 32px; padding-top: 168px; }
.ot-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: 14px; line-height: 1.2; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.ot-meta-d { text-align: right; color: var(--ot-texte3); }
.ot-titre { margin: 0; font-family: var(--ot-titre); font-weight: 800; font-style: italic; font-size: clamp(48px, 10.6vw, 152px); line-height: .92; letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
.ot-ligne-sig { height: 3px; background: var(--ot-degrade); }
.ot-intro { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.ot-lead { flex: 999 1 520px; max-width: 880px; font-family: var(--ot-titre); font-weight: 500; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.6px; color: var(--ot-texte3); }
.ot-lead em { font-style: normal; color: #fff; }
.ot-suivre { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.ot-suivre p { font-size: 16px; line-height: 1.45; color: #C9C9CF; font-weight: 400; }
.ot-liens { display: flex; flex-wrap: wrap; gap: 24px; }
.ot-lien { display: inline-flex; flex-direction: column; gap: 2px; font-family: var(--ot-titre); font-weight: 500; font-size: 16px; letter-spacing: -.3px; color: #fff; text-decoration: none; }
.ot-lien::after { content: ""; height: 1px; background: currentColor; transition: transform .25s ease; transform-origin: left; }
.ot-lien:hover { color: var(--ot-orange-clair); }

/* ---------- Choix de l'outil ---------- */
.ot-outils { padding-top: 128px; display: flex; flex-direction: column; gap: 16px; }
/* le bloc porte aussi la classe ec-video (le lecteur du site ne se lance pas quand on clique dedans) */
.ot-outils.ec-video { aspect-ratio: auto; background: transparent; overflow: visible; width: auto; }
.ot-outils-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ot-outils-tete h2 { margin: 0; font-family: var(--ot-titre); font-weight: 500; font-size: 16px; letter-spacing: -.3px; color: #fff; }
.ot-outils-tete span { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--ot-texte3); }
.ot-cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ot-carte { display: flex; flex-direction: column; gap: 16px; min-height: 176px; padding: 16px; border-radius: 10px; background: var(--ot-fond); box-shadow: inset 0 0 0 1px var(--ot-trait); color: var(--ot-texte); text-align: left; transition: background .2s ease, box-shadow .2s ease; }
.ot-carte:hover { background: #18181B; }
.ot-carte[aria-selected="true"] { background: var(--ot-voile); box-shadow: inset 0 0 0 1px var(--ot-voile-bord); }
.ot-carte-haut { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.ot-famille { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ot-texte3); }
.ot-carte[aria-selected="true"] .ot-famille { color: var(--ot-orange-clair); }
.ot-num { font-family: var(--ot-titre); font-weight: 500; font-size: 14px; color: #6E6E76; }
.ot-carte svg { width: 24px; height: 24px; }
.ot-carte-nom { font-family: var(--ot-titre); font-weight: 800; font-style: italic; font-size: 24px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.ot-carte-desc { font-size: 14px; line-height: 1.4; color: var(--ot-texte2); }

/* ---------- Fenetre d'un outil (style de l'app) ---------- */
.ot-fenetre { position: relative; margin-top: 8px; background: var(--ot-fond); border: 1px solid var(--ot-trait); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.35; overflow: hidden; }
.ot-barre { min-height: 56px; display: flex; align-items: center; gap: 8px; padding: 4px 8px; flex-wrap: wrap; }
.ot-nom { margin: 0 8px 0 0; font-family: var(--ot-titre); font-weight: 800; font-style: italic; font-size: 18px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.ot-sous { font-size: 13px; color: var(--ot-texte3); }
.ot-espace { flex: 1 1 auto; }
.ot-corps { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.ot-principal { flex: 999 1 560px; min-width: 0; }
.ot-cote { flex: 1 1 312px; max-width: 100%; }
@media (min-width: 992px) { .ot-cote { flex: 0 0 312px; } }
.ot-panneau { background: var(--ot-panneau); border: 1px solid var(--ot-trait); border-radius: 10px; padding: 16px; }
.ot-pile { display: flex; flex-direction: column; gap: 24px; }
.ot-groupe { display: flex; flex-direction: column; gap: 8px; }
.ot-etiquette { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ot-texte3); }
.ot-aide { font-size: 13px; line-height: 1.45; color: var(--ot-texte2); }
.ot-aide-discrete { font-size: 12px; line-height: 1.45; color: var(--ot-texte3); }

/* Boutons */
.ot-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 6px; background: var(--ot-controle); color: #E4E4E8; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background .15s ease, opacity .15s ease; }
.ot-btn:hover { background: var(--ot-actif); }
.ot-btn:disabled { opacity: .45; cursor: default; }
.ot-btn svg { width: 14px; height: 14px; flex: none; }
.ot-btn--principal { background: var(--ot-orange); color: var(--ot-sur-orange); font-weight: 600; padding: 0 16px; }
.ot-btn--principal:hover { background: var(--ot-orange-clair); }
.ot-btn--principal:active { background: var(--ot-orange-fonce); }
.ot-btn--principal:disabled:hover { background: var(--ot-orange); }
.ot-btn--discret { background: transparent; color: var(--ot-texte2); }
.ot-btn--discret:hover { background: var(--ot-controle); color: #fff; }

/* Choix dans une grille (orange voile) */
.ot-puces { display: flex; flex-wrap: wrap; gap: 4px; }
.ot-puce { height: 28px; padding: 0 12px; border-radius: 6px; background: var(--ot-controle); color: #C9C9CF; font-size: 13px; line-height: 1; transition: background .15s ease; }
.ot-puce:hover { background: var(--ot-actif); }
.ot-puce[aria-pressed="true"] { background: var(--ot-voile); box-shadow: inset 0 0 0 1px var(--ot-voile-bord); color: var(--ot-orange-clair); }
.ot-puce:disabled { opacity: .4; cursor: default; }

/* Selecteur gris (formats, notations) */
.ot-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--ot-creux); border-radius: 6px; max-width: 100%; overflow-x: auto; }
.ot-seg button { height: 26px; padding: 0 12px; border-radius: 6px; background: transparent; color: var(--ot-texte2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ot-seg button:hover { color: #fff; }
.ot-seg button[aria-pressed="true"] { background: var(--ot-actif); color: #fff; }

/* Champs */
.ot-champ { height: 36px; width: 100%; padding: 0 12px; border-radius: 6px; background: var(--ot-creux); border: 1px solid var(--ot-trait); color: var(--ot-texte); font-size: 14px; }
.ot-champ::placeholder { color: #66666E; }
.ot-champ:focus { outline: none; border-color: var(--ot-orange); }
.ot-case { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #D6D6DB; cursor: pointer; }
.ot-case input { accent-color: var(--ot-orange); width: 14px; height: 14px; }

/* Curseur */
.ot-curseur { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; background: transparent; cursor: pointer; }
.ot-curseur::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ot-orange) var(--p, 50%), #33333A var(--p, 50%)); }
.ot-curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: #fff; border: 0; }
.ot-curseur::-moz-range-track { height: 3px; border-radius: 2px; background: #33333A; }
.ot-curseur::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--ot-orange); }
.ot-curseur::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }

/* Zone de depot */
.ot-depot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 16px; border-radius: 10px; border: 1px dashed #3A3A41; color: var(--ot-texte2); font-size: 13px; text-align: center; transition: background .15s ease, border-color .15s ease; }
.ot-depot svg { width: 18px; height: 18px; }
.ot-depot--grand { min-height: 360px; gap: 16px; }
.ot-depot--grand strong { font-family: var(--ot-titre); font-weight: 500; font-size: 20px; color: #fff; }
.is-survol .ot-depot, .ot-depot.is-survol { border-color: var(--ot-orange); background: var(--ot-voile); color: #fff; }

/* Barres de progression (degrade signature) */
.ot-jauge { height: 3px; border-radius: 2px; background: #33333A; overflow: hidden; }
.ot-jauge > span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--ot-degrade); transition: width .2s linear; }
.ot-jauge.is-fini > span { background: #45C07F; }

/* Verre (seulement ce qui flotte) */
.ot-verre { background: rgba(20, 20, 24, .32); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 30px rgba(0, 0, 0, .35); color: #fff; }
.ot-verre-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 6px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26); color: #fff; font-size: 13px; font-weight: 500; }
.ot-verre-btn:hover { background: rgba(255, 255, 255, .22); }
.ot-verre-btn svg { width: 12px; height: 12px; }

/* Lecteur flottant */
.ot-lecteur { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; }
.ot-lecteur .ot-verre-btn { width: 32px; padding: 0; flex: none; }
.ot-temps { font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.ot-piste-lect { flex: 1 1 auto; height: 16px; display: flex; align-items: center; cursor: pointer; }
.ot-piste-lect > div { width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.ot-piste-lect > div > span { display: block; height: 100%; width: 0; background: #fff; }

/* Rappel apres un telechargement */
.ot-rappel { position: fixed; z-index: 1001; right: 2%; bottom: 64px; width: min(400px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 14px; background: rgba(32, 32, 38, .72); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 20px 48px rgba(0, 0, 0, .5); color: var(--ot-texte); font-family: var(--ot-police); font-size: 14px; line-height: 1.4; transform: translateY(12px); opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.ot-rappel.is-visible { transform: none; opacity: 1; }
.ot-rappel-haut { display: flex; align-items: flex-start; gap: 12px; }
.ot-rappel-ok { flex: 0 0 32px; height: 32px; border-radius: 6px; background: rgba(69, 192, 127, .16); color: var(--ot-ok); display: flex; align-items: center; justify-content: center; }
.ot-rappel-ok svg { width: 16px; height: 16px; }
.ot-rappel-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.ot-rappel-txt strong { font-family: var(--ot-titre); font-weight: 500; font-size: 16px; letter-spacing: -.3px; color: #fff; }
.ot-rappel-txt span { font-size: 13px; color: #C9C9CF; }
.ot-rappel-fermer { flex: 0 0 28px; height: 28px; border-radius: 6px; background: transparent; color: var(--ot-texte2); display: flex; align-items: center; justify-content: center; }
.ot-rappel-fermer:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ot-rappel-fermer svg { width: 12px; height: 12px; }
.ot-rappel-liens { display: flex; gap: 8px; padding-left: 44px; flex-wrap: wrap; }
.ot-rappel-liens a { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 6px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; }
.ot-rappel-liens a:hover { background: rgba(255, 255, 255, .2); }
.ot-rappel-liens svg { width: 14px; height: 14px; }

/* Messages */
.ot-message { font-size: 13px; color: var(--ot-texte2); }
.ot-message.is-erreur { color: var(--ot-erreur); }
.ot-message.is-ok { color: var(--ot-ok); }

/* ---------- Visualizer ---------- */
.ot-scene { height: 560px; display: flex; align-items: center; justify-content: center; background: var(--ot-creux); border-radius: 10px; padding: 16px; }
.ot-cadre { position: relative; height: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0B0820; }
.ot-cadre canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ot-cadre:fullscreen { border-radius: 0; height: 100vh; max-width: 100vw; margin: auto; }
.ot-badge-format { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ot-cadre .ot-lecteur { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: 92%; max-width: 520px; }
.ot-vide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ot-vide .ot-carte-verre { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 14px; text-align: center; max-width: 80%; }
.ot-vide .ot-carte-verre p { font-size: 13px; color: rgba(255, 255, 255, .85); }
.ot-export { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 360px; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; }
.ot-export-haut { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.ot-export .ot-jauge { background: rgba(255, 255, 255, .18); }
.ot-export p { font-size: 12px; color: rgba(255, 255, 255, .8); }
.ot-sous-scene { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.ot-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ot-style { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 64px; border-radius: 6px; background: var(--ot-controle); color: #C9C9CF; font-size: 12px; }
.ot-style:hover { background: var(--ot-actif); }
.ot-style svg { width: 20px; height: 20px; }
.ot-style[aria-pressed="true"] { background: var(--ot-voile); box-shadow: inset 0 0 0 1px var(--ot-voile-bord); color: var(--ot-orange-clair); }
.ot-couleurs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ot-pastille { position: relative; width: 28px; height: 28px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.ot-pastille input { position: absolute; inset: -8px; width: 44px; height: 44px; border: 0; padding: 0; cursor: pointer; }
.ot-pastille input:disabled { cursor: default; }
.ot-pochette-mini { display: flex; align-items: center; gap: 8px; }
.ot-pochette-mini img, .ot-pochette-mini .ot-pochette-vide { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--ot-controle); flex: none; }
.ot-ligne-reglage { display: flex; justify-content: space-between; font-size: 13px; }
.ot-ligne-reglage span:last-child { color: var(--ot-texte2); font-variant-numeric: tabular-nums; }
.ot-ordi-seulement { display: none; }

/* ---------- Analyse ---------- */
.ot-liste { position: relative; display: flex; flex-direction: column; min-height: 600px; padding: 0; overflow: hidden; }
.ot-liste-barre { display: flex; align-items: center; gap: 8px; padding: 16px; flex-wrap: wrap; }
.ot-tableau { overflow-x: auto; }
.ot-entetes, .ot-ligne { display: grid; grid-template-columns: 24px minmax(0, 1fr) 64px 84px 136px; gap: 8px; align-items: center; }
.ot-entetes { padding: 0 16px 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ot-texte3); border-bottom: 1px solid var(--ot-trait); }
.ot-lignes { display: flex; flex-direction: column; padding: 4px 8px 120px; }
.ot-ligne { width: 100%; min-height: 44px; padding: 0 8px; border-radius: 6px; background: transparent; color: var(--ot-texte); text-align: left; font-size: 13px; }
.ot-ligne:hover { background: rgba(255, 255, 255, .04); }
.ot-ligne[aria-pressed="true"] { background: var(--ot-voile); box-shadow: inset 0 0 0 1px var(--ot-voile-bord); }
.ot-point { width: 6px; height: 6px; border-radius: 3px; justify-self: center; }
.ot-point.is-compatible { background: var(--ot-orange); }
.ot-l-titre { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ot-l-titre b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-l-sous { display: none; font-size: 11px; color: var(--ot-texte2); }
.ot-l-bpm { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ot-l-cle { display: flex; justify-content: center; }
.ot-cle { min-width: 40px; height: 24px; padding: 0 8px; border-radius: 6px; color: #141416; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.ot-l-energie { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.ot-l-energie i { flex: 1 1 auto; height: 4px; border-radius: 2px; background: #33333A; overflow: hidden; }
.ot-l-energie i span { display: block; height: 100%; background: var(--ot-texte); }
.ot-attente { color: var(--ot-texte3); font-weight: 400; }
.ot-liste .ot-lecteur { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(520px, 90%); background: rgba(40, 40, 46, .42); }
.ot-legende { display: flex; align-items: center; gap: 8px; padding: 0 16px 96px; font-size: 12px; color: var(--ot-texte3); margin-top: auto; }
.ot-legende i { width: 6px; height: 6px; border-radius: 3px; background: var(--ot-orange); flex: none; }
.ot-detail-titre { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ot-gros { display: flex; align-items: center; gap: 16px; }
.ot-gros-cle { width: 72px; height: 72px; border-radius: 36px; color: #141416; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ot-gros-bpm { display: flex; flex-direction: column; gap: 4px; }
.ot-gros-bpm b { font-size: 32px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ot-courbe { width: 100%; height: 48px; display: block; }
.ot-compat { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 4px 8px; border-radius: 6px; background: var(--ot-controle); color: var(--ot-texte); font-size: 13px; text-align: left; }
.ot-compat:hover { background: var(--ot-actif); }
.ot-compat .ot-cle { min-width: 32px; height: 20px; font-size: 11px; padding: 0 6px; }
.ot-compat b { flex: 1 1 auto; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ot-compat span:last-child { color: var(--ot-texte2); font-variant-numeric: tabular-nums; }

/* ---------- Convertisseur ---------- */
.ot-fichiers { display: flex; flex-direction: column; gap: 8px; }
.ot-f-entetes, .ot-f-ligne { display: grid; grid-template-columns: 36px minmax(0, 1fr) 200px 72px 176px 28px; gap: 16px; align-items: center; }
.ot-f-entetes { padding: 8px 12px 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ot-texte3); }
.ot-f-ligne { min-height: 56px; padding: 8px 12px; border-radius: 10px; background: #222227; border: 1px solid var(--ot-trait); }
.ot-f-icone { width: 36px; height: 36px; border-radius: 6px; background: #2E2E34; color: #D6D6DB; display: flex; align-items: center; justify-content: center; }
.ot-f-icone svg { width: 16px; height: 16px; }
.ot-f-nom { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-f-infos { font-size: 12px; color: var(--ot-texte2); font-variant-numeric: tabular-nums; }
.ot-f-vers { font-size: 12px; font-weight: 600; }
.ot-f-etat { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.ot-f-etat.is-ok span { color: var(--ot-ok); }
.ot-f-etat.is-erreur span { color: var(--ot-erreur); }
.ot-f-retirer { width: 28px; height: 28px; border-radius: 6px; background: transparent; color: var(--ot-texte3); display: flex; align-items: center; justify-content: center; }
.ot-f-retirer:hover { background: var(--ot-controle); color: #fff; }
.ot-f-retirer svg { width: 12px; height: 12px; }
.ot-formats { display: flex; flex-direction: column; gap: 16px; }
.ot-format-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ot-format-ligne .ot-etiquette { width: 64px; }
.ot-formats-pied { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ot-trait); padding-top: 16px; }

/* ---------- Metadonnees ---------- */
.ot-meta-corps { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; padding: 24px; }
.ot-pochette { flex: 0 0 320px; display: flex; flex-direction: column; gap: 8px; }
.ot-pochette-img { position: relative; width: 320px; height: 320px; border-radius: 14px; overflow: hidden; background: var(--ot-controle); display: flex; align-items: center; justify-content: center; color: var(--ot-texte3); }
.ot-pochette-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ot-pochette-img svg { width: 40px; height: 40px; }
.ot-pochette-btns { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 4px; padding: 4px; border-radius: 10px; }
.ot-pochette-btns .ot-verre-btn:first-child { flex: 1 1 auto; }
.ot-pochette-btns .ot-verre-btn:last-child { background: transparent; box-shadow: none; }
.ot-champs { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ot-champs label { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 16px; align-items: center; }
.ot-champs label span { font-size: 13px; color: var(--ot-texte2); text-align: right; }
.ot-champs-pied { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0 168px; font-size: 13px; color: var(--ot-texte2); }
.ot-champs-pied .ot-ok-ligne { display: flex; align-items: center; gap: 8px; }
.ot-champs-pied svg { width: 14px; height: 14px; flex: none; }

/* ---------- Bas de page de la page outils ---------- */
.ot-comment { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; padding: 128px 0 160px; }
.ot-comment > div { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--ot-trait); padding-top: 24px; }
.ot-comment span { font-size: 14px; color: var(--ot-texte3); }
.ot-comment h3 { margin: 0; font-family: var(--ot-titre); font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -.4px; color: #fff; }
.ot-comment p { font-size: 16px; line-height: 1.5; color: var(--ot-texte2); }
.ot-tel-seulement { display: none !important; }

/* ---------- Tablette ---------- */
@media (max-width: 991px) {
  .ot-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ot-scene { height: 440px; }
}

/* ---------- Telephone ---------- */
@media (max-width: 767px) {
  .ot { padding: 0 16px; }
  .ot-hero { padding-top: 120px; gap: 24px; }
  .ot-meta { grid-template-columns: 1fr auto; font-size: 12px; }
  .ot-meta span:nth-child(2) { display: none; }
  .ot-titre { font-size: 44px; }
  .ot-lead { font-size: 22px; flex-basis: 100%; }
  .ot-suivre { max-width: none; }
  .ot-outils { padding-top: 80px; }
  .ot-outils-tete span { display: none; }
  .ot-cartes { display: flex; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ot-cartes::-webkit-scrollbar { display: none; }
  .ot-carte { flex: 0 0 168px; min-height: 128px; gap: 12px; scroll-snap-align: start; }
  .ot-carte svg, .ot-num { display: none; }
  .ot-carte-nom { font-size: 20px; }
  .ot-carte-desc { font-size: 12px; }
  .ot-fenetre { margin-left: -8px; margin-right: -8px; }
  .ot-barre .ot-sous { display: none; }
  .ot-barre .ot-btn--principal { order: 10; width: 100%; height: 44px; font-size: 15px; }
  .ot-btn { height: 40px; }
  .ot-puce { height: 36px; }
  .ot-seg button { height: 32px; }
  .ot-champ { height: 44px; font-size: 16px; }
  /* Visualizer : sur ordinateur seulement */
  .ot-ordi-seulement { display: flex; }
  .ot-visu-outil { display: none !important; }
  /* Analyse */
  .ot-entetes { display: none; }
  .ot-liste { min-height: 0; }
  .ot-lignes { padding: 4px 4px 104px; }
  .ot-ligne { grid-template-columns: 6px 48px minmax(0, 1fr) auto; min-height: 56px; padding: 8px; gap: 10px; }
  .ot-ligne .ot-point { order: -2; }
  .ot-l-cle { order: -1; }
  .ot-liste-barre .ot-aide-discrete { display: none; }
  .ot-cle { min-width: 44px; height: 32px; font-size: 13px; }
  .ot-l-energie { display: none; }
  .ot-l-sous { display: block; }
  .ot-l-titre b { font-size: 14px; }
  .ot-l-bpm { font-size: 16px; }
  .ot-legende { padding: 0 16px 96px; }
  /* Convertisseur */
  .ot-f-entetes { display: none; }
  .ot-f-ligne { grid-template-columns: 36px minmax(0, 1fr) 28px; grid-template-areas: "ic nom x" "ic infos x" "etat etat etat"; gap: 4px 12px; }
  .ot-f-icone { grid-area: ic; }
  .ot-f-nom { grid-area: nom; }
  .ot-f-infos { grid-area: infos; }
  .ot-f-vers { display: none; }
  .ot-f-etat { grid-area: etat; margin-top: 4px; }
  .ot-f-retirer { grid-area: x; }
  .ot-format-ligne .ot-etiquette { width: 100%; }
  /* Metadonnees */
  .ot-meta-corps { padding: 16px; gap: 24px; }
  .ot-pochette { flex: 1 1 100%; }
  .ot-pochette-img { width: 100%; height: auto; aspect-ratio: 1; }
  .ot-champs label { grid-template-columns: 1fr; gap: 4px; }
  .ot-champs label span { text-align: left; font-size: 12px; }
  .ot-champs-pied { margin-left: 0; }
  .ot-comment { padding: 96px 0; gap: 32px; }
  .ot-comment h3 { font-size: 22px; }
  .ot-tel-seulement { display: flex !important; }
  .ot-rappel { right: 16px; left: 16px; width: auto; bottom: 56px; }
  .ot-rappel-liens a { height: 44px; padding: 0 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ot-rappel, .ot-carte, .ot-jauge > span { transition: none; }
}

/* Pendant la lecture, le lecteur du Visualizer se cache pour laisser voir le titre ; il revient au survol */
.ot-cadre .ot-lecteur { transition: opacity .3s ease; }
.ot-cadre .ot-lecteur.is-joue { opacity: 0; }
.ot-cadre:hover .ot-lecteur.is-joue, .ot-cadre .ot-lecteur.is-joue:focus-within { opacity: 1; }

/* Petite mention "Beta" a cote du Visualizer */
.ot-beta { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 8px; border-radius: 6px; border: 1px solid #3A3A41; color: var(--ot-texte2); font-family: var(--ot-police); font-style: normal; font-weight: 600; font-size: 10px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; position: relative; top: -2px; }
.ot-barre .ot-beta { margin: 0 8px 0 -8px; top: 0; }
.ot-liste .ot-entetes { padding-top: 16px; }

/* --- Animation de l'onglet Outils : ecran noir + mot OUTILS a l'arrivee,
       affiches des le premier affichage de la page (avant les scripts).
       Le script assets/js/transition-outils.js prend ensuite le relais. --- */
html.ec-to::before { content: ""; position: fixed; inset: 0; background: #000; z-index: 2147483646; }
html.ec-to::after { content: attr(data-to-mot); position: fixed; left: 0; top: 0; z-index: 2147483647; white-space: nowrap; font-family: "Neue Machina", "Switzer Variable", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 100px; line-height: normal; letter-spacing: -.01em; color: #fff; transform-origin: 0 0; transform: translate(var(--to-x, 0px), var(--to-y, 0px)) scale(var(--to-s, 1)); }
