/* Kyra — la page qui se bâtit devant vous.
   Papier, encre, cuivre. Les images sombres posées sur le papier comme des tirages. */
:root {
  --papier: #F3EFE6;
  --papier-2: #EAE4D7;
  --encre: #17150F;
  --encre-2: #4A453B;
  --trait: rgba(23, 21, 15, .14);
  --cuivre: #B5602A;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --large: min(1240px, 100% - 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  position: relative; overflow-x: hidden;
  background-image: radial-gradient(rgba(23,21,15,.10) 1px, transparent 1.2px);
  background-size: 24px 24px;
}
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; line-height: 1.02; }
h1 { font-size: clamp(48px, 7.4vw, 104px); }
h2 { font-size: clamp(36px, 4.6vw, 64px); max-width: 18ch; }
h1 em, h2 em { color: var(--cuivre); }
h3 { font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.mono, .num, .sur, .etiq { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); }

/* En-tête */
.entete {
  position: sticky; top: 12px; z-index: 30; width: var(--large); margin: 12px auto 0;
  display: flex; align-items: center; gap: 28px; padding: 10px 10px 10px 20px;
  background: rgba(243,239,230,.86); backdrop-filter: blur(10px);
  border: 1px solid var(--trait); border-radius: 14px;
}
.marque { display: flex; align-items: center; gap: 10px; font: 400 28px/1 var(--serif); text-decoration: none; }
.marque-pt { width: 10px; height: 10px; border-radius: 50%; background: var(--cuivre); }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--encre-2); }
.nav a:hover { color: var(--encre); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--encre); color: var(--papier); border: 1px solid var(--encre); border-radius: 999px;
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--cuivre); border-color: var(--cuivre); }
.btn-creux { background: transparent; color: var(--encre); }
.btn-creux:hover { color: var(--papier); }
.btn-petit { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Sections */
.sec { width: var(--large); margin: 0 auto; padding: 120px 0 40px; position: relative; }
.regle { position: absolute; top: 40px; left: 0; width: 100%; margin: 0; border: 0; height: 1px; background: var(--encre); opacity: .5; transform-origin: left; }
.tete { display: grid; gap: 18px; margin-bottom: 56px; }
.intro { max-width: 56ch; font-size: 19px; color: var(--encre-2); }

/* Accueil */
.hero { padding-top: 72px; }
.guides { position: absolute; inset: 0 0 auto 0; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; z-index: -1; }
.guides i { border-left: 1px dashed rgba(23,21,15,.10); transform-origin: top; }
.hero-g { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; }
.hero-txt { display: grid; gap: 28px; }
.chapo { font-size: 20px; max-width: 52ch; color: var(--encre-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { margin: 0; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(23,21,15,.5); }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 64px; }
.chiffre { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--trait); border-radius: 10px; background: var(--papier); }
.chiffre b { font: 400 48px/1 var(--serif); }
.chiffre span { font-size: 14px; color: var(--encre-2); }
.aveu { margin-top: 28px; font: 400 italic 20px/1.4 var(--serif); color: var(--encre-2); }

/* Cartes */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.carte { display: grid; align-content: start; gap: 14px; padding: 28px; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); }
.carte p:last-of-type { color: var(--encre-2); font-size: 16px; }
.carte-encre { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.carte-encre .etiq, .carte-encre p:last-of-type { color: #CFC7B6; }

/* Mécanique */
.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: e; }
.etapes li { display: grid; align-content: start; gap: 10px; padding: 22px; border: 1px solid var(--trait); border-radius: 10px; background: var(--papier); font-size: 15px; color: var(--encre-2); }
.etapes b { font-size: 18px; font-weight: 500; color: var(--encre); }
.etapes .mono { color: var(--cuivre); }
.regle-or { margin: 48px 0 0; padding: 36px 40px; border-left: 3px solid var(--cuivre); background: var(--papier-2); border-radius: 0 12px 12px 0; display: grid; gap: 14px; }
.citation { font: 400 clamp(26px, 3vw, 40px)/1.15 var(--serif); }

/* Départements et travaux */
.depts, .travaux { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dept, .projet { display: grid; gap: 12px; align-content: start; padding: 14px 14px 26px; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); text-decoration: none; }
.dept figure, .projet figure { margin: 0 0 8px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; }
.dept > :not(figure), .projet > :not(figure) { margin-inline: 10px; }
.dept p, .projet p { color: var(--encre-2); font-size: 16px; }
.dept .mono, .projet .mono { color: var(--cuivre); }
.projet h3 { font: 400 34px/1.05 var(--serif); }
.projet { transition: transform .25s, box-shadow .25s; }
.projet:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(23,21,15,.45); }

