/* L'interface de l'app. Elle reprend les jetons de la page Découvrir (decouvrir/landing.css), piste « Braise » :
   fond #0B0B0C, surfaces sombres, Inter Tight, l'orange #FF6B1A en accent (boutons principaux, états actifs, chiffres
   clés), petites lignes en capitales orange, boutons en pastille, cartes à grands rayons. Un seul jeu de variables. */

:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --surface2: #1C1D20;
  --surface3: #25262A;
  --ligne: #2A2B2F;
  --ligne2: #3A3B40;
  --fg: #F5F4F0;
  --fg2: #A9ABB1;
  --fg3: #83868D;
  --accent: #FF6B1A;
  --accent-texte: #FF6B1A;
  --accent-clair: #FF8540;
  --accent-doux: rgba(255, 107, 26, .12);
  --accent-ligne: rgba(255, 107, 26, .55);
  --sur-accent: #0B0B0C;
  --danger: #FF5A4F;
  --danger-texte: #FFB4A9;
  --danger-fond: #D3372D;
  --danger-doux: rgba(255, 90, 79, .1);
  --police: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-xs: 8px;
  --r-s: 12px;
  --r: 16px;
  --r-l: 20px;
  --r-xl: 24px;
  --tete-h: 64px;
  --doux: cubic-bezier(.2, .7, .2, 1);
  --vif: cubic-bezier(.16, 1, .3, 1);
  --ressort: cubic-bezier(.34, 1.56, .64, 1);
  --ombre-pop: 0 24px 60px -16px rgba(0, 0, 0, .85), 0 0 0 1px var(--ligne);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--tete-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--police);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 420px at 50% -180px, rgba(255, 107, 26, .08), transparent 70%);
}
body[data-ecran="projet"]::after { display: none; }
body > .pop-flottant { position: fixed; z-index: 120; }
body.feuille-ouverte { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 107, 26, .35); color: var(--fg); }
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.modal:focus-visible, .modal-carte:focus-visible, .panneau-corps:focus-visible, main:focus-visible { outline: none; }
.btn:focus-visible, .puce:focus-visible, .info:focus-visible { border-radius: 999px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; transform: translateY(-160%);
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .2s var(--doux);
}
.skip-link:focus { transform: none; }
.noscript { padding: 40px; text-align: center; color: var(--fg2); }

.mono, .tnum { font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 12px/1.3 var(--police); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-texte); }
.eyebrow.neutre { color: var(--fg3); }
.muted { color: var(--fg2); }
.faint { color: var(--fg3); }

/* ------------------------------------------------------------------ icônes */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-xs { width: 13px; height: 13px; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 22px; height: 22px; }
.ic-xl { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ boutons (ceux de la landing) */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 14.5px/1 var(--police); letter-spacing: -.005em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
  -webkit-user-select: none; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--accent); color: var(--sur-accent); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-secondary { background: var(--surface2); border-color: var(--ligne); color: var(--fg); }
.btn-secondary:hover:not(:disabled) { background: var(--surface3); border-color: var(--ligne2); }
.btn-outline { background: transparent; border-color: var(--ligne); color: var(--fg); }
.btn-outline:hover:not(:disabled) { border-color: var(--fg3); }
.btn-ghost { background: transparent; color: var(--fg2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface2); color: var(--fg); }
.btn-danger { background: var(--danger-fond); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #E04438; }
.btn-sm { --h: 36px; padding: 0 15px; font-size: 13.5px; gap: 7px; }
.btn-xs { --h: 30px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; gap: 10px; }
.btn-icon { width: var(--h); padding: 0; }
.btn .spinner { width: 14px; height: 14px; }
.btn.is-locked { color: var(--fg2); }
.btn[aria-expanded="true"]:not(.btn-primary), .btn[aria-pressed="true"]:not(.btn-primary) { border-color: var(--accent-ligne); color: var(--accent-texte); background: var(--accent-doux); }

.spinner {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.lien { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent-ligne); text-underline-offset: 3px; font-weight: 600; cursor: pointer; }
.lien:hover { text-decoration-color: var(--accent); color: var(--accent-texte); }

/* ------------------------------------------------------------------ champs */
.champ { display: grid; gap: 8px; }
.champ > label, .champ-lbl { font-size: 13.5px; font-weight: 600; color: var(--fg2); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 12px 15px;
  background: var(--bg); border: 1px solid var(--ligne); border-radius: 14px;
  color: var(--fg); font-size: 15px; line-height: 1.45;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--fg3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ligne2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible,
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 26, .25); }
.textarea { resize: vertical; min-height: 96px; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9ABB1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6.5 9.5 12 15l5.5-5.5'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px;
}
.select:disabled, .input:disabled { opacity: .5; cursor: not-allowed; }

.segment { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface2); border: 1px solid var(--ligne); border-radius: 999px; }
.segment button {
  min-height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent;
  color: var(--fg2); font-size: 13px; font-weight: 600; transition: background-color .2s ease, color .2s ease;
}
.segment button:hover:not(:disabled) { color: var(--fg); }
.segment button[aria-pressed="true"] { background: var(--accent); color: var(--sur-accent); }
.segment button:disabled { opacity: .45; cursor: not-allowed; }

.interrupteur { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; min-height: 32px; }
.interrupteur input { position: absolute; opacity: 0; pointer-events: none; }
.interrupteur .piste { width: 38px; height: 22px; border-radius: 999px; background: var(--surface3); position: relative; transition: background-color .2s ease; flex: none; box-shadow: inset 0 0 0 1px var(--ligne2); }
.interrupteur .piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg2); transition: transform .25s var(--ressort), background-color .2s ease; }
.interrupteur input:checked + .piste { background: var(--accent); box-shadow: none; }
.interrupteur input:checked + .piste::after { transform: translateX(16px); background: var(--sur-accent); }
.interrupteur input:focus-visible + .piste { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.interrupteur input:disabled + .piste { opacity: .45; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--p, 50%), var(--surface3) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--fg); border: 0; box-shadow: 0 0 0 4px rgba(11, 11, 12, .9); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--surface3); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--fg); border: 0; }
input[type="range"]:focus-visible { outline-offset: 2px; }
input[type="range"]:disabled { opacity: .45; cursor: not-allowed; }

/* les pastilles de la landing (.rk-pastille, .rk-choix) */
.puce {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px;
  border: 1px solid var(--ligne); border-radius: 999px; background: transparent; color: var(--fg2);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
button.puce:hover { border-color: var(--fg3); color: var(--fg); }
.puce .ic { width: 15px; height: 15px; }
button.puce[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-texte); background: var(--accent-doux); }

.etiquette {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px;
  border-radius: 999px; background: var(--surface2); color: var(--fg2); border: 1px solid var(--ligne);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.etiquette .ic { width: 12px; height: 12px; }
.etiquette.is-plein { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.etiquette.is-erreur { background: var(--danger-doux); border-color: rgba(255, 90, 79, .4); color: var(--danger-texte); }
.etiquette .point { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.etiquette.is-encours { color: var(--fg); }
.etiquette.is-encours .point { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }

.verrou {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 11px 0 9px;
  border-radius: 999px; border: 1px solid var(--accent-ligne); color: var(--accent-texte); background: var(--accent-doux);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.verrou .ic { width: 12px; height: 12px; }
button.verrou:hover { background: rgba(255, 107, 26, .2); }

.barre { height: 4px; border-radius: 4px; background: var(--surface3); overflow: hidden; }
.barre > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .4s var(--doux); }
.barre.is-indet > i { width: 30% !important; animation: indet 1.3s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

/* ------------------------------------------------------------------ la barre du haut (l'en-tête de la landing) */
.topbar {
  position: sticky; top: 0; z-index: 60; height: var(--tete-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ligne);
}
.topbar-inner { height: 100%; max-width: 1680px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 8px; flex: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand-word { font: 500 14px/1 var(--police); letter-spacing: .3em; text-transform: uppercase; color: var(--fg); }
.mock-badge {
  font: 600 10.5px/1 var(--police); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-texte); border: 1px dashed var(--accent-ligne); padding: 6px 9px; border-radius: 999px; flex: none;
}
.topnav { display: flex; gap: 4px; min-width: 0; }
.topnav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--fg2); text-decoration: none; font-weight: 500; font-size: 14.5px; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.topnav a .ic { width: 16px; height: 16px; }
.topnav a:hover { color: var(--fg); }
.topnav a[aria-current="page"] { color: var(--fg); background: var(--surface2); }
.topnav a[aria-current="page"] .ic { color: var(--accent-texte); }
.nav-court { display: none; }
.topbar-droite { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.topbar-droite .btn { --h: 40px; padding: 0 17px; font-size: 14px; }

.jauge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 15px 0 12px;
  border: 1px solid var(--ligne); border-radius: 999px; background: transparent; color: var(--fg2);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: border-color .2s ease, color .2s ease;
}
.jauge:hover { border-color: var(--fg3); color: var(--fg); }
.jauge b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.jauge .compteur { position: relative; width: 22px; height: 22px; flex: none; }
.jauge .compteur svg { width: 22px; height: 22px; transform: rotate(-90deg); }
.jauge .compteur circle { fill: none; stroke-width: 3; }
.jauge .compteur .fond { stroke: var(--surface3); }
.jauge .compteur .arc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .5s var(--doux); }
.jauge.is-bas .arc { stroke: var(--danger); }

.demo { position: relative; }
.demo-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 14px;
  border: 1px solid var(--ligne); border-radius: 999px; background: var(--surface); color: var(--fg2);
  font-size: 13px; font-weight: 500; transition: border-color .2s ease, background-color .2s ease;
}
.demo-btn:hover, .demo-btn[aria-expanded="true"] { border-color: var(--fg3); color: var(--fg); }
.demo-lbl { letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; font-weight: 600; color: var(--fg3); }
.offre-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; background: var(--accent-doux); color: var(--accent-texte); font-size: 12.5px; font-weight: 600; }

