/* Experimentia (SITE=experimentia) : identité « cahier de laboratoire », maquette validée par Grégoire le 11/11/2026
   (https://claude.ai/artifact/Hq88tW6WcTM8g54DxSUnJh). Chargée après interface.css, sur ce site seulement.
   - barre des produits en paillasse : agents en éléments du tableau périodique, liquide de l'agent ouvert qui bouillonne ;
   - accueil (une expérience par agent) et pages de connexion (badge d'accès, sas de sécurité) ;
   - pages communes (réglages, comptes, journal) aux couleurs du site.
   Les écrans de KatIA et d'Enola gardent leur propre mise en page : seule la barre de gauche change. */

/* Polices (licence OFL, statique/polices/OFL.txt), servies par le site : la politique de sécurité n'en autorise aucune autre. */
@font-face {
  font-family: "Bricolage Grotesque"; src: url("polices/bricolage.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter"; src: url("polices/inter.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono"; src: url("polices/jetbrains-mono.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}

body.site-experimentia {
  --largeur-barre: 88px;
  --xp-titres: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --xp-texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --xp-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --xp-papier: #f4f6f1; --xp-surface: #ffffff; --xp-encre: #17201b; --xp-discret: #3f4943; --xp-bord: #d5dbd6;
  --xp-filet: #c9d0ca; --xp-pointille: #8c978f; --xp-vert: #0b6e5f; --xp-vert-survol: #073f37;
  --xp-ombre: 0 1px 2px rgb(23 32 27 / .05), 0 10px 28px rgb(23 32 27 / .07);
}
/* Pages communes du site (accueil, connexion, réglages, comptes, journal) : couleurs et polices d'Experimentia. */
body.site-experimentia:not(.espace-katia):not(.espace-enola) {
  --fond: var(--xp-papier); --surface: var(--xp-surface); --texte: var(--xp-encre); --discret: #4a554e;
  --bordure: var(--xp-bord); --accent: var(--xp-vert); --accent-texte: #ffffff; --accent-doux: #e3f1ed;
  --police-titres: var(--xp-titres);
  font-family: var(--xp-texte);
}
@media (prefers-color-scheme: dark) {
  body.site-experimentia {
    --xp-papier: #0e1512; --xp-surface: #16201c; --xp-encre: #e6eee9; --xp-discret: #a9b8b0; --xp-bord: #2a3832;
    --xp-filet: #34443d; --xp-pointille: #5b6e66;
    --xp-ombre: 0 1px 2px rgb(0 0 0 / .3), 0 10px 28px rgb(0 0 0 / .25);
  }
  body.site-experimentia:not(.espace-katia):not(.espace-enola) {
    --discret: #a9b8b0; --accent: #45c4a8; --accent-texte: #0b1f1a; --accent-doux: #12332c;
  }
}

/* --- Bulles : le liquide bouillonne quand un agent travaille ----------------------------------------------------- */
@keyframes xp-monte { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; }
  100% { transform: translateY(-14px) scale(1); opacity: 0; } }
@keyframes xp-monte-haut { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; }
  100% { transform: translateY(-64px) scale(1); opacity: 0; } }
@keyframes xp-pouls { 50% { opacity: .3; } }
.xp-bulle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: xp-monte 2.8s ease-in infinite; }
.xp-bulle-haute, .xp-bulle-scene { animation-name: xp-monte-haut; animation-duration: 3s; }
.xp-bulle-2 { animation-delay: 1s; }
.xp-bulle-3 { animation-delay: 2s; }

/* --- Barre des produits : la paillasse ---------------------------------------------------------------------------- */
.xp-barre { gap: 10px; padding: 14px 0 18px; overflow: hidden; background: #0f1a17; color: #c9d6cf;
  font-family: var(--xp-texte); }
.xp-barre > :not(.xp-barre-liquide) { position: relative; z-index: 1; }
.xp-barre .produit { width: 70px; gap: 5px; padding: 8px 0 7px; border-radius: 10px; color: #c9d6cf; font-size: 10px; }
.xp-barre .produit:hover { background: rgb(255 255 255 / .06); }
.xp-barre .produit[aria-current="page"] { background: rgb(69 196 168 / .16); color: #ffffff; }
.xp-barre .produit-katia[aria-current="page"] { background: rgb(224 122 85 / .18); }
.xp-barre .produit-enola[aria-current="page"] { background: rgb(196 106 134 / .2); }
.xp-barre .produit-icone { width: 42px; height: 42px; border: 0; border-radius: 8px; }
.xp-barre .produit-comptes .produit-icone { border: 1.5px solid #3f5a51; }
.xp-element { position: relative; display: grid; place-items: center; box-sizing: border-box;
  font-family: var(--xp-titres); font-size: 19px; font-weight: 700; line-height: 1; }
.xp-element small { position: absolute; top: 3px; left: 4px; font-family: var(--xp-mono); font-size: 8px;
  font-weight: 500; }
.xp-barre .produit-katia .xp-element { border: 2px solid #e07a55; color: #f3a487; }
.xp-barre .produit-katia[aria-current="page"] .xp-element { background: #c95a34; border: 2px solid #e07a55; color: #ffffff; }
.xp-barre .produit-enola .xp-element { border: 2px solid #c46a86; color: #f2b8c9; }
.xp-barre .produit-enola[aria-current="page"] .xp-element { background: #7a2742; border: 2px solid #c46a86; color: #ffffff; }
.xp-barre .produit-bientot .xp-element { border: 2px dashed #5b6e66; color: #8fa39a; }
.xp-barre .produit-etat { color: #8fa39a; }
.xp-barre-separateur { width: 26px; border-top: 1px dashed #3f5a51; }
.xp-barre .produit-compte { width: 40px; height: 40px; border: 1.5px solid #9ff0da; background: #0f1a17; color: #e6eee9;
  font-family: var(--xp-mono); font-size: 12px; }
.xp-barre-katia .produit-compte { border-color: #f3a487; }
.xp-barre-enola .produit-compte { border-color: #f2b8c9; }
.xp-barre-liquide { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgb(69 196 168 / .22), rgb(11 110 95 / .6)); border-top: 2px solid rgb(159 240 218 / .6); }
.xp-barre-katia .xp-barre-liquide { background: linear-gradient(180deg, rgb(224 122 85 / .22), rgb(201 90 52 / .55));
  border-top-color: rgb(243 164 135 / .7); }
.xp-barre-enola .xp-barre-liquide { background: linear-gradient(180deg, rgb(196 106 134 / .22), rgb(122 39 66 / .65));
  border-top-color: rgb(242 184 201 / .7); }
.xp-barre-liquide i { position: absolute; bottom: 10px; left: 18px; width: 7px; height: 7px; border-radius: 50%;
  background: #9ff0da; opacity: 0; animation: xp-monte-haut 3s ease-in infinite; }
.xp-barre-liquide i:nth-child(2) { left: 48px; bottom: 14px; width: 5px; height: 5px; animation-delay: 1s; }
.xp-barre-liquide i:nth-child(3) { left: 33px; bottom: 6px; width: 4px; height: 4px; animation-delay: 2s; }
.xp-barre-katia .xp-barre-liquide i { background: #ffd9cb; }
.xp-barre-enola .xp-barre-liquide i { background: #f5c6d5; }
@media (max-width: 900px) {
  /* Sur téléphone, la barre devient une bande en haut de la page (interface.css) : ni liquide ni séparateur. */
  .xp-barre { flex: none; padding: 6px 8px; gap: 4px; overflow-x: auto; }
  .xp-barre .produit-experimentia .produit-nom { display: none; }
  .xp-barre-liquide, .xp-barre-separateur { display: none; }
  .xp-barre .produit { width: auto; font-size: .82em; }
  .xp-barre .produit-icone { width: 32px; height: 32px; }
  .xp-element { font-size: 15px; }
  .xp-element small { display: none; }
  .xp-barre .produit-compte { width: 32px; height: 32px; }
}

/* --- Accueil : la paillasse, une expérience par agent ------------------------------------------------------------ */
.xp { font-family: var(--xp-texte); color: var(--xp-encre); }
.xp-accueil { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px 56px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 28px; }
.xp-cahier { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding: 22px 0 12px; border-bottom: 1px solid var(--xp-filet); font-family: var(--xp-mono); font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; }
.xp-etiquette { font-weight: 700; }
.xp-en-cours { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px;
  background: #0f1a17; color: #9ff0da; font-size: 12px; font-weight: 700; }
.xp-en-cours i, .xp-reaction i { width: 8px; height: 8px; border-radius: 99px; background: currentColor;
  animation: xp-pouls 1.6s ease-in-out infinite; }
.xp-salut h1 { margin: 0; font-family: var(--xp-titres); font-weight: 700; font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05; letter-spacing: -0.02em; }
.xp-salut p { margin: 8px 0 0; max-width: 680px; font-size: 17px; line-height: 1.55; color: var(--xp-discret); }
.xp-experiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px; }
.xp-experience { display: flex; flex-direction: column; overflow: hidden; background: var(--xp-surface);
  border: 1px solid var(--xp-bord); border-radius: 14px; box-shadow: var(--xp-ombre); }
.xp-experience-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 18px;
  background: #17201b; color: #f4f6f1; font-family: var(--xp-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; }
.xp-reaction { display: inline-flex; align-items: center; gap: 8px; }
.xp-experience-katia .xp-reaction { color: #f3a487; }
.xp-experience-enola .xp-reaction { color: #f2b8c9; }
.xp-experience-corps { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; padding: 24px 24px 26px; }
.xp-verrerie { flex: none; }
.xp-verre { stroke: var(--xp-encre); }
.xp-experience-texte { flex: 1 1 240px; display: flex; flex-direction: column; gap: 14px; }
.xp-experience-texte h2 { margin: 0; font-family: var(--xp-titres); font-weight: 700; font-size: 32px; line-height: 1.1; }
.xp-experience-texte p { margin: 0; line-height: 1.5; }
.xp-experience-texte .xp-role { font-size: 15px; color: var(--xp-discret); }
.xp-mesures { margin: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--xp-mono); font-size: 13px; }
.xp-mesures div { display: flex; align-items: baseline; gap: 8px; }
.xp-mesures dt { white-space: nowrap; }
.xp-mesures span { flex: 1; border-bottom: 1.5px dotted var(--xp-pointille); }
.xp-mesures dd { margin: 0; font-weight: 700; }
.xp-bouton { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 8px; color: #ffffff; font-weight: 600; text-decoration: none; }
.xp-bouton:focus-visible { outline: 2px solid var(--xp-vert); outline-offset: 2px; }
.xp-bouton-katia { background: #8e3f1f; }
.xp-bouton-katia:hover { background: #74331a; }
.xp-bouton-enola { background: #7a2742; }
.xp-bouton-enola:hover { background: #5e1d33; }
.xp-bouton-ferme { border: 1px dashed var(--xp-pointille); color: var(--xp-discret); }
.xp-fermee .xp-verrerie { opacity: .45; filter: grayscale(1); }
.xp-fermee .xp-bulle { animation: none; }
.xp-consigne { overflow: hidden; background: var(--xp-surface); border: 1px solid var(--xp-bord); border-radius: 14px; }
.xp-consigne::before, .xp-sas::before { content: ""; display: block; height: 12px;
  background: repeating-linear-gradient(-45deg, #f2b544 0 10px, #17201b 10px 20px); }
.xp-consigne h2 { margin: 16px 22px 8px; font-family: var(--xp-mono); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; }
.xp-consigne p { margin: 0 22px 20px; font-size: 15px; line-height: 1.5; }
@media (max-width: 600px) {
  .xp-accueil { padding: 0 16px 40px; }
  .xp-experience-corps { padding: 20px 18px 22px; }
}

/* --- Connexion : la paillasse à gauche, le badge d'accès puis le sas de sécurité à droite ------------------------ */
.xp-paillasse { flex: 1 1 480px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 48px 52px; background: #0f1a17; color: #e6eee9; font-family: var(--xp-texte); }
.xp-marque { display: flex; align-items: center; gap: 12px; font-family: var(--xp-titres); font-size: 28px;
  font-weight: 700; letter-spacing: -0.02em; }
.xp-paillasse-scene { width: 100%; max-width: 436px; height: auto; }
.xp-paillasse-scene text { font-family: var(--xp-mono); }
.xp-paillasse-texte { display: flex; flex-direction: column; gap: 14px; max-width: 30rem; }
.xp-paillasse-texte h2 { margin: 0; font-family: var(--xp-titres); font-size: 38px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; }
.xp-paillasse-texte p { margin: 0; font-size: 16px; line-height: 1.55; color: #c9d6cf; }
.xp-paillasse-texte .xp-etiquette-claire { margin-top: 6px; font-family: var(--xp-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: #9fb3a9; }
.xp-connexion .connexion { font-family: var(--xp-texte); }
.xp-connexion .connexion .carte.xp-badge, .xp-connexion .connexion .carte.xp-sas { position: relative;
  width: min(100%, 420px); padding: 36px 32px 30px; background: var(--xp-surface); border: 1px solid var(--xp-bord);
  border-radius: 14px; box-shadow: var(--xp-ombre); }
.xp-connexion .connexion .carte.xp-sas { overflow: hidden; padding-top: 0; }
.xp-sas::before { margin: 0 -32px 14px; }
.xp-badge::before { content: ""; position: absolute; top: 14px; left: 50%; width: 56px; height: 9px; margin-left: -28px;
  border-radius: 99px; background: var(--xp-papier); border: 1px solid var(--xp-bord); }
.xp-etape { display: flex; justify-content: space-between; gap: 12px; font-family: var(--xp-mono); font-size: 12px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.xp-etape span + span { color: var(--accent); }
.xp-connexion .carte h1 { font-family: var(--xp-titres); font-weight: 700; letter-spacing: -0.01em; }
.xp-connexion input.xp-code { font-family: var(--xp-mono); font-size: 24px; letter-spacing: .3em; text-align: center; }
@media (max-width: 600px) {
  .xp-connexion { align-content: flex-start; }
  .xp-paillasse { padding: 32px 24px; gap: 28px; }
  .xp-paillasse-scene { display: none; }
  .xp-paillasse-texte h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .xp-bulle, .xp-barre-liquide i, .xp-en-cours i, .xp-reaction i { animation: none; }
  .xp-bulle { opacity: 1; }
}
@media print {
  .xp-barre-liquide { display: none; }
}
.xp-connexion .carte.mfa a.bouton { color: var(--accent-texte); }