/* Tableau avant/après */
.tableau { border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; background: var(--papier); }
.rang { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 24px; padding: 20px 24px; border-top: 1px solid var(--trait); font-size: 16px; }
.rang:first-child { border-top: 0; }
.rang b { font-weight: 500; }
.rang span:last-child { color: var(--encre); }
.rang span:nth-child(2) { color: var(--encre-2); }
.rang-tete { background: var(--papier-2); font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.rang-tete span:last-child { color: var(--cuivre); }

/* Le modèle */
.pas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pas li { display: grid; gap: 12px; align-content: start; padding: 26px; border: 1px solid var(--trait); border-radius: 12px; background: var(--papier); }
.pas p { color: var(--encre-2); font-size: 15px; }
.pas .mono { color: var(--cuivre); }

/* Contact */
.contact-g { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-g > div { display: grid; gap: 22px; justify-items: start; }
.formulaire { display: grid; gap: 16px; padding: 30px; border: 1px solid var(--trait); border-radius: 14px; background: var(--papier); box-shadow: 0 30px 60px -40px rgba(23,21,15,.4); }
.champ { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.champ input, .champ textarea {
  width: 100%; padding: 14px 16px; font: 400 16px/1.4 var(--sans); color: var(--encre);
  background: #FBF9F4; border: 1px solid var(--trait); border-radius: 8px; resize: vertical;
}
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--cuivre); outline-offset: 1px; }
.note { font-size: 13px; color: var(--encre-2); }

/* Pied */
.pied { width: var(--large); margin: 80px auto 0; padding: 70px 0 110px; position: relative; }
.pied-g { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--encre-2); }
.bilan { color: var(--cuivre); }