/* ------------------------------------------------------------------ menus flottants */
.pop {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: var(--r-l); box-shadow: var(--ombre-pop); padding: 8px;
}
.pop-flottant { opacity: 0; transform: translateY(-4px); transition: opacity .18s var(--doux), transform .18s var(--doux); max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto; }
.pop-flottant.is-in { opacity: 1; transform: none; }
.demo-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 360px; z-index: 80; padding: 10px; }
.demo-menu .tete { padding: 8px 10px 12px; border-bottom: 1px solid var(--ligne); margin-bottom: 6px; }
.demo-menu .tete p:not(.eyebrow) { font-size: 13px; color: var(--fg2); margin-top: 6px; line-height: 1.45; }
.demo-item {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  padding: 11px 12px; border: 0; border-radius: 14px; background: transparent; text-align: left; color: var(--fg);
  transition: background-color .2s ease;
}
.demo-item:hover { background: var(--surface2); }
.demo-item .nom { font-weight: 600; font-size: 14.5px; }
.demo-item .prix { font-size: 13px; color: var(--fg2); font-variant-numeric: tabular-nums; }
.demo-item .resume { grid-column: 1 / -1; font-size: 13px; color: var(--fg3); line-height: 1.4; }
.demo-item[aria-checked="true"] { background: var(--accent-doux); box-shadow: inset 0 0 0 1px var(--accent-ligne); }
.demo-item[aria-checked="true"] .prix::after { content: " · active"; color: var(--accent-texte); }
.demo-menu .pied { padding: 8px 6px 2px; display: flex; }
.demo-menu .pied .btn { width: 100%; }
.pop-jauge .eyebrow { margin-bottom: 2px; }

/* ------------------------------------------------------------------ bandeau d'envoi (toutes les pages) */
.bandeau-envoi {
  position: sticky; top: var(--tete-h); z-index: 55;
  display: flex; align-items: center; gap: 14px; padding: 10px 24px;
  background: var(--accent); color: var(--sur-accent); font-size: 14px; font-weight: 600;
}
.bandeau-envoi .barre { flex: 1; max-width: 260px; background: rgba(11, 11, 12, .2); }
.bandeau-envoi .barre > i { background: var(--sur-accent); }
.bandeau-envoi a { color: var(--sur-accent); font-weight: 700; }

/* ------------------------------------------------------------------ notifications */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 150; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 440px;
  padding: 12px 12px 12px 16px; border-radius: var(--r); background: var(--surface2); box-shadow: var(--ombre-pop);
  font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity .25s var(--doux), transform .35s var(--vif);
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(8px); }
.toast > .ic { color: var(--fg2); }
.toast.is-ok > .ic { color: var(--accent-texte); }
.toast.is-erreur > .ic { color: var(--danger); }
.toast p { flex: 1; }

/* ------------------------------------------------------------------ fenêtre */
.modal { padding: 0; border: 0; background: transparent; color: var(--fg); max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: visible; }
.modal::backdrop { background: rgba(5, 5, 6, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: entree .3s var(--vif); }
@keyframes entree { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-carte {
  width: 500px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 28px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); padding: 28px;
}
.modal-carte.is-large { width: 1100px; }
.modal-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal-tete .eyebrow { margin-bottom: 10px; }
.modal-titre { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.modal-titre:empty { display: none; }
.modal-corps { color: var(--fg2); font-size: 15px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ------------------------------------------------------------------ les offres (les cartes de la landing) */
.offres-lead { color: var(--fg2); margin-bottom: 22px; max-width: 680px; font-size: 16px; }
.offres-test { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--r); background: var(--accent-doux); border: 1px solid var(--accent-ligne); color: var(--fg); font-weight: 600; }
.offres-test .ic { color: var(--accent-texte); }
.offres-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.offre-carte {
  display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r-xl);
  background: var(--bg); border: 1px solid var(--ligne); position: relative;
}
.offre-carte.is-active { border-color: var(--fg3); }
.offre-carte.is-cible { border-color: var(--accent); box-shadow: 0 30px 80px -40px var(--accent); }
.offre-carte .nom { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fg3); }
.offre-carte .prix { font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--fg); }
.offre-carte .prix small { font-size: 15px; color: var(--fg3); letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.offre-carte ul { display: grid; gap: 11px; font-size: 14.5px; }
.offre-carte li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--fg2); line-height: 1.4; }
.offre-carte li .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-texte); }
.offre-carte li b { font-weight: 600; color: var(--fg); }
.offre-carte .btn { width: 100%; margin-top: auto; }
.offre-carte .badge { position: absolute; top: 22px; right: 22px; }
.offre-carte .etiquette.badge:not(.is-plein) { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.offre-carte.is-active .etiquette.badge.is-plein { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.offres-note { margin-top: 18px; color: var(--fg3); font-size: 13.5px; }
.offres-note + .offres-note { margin-top: 8px; }
.offre-reels { display: grid; gap: 4px; }
.offre-reels .r { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--fg); }
.offre-reels .l { font-size: 15px; color: var(--fg2); }
.offre-credits { font-size: 13px; color: var(--fg3); }
.offre-inclut { font-size: 14px; font-weight: 600; color: var(--fg); margin: 2px 0 -4px; }
.offre-sans-limite { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.offre-sans-limite .sl-tete { display: grid; gap: 12px; justify-items: start; }
.offre-sans-limite .accroche { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: var(--fg); }
.offre-sans-limite .btn { width: auto; }
.offres-contact { margin-top: 26px; padding: 26px; border: 1px solid var(--ligne); border-radius: var(--r-xl); background: var(--bg); display: grid; gap: 10px; }
.offres-contact h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; color: var(--fg); }
.contact-ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.contact-form .btn { justify-self: start; }
.contact-texte { margin-bottom: 16px; }
.contact-merci { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--accent-doux); border: 1px solid var(--accent-ligne); font-weight: 600; color: var(--fg); }
.contact-merci .ic { width: 20px; height: 20px; flex: none; color: var(--accent-texte); }

/* ------------------------------------------------------------------ les pages */
main { min-height: calc(100vh - var(--tete-h)); }
.page { max-width: 1240px; margin: 0 auto; padding: 56px 32px 96px; }
.page-tete { display: grid; gap: 16px; margin-bottom: 36px; max-width: 780px; }
.titre-xl { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.titre-xl span { color: var(--fg3); }
.titre-l { font-size: clamp(28px, 3vw, 40px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.55; color: var(--fg2); max-width: 640px; text-wrap: pretty; }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-xl); }
.chargement { display: grid; place-items: center; min-height: 50vh; color: var(--fg3); gap: 12px; align-content: center; font-size: 14px; }
.vide { padding: 64px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.vide p { max-width: 520px; }
.ic-rond { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-doux); color: var(--accent-texte); }
.carte.vide { margin-top: 12px; }

/* ------------------------------------------------------------------ nouveau projet : le dépôt */
.nouveau { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.nouveau-form { display: grid; gap: 24px; }
.bandeau-essai {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; border-radius: var(--r-l);
  background: var(--accent-doux); border: 1px solid var(--accent-ligne); font-size: 14.5px; line-height: 1.45;
}
.bandeau-essai > .ic { color: var(--accent-texte); }
.bandeau-essai p { flex: 1; color: var(--fg2); }
.bandeau-essai p b { color: var(--fg); font-weight: 600; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start; text-align: left;
  padding: 18px; border-radius: var(--r-l); border: 1px solid var(--ligne); background: var(--surface); color: var(--fg);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.mode:hover { border-color: var(--ligne2); }
.mode[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 20px 50px -30px var(--accent); }
.mode .pastille { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface2); color: var(--fg2); }
.mode[aria-pressed="true"] .pastille { background: var(--accent-doux); color: var(--accent-texte); }
.mode .t { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.mode .d { font-size: 13.5px; color: var(--fg2); line-height: 1.45; }

.depot {
  position: relative; display: grid; place-items: center; gap: 14px; text-align: center;
  min-height: 270px; padding: 36px 24px; border-radius: var(--r-xl);
  border: 1.5px dashed var(--ligne2); background: var(--surface);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.depot.is-fichier { min-height: 0; padding: 20px 24px; border-style: solid; border-color: var(--ligne); }
.depot.is-survol { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); box-shadow: 0 0 0 6px rgba(255, 107, 26, .12); }
.depot-interieur { display: grid; justify-items: center; gap: 12px; max-width: 540px; width: 100%; }
.depot-icone { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-doux); color: var(--accent-texte); }
.depot-titre { font-size: 22px; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.depot-sous { font-size: 14px; color: var(--fg2); }
.depot-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.lien-ligne { display: flex; gap: 8px; width: 100%; max-width: 540px; margin-top: 6px; }
.lien-ligne .input { border-radius: 999px; padding-left: 44px; }
.lien-ligne .champ-icone { position: relative; flex: 1; }
.lien-ligne .champ-icone .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--fg3); }
.ou { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 540px; color: var(--fg3); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }

.fichier-carte { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; width: 100%; text-align: left; }
.fichier-carte .vignette { width: 84px; height: 112px; border-radius: 14px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; color: var(--fg3); }
.fichier-carte .vignette img { width: 100%; height: 100%; object-fit: cover; }
.fichier-carte .nom { font-weight: 600; font-size: 15.5px; word-break: break-all; line-height: 1.35; }
.fichier-carte .meta { color: var(--fg2); font-size: 13.5px; margin-top: 4px; }
.fichiers-noms { display: grid; gap: 2px; margin-top: 8px; font-size: 13px; color: var(--fg2); overflow-wrap: anywhere; }

