/* Maquette H (27/11/2026) : la G, plus ce que Corentin aime dans la page en ligne (la barre du haut, les outils qui
   défilent, la copie qui se désintègre, le titre qui se pixelise sous la souris) et quelques gestes des grands logiciels
   (l'invite qui s'écrit, les blocs qui arrivent, le bouton qui suit la souris). */

/* ------------------------------------------------------------------ La barre du haut, comme en ligne */
.bandeau {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 14px var(--marge);
  pointer-events: none; font-family: var(--police);
}
.bandeau > * { pointer-events: auto; }
.b-marque {
  display: flex; align-items: center; gap: 9px; padding: 4px 16px 4px 4px; border-radius: 999px;
  background: rgba(246, 244, 238, .9); color: #12151a;
  font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none;
}
.b-pastille { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--or); color: #12151a; }
.b-pastille svg { width: 16px; height: 14px; }
.bandeau nav {
  display: flex; gap: 2px; margin-inline: auto; padding: 4px; border-radius: 999px;
  background: rgba(246, 244, 238, .9); box-shadow: inset 0 0 0 1px rgba(18, 21, 26, .15);
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .b-marque, .bandeau nav, .b-clair { background: rgba(246, 244, 238, .74); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.bandeau nav a {
  padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.3;
  color: #12151a; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.bandeau nav a:hover { background: #efece2; }
.bandeau nav a.ici { background: #12151a; color: #f3f0e7; }
.b-fin { display: flex; align-items: center; gap: 8px; }
.b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 17px; border: 0; border-radius: 999px;
  background: #12151a; color: #f3f0e7; font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, scale .08s;
}
.b-btn:hover { background: #262b33; }
.b-btn:active { scale: .97; }
.b-clair { background: rgba(246, 244, 238, .9); color: #12151a; box-shadow: inset 0 0 0 1px rgba(18, 21, 26, .15); }
.b-clair:hover { background: #efece2; }
.b-tele[hidden] { display: none; }
.b-menu, .b-plus { display: none; }
.b-plus[hidden] { display: none !important; }
.avance .bandeau .b-tele { display: none; }
@media (max-width: 1100px) {
  .bandeau nav { display: none; }
  .b-fin { margin-left: auto; }
  .js .b-menu { display: inline-flex; }
  .bandeau .b-tele .b-mot { display: none; }
  .bandeau .b-tele { padding: 0 12px; }
  .menu-ouvert .bandeau nav {
    display: grid; position: fixed; top: 70px; left: var(--marge); right: var(--marge); gap: 0; padding: 10px;
    border-radius: 24px; background: var(--papier); box-shadow: inset 0 0 0 1.2px rgba(18, 21, 26, .86);
  }
  .menu-ouvert .bandeau nav a { padding: 13px 16px; border-radius: 14px; font-size: 26px; font-weight: 500; letter-spacing: -.025em; }
  .menu-ouvert .bandeau nav a.b-plus { display: block; padding: 12px 16px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
  .menu-ouvert .bandeau nav a.b-plus:nth-last-child(2) { margin-top: 8px; border-top: 1px solid rgba(18, 21, 26, .15); border-radius: 0 0 14px 14px; padding-top: 18px; }
}
@media (max-width: 760px) {
  .bandeau { padding: 10px 14px; gap: 6px; }
  .bandeau .b-tele { display: none; }
}

/* ------------------------------------------------------------------ Premier écran : l'invite */
.vivant-h .ouverture { grid-template-rows: 1fr auto auto auto; }
.vivant-h .sous, .vivant-h .pour { grid-row: 4; }
.titre-ouverture canvas.titre-toile { position: absolute; pointer-events: none; z-index: 1; }
.invite { grid-column: 1 / span 7; grid-row: 3; margin-top: clamp(22px, 3.6vh, 36px); max-width: 620px; display: grid; gap: 10px; position: relative; z-index: 3; }
.invite-champ {
  display: flex; align-items: center; min-height: 60px; padding: 8px 8px 8px 24px; border-radius: 30px;
  background: #fffdf8; color: var(--encre); font-size: 17px; letter-spacing: -.01em;
  box-shadow: 0 0 0 1px rgba(31, 31, 30, .12), 0 10px 32px -14px rgba(31, 31, 30, .28);
}
.invite-texte { min-width: 0; white-space: nowrap; overflow: hidden; }
.invite-texte:empty::before { content: "Demandez à vos agents…"; color: var(--gris-papier); }
.invite-curseur { flex: none; width: 2px; height: 1.15em; margin-left: 2px; background: var(--encre); }
.anim .invite-curseur { animation: invite-clin 1s steps(1) infinite; }
.invite-envoi {
  flex: none; margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--encre); color: var(--papier); transition: transform .18s var(--sortie), background .2s;
}
.invite.vide .invite-envoi { background: #d9d5cc; }
.invite.envoi .invite-envoi { transform: scale(.86); }
.invite-suite { display: flex; align-items: center; gap: 10px; min-height: 36px; padding-left: 18px; font-size: 15px; color: var(--doux-papier); transition: opacity .3s; }
.invite.attente .invite-suite { opacity: 0; }
.invite-agent { flex: none; width: 28px; height: 33px; image-rendering: pixelated; }
.invite-statut b { color: var(--encre); font-weight: 600; }
.invite-statut .ok { display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; border-radius: 50%; background: var(--or); position: relative; }
.invite-statut .ok::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--encre); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.invite-statut .points::after { content: "…"; display: inline-block; width: 1.2em; text-align: left; }
.anim .invite-statut .points::after { animation: invite-points 1.2s steps(4) infinite; content: "..."; overflow: hidden; vertical-align: bottom; }
@keyframes invite-clin { 50% { opacity: 0; } }
@keyframes invite-points { from { width: 0; } to { width: 1.2em; } }
@media (max-width: 760px) {
  .vivant-h .ouverture { grid-template-rows: auto auto auto auto; }
  .invite { grid-column: 1 / -1; grid-row: 2; }
  .vivant-h .sous { grid-row: 3; }
  .vivant-h .pour { grid-row: 4; }
  .invite-champ { min-height: 54px; padding-left: 18px; font-size: 15.5px; }
  .invite-envoi { width: 40px; height: 40px; }
  .invite-suite { font-size: 14px; padding-left: 12px; }
}

/* ------------------------------------------------------------------ Les outils : deux files de disquettes */
.outils-h { position: relative; overflow: hidden; padding-block: clamp(80px, 13vh, 130px) clamp(96px, 15vh, 150px); }
.outils-tete { align-items: baseline; margin-bottom: clamp(30px, 5vh, 52px); }
.outils-h .rubrique { grid-column: 1 / span 3; }
.outils-h .outils-note { grid-column: 4 / span 6; margin: 0; font-size: var(--t-petit); color: var(--doux); }
.file-outils { position: relative; height: 262px; }
.voie { position: absolute; left: 0; right: 0; top: 82px; height: 170px; overflow: hidden; display: flex; align-items: center; }
.voie-g { clip-path: inset(0 50% 0 0); }
.voie-d { clip-path: inset(0 0 0 50%); }
.file-rang { display: flex; gap: 20px; margin: 0; padding: 0 var(--marge); list-style: none; width: max-content; will-change: transform; }
/* Le lecteur : un boîtier sombre, sa fente, son écran, son voyant ; il sursaute à chaque disquette avalée. */
.lecteur {
  position: absolute; left: 50%; top: 82px; z-index: 3; width: 232px; height: 170px; margin-left: -116px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 18px 16px 14px;
  border-radius: 20px; background: #1d2024; color: #f2efe8;
  box-shadow: 0 22px 44px -22px rgba(18, 21, 26, .55), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.lecteur::before, .lecteur::after { content: ""; position: absolute; top: 22%; width: 5px; height: 56%; border-radius: 3px; background: #0b0c0e; }
.lecteur::before { left: 7px; }
.lecteur::after { right: 7px; }
.lecteur.avale { animation: lecteur-saut .38s var(--sortie); }
@keyframes lecteur-saut { 35% { transform: translateY(-5px) scale(1.04); } }
.l-fente { display: block; height: 9px; margin-inline: 14px; border-radius: 5px; background: #0b0c0e; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .8); }
.l-ecran {
  display: flex; align-items: center; gap: 9px; min-width: 0; margin-inline: 8px; padding: 0 12px; border-radius: 10px;
  background: #101613; color: var(--or); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden;
}
.l-coche { flex: none; position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--or); }
.l-coche::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #101613; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.l-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lecteur.avale .l-ecran { animation: ecran-clin .38s steps(2); }
@keyframes ecran-clin { 50% { color: #f6e2b0; } }
.l-pied { display: flex; align-items: center; gap: 8px; margin-inline: 8px; font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: #b9b5ac; }
.l-pastille { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--or); color: #12151a; }
.l-pastille svg { width: 11px; height: 10px; }
.l-voyant { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #3a3d42; transition: background .2s, box-shadow .2s; }
.lecteur.avale .l-voyant { background: var(--or); box-shadow: 0 0 10px var(--or); transition: none; }
.l-agent { position: absolute; left: 50%; bottom: 100%; width: 56px; height: 66px; margin-left: -28px; margin-bottom: -4px; image-rendering: pixelated; }
html:not(.anim) .file-outils { height: auto; display: grid; gap: 16px; padding-inline: var(--marge); }
html:not(.anim) .voie { position: static; height: auto; clip-path: none; overflow: visible; }
html:not(.anim) .lecteur { display: none; }
.disquette {
  position: relative; flex: none; width: 136px; height: 142px; border-radius: 7px; background: #23262c;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: transform .3s var(--sortie);
}
.disquette:nth-child(3n + 2) { background: #33465b; }
.disquette:nth-child(3n) { background: #3d3a35; }
.d-volet { position: absolute; top: 0; left: 24%; width: 48%; height: 31%; background: #c3c5ca; border-radius: 0 0 3px 3px; }
.d-volet::after { content: ""; position: absolute; top: 18%; right: 15%; width: 22%; height: 56%; background: inherit; filter: brightness(.35); border-radius: 1px; }
.d-etiquette {
  position: absolute; left: 9%; right: 9%; bottom: 0; height: 54%;
  display: grid; place-items: center; align-content: center; gap: 6px; padding: 4px 4px 8px;
  background: #fbf8f1; border-radius: 3px 3px 0 0; text-align: center;
}
.d-etiquette img { width: 28px; height: 28px; object-fit: contain; }
.d-nom { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; color: #1f1f1e; }
.disquette:hover { transform: translateY(-8px) rotate(-2deg); }
html:not(.anim) .file-rang { flex-wrap: wrap; width: auto; padding: 0; }
@media (max-width: 760px) {
  .outils-h .rubrique, .outils-h .outils-note { grid-column: 1 / -1; }
  .outils-h .outils-note { margin-top: 8px; }
  .file-rang { gap: 14px; }
  .disquette { width: 110px; height: 116px; }
  .file-outils { height: 208px; }
  .voie, .lecteur { top: 64px; }
  .voie { height: 136px; }
  .lecteur { width: 156px; height: 136px; margin-left: -78px; padding: 13px 10px 10px; gap: 8px; border-radius: 16px; }
  .l-fente { margin-inline: 10px; height: 7px; }
  .l-ecran { margin-inline: 4px; padding: 0 8px; gap: 6px; font-size: 12.5px; }
  .l-coche { width: 15px; height: 15px; }
  .l-coche::after { left: 5px; top: 2px; width: 3px; height: 7px; }
  .l-pied { margin-inline: 4px; font-size: 11.5px; }
  .l-pastille { width: 18px; height: 18px; }
  .l-agent { width: 42px; height: 50px; margin-left: -21px; }
  .d-etiquette img { width: 24px; height: 24px; }
  .d-nom { font-size: 11.5px; }
}

/* ------------------------------------------------------------------ L'IA ne garde rien : la copie qui se désintègre */
.ia.ia-h { display: block; padding: 0; }
.anim .ia-h { height: 330vh; }
.ia-colle {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(28px, 5vh, 48px);
  padding: calc(var(--barre) + 24px) var(--marge) clamp(40px, 8vh, 80px);
}
.anim .ia-colle { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding-bottom: 0; }
.ia-toile { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.ia-mots {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: center;
  margin: 0; font-size: var(--t-grand); line-height: 1; letter-spacing: -.045em; white-space: nowrap;
}
.anim .ia-mots { margin-top: -4vh; }
.ia-place { display: block; flex: none; width: clamp(200px, 23vw, 340px); height: clamp(250px, 32vw, 430px); max-height: 52vh; }
.ia-m2 { color: var(--or); }
.anim .ia-m2 { color: var(--fg); }
.ia-ps { position: relative; z-index: 2; width: min(36em, 100%); text-align: center; }
.ia-p { margin: 0 0 8px; font-size: var(--t-corps); color: var(--doux); text-wrap: pretty; }
.ia-p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.anim .ia-ps { position: absolute; left: 50%; bottom: clamp(24px, 6vh, 64px); translate: -50% 0; width: min(36em, calc(100% - 2 * var(--marge))); min-height: 5.5em; }
.anim .ia-p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .55s var(--sortie); }
.anim .ia-p.vu { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .ia-mots { flex-direction: column; font-size: clamp(44px, 13vw, 64px); }
  .ia-place { width: 62vw; height: 80vw; max-height: 40vh; margin-block: 12px; }
  .anim .ia-mots { margin-top: -8vh; }
}

/* ------------------------------------------------------------------ Le pied : « Verso » en carrés d'or */
.pied-nom { grid-column: 1 / -1; display: block; width: 100%; height: clamp(96px, 20vw, 290px); margin-top: 8px; }

/* ------------------------------------------------------------------ Les blocs qui arrivent */
.anim .revele { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .7s var(--sortie), transform .8s var(--sortie), filter .7s var(--sortie); transition-delay: calc(var(--r, 0) * 70ms); }
.anim .revele.vu { opacity: 1; transform: none; filter: none; }
.bouton { will-change: transform; }