/* ——— L'essaim ——— */
.ag { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; }
.ag svg { width: 20px; height: 20px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.ag-nom {
  position: absolute; left: 15px; top: 17px; padding: 3px 8px; border-radius: 6px 10px 10px 10px; white-space: nowrap;
  background: var(--c); color: #fff; font: 500 11px/1.3 var(--sans); letter-spacing: .01em;
}
.ag-geste { opacity: .9; font-weight: 400; }
.ag-geste:not(:empty)::before { content: " · "; }
.clic { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--c); z-index: 55; pointer-events: none; animation: clic .5s ease-out forwards; }
@keyframes clic { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

#chantier { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 50; pointer-events: none; }
.selection { position: absolute; border: 1.5px solid var(--c); transition: opacity .35s; }
.selection .dim { position: absolute; right: -1px; bottom: -22px; padding: 1px 6px; border-radius: 4px; background: var(--c); color: #fff; font: 500 10px/1.5 var(--mono); }
.selection .poignee { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--c); }
.ebauche { position: absolute; border: 1.5px dashed var(--c); border-radius: 6px; overflow: hidden; transition: opacity .5s; }
.ebauche svg { width: 100%; height: 100%; }
.ebauche span { position: absolute; left: 10px; top: 8px; font: 500 10px/1.4 var(--mono); color: var(--c); }
.caret { display: inline-block; width: 2px; height: 1em; margin: 0 -1px; vertical-align: -.12em; background: var(--c, var(--cuivre)); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.etat {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(23,21,15,.92); color: var(--papier);
  font: 400 13px/1.3 var(--sans); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); transition: opacity .5s, transform .5s;
}
.etat-pt { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #6BCB77; animation: pouls 1.4s infinite; }
@keyframes pouls { 50% { opacity: .35; } }
#etat-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tout-montrer { flex: none; min-height: 32px; padding: 0 12px; border: 1px solid rgba(243,239,230,.3); border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
#tout-montrer:hover { background: rgba(243,239,230,.12); }
html:not(.essaim-actif) .etat, .etat.fini { opacity: 0; transform: translateY(20px); pointer-events: none; }
@media (max-width: 900px) {
  .etat {
    position: static; width: var(--large); max-width: none; margin: 0 auto;
    justify-content: flex-end; padding: 0; background: none; color: var(--encre);
    box-shadow: none;
  }
  html:not(.essaim-actif) .etat { display: none; }
  .etat-pt, #etat-txt { display: none; }
  #tout-montrer { min-height: 44px; border: 0; text-decoration: underline; }
  .essaim-actif .hero { padding-top: 28px; }
  #essaim, #chantier { opacity: .35; }
}

/* Avant d'être bâti : tout occupe sa place, rien ne se voit (pas de saut de mise en page). */
.essaim-actif [data-b="cadre"]:not(.bati),
.essaim-actif [data-b="bouton"]:not(.bati),
.essaim-actif [data-b="champ"]:not(.bati) { opacity: 0; transform: translateY(-16px); }
.essaim-actif [data-b="cadre"], .essaim-actif [data-b="bouton"], .essaim-actif [data-b="champ"] { transition: opacity .45s ease, transform .6s cubic-bezier(.2,.9,.25,1.15), background .2s, color .2s, box-shadow .25s; }
.essaim-actif .entete[data-b="cadre"]:not(.bati) { transform: translateY(-30px); }
.essaim-actif [data-b="ligne"]:not(.bati) { transform: scaleX(0); }
.essaim-actif [data-b="ligne"][data-sens="v"]:not(.bati) { transform: scaleY(0); }
.essaim-actif [data-b="ligne"] { transition: transform var(--duree, .8s) cubic-bezier(.6,0,.2,1); }
.essaim-actif [data-b="image"]:not(.bati) img { clip-path: inset(50% 50% 50% 50% round 6px); filter: blur(14px) saturate(.4); transform: scale(1.1); }
.essaim-actif [data-b="image"] img { transition: clip-path .9s cubic-bezier(.7,0,.2,1), filter 1.1s ease, transform 1.4s ease; }
.essaim-actif [data-b="image"] { box-shadow: none; }
.essaim-actif [data-b="image"].bati.hero-img { box-shadow: 0 30px 60px -30px rgba(23,21,15,.5); transition: box-shadow 1s; }
.essaim-actif [data-b="texte"]:not(.pret) { color: transparent; }
.t-r { color: transparent !important; text-decoration-color: transparent !important; }

/* Téléphone */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .sec { padding-top: 96px; }
  .hero-g, .contact-g { grid-template-columns: 1fr; gap: 36px; }
  .hero-img { aspect-ratio: 16 / 10; }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .trio, .depts, .travaux, .pas { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .rang { grid-template-columns: 1fr; gap: 6px; }
  .rang-tete { display: none; }
  .rang span:nth-child(2)::before { content: "Aujourd'hui · "; font: 500 11px var(--mono); text-transform: uppercase; color: var(--encre-2); }
  .rang span:last-child::before { content: "Après · "; font: 500 11px var(--mono); text-transform: uppercase; color: var(--cuivre); }
  .nav { display: none; }
  .entete { gap: 12px; }
  .entete .btn-petit { margin-left: auto; }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .ag-nom { font-size: 10px; padding: 2px 6px; }
  .ag-geste { display: none; }
  .formulaire { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ——— v13 : plusieurs pages, des interfaces qui vivent, le verre de la v5 ——— */
/* Le fond respire : deux lueurs très douces. */
body::before {
  content: ""; position: fixed; inset: -15vmax; z-index: -2; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(34vmax 28vmax at 16% 20%, rgba(214,140,104,.17), transparent 70%),
              radial-gradient(38vmax 30vmax at 84% 70%, rgba(120,150,190,.14), transparent 70%);
  animation: respire 24s ease-in-out infinite alternate;
}
@keyframes respire { from { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .75; } to { transform: translate3d(2%, 2%, 0) scale(1.07); opacity: 1; } }
h1 .l { display: block; white-space: nowrap; }
.hero h1 { font-size: clamp(40px, 5.6vw, 92px); }
.page h1 { font-size: clamp(42px, 5.4vw, 84px); max-width: 16ch; }
.page .tete { margin-bottom: 0; gap: 22px; }
.page { padding-bottom: 10px; }

/* Menu : la page en cours, et le menu du cell */
.nav { gap: 22px; }
.nav a[aria-current="page"] { color: var(--encre); text-decoration: underline; text-decoration-color: var(--cuivre); text-underline-offset: 7px; text-decoration-thickness: 2px; }
.menu-btn { display: none; min-height: 42px; padding: 0 16px; border: 1px solid var(--trait); border-radius: 999px; background: transparent; color: var(--encre); font: 500 15px/1 var(--sans); cursor: pointer; }
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .entete { gap: 10px; }
  .entete .btn-petit { margin-left: auto; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px;
    background: rgba(243,239,230,.97); border: 1px solid var(--trait); border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(23,21,15,.4); }
  .nav.ouvert { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: 8px; }
}
.pied-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; width: 100%; margin-bottom: 8px; }
.pied-nav a { text-decoration: none; color: var(--encre); }
.pied-nav a:hover, .lien:hover { text-decoration: underline; }
.lien {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #8B471F; font-weight: 500; text-decoration: underline; text-underline-offset: .2em;
}
main [id] { scroll-margin-top: 6rem; }
@media (max-width: 440px) {
  .hero { padding-top: 44px; }
  .hero-txt { gap: 20px; }
}

/* Texte + son interface */
.duo { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.duo.inverse > :first-child { order: 2; }
.duo-txt { display: grid; gap: 20px; justify-items: start; }
.duo h2 { font-size: clamp(34px, 3.8vw, 56px); }
.pas.cinq { grid-template-columns: repeat(5, 1fr); }
.trois { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: n; font-size: 18px; }
.trois li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; }
.trois li::before { content: counter(n, decimal-leading-zero); font: 500 13px/1.9 var(--mono); color: var(--cuivre); }
.appel { display: grid; gap: 22px; justify-items: start; padding: clamp(32px, 5vw, 64px); border-radius: 18px; background: var(--encre); color: var(--papier); }
.appel .num, .appel .intro { color: #CFC7B6; }
.appel h2 em { color: #E39A6B; }
.btn-clair { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.btn-clair:hover { background: var(--cuivre); color: var(--papier); border-color: var(--cuivre); }

/* La scène : un fond de couleur doux, et l'interface en verre dépoli posée dessus */
.scene { margin: 0; border-radius: 20px; overflow: hidden; }
.essaim-actif .scene.bati, html:not(.essaim-actif) .scene { box-shadow: 0 30px 60px -36px rgba(23,21,15,.45); transition: box-shadow 1s; }
.scene-in { position: relative; display: grid; place-items: center; padding: clamp(22px, 4vw, 48px); isolation: isolate;
  background: radial-gradient(70% 60% at 10% 8%, var(--f1), transparent 72%), radial-gradient(70% 60% at 94% 94%, var(--f2), transparent 72%), #EEE7DB; }
.scene-in::before, .scene-in::after { content: ""; position: absolute; z-index: -1; }
.scene-in::before { width: 36%; aspect-ratio: 1; left: 6%; top: 9%; border-radius: 50%; background: var(--f1); }
.scene-in::after { width: 28%; aspect-ratio: 1; right: 7%; bottom: 8%; border-radius: 30%; background: var(--f2); }
.essaim-actif .scene:not(.bati) > .scene-in { clip-path: inset(50% 50% 50% 50% round 20px); opacity: 0; transform: scale(1.04); }
.essaim-actif .scene > .scene-in { transition: clip-path .9s cubic-bezier(.7,0,.2,1), opacity .6s ease, transform 1.2s ease; }
.essaim-actif .scene.porte > .scene-in { clip-path: none; opacity: 1; transform: none; transition: none; }

.vue { width: min(100%, 460px); color: var(--encre); font: 400 14px/1.45 var(--sans); text-align: left; overflow: hidden; border-radius: 16px;
  background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.8); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 60px -30px rgba(23,21,15,.45); transition: opacity .35s; }
.vue > *, .vue .act, .bulles { transition: opacity .35s; }
.vue-tete { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(23,21,15,.08); font-weight: 600; font-size: 13.5px; }
.vue-tete small { margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--encre-2); }
.pastille { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--cuivre); color: #fff; font: 600 11px/1 var(--sans); }
.vue-pied { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-top: 1px solid rgba(23,21,15,.08); font-size: 13px; color: var(--encre-2); }
.ok { color: #2E7D4F; font-weight: 700; }

/* Textos et avis */
.bulles { list-style: none; margin: 0; padding: 14px 14px 10px; height: 318px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.vue-fil.vue .bulles { height: 300px; }
.b { max-width: 84%; padding: 9px 13px; border-radius: 17px; font-size: 14px; line-height: 1.4; animation: arrive .45s cubic-bezier(.2,.9,.25,1.1) both; }
.b-client { align-self: flex-start; background: #fff; border: 1px solid rgba(23,21,15,.08); border-bottom-left-radius: 5px; }
.b-agent { align-self: flex-end; background: var(--encre); color: var(--papier); border-bottom-right-radius: 5px; }
.b small { display: block; margin-top: 4px; font: 500 11px/1.3 var(--mono); color: var(--encre-2); }
.etoiles { display: block; color: #C98A1E; letter-spacing: 2px; font-size: 13px; }
.b-points { display: inline-flex; gap: 4px; padding: 4px 0; }
.b-points i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; animation: point 1s infinite; }
.b-points i:nth-child(2) { animation-delay: .15s; } .b-points i:nth-child(3) { animation-delay: .3s; }
@keyframes point { 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* Facture et soumission */
.doc-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 16px 4px; }
.doc-tete b { font: 400 26px/1 var(--serif); }
.doc-genre { font-size: 11px; }
.statut { padding: 4px 11px; border-radius: 999px; background: rgba(23,21,15,.07); color: var(--encre-2); font: 600 12px/1.4 var(--sans); transition: background .5s, color .5s; }
.statut.envoyee { background: #E3ECF6; color: #2F5C8A; }
.statut.payee { background: #DDF0E3; color: #23683F; }
.doc-pour { padding: 0 16px 10px; font-size: 13px; color: var(--encre-2); }
.lignes { list-style: none; margin: 0; padding: 0 16px; height: 111px; }
.lignes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed rgba(23,21,15,.14); font-size: 13.5px; animation: arrive .4s both; }
.totaux { display: grid; gap: 3px; padding: 8px 16px 14px; font-size: 13px; color: var(--encre-2); }
.totaux div { display: flex; justify-content: space-between; }
.totaux .total { margin-top: 4px; padding-top: 7px; border-top: 1px solid rgba(23,21,15,.18); color: var(--encre); font-size: 15px; font-weight: 600; }
.vue-doc .vue-pied { justify-content: space-between; }
.doc-btn { padding: 6px 14px; border-radius: 999px; background: var(--encre); color: var(--papier); font-weight: 600; font-size: 12.5px; }
.doc-btn[hidden] { display: none; }

/* Agenda */
.agenda { display: grid; grid-template-columns: 34px repeat(5, 1fr); gap: 5px; padding: 12px 14px 14px; }
.agenda .j { text-align: center; font: 600 11px/1.6 var(--mono); color: var(--encre-2); }
.agenda .h { font: 500 10.5px/1 var(--mono); color: var(--encre-2); padding-top: 6px; }
.case { height: 46px; border-radius: 8px; background: rgba(23,21,15,.045); }
.rdv { height: 100%; padding: 5px 6px; border-radius: 8px; background: #fff; border-left: 3px solid var(--cuivre); font-size: 11px; line-height: 1.25; overflow: hidden; box-shadow: 0 4px 10px -6px rgba(23,21,15,.35); animation: arrive .5s both; }
.rdv.neuf { background: #FFF3E8; outline: 2px solid rgba(181,96,42,.4); }

/* Listes : résumé, candidatures, journée */
.coches { list-style: none; margin: 0; padding: 6px 16px 10px; }
.coches li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px dashed rgba(23,21,15,.13); font-size: 13.5px; transition: opacity .5s, transform .5s; }
.coches li:first-child { border-top: 0; }
.coches li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(23,21,15,.3); transform: translateY(3px); transition: background .3s, border-color .3s; }
.coches li.fait::before { border-color: #2E7D4F; background: #2E7D4F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.coches li.fait.non::before { border-color: #9A8F7A; background: #9A8F7A; }
.coches li small { margin-left: auto; padding-left: 8px; flex: none; font: 600 11px/1.3 var(--sans); color: #2E7D4F; }
.coches li.non small { color: var(--encre-2); }
.coches li.cache { opacity: 0; transform: translateY(6px); }

/* Une question au patron */
.choix-q { min-height: 104px; padding: 16px 16px 10px; color: var(--encre-2); }
.choix-q b { display: block; margin-bottom: 6px; color: var(--encre); font: 400 23px/1.15 var(--serif); }
.choix-o { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.choix-o span { padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(23,21,15,.2); background: #fff; font-weight: 500; font-size: 13.5px; transition: background .3s, color .3s, border-color .3s; }
.choix-o span.pris { background: var(--encre); border-color: var(--encre); color: var(--papier); }

/* Tableau des agents, branchements */
.rangs { list-style: none; margin: 0; padding: 6px 0; }
.rangs li { display: grid; grid-template-columns: 26px 1fr 8px; gap: 12px; align-items: center; padding: 9px 16px; transition: background .6s; }
.rangs li.vif { background: rgba(181,96,42,.09); }
.rangs b { display: block; font-size: 13px; font-weight: 600; }
.rangs .act { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px; color: var(--encre-2); }
.rangs .pt { width: 8px; height: 8px; border-radius: 50%; background: #5DBB6A; box-shadow: 0 0 0 3px rgba(93,187,106,.18); }
.compteur { font: 400 30px/1 var(--serif); color: var(--encre); }

/* Le visiteur */
.visite { opacity: 0; transition: opacity .35s; }
.visite.la { opacity: 1; }
.clic.fixe { position: fixed; z-index: 65; }

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; gap: 30px; }
  .duo.inverse > :first-child { order: 0; }
  .pas.cinq { grid-template-columns: 1fr; }
  .scene-in { padding: 18px 12px; }
  .vue { font-size: 13.5px; }
  .vue-fil.vue .bulles { height: 280px; }
  .rdv { font-size: 9.5px; padding: 4px; }
  .agenda { padding: 10px 8px 12px; gap: 4px; grid-template-columns: 28px repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .vue *, .vue { animation: none !important; transition: none !important; }
}

/* Corrections v13 : le chiffre garde sa taille une fois tapé (le texte tapé vit dans des span) ; le bouton du cell tient sur une ligne. */
.chiffre b span { font-size: inherit; color: inherit; }
.entete .btn-petit { white-space: nowrap; }
@media (max-width: 440px) {
  .entete { padding-left: 14px; }
  .marque { font-size: 25px; }
  .entete .btn-petit { padding: 0 13px; font-size: 14px; }
  .menu-btn { padding: 0 12px; }
}
@media (max-width: 900px) { .vue-fil.vue .bulles { height: 350px; } }
@media (max-width: 900px) { .entete { background: rgba(243,239,230,.97); } }

/* ——— v14 : le héros — une seule carte, cinq travaux très différents ——— */
.vue-travaux .tr-fam { color: var(--cuivre); }
.tr-scene { position: relative; height: 262px; padding: 16px; overflow: hidden; }
.tr-scene .tr-p { transition: opacity .45s, transform .6s cubic-bezier(.2,.9,.25,1); }
.tr-scene:not(.plein) .tr-p:not(.vu) { opacity: 0; }
.tr-scene:not(.plein) :is(.tr-menu, .tr-tuiles, .tr-dit, .tr-bil, .tr-notes, .tr-ecran) .tr-p:not(.vu), .tr-scene:not(.plein) .tr-cote:not(.vu) { transform: translateY(6px); }
.tr-puces { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 13px; border-top: 1px solid rgba(23,21,15,.08); }
.tr-puces span { padding: 4px 10px; border: 1px solid rgba(23,21,15,.14); border-radius: 999px; font: 500 12px/1.3 var(--sans); color: var(--encre-2); transition: background .4s, color .4s, border-color .4s; }
.tr-puces span.on { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.tr-app { display: grid; grid-template-columns: 96px 1fr; gap: 12px; height: 100%; }
.tr-menu { list-style: none; margin: 0; padding: 8px; display: grid; align-content: start; gap: 4px; border-radius: 10px; background: rgba(23,21,15,.05); }
.tr-menu li { padding: 6px 9px; border-radius: 6px; font-size: 12.5px; color: var(--encre-2); }
.tr-menu li.actif { background: #fff; color: var(--encre); font-weight: 600; box-shadow: 0 1px 2px rgba(23,21,15,.12); }
.tr-app-c { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; }
.tr-tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tr-tuiles div { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid rgba(23,21,15,.08); border-radius: 9px; background: #fff; min-width: 0; }
.tr-tuiles b { font: 400 26px/1 var(--serif); }
.tr-tuiles span { font-size: 11px; line-height: 1.25; color: var(--encre-2); }
.tr-barres { display: flex; align-items: flex-end; gap: 7px; padding: 12px; border: 1px solid rgba(23,21,15,.08); border-radius: 9px; background: #fff; }
.tr-scene .tr-barres i { flex: 1; height: var(--v); border-radius: 4px 4px 1px 1px; background: var(--cuivre); transition: height .7s cubic-bezier(.2,.9,.25,1), opacity .4s; }
.tr-scene:not(.plein) .tr-barres i:not(.vu) { height: 3%; opacity: .25; }
.tr-qui { display: flex; align-items: center; gap: 11px; }
.tr-av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #3E6A8A; color: #fff; font: 600 13px/1 var(--sans); }
.tr-qui b { display: block; font-size: 14.5px; }
.tr-qui small { font: 500 10.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--encre-2); }
.tr-qui .fini, .plein .tr-qui .en-cours { display: none; }
.plein .tr-qui .fini { display: inline; }
.tr-rec { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #5DBB6A; box-shadow: 0 0 0 4px rgba(93,187,106,.2); }
.plein .tr-rec { background: rgba(23,21,15,.25); box-shadow: none; }
.onde { display: flex; align-items: center; gap: 3px; height: 44px; margin: 10px 0; }
.onde i { flex: 1; height: var(--v); border-radius: 2px; background: var(--encre); opacity: .8; transition: transform .6s, opacity .6s; }
.tr-g-appel:not(.plein) .onde i { animation: onde .75s ease-in-out infinite alternate; }
.tr-g-appel.plein .onde i { transform: scaleY(.12); opacity: .3; }
@keyframes onde { from { transform: scaleY(.22); } }
.tr-dit { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tr-dit li { padding: 1px 0 1px 11px; border-left: 2px solid rgba(23,21,15,.18); font-size: 13.5px; line-height: 1.35; }
.tr-dit li.agent { border-left-color: var(--cuivre); }
.tr-dit small { display: block; font: 500 10px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--encre-2); }
.tr-dit li.agent small { color: var(--cuivre); }
.tr-3d { position: relative; height: 196px; display: grid; place-items: center; perspective: 800px; }
.tr-plateau { position: absolute; left: 50%; bottom: 0; width: 280px; height: 280px; margin-left: -140px; transform: rotateX(78deg); transform-origin: 50% 100%; border-radius: 50%;
  background: repeating-linear-gradient(0deg, rgba(23,21,15,.14) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(23,21,15,.14) 0 1px, transparent 1px 24px);
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
.tr-cube { position: relative; width: 88px; height: 88px; transform-style: preserve-3d; }
.tr-scene .tr-cube { transform: rotateX(-24deg) rotateY(-40deg); transition: opacity .5s, transform 3.4s cubic-bezier(.45,0,.2,1); }
.tr-scene .tr-cube.vu, .tr-scene.plein .tr-cube { transform: rotateX(-24deg) rotateY(320deg); }
.tr-cube i { position: absolute; inset: 0; border: 1.5px solid var(--cuivre); background: rgba(240,196,156,.38); }
.tr-cube i:nth-child(1) { transform: translateZ(44px); }
.tr-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(44px); }
.tr-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(44px); }
.tr-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(44px); }
.tr-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(44px); }
.tr-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(44px); }
.tr-cube i:nth-child(1)::after, .tr-cube i:nth-child(2)::after { content: ""; position: absolute; inset: 30%; border: 1.5px solid var(--cuivre); border-radius: 50%; }
.tr-cote { margin: 8px 0 0; text-align: center; font: 500 11px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--encre-2); }
.tr-bil { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 18px; }
.tr-bil li { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.tr-bil i { height: 14px; border-radius: 7px; background: rgba(23,21,15,.07); overflow: hidden; }
.tr-bil em { display: block; width: var(--v); height: 100%; border-radius: 7px; background: var(--cuivre); transition: width .9s cubic-bezier(.2,.9,.25,1); }
.tr-bil li:nth-child(2) em { background: #3E6A8A; } .tr-bil li:nth-child(3) em { background: #5E7F5A; }
.tr-scene:not(.plein) .tr-bil li:not(.vu) em { width: 0; }
.tr-bil b { font: 500 12.5px/1 var(--mono); text-align: right; }
.tr-notes { list-style: none; margin: 22px 0 0; padding: 16px 0 0; display: grid; gap: 9px; border-top: 1px solid rgba(23,21,15,.08); font-size: 13px; color: var(--encre-2); }
.tr-ecran { height: 124px; display: flex; align-items: flex-end; padding: 12px 14px; border-radius: 10px; color: #fff; font: 400 italic 22px/1.1 var(--serif);
  background: radial-gradient(60% 90% at 18% 18%, #E9B49A, transparent 70%), radial-gradient(60% 90% at 88% 88%, #A9C0DA, transparent 70%), #2B2620; }
.tr-pistes { position: relative; display: grid; gap: 7px; margin-top: 14px; }
.tr-pistes div { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; }
.tr-pistes small { font: 500 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--encre-2); }
.tr-pistes span { display: flex; gap: 3px; height: 16px; }
.tr-pistes i { width: var(--w); border-radius: 4px; background: #3E6A8A; transform-origin: left; }
.tr-pistes div:nth-child(2) i { background: var(--cuivre); } .tr-pistes div:nth-child(3) i { background: #5E7F5A; }
.tr-scene:not(.plein) .tr-pistes i:not(.vu) { transform: scaleX(.15); }
.tr-lect { position: absolute; top: -5px; bottom: -5px; left: 66px; width: 2px; border-radius: 1px; background: #C4456B; }
.tr-scene .tr-lect { transition: left 2.4s linear, opacity .3s; }
.tr-scene .tr-lect.vu, .tr-scene.plein .tr-lect { left: calc(100% - 2px); }
@media (max-width: 900px) {
  .tr-scene { height: 256px; padding: 12px; }
  .tr-puces { padding: 9px 12px 12px; gap: 5px; }
  .tr-puces span { padding: 3px 8px; font-size: 11.5px; }
}
@media (max-width: 480px) {
  .tr-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; }
  .tr-menu { display: flex; padding: 4px; gap: 2px; }
  .tr-menu li { padding: 4px 8px; font-size: 11.5px; }
  .tr-tuiles b { font-size: 22px; }
  .tr-tuiles div { padding: 7px 8px; }
}
.tr-scene .tr-app { grid-template-columns: 96px minmax(0, 1fr); }
.tr-scene .tr-tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-scene .tr-tuiles > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.tr-scene .tr-barres { min-width: 0; }
@media (max-width: 480px) { .tr-scene .tr-app { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .tr-puces { gap: 4px; } .tr-puces span { padding: 3px 7px; font-size: 11px; } }
.tr-puces:has(> span:only-child) { display: none; }