.consigne-boite { position: relative; }
.consigne-boite .textarea { padding: 16px 64px 16px 16px; min-height: 124px; border-radius: var(--r-l); font-size: 15.5px; }
.consigne-boite .micro { position: absolute; right: 12px; bottom: 12px; }
.consigne-aide { font-size: 13px; line-height: 1.45; color: var(--fg3); margin-top: 2px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.options-ligne { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; }
.options-ligne .champ { min-width: 220px; }

/* le nombre d'extraits, avant un clipping (contrat C1) */
.extraits { display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--ligne); }
.extraits-phrase { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
.extraits-phrase b { color: var(--accent-texte); }
.extraits-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.extraits-ligne > span { font-size: 14px; color: var(--fg2); }
.pas-a-pas { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--ligne); }
.pas-a-pas output { min-width: 46px; text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg); }
.pas-a-pas .btn { --h: 36px; }
.pas-a-pas.is-tous output { color: var(--fg3); }
.extraits-note { font-size: 13px; color: var(--fg3); }

.estimation {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--ligne); font-size: 14.5px; line-height: 1.45;
}
.estimation > .ic { color: var(--accent-texte); }
.estimation p { flex: 1; color: var(--fg2); }
.estimation p b { color: var(--fg); font-weight: 600; }
.estimation.is-refus { border-color: rgba(255, 90, 79, .4); background: var(--danger-doux); }
.estimation.is-refus > .ic { color: var(--danger); }
.estimation.is-refus p { color: var(--fg); }
.lancer-ligne { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lancer-ligne .note { color: var(--fg3); font-size: 13.5px; flex: 1; min-width: 220px; }

.cote { display: grid; gap: 16px; position: sticky; top: calc(var(--tete-h) + 24px); }
.etapes-aide { padding: 24px; display: grid; gap: 18px; }
.etapes-aide h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.etapes-aide ol { display: grid; gap: 16px; counter-reset: e; }
.etapes-aide li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--fg2); counter-increment: e; }
.etapes-aide li::before { content: "0" counter(e); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent-texte); background: var(--accent-doux); }
.etapes-aide li b { color: var(--fg); font-weight: 600; display: block; margin-bottom: 2px; }
.recents { padding: 20px; display: grid; gap: 10px; }
.recents-tete { display: flex; align-items: center; justify-content: space-between; }
.recents-tete h2 { font-size: 16px; font-weight: 600; }
.recent { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 14px; text-decoration: none; transition: background-color .2s ease; }
.recent:hover { background: var(--surface2); }
.recent .mini { width: 40px; height: 52px; border-radius: 9px; overflow: hidden; background: var(--surface2); }
.recent .mini img { width: 100%; height: 100%; object-fit: cover; }
.recent .n { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .m { font-size: 12.5px; color: var(--fg3); }
.fichiers-ecartes { padding: 18px 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--fg2); margin-top: 14px; }
.fichiers-ecartes h2 { font-size: 15px; font-weight: 600; color: var(--fg); }
.fichiers-ecartes b { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ le traitement */
.traitement { max-width: 780px; margin: 0 auto; padding: 64px 24px 96px; display: grid; gap: 26px; }
.traitement-tete { display: grid; gap: 14px; text-align: center; justify-items: center; }
.traitement-tete .lead { margin: 0 auto; }
.traitement-carte { padding: 8px; }
.traitement-fichier { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--ligne); }
.traitement-fichier .mini { width: 40px; height: 52px; border-radius: 9px; overflow: hidden; background: var(--surface2); flex: none; display: grid; place-items: center; color: var(--fg3); }
.traitement-fichier .mini img { width: 100%; height: 100%; object-fit: cover; }
.traitement-fichier .n { font-weight: 600; font-size: 14.5px; word-break: break-all; }
.traitement-fichier .m { font-size: 13px; color: var(--fg3); }
.etapes { display: grid; padding: 10px; }
.etape { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 13px 10px; border-radius: 16px; }
.etape .rond { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ligne2); color: var(--fg3); font-size: 12.5px; }
.etape .rond .ic { width: 15px; height: 15px; }
.etape .t { font-size: 15px; font-weight: 600; color: var(--fg3); }
.etape .d { font-size: 13.5px; color: var(--fg2); margin-top: 3px; line-height: 1.45; }
.etape .barre { margin-top: 10px; }
.etape .pct { font-size: 13px; color: var(--accent-texte); font-weight: 600; font-variant-numeric: tabular-nums; }
.etape.is-fait .rond { background: var(--accent-doux); border-color: transparent; color: var(--accent-texte); }
.etape.is-fait .t { color: var(--fg2); }
.etape.is-actif { background: var(--surface2); }
.etape.is-actif .rond { border-color: var(--accent); color: var(--accent-texte); }
.etape.is-actif .t { color: var(--fg); }
.garde-ouverte {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-l);
  background: var(--accent); color: var(--sur-accent); font-size: 14.5px; line-height: 1.5; font-weight: 500;
}
.garde-ouverte b { font-weight: 700; display: block; }
.garde-ouverte.is-calme { background: var(--surface); color: var(--fg2); border: 1px solid var(--ligne); font-weight: 400; }
.garde-ouverte.is-calme b { color: var(--fg); font-weight: 600; }
.garde-ouverte.is-calme .ic { color: var(--accent-texte); }
.garde-ouverte .ic { margin-top: 2px; }
.traitement-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.erreur-carte { padding: 28px; display: grid; gap: 16px; justify-items: start; }
.erreur-carte .ic-rond { background: var(--danger-doux); color: var(--danger); }
.pct-global { font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent-texte); margin-bottom: 12px; }
.avancement { margin: 4px 0 6px; }

/* ================================================================== l'éditeur
   La vidéo et le chat d'abord. Une seule ligne d'informations, l'action principale (Télécharger), et un seul panneau
   à la demande (Réglages, détail du score ou timeline), fermé par défaut. */
.montage { --chat-w: 400px; --panneau-w: 420px; display: flex; flex-direction: column; height: calc(100vh - var(--tete-h)); height: calc(100dvh - var(--tete-h)); min-height: 600px; }
.editeur-barre { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 20px; border-bottom: 1px solid var(--ligne); background: var(--bg); min-height: 64px; }
.editeur-barre .retour { flex: none; }
.editeur-titre { min-width: 0; flex: 1 1 200px; display: grid; gap: 1px; }
.editeur-titre h1 { font-size: 16.5px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editeur-titre .meta { font-size: 12.5px; color: var(--fg3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.infos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.info {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--ligne); background: transparent; color: var(--fg2); font-size: 13px; white-space: nowrap;
}
.info b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.info .l { color: var(--fg3); }
.info .s { color: var(--fg3); font-size: 12px; }
.info .ic { width: 15px; height: 15px; color: var(--fg3); }
button.info { cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
button.info:hover { border-color: var(--fg3); color: var(--fg); }
button.info[aria-expanded="true"] { border-color: var(--accent-ligne); background: var(--accent-doux); color: var(--fg); }
button.info[aria-expanded="true"] .ic { color: var(--accent-texte); }
.info-score { padding-left: 5px; }
.info-score .anneau { --t: 26px; }
.info-score .anneau-val { font-size: 0; }
.ligne-outils { display: flex; align-items: center; gap: 6px; margin-left: auto; min-width: 0; }
.outils { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.barre-actions { display: flex; align-items: center; gap: 8px; }
.barre-actions .btn-telecharger { min-width: 150px; }
@media (min-width: 1181px) {
  /* une seule ligne : quand la place manque (une longue durée, « Version v2 sur 2 »), le titre se raccourcit, puis la
     ligne d'informations défile, plutôt que de pousser Télécharger seul sur une deuxième ligne */
  .editeur-barre { flex-wrap: nowrap; }
  .editeur-titre { flex: 1 1 120px; }
  .ligne-outils { flex: 0 1 auto; }
  .infos { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 3px; margin: -4px -3px; }
  .infos::-webkit-scrollbar { display: none; }
  .outils, .barre-actions { flex: none; }
}

.montage-corps { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--chat-w) minmax(0, 1fr) 0; grid-template-areas: "chat scene panneau"; }
.montage-corps.avec-panneau { grid-template-columns: var(--chat-w) minmax(0, 1fr) var(--panneau-w); }
.montage-corps.avec-timeline { --panneau-w: min(720px, calc(100vw - var(--chat-w) - 360px)); }

/* la scène : la vidéo, au plus grand possible */
.scene { grid-area: scene; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px 24px; background: radial-gradient(600px 420px at 50% 42%, rgba(255, 107, 26, .05), transparent 70%); }
.lecteur-col { display: grid; gap: 10px; justify-items: center; }
.cadre {
  position: relative; background: #000; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--ligne);
  height: min(100%, 640px); aspect-ratio: var(--ratio, 9 / 16); max-width: 100%;
}
.cadre video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cadre .voile { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(11, 11, 12, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s var(--doux); }
.cadre .voile.is-on { opacity: 1; pointer-events: auto; }
.cadre .gros-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%;
  border: 0; background: var(--accent); color: var(--sur-accent); display: grid; place-items: center;
  transition: opacity .2s ease, transform .3s var(--ressort); box-shadow: 0 14px 40px -10px rgba(255, 107, 26, .7);
}
.cadre .gros-play .ic { width: 26px; height: 26px; margin-left: 3px; }
.cadre .gros-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.cadre.is-lecture .gros-play { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); }
.cadre .bandeau-version {
  position: absolute; left: 10px; right: 10px; top: 10px; display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap;
  padding: 8px 8px 8px 14px; border-radius: 16px; background: rgba(11, 11, 12, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; line-height: 1.35;
}
.cadre .rendu-barre {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 8px; padding: 11px 13px;
  border-radius: 16px; background: rgba(11, 11, 12, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; line-height: 1.35; animation: monte .3s var(--vif);
}
.rendu-ligne { display: flex; align-items: center; gap: 8px; }
.rendu-ligne span:nth-child(2) { flex: 1; min-width: 0; }
.rendu-ligne .spinner { width: 13px; height: 13px; color: var(--accent-texte); }
.rendu-ligne b { color: var(--accent-texte); }
.controles { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 440px; }
.controles .temps { font-size: 12.5px; color: var(--fg2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.controles input[type="range"] { flex: 1; }

/* le panneau à la demande : un seul à la fois */
.panneau { grid-area: panneau; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--ligne); overflow: hidden; }
.montage-corps:not(.avec-panneau) .panneau { visibility: hidden; }
.panneau-tete { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--ligne); }
.panneau-poignee { display: none; }
.onglets { display: flex; gap: 2px; padding: 4px; background: var(--bg); border: 1px solid var(--ligne); border-radius: 999px; flex: 1; min-width: 0; }
.onglet { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--fg2); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.onglet:hover { color: var(--fg); }
.onglet[aria-selected="true"] { background: var(--accent); color: var(--sur-accent); }
.onglet .ic { width: 14px; height: 14px; }
.panneau-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.panneau-corps > * { animation: monte .3s var(--vif); }
.panneau-voile { display: none; }

/* le détail du score, lisible en entier */
.score-detail { padding: 20px 20px 28px; display: grid; gap: 18px; }
.score-tete { display: flex; gap: 16px; align-items: center; }
.score-tete .anneau { --t: 76px; }
.score-tete h3 { font-size: 19px; letter-spacing: -.02em; }
.score-tete p { font-size: 14px; color: var(--fg2); line-height: 1.45; margin-top: 2px; }
.score-detail .verdict { font-size: 15px; line-height: 1.55; color: var(--fg); padding: 14px 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--ligne); }
.criteres { display: grid; gap: 12px; }
.critere { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; font-size: 14px; color: var(--fg2); }
.critere b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.critere .barre { grid-column: 1 / -1; height: 5px; }
.conseils { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.conseils h4 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-texte); }
.conseils li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--fg); }
.conseils li .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--accent-texte); }
.conseils .flou { filter: blur(5px); opacity: .45; user-select: none; pointer-events: none; }
.conseils-verrou { display: grid; gap: 10px; justify-items: start; padding: 16px; border-radius: var(--r); background: var(--accent-doux); border: 1px solid var(--accent-ligne); font-size: 14px; line-height: 1.5; color: var(--fg); }
.conseils-verrou .ic { color: var(--accent-texte); }

.pop-versions { width: 360px; padding: 8px; }
.pop-versions .tete { padding: 10px 10px 8px; }
.pop-versions .tete p:not(.eyebrow) { font-size: 13px; color: var(--fg2); margin-top: 4px; }
.version-item { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; min-height: 56px; padding: 8px 10px; border: 0; border-radius: 14px; background: transparent; text-align: left; color: var(--fg); }
.version-item:hover { background: var(--surface2); }
.version-item .n { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface2); font-weight: 600; font-size: 13.5px; }
.version-item.is-courante .n { background: var(--accent); color: var(--sur-accent); }
.version-item .r { font-size: 14px; font-weight: 500; line-height: 1.3; }
.version-item .q { font-size: 12.5px; color: var(--fg3); }
.version-item .ic { color: var(--accent-texte); }

/* l'anneau de score (celui de la landing) */
.anneau { position: relative; display: inline-grid; place-items: center; flex: none; }
.anneau-svg { position: absolute; inset: 0; }
.anneau-fond { stroke: var(--surface3); }
.anneau-arc { stroke: var(--accent); transition: stroke-dasharray .6s var(--doux); }
.anneau-val { position: relative; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; font-size: calc(var(--t, 56px) * .32); }

/* ------------------------------------------------------------------ le chat */
.chat { grid-area: chat; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--ligne); }
.chat-tete { display: grid; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--ligne); }
.chat-qui { display: flex; align-items: center; gap: 12px; }
.chat-tete img { width: 30px; height: 30px; border-radius: 9px; }
.chat-tete .n { font-size: 14.5px; font-weight: 600; display: block; }
.chat-tete .s { font-size: 12.5px; color: var(--fg3); display: flex; align-items: center; gap: 6px; }
.chat-tete .s .point { width: 6px; height: 6px; border-radius: 50%; background: var(--fg3); }
.chat-tete .s.is-occupe .point { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.compteurs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--fg3); }
.compteurs > span { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.compteurs b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.compteurs .is-plein b { color: var(--danger); }
.chat-fil { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; overscroll-behavior: contain; scrollbar-width: thin; }
.msg { display: flex; gap: 10px; max-width: 100%; }
.msg.is-neuf { animation: monte .35s var(--vif); }
@keyframes monte { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-rushkut .av { width: 26px; height: 26px; border-radius: 8px; flex: none; margin-top: 1px; }
.msg-rushkut .av.is-vide { visibility: hidden; }
.msg-rushkut .corps { min-width: 0; flex: 1; display: grid; gap: 8px; }
.msg-rushkut .texte { font-size: 15px; line-height: 1.55; color: var(--fg); overflow-wrap: anywhere; }
.msg-moi { justify-content: flex-end; }
.msg-moi .bulle {
  max-width: 86%; padding: 11px 15px; border-radius: 18px 18px 6px 18px; background: var(--accent); color: var(--sur-accent);
  font-size: 15px; line-height: 1.45; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg-moi .bulle.is-envoi { opacity: .65; }
.msg-moi .reponse-img { display: flex; align-items: center; gap: 10px; }
.msg-moi .reponse-img img { width: 30px; height: 40px; border-radius: 6px; object-fit: cover; }
.msg-moi.is-discuter .bulle { background: var(--surface2); color: var(--fg); border: 1px dashed var(--ligne2); font-weight: 400; }
.msg-systeme { justify-content: center; }
.msg-systeme p { font-size: 12.5px; color: var(--fg3); text-align: center; }
.puce-version { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 13px 0 5px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--fg); font-size: 13px; font-weight: 500; transition: border-color .2s ease; }
.puce-version:hover { border-color: var(--fg3); }
.puce-version .n { height: 24px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--sur-accent); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.ecrit { display: inline-flex; gap: 4px; align-items: center; height: 22px; }
.ecrit i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg2); animation: rebond 1.2s ease-in-out infinite; }
.ecrit i:nth-child(2) { animation-delay: .15s; }
.ecrit i:nth-child(3) { animation-delay: .3s; }
@keyframes rebond { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg-attente .texte { color: var(--fg2); font-size: 14px; }
.tag-mode { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg3); margin-bottom: 4px; }
.plan-discuter { margin: 8px 0 10px 18px; display: grid; gap: 4px; font-size: 14px; color: var(--fg); list-style: decimal; }

/* les cartes de question (les cartes de la landing) */
.question { border: 1px solid var(--ligne); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.question-tete { padding: 15px 16px 0; display: grid; gap: 7px; }
.question-tete .eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.question-tete .eyebrow .faint { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12px; color: var(--fg3); }
.question-tete h3 { font-size: 16px; line-height: 1.4; letter-spacing: -.01em; font-weight: 600; }
.question-tete .aide { font-size: 13.5px; color: var(--fg2); line-height: 1.45; }
.question-corps { padding: 14px 16px 16px; display: grid; gap: 12px; }
.question-pied { display: grid; gap: 10px; padding: 12px 14px 13px 16px; border-top: 1px solid var(--ligne); background: var(--bg); }
.question-pied .note { font-size: 12.5px; color: var(--fg2); line-height: 1.45; }
.question-pied .note b { color: var(--fg); font-weight: 600; }
.question-pied .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.question.is-envoi { opacity: .75; }
.question.is-envoi [aria-pressed="true"] { opacity: 1; }
.question.is-close { border-style: dashed; background: transparent; }

/* les styles de sous-titres : de grandes vignettes, en deux colonnes (contrat C3) */
.grille-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.style-tuile { display: grid; gap: 7px; align-content: start; padding: 0; border: 0; background: transparent; text-align: left; color: var(--fg); }
.style-tuile .img { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #1A1816; box-shadow: 0 0 0 1px var(--ligne); transition: box-shadow .2s ease, transform .3s var(--vif); }
.style-tuile .img img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.style-tuile .l { font-size: 14px; font-weight: 600; color: var(--fg); padding-left: 2px; line-height: 1.25; }
.style-tuile .desc { font-size: 12.5px; color: var(--fg3); padding-left: 2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.style-tuile:hover .img { box-shadow: 0 0 0 1px var(--fg3); transform: translateY(-2px); }
.style-tuile[aria-pressed="true"] .img { box-shadow: 0 0 0 2.5px var(--accent); }
.style-tuile[aria-pressed="true"] .l { color: var(--accent-texte); }
.style-tuile .coche { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); display: none; place-items: center; z-index: 3; }
.style-tuile .coche .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.style-tuile[aria-pressed="true"] .coche { display: grid; }
.style-tuile .conseil { position: absolute; left: 8px; top: 8px; z-index: 3; }
.style-tuile:disabled { cursor: progress; }
/* le repli tant que l'aperçu n'est pas prêt : un échantillon dessiné en CSS */
.echantillon { position: absolute; inset: 0; display: grid; padding: 12px 10px; overflow: hidden; background: radial-gradient(120% 70% at 50% 28%, #4A433C 0%, #24201D 55%, #121110 100%); }
.echantillon::before { content: ""; position: absolute; left: 50%; top: 14%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #5A534C; transform: translateX(-50%); }
.echantillon::after { content: ""; position: absolute; left: 50%; bottom: -6%; width: 78%; height: 46%; border-radius: 120px 120px 0 0; background: #4E4741; transform: translateX(-50%); }
.echantillon .txt { position: relative; z-index: 1; align-self: end; justify-self: center; text-align: center; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.1; text-shadow: 0 2px 0 rgba(0, 0, 0, .6); max-width: 100%; overflow-wrap: anywhere; }
.echantillon.pos-milieu .txt { align-self: center; }
.echantillon.pos-haut .txt { align-self: start; margin-top: 10%; }
.echantillon .txt .mot { color: var(--mot, #FFD400); }
.echantillon.boite .txt { background: #fff; color: #0B0B0C; padding: 5px 9px; border-radius: 9px; text-shadow: none; }
.echantillon.surligne .txt .mot { background: var(--mot, #FFE14D); color: #0B0B0C; padding: 0 4px; border-radius: 5px; text-shadow: none; }
.echantillon.chargement-apercu .txt { opacity: .9; }

.passage-cite { font-size: 14px; line-height: 1.5; color: var(--fg); padding: 10px 12px; border-left: 2px solid var(--accent); background: var(--accent-doux); border-radius: 0 10px 10px 0; }
.grille-broll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.broll-tuile { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface2); box-shadow: 0 0 0 1px var(--ligne); transition: box-shadow .2s ease, transform .3s var(--vif); }
.broll-tuile img, .broll-tuile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.broll-tuile video { opacity: 0; transition: opacity .2s; }
.broll-tuile.is-joue video { opacity: 1; }
.broll-tuile .num { position: absolute; left: 8px; top: 8px; height: 24px; min-width: 24px; padding: 0 7px; border-radius: 999px; background: rgba(11, 11, 12, .8); color: var(--fg); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.broll-tuile .src { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: 11px; color: rgba(245, 244, 240, .9); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.broll-tuile .joue { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(11, 11, 12, .8); display: grid; place-items: center; color: var(--fg); transition: opacity .2s; }
.broll-tuile .joue .ic { width: 11px; height: 11px; margin-left: 1px; }
.broll-tuile.is-joue .joue { opacity: 0; }
.broll-tuile:hover { box-shadow: 0 0 0 1px var(--fg3); transform: translateY(-1px); }
.broll-tuile[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--accent); }
.sans-image { width: 100%; justify-content: center; }
.sans-image[aria-pressed="true"] { background: var(--accent-doux); color: var(--accent-texte); border-color: var(--accent); }

.liste-choix { display: grid; gap: 6px; }
.choix-ligne {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 48px;
  padding: 8px 12px; border-radius: 14px; border: 1px solid var(--ligne); background: transparent; text-align: left; color: var(--fg);
  font-size: 14px; font-weight: 500; transition: border-color .2s ease, background-color .2s ease;
}
.choix-ligne:hover:not(:disabled) { border-color: var(--fg3); }
.choix-ligne[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-doux); }
.choix-ligne .rond { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--fg2); flex: none; }
.choix-ligne[aria-pressed="true"] .rond { background: var(--accent); color: var(--sur-accent); }
.choix-ligne .rond .ic { width: 14px; height: 14px; }
.choix-ligne .sous { display: block; font-size: 12.5px; color: var(--fg3); font-weight: 400; margin-top: 1px; }
.choix-ligne.is-verrou { color: var(--fg3); }
.choix-ligne .ecoute { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ligne); display: grid; place-items: center; color: var(--fg2); background: transparent; }
.choix-ligne .ecoute:hover { color: var(--fg); border-color: var(--fg3); }
.choix-ligne .ecoute .ic { width: 12px; height: 12px; }
.titre-propose { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; padding: 14px 16px; border-radius: 14px; background: #fff; color: var(--bg); text-align: center; }
.titre-edit { display: flex; gap: 8px; }
.titre-edit .input { border-radius: 999px; min-height: 44px; padding: 8px 16px; }

/* les formats du titre d'accroche (contrat C2) */
.formats-titre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.formats-titre.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.formats-titre-question { display: grid; gap: 8px; padding-top: 4px; }
.verrou-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--fg2); }
.verrou-ligne .ic { color: var(--accent-texte); }
.titre-tuile { display: grid; gap: 6px; align-content: start; padding: 0; border: 0; background: transparent; text-align: left; color: var(--fg); }
.titre-tuile .img { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #4A433C, #1B1917); box-shadow: 0 0 0 1px var(--ligne); display: grid; place-items: center; padding: 8px; transition: box-shadow .2s ease, transform .3s var(--vif); }
.titre-tuile .img > img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.titre-tuile .l { font-size: 13.5px; font-weight: 600; padding-left: 2px; line-height: 1.25; }
.titre-tuile .desc { font-size: 12px; color: var(--fg3); padding-left: 2px; line-height: 1.35; }
.titre-tuile:hover .img { box-shadow: 0 0 0 1px var(--fg3); transform: translateY(-1px); }
.titre-tuile[aria-pressed="true"] .img { box-shadow: 0 0 0 2.5px var(--accent); }
.titre-tuile[aria-pressed="true"] .l { color: var(--accent-texte); }
.titre-tuile .coche { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); display: none; place-items: center; z-index: 3; }
.titre-tuile .coche .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.titre-tuile[aria-pressed="true"] .coche { display: grid; }
/* le titre est en haut de l'aperçu : la coche se pose en bas, pour ne jamais le cacher */
.titre-tuile .coche { top: auto; bottom: 6px; }
.formats-titre.is-compact .desc { display: none; }
.formats-titre.is-compact .titre-tuile .img { padding: 5px; }
.formats-titre.is-compact .titre-tuile .l { font-size: 12.5px; }
/* Les échantillons des six formats du titre (rushkut/montage/titres.py) : même police, même graisse, mêmes couleurs,
   même fond qu'au rendu. Le fond d'un format à étiquette suit chaque ligne, comme sur la vidéo. */
.ech-titre { position: relative; z-index: 1; max-width: 100%; text-align: center; font: 800 13px/1.2 var(--police); color: #fff; overflow-wrap: anywhere; }
.ech-titre .mots { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ech-titre.t-etiquette, .ech-titre.t-bandeau, .ech-titre.t-surligneur, .ech-titre.t-alerte { line-height: 1.62; }
.ech-titre.t-etiquette .mots, .ech-titre.t-bandeau .mots, .ech-titre.t-surligneur .mots, .ech-titre.t-alerte .mots { padding: .2em .42em; border-radius: .24em; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
.ech-titre.t-etiquette { font-family: "rk-titre-poppins", "Poppins", var(--police); font-weight: 800; font-size: 13.5px; }
.ech-titre.t-etiquette .mots { background: #fff; color: #111; }
.ech-titre.t-bandeau { font-family: "rk-titre-poppins", "Poppins", var(--police); font-weight: 800; font-size: 13px; }
.ech-titre.t-bandeau .mots { background: #111; color: #fff; }
.ech-titre.t-surligneur { font-family: "rk-titre-montserrat", "Montserrat", var(--police); font-weight: 900; font-size: 12px; text-transform: uppercase; }
.ech-titre.t-surligneur .mots { background: #FFE03A; color: #111; }
.ech-titre.t-alerte { font-family: "rk-titre-montserrat", "Montserrat", var(--police); font-weight: 900; font-size: 11.5px; text-transform: uppercase; }
.ech-titre.t-alerte .mots { background: #E8402C; color: #fff; }
.ech-titre.t-contour { font-family: "rk-titre-anton", "Anton", Impact, "Arial Narrow", var(--police); font-weight: 400; font-size: 19px; line-height: 1.08; letter-spacing: .02em; text-transform: uppercase; color: #fff; -webkit-text-stroke: 3.5px #000; paint-order: stroke fill; text-shadow: 0 3px 8px rgba(0, 0, 0, .65); }
.ech-titre.t-elegant { font-family: "rk-titre-dmserifdisplay", "DM Serif Display", Didot, Georgia, serif; font-weight: 400; font-size: 17px; line-height: 1.12; color: #fff; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 0 4px 12px rgba(0, 0, 0, .95), 0 1px 3px rgba(0, 0, 0, .8); }
/* un format inconnu de l'interface : une allure devinée d'après son nom */
.ech-titre.t-g-blanc .mots { background: #fff; color: #0B0B0C; padding: .3em .6em; border-radius: 8px; }
.ech-titre.t-g-contour { -webkit-text-stroke: 3px #000; paint-order: stroke fill; font-size: 15px; }
.ech-titre.t-g-ombre { text-shadow: 0 3px 0 rgba(0, 0, 0, .75), 0 0 18px rgba(0, 0, 0, .8); font-size: 15px; }
.ech-titre.t-g-jaune .mots { background: #FFD400; color: #0B0B0C; padding: .3em .6em; border-radius: 8px; }
.ech-titre.t-g-capsule .mots { background: rgba(11, 11, 12, .86); color: #fff; padding: .3em .8em; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.ech-titre.t-g-impact { color: #FFD400; text-transform: uppercase; font-size: 16px; letter-spacing: -.01em; -webkit-text-stroke: 2px #000; paint-order: stroke fill; }
.ech-titre.t-g-accent .mots { background: var(--accent); color: var(--sur-accent); padding: .3em .6em; border-radius: 8px; }
.formats-titre.is-compact .ech-titre { font-size: 10.5px; }
.formats-titre.is-compact .ech-titre.t-contour { font-size: 14px; -webkit-text-stroke-width: 2.5px; }
.formats-titre.is-compact .ech-titre.t-elegant { font-size: 13px; }
.formats-titre.is-compact .ech-titre.t-surligneur, .formats-titre.is-compact .ech-titre.t-alerte { font-size: 9.5px; }

/* la saisie du chat */
.saisie { border-top: 1px solid var(--ligne); padding: 12px 14px 14px; display: grid; gap: 8px; background: var(--bg); }
.mode-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mode-chat button { min-height: 32px; padding: 0 15px; font-size: 13.5px; }
.mode-phrase { font-size: 12.5px; color: var(--fg2); line-height: 1.4; flex: 1 1 180px; min-width: 0; }
.mode-avertissement { font-size: 13px; color: var(--fg); font-weight: 600; }
.saisie-contexte { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg2); }
.saisie-contexte .puce { min-height: 28px; font-size: 12.5px; padding: 0 6px 0 11px; border-color: var(--accent-ligne); color: var(--accent-texte); background: var(--accent-doux); }
.saisie-contexte .puce button { border: 0; background: transparent; color: inherit; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; padding: 0; }
.saisie-contexte .puce button:hover { background: rgba(255, 107, 26, .2); }
.saisie-boite { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 8px; border: 1px solid var(--ligne); border-radius: 26px; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.saisie-boite:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 26, .2); }
.saisie-boite textarea { flex: 1; min-height: 40px; max-height: 160px; padding: 10px 4px; border: 0; background: transparent; resize: none; font-size: 15px; line-height: 1.45; color: var(--fg); }
.saisie-boite textarea::placeholder { color: var(--fg3); }
.saisie-boite textarea:focus { outline: none; }
.saisie-boite .btn { --h: 40px; }
.saisie-cout { font-size: 12.5px; color: var(--fg3); line-height: 1.4; padding: 0 6px; }
.saisie-cout b { color: var(--fg2); font-weight: 600; }
.saisie.is-bloque .saisie-boite { opacity: .55; }
.micro.is-enreg { background: var(--danger-fond); color: #fff; border-color: transparent; }
.micro.is-enreg:hover:not(:disabled) { background: #E04438; }
.enreg-ligne { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg); padding: 0 6px; }
.enreg-ligne .point { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: pulse 1s ease-in-out infinite; }
.onde { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.onde i { width: 2px; border-radius: 2px; background: var(--accent); height: 30%; transition: height .08s; }

/* la carte de prix d'une grosse demande */
.prix-postes { display: grid; gap: 8px; font-size: 14px; }
.prix-postes li { display: flex; justify-content: space-between; gap: 14px; line-height: 1.35; color: var(--fg2); }
.prix-postes b { flex: none; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.prix-astuces { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.prix-astuces ul { display: grid; gap: 8px; font-size: 13.5px; }
.prix-astuces li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; line-height: 1.4; color: var(--fg2); }
.prix-astuces li .ic { margin-top: 2px; color: var(--accent-texte); }
.devis { border-color: var(--accent-ligne); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.devis-manque { color: var(--fg); font-weight: 600; }
.question-tete .aide.devis-manque { color: var(--fg); }
.devis-lancement { display: grid; gap: 14px; }
.devis.is-envoi { opacity: .75; }
.devis-lance { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.devis-lance .spinner { color: var(--accent-texte); }
.devis-bon-a-savoir { margin-top: 2px; }

/* ------------------------------------------------------------------ les réglages (dans le panneau) */
.reglages { display: flex; flex-direction: column; min-height: 100%; }
.reglages-intro { padding: 14px 18px 4px; font-size: 13.5px; color: var(--fg2); }
.reglages-fil { flex: 1; padding: 4px 0 18px; }
.section { padding: 18px; border-bottom: 1px solid var(--ligne); display: grid; gap: 14px; position: relative; }
.section:last-child { border-bottom: 0; }
.section-tete { display: flex; align-items: center; gap: 10px; }
.section-tete .ic { color: var(--accent-texte); }
.section-tete h3 { font-size: 15px; font-weight: 600; flex: 1; letter-spacing: -.01em; }
.section-aide { font-size: 13px; color: var(--fg3); margin-top: -6px; }
.section .ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--fg2); min-height: 36px; }
.section .ligne > span:first-child { flex: none; }
.section .sous-grille { display: grid; gap: 12px; }
.section.is-verrou .sous-grille { opacity: .38; pointer-events: none; filter: grayscale(1); }
.sous-grille[inert] { opacity: .38; filter: grayscale(1); }
.section .verrou-note { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--accent-doux); border: 1px solid var(--accent-ligne); font-size: 13px; color: var(--fg); line-height: 1.4; }
.section .verrou-note .ic { color: var(--accent-texte); flex: none; }
.section .verrou-note button { margin-left: auto; flex: none; }
.section-sous-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--fg2); padding-top: 4px; }
.nuancier { display: flex; gap: 6px; flex-wrap: wrap; }
.nuance { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); position: relative; }
.nuance[aria-pressed="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); }
.reglages-pied { position: sticky; bottom: 0; padding: 12px 16px 14px; border-top: 1px solid var(--ligne); display: grid; gap: 10px; background: var(--surface2); }
.reglages-pied p { font-size: 13px; color: var(--fg2); line-height: 1.4; }
.reglages-pied .boutons { display: flex; gap: 8px; }
.reglages-pied .boutons .btn-primary { flex: 1; }
.depot-mini { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--ligne2); background: transparent; color: var(--fg2); font-size: 13.5px; text-align: left; line-height: 1.4; }
.depot-mini:hover:not(:disabled) { border-color: var(--accent); color: var(--fg); }
.depot-mini .ic { color: var(--accent-texte); flex: none; }
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.format-btn { display: grid; justify-items: center; gap: 6px; padding: 11px 4px 9px; border-radius: 14px; border: 1px solid var(--ligne); background: transparent; color: var(--fg2); font-size: 12.5px; font-weight: 600; }
.format-btn i { display: block; border: 1.5px solid currentColor; border-radius: 3px; }
.format-btn:hover:not(:disabled) { border-color: var(--fg3); color: var(--fg); }
.format-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-texte); background: var(--accent-doux); }

/* ------------------------------------------------------------------ la timeline (dans le panneau) */
.timeline { display: grid; gap: 0; padding: 14px 16px 18px; user-select: none; -webkit-user-select: none; }
.timeline-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 0 2px 10px; }
.timeline-tete h3 { font-size: 15px; font-weight: 600; }
.timeline-tete .aide { font-size: 13px; color: var(--fg3); flex: 1 1 200px; }
.timeline-corps { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
.pistes-noms { display: grid; grid-template-rows: 22px repeat(4, 32px); gap: 6px; font-size: 12.5px; color: var(--fg2); font-weight: 500; }
.pistes-noms span { display: flex; align-items: center; gap: 6px; }
.pistes-noms .ic { width: 14px; height: 14px; color: var(--fg3); }
.pistes-defile { overflow-x: auto; overflow-y: hidden; position: relative; border-radius: 10px; scrollbar-width: thin; }
.pistes { position: relative; display: grid; grid-template-rows: 22px repeat(4, 32px); gap: 6px; min-width: 100%; }
.regle { position: relative; cursor: pointer; border-bottom: 1px solid var(--ligne); }
.regle .graduation { position: absolute; bottom: 0; width: 1px; height: 5px; background: var(--ligne2); }
.regle .graduation.is-forte { height: 9px; background: var(--fg3); }
.regle .graduation span { position: absolute; bottom: 10px; left: 3px; font-size: 10.5px; line-height: 1; color: var(--fg3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.piste { position: relative; border-radius: 8px; background: var(--bg); }
.bloc { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; padding: 0 8px; font-size: 11.5px; line-height: 1.2; white-space: nowrap; color: var(--fg); border: 0; text-align: left; }
.bloc-passage { background: var(--surface3); box-shadow: inset 0 0 0 1px var(--ligne2); cursor: pointer; transition: background-color .2s ease; }
.bloc-passage:hover, .bloc-passage.is-sel { background: #33343A; box-shadow: inset 0 0 0 1px var(--fg3); }
.bloc-passage span { overflow: hidden; text-overflow: ellipsis; color: var(--fg2); }
.coupe-marque { position: absolute; top: 0; bottom: 0; width: 20px; margin-left: -10px; display: grid; place-items: center; border: 0; background: transparent; color: var(--fg2); padding: 0; z-index: 2; cursor: pointer; }
.coupe-marque::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 50%; width: 2px; margin-left: -1px; background: repeating-linear-gradient(to bottom, var(--fg3) 0 3px, transparent 3px 6px); }
.coupe-marque .ic { position: relative; width: 15px; height: 15px; background: var(--bg); border-radius: 50%; padding: 1px; }
.coupe-marque:hover { color: var(--accent-texte); }
.bloc-st { background: rgba(245, 244, 240, .1); color: var(--fg2); padding: 0 6px; cursor: pointer; font: inherit; font-size: 11.5px; }
.bloc-st.is-actif { background: var(--accent); color: var(--sur-accent); }
.bloc-broll { background: var(--surface3); box-shadow: inset 0 0 0 1px var(--accent-ligne); cursor: grab; padding: 0 12px; touch-action: none; }
.bloc-broll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; pointer-events: none; }
.bloc-broll span { position: relative; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.bloc-broll.is-vide { background: transparent; box-shadow: inset 0 0 0 1px var(--ligne2); }
.bloc-broll.is-vide span { color: var(--fg3); text-shadow: none; font-weight: 500; }
.bloc-broll.is-glisse { cursor: grabbing; box-shadow: 0 0 0 2px var(--accent); z-index: 3; }
.bloc-broll .poignee { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; z-index: 2; }
.bloc-broll .poignee::after { content: ""; position: absolute; top: 50%; left: 50%; width: 3px; height: 14px; margin: -7px 0 0 -1.5px; border-radius: 2px; background: var(--accent); opacity: .9; }
.bloc-broll .poignee.g { left: 0; }
.bloc-broll .poignee.d { right: 0; }
.bloc-musique { left: 0; right: 0; background: repeating-linear-gradient(90deg, rgba(245, 244, 240, .14) 0 2px, transparent 2px 5px); color: var(--fg2); gap: 6px; }
.bloc-musique .ic { width: 13px; height: 13px; }
.piste-vide { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: var(--fg3); }
.tete-lecture { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 10px var(--accent); z-index: 4; pointer-events: none; }
.tete-lecture::before { content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 10px; margin-left: -6px; background: var(--accent); border-radius: 2px 2px 6px 6px; }
.info-glisse { position: absolute; top: -32px; transform: translateX(-50%); padding: 5px 9px; border-radius: 9px; background: var(--accent); color: var(--sur-accent); font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 5; }
.timeline-zone { min-height: 0; }
.timeline-verrou { display: grid; gap: 14px; padding: 20px; }
.timeline-verrou .faux { display: grid; gap: 6px; opacity: .3; filter: grayscale(1); }
.timeline-verrou .faux i { display: block; height: 24px; border-radius: 6px; background: var(--surface3); }
.timeline-verrou .sur { display: grid; gap: 12px; justify-items: start; padding: 16px; border-radius: var(--r); background: var(--accent-doux); border: 1px solid var(--accent-ligne); font-size: 14px; line-height: 1.5; color: var(--fg); }
.timeline-verrou .sur .ic { color: var(--accent-texte); }
.pop-passage { max-width: 340px; }
.pop-timeline { padding: 16px; }
.pop-timeline .texte-pop { font-size: 14.5px; line-height: 1.5; margin: 8px 0 6px; }
.pop-timeline .muted { font-size: 13px; margin: 0 0 14px; }
.pop-timeline .boutons { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ les extraits d'un clipping */
.clipping-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.clipping-tete .page-tete { margin-bottom: 0; }
.page-clipping .page-tete .btn { margin-bottom: 4px; }
.resume-ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.clips-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 18px; }
.clip-carte { display: grid; gap: 12px; align-content: start; text-align: left; padding: 0; border: 0; background: transparent; color: var(--fg); }
.clip-media { position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: var(--surface2); box-shadow: 0 0 0 1px var(--ligne); transition: box-shadow .2s ease, transform .3s var(--vif); }
.clip-media img, .clip-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-media video { opacity: 0; transition: opacity .25s; }
.clip-carte.is-joue .clip-media video { opacity: 1; }
.clip-carte:hover .clip-media, .clip-carte:focus-visible .clip-media { box-shadow: 0 0 0 1px var(--fg3), 0 24px 50px -20px rgba(0, 0, 0, .9); transform: translateY(-3px); }
.clip-carte:focus-visible { outline: none; }
.clip-carte:focus-visible .clip-media { box-shadow: 0 0 0 2.5px var(--accent); }
.clip-media .haut { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; align-items: flex-start; }
.clip-media .anneau { --t: 50px; background: rgba(11, 11, 12, .75); border-radius: 50%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.clip-media .rang { min-height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(11, 11, 12, .75); font-size: 12px; font-weight: 600; display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.clip-media .rang.is-top { background: var(--accent); color: var(--sur-accent); }
.clip-media .bas { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.clip-media .duree { min-height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(11, 11, 12, .75); font-size: 12px; line-height: 26px; font-variant-numeric: tabular-nums; }
.clip-media .ouvrir { opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .3s var(--vif); }
.clip-carte:hover .clip-media .ouvrir, .clip-carte:focus-visible .clip-media .ouvrir { opacity: 1; transform: none; }
.clip-carte .textes { display: grid; gap: 4px; padding: 0 2px; }
.clip-carte .t { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.clip-carte .a { font-size: 13.5px; color: var(--fg2); line-height: 1.45; }
.clip-carte .m { font-size: 12.5px; color: var(--fg3); }
.clip-carte.is-verrou .clip-media img, .clip-carte.is-verrou .clip-media video { filter: blur(14px) brightness(.7); transform: scale(1.1); }
.clip-carte .cadenas { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 18px; font-size: 13.5px; line-height: 1.45; color: var(--fg); font-weight: 600; }
.clip-carte .cadenas .rond { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 11, 12, .75); border: 1px solid rgba(255, 255, 255, .16); color: var(--fg); }
.clip-carte.is-attente .clip-media { display: grid; place-items: center; }
.clip-carte.is-attente .attente { display: grid; gap: 10px; justify-items: center; color: var(--fg3); font-size: 13px; }
.clip-carte.is-ouverture { opacity: .7; pointer-events: none; }

/* ------------------------------------------------------------------ mes projets */
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.projets-liste { display: grid; gap: 4px; }
.projet-ligne {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 170px 130px 56px 44px; gap: 18px; align-items: center;
  padding: 10px 14px 10px 10px; border-radius: 18px; text-decoration: none; color: var(--fg); border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.projet-ligne:hover { background: var(--surface); border-color: var(--ligne); }
.projet-ligne .mini { width: 52px; height: 68px; border-radius: 11px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; color: var(--fg3); }
.projet-ligne .mini img { width: 100%; height: 100%; object-fit: cover; }
.projet-ligne .n { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projet-ligne .d { font-size: 13px; color: var(--fg3); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.projet-ligne .col { font-size: 13.5px; color: var(--fg2); }
.projet-ligne .anneau { --t: 40px; }
.projet-ligne .suppr { opacity: 0; transition: opacity .2s ease; }
.projet-ligne:hover .suppr, .projet-ligne:focus-within .suppr { opacity: 1; }
.etape-mobile { display: none; }
.projets-entete { display: grid; grid-template-columns: 52px minmax(0, 1fr) 170px 130px 56px 44px; gap: 18px; padding: 0 14px 10px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg3); border-bottom: 1px solid var(--ligne); margin-bottom: 6px; }

/* ------------------------------------------------------------------ le compte, la connexion */
.compte-form { display: grid; gap: 14px; }
.compte-titre { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 6px; color: var(--fg); }
.compte-erreur { color: var(--danger-texte); font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 12px; background: var(--danger-doux); border: 1px solid rgba(255, 90, 79, .4); }
.compte-invitation { display: grid; gap: 10px; justify-items: start; padding: 16px; border-radius: var(--r); background: var(--accent-doux); border: 1px solid var(--accent-ligne); color: var(--fg); font-size: 14.5px; line-height: 1.5; }
.compte-invitation .tete-inv { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.compte-invitation .ic { color: var(--accent-texte); margin-top: 2px; }
.compte-form .note { font-size: 13px; color: var(--fg3); }
.compte-form .lien { justify-self: start; }
.page-compte { display: grid; gap: 16px; max-width: 680px; }
.compte-carte { display: grid; gap: 10px; justify-items: start; padding: 24px; }
.compte-carte h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.compte-carte .barre { width: 100%; }
.compte-carte .compte-form { width: 100%; }
.compte-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.compte-oubli { margin-top: -4px; }
.compte-form .compte-oubli .lien { font-size: inherit; }
.compte-jour { font-size: 12.5px; color: var(--fg3); }
.compte-suppression h2 { color: var(--fg); }
.btn-supprimer { color: var(--danger-texte); border-color: rgba(255, 90, 79, .4); }
.btn-supprimer:hover:not(:disabled) { border-color: var(--danger); background: var(--danger-doux); }
.suppression-actions { display: grid; gap: 8px; margin-top: 4px; }
.compte-facture { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--accent-texte); }
.mode-test-note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg); font-weight: 600; }
.mode-test-note .ic { color: var(--accent-texte); }
.page-connexion { max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; min-height: calc(100vh - var(--tete-h) - 152px); }
.page-connexion .connexion-carte { padding: 30px; }
.page-connexion .page-tete { margin-bottom: 0; }
.connexions { display: grid; gap: 10px; }
.connexions .ou { max-width: none; margin-top: 4px; }
/* Continuer avec Google, avec Apple : les règles des marques. Google, bouton sombre (#131314, bord #8E918F, texte #E3E3E3)
   et « G » en couleurs ; Apple, bouton blanc et pomme noire sur un fond sombre. Forme en pastille, permise par les deux. */
.btn-marque { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; letter-spacing: 0; }
.btn-marque .logo { display: inline-flex; width: 18px; height: 18px; }
.btn-marque .logo svg { width: 100%; height: 100%; }
.btn-marque:disabled { opacity: .6; cursor: progress; }
.btn-google { background: #131314; color: #E3E3E3; border: 1px solid #8E918F; font-family: Roboto, var(--police); }
.btn-google:hover:not(:disabled) { background: #1c1c1d; }
.btn-apple { background: #FFFFFF; color: #000000; border: 1px solid #FFFFFF; font-family: -apple-system, BlinkMacSystemFont, var(--police); }
.btn-apple .logo { width: 16px; height: 19px; margin-top: -2px; }
.btn-apple:hover:not(:disabled) { background: #F2F2F2; }

/* ------------------------------------------------------------------ le tuto, l'aide */
.tuto { display: grid; gap: 20px; }
.tuto-texte { font-size: 16.5px; line-height: 1.55; color: var(--fg); min-height: 100px; }
.tuto-points { display: flex; gap: 6px; }
.tuto-points i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface3); transition: width .3s var(--vif), background-color .2s ease; }
.tuto-points i.is-actif { background: var(--accent); width: 22px; border-radius: 999px; }
.tuto-pied { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.tuto-pied .droite { display: flex; gap: 8px; margin-left: auto; }
.page-aide { max-width: 880px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-l); transition: border-color .25s ease; }
.faq details[open] { border-color: var(--ligne2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; cursor: pointer; border-radius: var(--r-l);
  list-style: none; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--doux); color: var(--accent-texte); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .reponse { display: grid; gap: 10px; padding: 0 22px 20px; font-size: 15.5px; line-height: 1.6; color: var(--fg2); max-width: 760px; }
.faq .reponse ul { display: grid; gap: 6px; }
.faq .reponse li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; }
.faq .reponse li::before { content: ""; width: 5px; height: 5px; margin: 10px 0 0 4px; border-radius: 50%; background: var(--accent); }
.faq .reponse b { color: var(--fg); }
.aide-offre { display: grid; gap: 6px; }
.aide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

/* ------------------------------------------------------------------ le brief d'un dossier */
.page-brief { max-width: 860px; }
.brief-corps { display: grid; gap: 12px; }
.brief-bloc { padding: 20px 22px; display: grid; gap: 12px; }
.brief-bloc h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.brief-bloc ul { display: grid; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--fg2); }
.brief-bloc li b { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.brief-bloc .note { font-size: 13px; color: var(--fg3); }
.brief-sequence { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.brief-sequence .rang { font-size: 12.5px; font-weight: 700; color: var(--accent-texte); padding-top: 3px; font-variant-numeric: tabular-nums; }
.brief-sequence .mini { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; color: var(--fg3); }
.brief-sequence .mini img { width: 100%; height: 100%; object-fit: cover; }
.brief-sequence .n { font-size: 14.5px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.brief-sequence .m { font-size: 13px; color: var(--fg3); margin-top: 2px; }
.brief-sequence .p { font-size: 13.5px; color: var(--fg2); margin-top: 4px; }
.brief-questions { border-color: var(--accent-ligne); }
.brief-prix h2 { font-size: 20px; }
.brief-prix .btn { justify-self: start; }
.brief-valider { display: flex; margin: 18px 0; }
.brief-valider .btn { width: 100%; }
.brief-corriger { display: grid; gap: 10px; }
.brief-corriger label { font-size: 15px; font-weight: 600; color: var(--fg); }
.brief-corriger-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.brief-corriger-pied .note { flex: 1; min-width: 200px; font-size: 13px; color: var(--fg3); line-height: 1.4; }
.brief-attente { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg2); }

/* ------------------------------------------------------------------ avant de monter, quelques questions */
.avant-fenetre { width: 720px; }
.avant { display: grid; gap: 24px; }
.avant-lead { font-size: 14.5px; line-height: 1.5; color: var(--fg2); }
.avant-lead b { color: var(--fg); }
.avant-question { display: grid; gap: 12px; }
.avant-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.avant-tete h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--fg); }
.avant .grille-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.avant .style-tuile .desc { display: none; }
.avant-polices, .avant-couleurs { display: flex; flex-wrap: wrap; gap: 8px; }
.avant-polices .puce { min-height: 40px; font-size: 15px; white-space: normal; }
.avant-couleurs .puce i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px var(--ligne2); }
.avant .note { font-size: 13px; color: var(--fg2); }

/* ------------------------------------------------------------------ largeurs moyennes */
@media (max-width: 1600px) {
  .info-format .s { display: none; }
}
@media (max-width: 1520px) {
  .nav-long { display: none; }
  .nav-court { display: inline; }
  .editeur-barre .retour .txt { display: none; }
  .editeur-barre .retour { width: 36px; padding: 0; }
}
@media (max-width: 1360px) {
  .montage { --chat-w: 370px; --panneau-w: 390px; }
  .info .s, .info .l:not(.garde) { display: none; }
}
@media (max-width: 1180px) {
  .montage { --chat-w: 340px; --panneau-w: 360px; }
  /* la barre de l'éditeur passe sur deux lignes : le titre et Télécharger, puis les informations et les outils */
  .editeur-barre .ligne-outils { order: 4; width: 100%; margin-left: 0; }
  .editeur-barre .outils { margin-left: auto; }
  .barre-actions { margin-left: auto; }
  .nouveau { grid-template-columns: 1fr; }
  .cote { position: static; grid-template-columns: 1fr 1fr; }
  .offres-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-connexion { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .info .s { display: none; }
}
@media (max-width: 1040px) {
  .topbar-inner { gap: 12px; padding: 0 16px; }
  .jauge .txt-long { display: none; }
  .demo-lbl { display: none; }
}

/* ------------------------------------------------------------------ l'éditeur sur tablette étroite et téléphone : la vidéo,
   puis le chat ; le panneau devient une feuille qui monte du bas */
@media (max-width: 999px) {
  .montage { height: auto; min-height: 0; }
  .editeur-barre { position: sticky; top: var(--tete-h); z-index: 20; padding: 10px 16px; gap: 8px 10px; }
  .ligne-outils { order: 4; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; width: calc(100% + 32px); }
  .ligne-outils::-webkit-scrollbar { display: none; }
  .infos { flex-wrap: nowrap; }
  .outils { order: -1; margin-left: 0; }
  .barre-actions { margin-left: auto; }
  .montage-corps, .montage-corps.avec-panneau { display: flex; flex-direction: column; }
  .scene { padding: 16px; }
  .chat { border-right: 0; border-top: 1px solid var(--ligne); min-height: 520px; }
  .chat-fil { max-height: none; overflow: visible; }
  .saisie { position: sticky; bottom: 0; z-index: 5; }
  .panneau {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-height: 86vh; max-height: 86dvh; width: auto;
    border-left: 0; border-top: 1px solid var(--ligne2); border-radius: 26px 26px 0 0; box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .9);
    transform: translateY(105%); transition: transform .35s var(--vif), visibility 0s linear .35s; visibility: hidden;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .montage-corps.avec-panneau .panneau { transform: none; visibility: visible; transition: transform .35s var(--vif), visibility 0s; }
  .panneau-tete { flex-wrap: wrap; padding: 6px 12px 12px; }
  .panneau-poignee { display: block; width: 100%; height: 14px; position: relative; }
  .panneau-poignee::before { content: ""; position: absolute; left: 50%; top: 6px; width: 42px; height: 5px; margin-left: -21px; border-radius: 999px; background: var(--ligne2); }
  .panneau-voile { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(5, 5, 6, .6); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .montage-corps.avec-panneau .panneau-voile { opacity: 1; pointer-events: auto; }
  .page { padding: 36px 16px 80px; }
  .cote { grid-template-columns: 1fr; }
  .projet-ligne, .projets-entete { grid-template-columns: 52px minmax(0, 1fr) 44px 44px; }
  .projet-ligne .col-etape, .projet-ligne .col-date, .projets-entete .col-etape, .projets-entete .col-date { display: none; }
  .projet-ligne .suppr { opacity: 1; }
  .etape-mobile { display: inline-flex; }
}

/* ------------------------------------------------------------------ téléphone */
@media (max-width: 720px) {
  :root { --tete-h: 110px; }
  .topbar { height: var(--tete-h); }
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 0 16px; row-gap: 0; align-content: flex-start; }
  .brand { height: 60px; }
  .topbar-droite { height: 60px; gap: 6px; }
  .topnav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 10px; height: 50px; align-items: center; overflow-x: auto; border-top: 1px solid var(--ligne); scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { min-height: 44px; padding: 0 13px; }
  .brand-word, .mock-badge { display: none; }
  .jauge, .demo-btn, .topbar-droite .btn { min-height: 44px; }
  .bandeau-envoi { padding: 10px 16px; flex-wrap: wrap; }
  .modes { grid-template-columns: 1fr; }
  .depot { min-height: 220px; padding: 26px 16px; }
  .lien-ligne { flex-direction: column; }
  .lien-ligne .btn { width: 100%; }
  .fichier-carte { grid-template-columns: auto 1fr; }
  .fichier-carte .actions { grid-column: 1 / -1; }
  .offres-grille { grid-template-columns: 1fr; }
  .offre-sans-limite, .contact-ligne { grid-template-columns: minmax(0, 1fr); }
  .offre-sans-limite .btn, .contact-form .btn { width: 100%; justify-self: stretch; }
  .modal-carte { padding: 22px 18px; border-radius: 24px; }
  .demo-menu { position: fixed; left: 12px; right: 12px; top: auto; width: auto; }
  .editeur-barre { position: static; }
  .editeur-titre { flex-basis: 0; }
  .editeur-titre h1 { font-size: 15.5px; }
  .barre-actions .btn-telecharger { min-width: 0; padding: 0 16px; }
  .clips-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .clip-carte .a { display: none; }
  .titre-xl { font-size: 36px; }
  .traitement { padding: 36px 16px 64px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; justify-items: stretch; }
  .toast { max-width: none; }
  .avant .grille-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extraits { padding: 16px; }
  /* des cibles de 44 px au doigt */
  .btn, .btn-sm, .btn-xs, .info, .puce, .onglet, .choix-ligne, .segment button, .format-btn, .mode-chat button, .puce-version { min-height: 44px; }
  .btn-icon.btn-sm, .btn-icon.btn-xs { width: 44px; }
  .controles .btn { --h: 44px; }
  .nuance { width: 40px; height: 40px; }
  button.verrou { min-height: 44px; padding: 0 14px 0 12px; }
  .saisie-contexte .puce { min-height: 36px; }
  .saisie-contexte .puce button { width: 32px; height: 32px; }
  .saisie-boite textarea { min-height: 44px; }
  input[type="range"] { height: 44px; }
}
@media (max-width: 420px) {
  .topbar-inner { column-gap: 8px; }
  .topbar-droite { gap: 4px; }
  .topbar-droite a.btn { padding-left: 10px; padding-right: 10px; font-size: 13.5px; }
  .jauge { padding: 0 10px 0 7px; font-size: 13px; gap: 7px; }
  .demo-btn { padding: 0 6px 0 4px; gap: 4px; }
  .offre-pill { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
