/* ==========================================================================
   Bambu Lab P2S — fiche technique. Feuille unique, sans ressource externe.
   Rôles de couleurs : le mode sombre ne réécrit que les variables.
   ========================================================================== */
:root {
  --papier: #f7f5ef;
  --papier-2: #fffdf8;
  --encre: #16211d;
  --encre-douce: #46544e;
  --trait: #d9d4c7;
  --accent: #1f6f5c;
  --accent-clair: #e3efe9;
  --cuivre: #a45f24;
  --cuivre-sombre: #8a4c17;
  --code: #2b3632;
  --ombre: 0 1px 2px rgba(22, 33, 29, .06), 0 8px 24px rgba(22, 33, 29, .05);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #121815;
    --papier-2: #18201c;
    --encre: #e9ece6;
    --encre-douce: #adb8b1;
    --trait: #2c3a34;
    --accent: #8fd3ba;
    --accent-clair: #1d2e28;
    --cuivre: #d8a06a;
    --cuivre-sombre: #e8bb8d;
    --code: #c8d6cd;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}

.wrap { width: min(100% - 2.5rem, 1080px); margin-inline: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--cuivre); outline-offset: 2px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saut {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--accent); color: var(--papier);
  padding: .75rem 1rem; border-radius: 0 0 8px 0;
}
.saut:focus { left: 0; }

/* ---------- En-tête ---------- */
.entete {
  border-bottom: 1px solid var(--trait);
  background: var(--papier-2);
}
.entete-in {
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  align-items: baseline; justify-content: space-between;
  padding-block: 1rem;
}
.marques { display: flex; align-items: center; gap: 1rem; }
/* Emblème du Portail Pyerce : il ouvre le domaine, la mention reste lisible dessous. */
.lien-portail {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: none; padding-right: 1rem; border-right: 1px solid var(--trait);
  text-decoration: none; border-radius: 6px;
}
.lien-portail picture { display: block; }
.lien-portail img { display: block; height: 40px; width: auto; }
.lien-portail-mention {
  font-size: .56rem; line-height: 1; letter-spacing: .12em;
  text-transform: uppercase; color: var(--encre-douce); white-space: nowrap;
}
.lien-portail:hover .lien-portail-mention,
.lien-portail:focus-visible .lien-portail-mention { color: var(--accent); }
.lien-portail:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.marque { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.marque-nom { font: 600 1.35rem/1.1 var(--serif); letter-spacing: .01em; }
.marque-sous { font-size: .78rem; color: var(--encre-douce); letter-spacing: .08em; text-transform: uppercase; }

.menu { display: flex; flex-wrap: wrap; gap: .22rem .2rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: inline-block; padding: .45rem .55rem; min-height: 24px;
  border-radius: 999px; color: var(--encre-douce); text-decoration: none;
  font-size: .88rem;
}
.menu a:hover { background: var(--accent-clair); color: var(--accent); }
.menu a[aria-current="page"] { background: var(--accent); color: var(--papier); font-weight: 600; }

/* ---------- Ouverture et têtes de page ---------- */
.ouverture, .tete-page { padding-block: 3rem 1.5rem; }
.tete-page { padding-block: 2.5rem 1rem; }

.sur-titre {
  margin: 0 0 .5rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cuivre); font-weight: 700;
}
h1 { font: 600 clamp(2rem, 5vw, 3.1rem)/1.08 var(--serif); margin: 0 0 .75rem; letter-spacing: -.01em; }
.chapeau { font-size: 1.16rem; color: var(--encre-douce); max-width: 62ch; margin: 0 0 1rem; }
.chapeau-court { color: var(--encre-douce); max-width: 62ch; }
.mentions-courtes { color: var(--encre-douce); font-size: .95rem; }

h2.section-titre {
  font: 600 1.45rem/1.25 var(--serif);
  margin: 2.75rem 0 1rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--trait);
}
h3 { font: 600 1.12rem/1.3 var(--serif); margin: 1.5rem 0 .5rem; }
.sous-titre { font-size: 1.05rem; margin-top: 2rem; }

section.wrap { padding-bottom: 2.5rem; }

/* ---------- Chiffres clés ---------- */
.chiffres {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: 1px; background: var(--trait);
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  border: 1px solid var(--trait); border-radius: 12px; overflow: hidden;
}
.chiffres li { background: var(--papier-2); padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.chiffres strong { font: 600 1.55rem/1.1 var(--serif); }
.chiffres span { font-size: .86rem; color: var(--encre-douce); }

/* ---------- Deux colonnes ---------- */
.deux-colonnes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-block: 1rem; }
.bloc { background: var(--papier-2); border: 1px solid var(--trait); border-radius: 12px; padding: 1.15rem 1.25rem; box-shadow: var(--ombre); }
.bloc > :first-child { margin-top: 0; }
.bloc > :last-child { margin-bottom: 0; }

/* ---------- Listes ---------- */
.liste { margin: 0; padding-left: 1.15rem; }
.liste li { margin-block: .35rem; }
.liste-large { max-width: 70ch; }
.jetons { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .5rem 0 1.5rem; }
.jetons li {
  font: 500 .87rem/1 var(--mono); padding: .45rem .65rem;
  background: var(--accent-clair); color: var(--encre); border-radius: 6px;
  border: 1px solid var(--trait);
}
.jetons a { display: block; color: inherit; text-decoration: none; }
.jetons li:hover { border-color: var(--accent); }
.jetons a:focus-visible { outline-offset: 3px; }

/* Fiches de matière et de bibliothèque */
.matiere {
  background: var(--papier-2); border: 1px solid var(--trait); border-radius: 12px;
  padding: 1.15rem 1.25rem; margin-block: 1rem; box-shadow: var(--ombre);
  scroll-margin-top: 1.5rem;
}
.matiere > :first-child { margin-top: 0; }
.matiere > :last-child { margin-bottom: 0; }
.matiere h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.matiere-sous { font: 400 .82rem/1.3 var(--sans); color: var(--encre-douce); letter-spacing: .02em; }
.matiere p { margin-block: .55rem; max-width: 78ch; }
.matiere-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: .55rem .9rem; margin: .9rem 0 0; padding: .85rem 0 0; border-top: 1px solid var(--trait);
}
.matiere-meta div { display: flex; flex-direction: column; gap: .15rem; }
.matiere-meta dt { font: 600 .7rem/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--encre-douce); }
.matiere-meta dd { margin: 0; font-size: .93rem; }
.matiere-lien { margin-top: .8rem; font-weight: 600; }
.matiere:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-clair); }

.note { font-size: .92rem; color: var(--encre-douce); border-left: 3px solid var(--trait); padding-left: .85rem; margin-block: 1rem; }

/* ---------- Tableau des prix ---------- */
.tableau-prix tbody th { width: 36%; }
.cellule-pays { display: block; font: 400 .84rem/1.4 var(--sans); color: var(--encre-douce); }
.cellule-note { display: block; margin-top: .35rem; font: 400 .86rem/1.5 var(--sans); color: var(--encre-douce); }
.cellule-lien { display: inline-block; margin-top: .4rem; font-size: .88rem; font-weight: 600; }
.cellule-prix strong { display: block; font-size: 1.05rem; color: var(--encre); }
.cellule-prix s { display: block; font-size: .88rem; color: var(--encre-douce); }
.cellule-date { display: block; margin-top: .25rem; font-size: .78rem; color: var(--encre-douce); }
.cellule-taxe { display: block; margin-top: .25rem; font: 600 .72rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--cuivre-sombre); }
.avertissement {
  margin-block: 2rem 1rem; padding: 1rem 1.15rem; border-radius: 10px;
  background: var(--accent-clair); border: 1px solid var(--trait);
  font-size: .95rem;
}

/* ---------- Tableaux ---------- */
.tableau {
  width: 100%; border-collapse: collapse; margin-block: 1rem 1.5rem;
  background: var(--papier-2); border: 1px solid var(--trait); border-radius: 10px; overflow: hidden;
  font-size: .97rem;
}
.tableau caption { text-align: left; }
.tableau th, .tableau td { padding: .7rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.tableau tbody tr:last-child th, .tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody th {
  width: 34%; font-weight: 600; color: var(--encre);
  background: color-mix(in srgb, var(--accent-clair) 55%, transparent);
}
.tableau thead th { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-douce); }
.tableau td { color: var(--encre-douce); }
.tableau-large tbody th { width: 22%; }

.mono { font-family: var(--mono); font-size: .92em; }
.src { font-size: .78em; color: var(--cuivre-sombre); font-weight: 700; vertical-align: super; }

/* ---------- Cartes de logiciels ---------- */
.cartes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); margin-block: 1rem 1.5rem; }
.carte { background: var(--papier-2); border: 1px solid var(--trait); border-radius: 12px; padding: 1.1rem 1.2rem; box-shadow: var(--ombre); }
.carte h3 { margin-top: 0; }
/* Nom d'outil cliquable : même apparence que le titre, plus une flèche discrète. */
.carte-lien {
  color: inherit; text-decoration: none;
  text-decoration-color: var(--accent); text-underline-offset: 3px;
  display: inline-flex; align-items: baseline; gap: .3em;
}
.carte-lien:hover, .carte-lien:focus-visible { text-decoration: underline; color: var(--accent); }
.carte-lien-fleche { font-size: .8em; color: var(--accent); line-height: 1; }
.carte p { font-size: .95rem; color: var(--encre-douce); }
.carte-conditions { margin-bottom: 0; font-size: .88rem !important; }
.carte-conditions span:first-child { display: block; font-weight: 700; color: var(--cuivre); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }

/* ---------- Grille de liens (accueil) ---------- */
.grille-liens { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grille-liens a {
  display: block; padding: 1rem 1.15rem; min-height: 24px;
  background: var(--papier-2); border: 1px solid var(--trait); border-radius: 10px;
  color: var(--encre); text-decoration: none;
}
.grille-liens a:hover { border-color: var(--accent); background: var(--accent-clair); }
.grille-liens strong { display: block; font: 600 1.05rem/1.3 var(--serif); margin-bottom: .25rem; color: var(--accent); }
.grille-liens span { font-size: .9rem; color: var(--encre-douce); }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--trait); background: var(--papier-2); padding-block: 1.75rem 2.25rem; margin-top: 2rem; }
.pied p { margin: .3rem 0; font-size: .88rem; color: var(--encre-douce); }
.pied-signature { font-family: var(--mono); font-size: .8rem !important; }
/* Liens de pied : cibles d'au moins 24 px de haut (WCAG 2.2, critère 2.5.8). */
.pied-liens {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem;
  margin: .5rem 0 .2rem !important;
}
.pied-liens a {
  display: inline-flex; align-items: center; min-height: 24px;
  color: var(--encre); font-weight: 600; font-size: .88rem;
}
.pied-liens a:hover, .pied-liens a:focus-visible { color: var(--accent); }
.pied-liens span { color: var(--encre-douce); font-size: .85rem; }
/* Ligne de contact, tout en bas du pied. Cible d'au moins 24 px de haut (WCAG 2.2). */
.pied-contact a {
  display: inline-flex; align-items: center; min-height: 24px;
  color: var(--encre); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.pied-contact a:hover, .pied-contact a:focus-visible { color: var(--accent); }

/* ---------- Petits écrans ---------- */
@media (max-width: 640px) {
  .entete-in { gap: .5rem 1rem; }
  .marques { gap: .7rem; }
  .lien-portail { padding-right: .7rem; gap: 3px; }
  .lien-portail img { height: 32px; }
  .lien-portail-mention { font-size: .48rem; letter-spacing: .06em; }
  .menu { gap: .2rem; }
  .menu a { padding: .4rem .55rem; font-size: .85rem; }
  .ouverture, .tete-page { padding-block: 2rem 1rem; }
  .chapeau { font-size: 1.05rem; }
  .tableau { border: 0; background: transparent; font-size: .95rem; }
  .tableau tr { display: block; background: var(--papier-2); border: 1px solid var(--trait); border-radius: 10px; margin-bottom: .6rem; }
  .tableau th, .tableau td { display: block; width: auto; border-bottom: 0; padding: .5rem .8rem; }
  .tableau tbody th { background: transparent; padding-bottom: 0; }
  .tableau td { padding-top: .15rem; }
  .tableau thead { display: none; }
}

/* ---------- Bandeau de sections : une ligne défilante ---------- */
@media (max-width: 700px) {
  .entete-in { gap: .5rem; }
  .entete-in nav { flex: 1 1 100%; min-width: 0; }
  .menu {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; padding-bottom: .1rem; max-width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 92%, transparent);
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu li { flex: 0 0 auto; }
  .menu a { white-space: nowrap; }
  .matiere { padding: 1rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .entete, .pied, .saut { display: none; }
  body { background: #fff; color: #000; }
  .tableau, .bloc, .carte { border-color: #999; box-shadow: none; }
  .bot { display: none; }
}

/* ==========================================================================
   Pyerce_bot — assistant de la fiche.
   Un seul bouton à l'écran ; le panneau ne s'ouvre qu'au clic. Aucun cookie.
   ========================================================================== */
.bot { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; font-family: var(--sans); }

.bot-bouton {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .62rem .95rem; border: 1px solid transparent; border-radius: 999px;
  background: var(--accent); color: var(--papier-2);
  font: 600 .95rem/1 var(--sans); cursor: pointer;
  box-shadow: 0 2px 6px rgba(22, 33, 29, .18), 0 10px 24px rgba(22, 33, 29, .14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bot-bouton:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(22, 33, 29, .22), 0 12px 28px rgba(22, 33, 29, .18); }
.bot-pastille { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; opacity: .8; }
.bot-pastille { box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }

.bot.est-ouvert .bot-bouton { display: none; }

.bot-panneau {
  --bot-largeur: 380px;
  position: absolute; right: 0; bottom: 0;
  width: min(var(--bot-largeur), calc(100vw - 2.2rem));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--papier-2); color: var(--encre);
  border: 1px solid var(--trait); border-radius: 14px; box-shadow: var(--ombre);
  transition: width .18s ease;
}
/* Grande taille : la conversation complète. Petite : le seul bandeau d'accueil. */
.bot-panneau.est-grand {
  --bot-largeur: 620px;
  height: min(760px, calc(100vh - 2.2rem));
}
.bot-panneau:not(.est-grand) .bot-fil,
.bot-panneau:not(.est-grand) .bot-forme,
.bot-panneau:not(.est-grand) .bot-pied { display: none; }
.bot-panneau.est-grand .bot-accroche { display: none; }

.bot-accroche {
  display: block; width: 100%; text-align: left;
  padding: .6rem .95rem .8rem; border: 0; background: transparent;
  color: var(--encre); font: 600 .97rem/1.3 var(--sans); cursor: pointer;
}
.bot-accroche:hover { background: var(--accent-clair); }
.bot-accroche-fleche { font-weight: 400; opacity: .75; }

.bot-tete-boutons { display: flex; align-items: center; gap: .15rem; }
.bot-taille {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--encre-douce);
  padding: .25rem; border-radius: 6px; cursor: pointer;
}
.bot-taille:hover { background: var(--trait); color: var(--encre); }
.bot-taille svg { transition: transform .18s ease; }
.bot-panneau.est-grand .bot-taille svg { transform: rotate(180deg); }

.bot-tete {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .9rem; border-bottom: 1px solid var(--trait); background: var(--accent-clair);
}
.bot-tete h2 { margin: 0; font: 600 1rem/1.2 var(--sans); letter-spacing: .01em; }
.bot-fermer {
  border: 0; background: transparent; color: var(--encre-douce);
  font: 400 1.4rem/1 var(--sans); padding: .1rem .35rem; cursor: pointer; border-radius: 6px;
}
.bot-fermer:hover { background: var(--trait); color: var(--encre); }

.bot-fil { padding: .8rem .9rem; overflow-y: auto; flex: 1 1 auto; font-size: .95rem; }
.bot-note { margin: 0; color: var(--encre-douce); font-size: .86rem; }

.bot-bulle { margin: .6rem 0 0; padding: .5rem .65rem; border-radius: 10px; max-width: 92%; overflow-wrap: anywhere; }
.bot-question-bulle { margin-left: auto; background: var(--accent-clair); border: 1px solid var(--trait); }
.bot-reponse { background: var(--papier); border: 1px solid var(--trait); }
.bot-refus { background: var(--papier); border: 1px dashed var(--cuivre); color: var(--encre-douce); }
.bot-attente { color: var(--encre-douce); font-style: italic; background: transparent; padding-left: 0; }
.bot-ligne { display: block; }
.bot-ligne + .bot-ligne { margin-top: .45rem; }
.bot-source { display: inline-block; margin-top: .45rem; font-size: .86rem; }

.bot-forme { display: flex; gap: .4rem; padding: .6rem .75rem; border-top: 1px solid var(--trait); }
.bot-champ {
  flex: 1 1 auto; min-width: 0; padding: .55rem .65rem;
  border: 1px solid var(--trait); border-radius: 9px; background: var(--papier);
  color: var(--encre); font: inherit; font-size: 1rem;
}
.bot-champ::placeholder { color: var(--encre-douce); opacity: .9; }
.bot-envoyer {
  flex: 0 0 auto; padding: .55rem .85rem; border: 1px solid transparent; border-radius: 9px;
  background: var(--accent); color: var(--papier-2); font: 600 .92rem/1 var(--sans); cursor: pointer;
}
.bot-envoyer[disabled] { opacity: .55; cursor: progress; }
.bot-pied { margin: 0; padding: 0 .9rem .7rem; color: var(--encre-douce); font-size: .78rem; }

@media (max-width: 560px) {
  .bot { right: .7rem; bottom: .7rem; }
  .bot-panneau { --bot-largeur: calc(100vw - 1.4rem); }
  .bot-panneau.est-grand { --bot-largeur: calc(100vw - 1.4rem); height: calc(100vh - 1.4rem); }
}

/* ---------- Page « Vidéos » ---------- */
.videos-sommaire { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0 .5rem; }
.videos-sommaire a {
  display: inline-flex; align-items: baseline; gap: .4rem;
  padding: .38rem .7rem; border: 1px solid var(--trait); border-radius: 999px;
  background: var(--papier-2); color: var(--encre); text-decoration: none;
  font: 600 .9rem/1 var(--sans);
}
.videos-sommaire a:hover, .videos-sommaire a:focus-visible { border-color: var(--accent); background: var(--accent-clair); }
.videos-sommaire a span {
  font: 700 .74rem/1 var(--sans); color: var(--papier-2); background: var(--accent);
  border-radius: 999px; padding: .16rem .38rem;
}
.videos-univers {
  margin: 2.2rem 0 -.2rem; font: 700 .74rem/1 var(--sans); letter-spacing: .12em;
  text-transform: uppercase; color: var(--cuivre);
}
.videos-titre {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem;
  margin: .45rem 0 .25rem;
}
.videos-compte {
  font: 600 .78rem/1 var(--sans); letter-spacing: .01em; color: var(--accent);
  background: var(--accent-clair); border-radius: 999px; padding: .3rem .55rem;
}
.videos-intro { margin: 0 0 1rem; color: var(--encre); max-width: 74ch; }
.videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }
.video {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--papier-2); border: 1px solid var(--trait); border-radius: 12px;
  box-shadow: var(--ombre);
}
.video-vignette { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--code); }
.video-vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-vignette::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.9rem; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  background: rgba(11, 18, 15, .18); opacity: .85; transition: opacity .15s;
}
.video-vignette:hover::after, .video-vignette:focus-visible::after { opacity: 1; background: rgba(11, 18, 15, .34); }
.video-duree {
  position: absolute; right: .45rem; bottom: .45rem; z-index: 1;
  padding: .18rem .42rem; border-radius: 6px;
  background: rgba(11, 18, 15, .82); color: #fff; font: 600 .78rem/1 var(--sans);
}
.video-corps { display: flex; flex: 1 1 auto; flex-direction: column; gap: .45rem; padding: .85rem 1rem 1rem; }
.video-titre { margin: 0; font: 600 1.06rem/1.3 var(--serif); }
.video-titre a { color: var(--encre); text-decoration: none; }
.video-titre a:hover, .video-titre a:focus-visible { color: var(--accent); text-decoration: underline; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem; margin: 0; }
.video-chaine { flex: 1 1 100%; font: 700 .9rem/1.3 var(--sans); color: var(--encre); }
.video-langue, .video-date, .video-vues {
  font: 600 .78rem/1 var(--sans); border-radius: 999px; padding: .28rem .5rem; white-space: nowrap;
}
.video-langue { color: var(--cuivre-sombre); background: #f6e7d6; }
.video-date, .video-vues { color: var(--accent); background: var(--accent-clair); }
.video-resume { margin: .1rem 0 0; font-size: .96rem; line-height: 1.5; color: var(--encre); }
.video-lien { margin: auto 0 0; padding-top: .35rem; font: 600 .92rem/1 var(--sans); }
.video-lien a { color: var(--accent); text-decoration: none; }
.video-lien a:hover, .video-lien a:focus-visible { text-decoration: underline; }
.note-vide { padding: 1rem 1.15rem; border: 1px dashed var(--trait); border-radius: 12px; color: var(--encre); }

@media (prefers-color-scheme: dark) {
  .video-langue { color: #f2d3b0; background: rgba(164, 95, 36, .28); }
  .videos-sommaire a span { color: var(--papier); }
}

.videos-maj, .maj-dates { display: flex; flex-wrap: wrap; gap: .45rem .7rem; margin: 1rem 0 0; }
.videos-maj-item, .maj-dates-item {
  display: inline-flex; align-items: baseline; gap: .3rem;
  padding: .34rem .68rem; border-radius: 999px;
  background: var(--accent-clair); color: var(--accent);
  font: 500 .86rem/1.2 var(--sans);
}
.videos-maj-item strong, .maj-dates-item strong { font-weight: 700; }
.videos-maj-suivante, .maj-dates-suivante { background: #f6e7d6; color: var(--cuivre-sombre); }
@media (prefers-color-scheme: dark) {
  .videos-maj-suivante, .maj-dates-suivante { background: rgba(164, 95, 36, .28); color: #f2d3b0; }
}

/* ==========================================================================
   Recherche de 3mf — porte d'entrée (lien magique).
   Une boîte, un champ, un bouton ; rien d'autre à l'écran.
   ========================================================================== */
.cle-bloc {
  max-width: 42rem; margin-top: 1.4rem; padding: 1.1rem 1.15rem;
  background: var(--papier-2); border: 1px solid var(--trait);
  border-radius: 14px; box-shadow: var(--ombre);
}
.cle-bloc h2 { margin: 0 0 .8rem; font-family: var(--serif); font-size: 1.24rem; font-weight: 600; }
.cle-forme label { display: block; margin-bottom: .4rem; font-size: .92rem; color: var(--encre-douce); }
.cle-ligne { display: flex; gap: .5rem; flex-wrap: wrap; }
.cle-champ {
  flex: 1 1 16rem; min-width: 0; padding: .62rem .7rem;
  border: 1px solid var(--trait); border-radius: 10px;
  background: var(--papier); color: var(--encre); font: inherit; font-size: 1rem;
}
.cle-champ::placeholder { color: var(--encre-douce); opacity: .9; }
.cle-champ:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cle-bouton {
  flex: 0 0 auto; padding: .62rem 1rem; border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: var(--papier-2); font: 600 .95rem/1 var(--sans); cursor: pointer;
}
.cle-bouton:hover { background: var(--accent); filter: brightness(1.07); }
.cle-note { margin: .8rem 0 0; color: var(--encre-douce); font-size: .88rem; line-height: 1.5; }
.cle-message {
  max-width: 42rem; margin-top: 1.4rem; padding: 1rem 1.15rem;
  border: 1px solid var(--trait); border-left: 4px solid var(--cuivre);
  border-radius: 12px; background: var(--papier-2);
}
.cle-message p { margin: 0 0 .5rem; line-height: 1.55; }
.cle-message p:last-child { margin-bottom: 0; }
.cle-message--ok { border-left-color: var(--accent); }
@media (max-width: 520px) {
  .cle-bouton { width: 100%; }
}

/* Sous-titre de section (mentions légales : la page « Recherche de 3mf »). */
.section-sous-titre {
  margin: 1.6rem 0 .6rem; font-family: var(--serif); font-size: 1.12rem; font-weight: 600;
  color: var(--encre); letter-spacing: .01em;
}

/* Le menu compte désormais douze entrées (« Recherche de 3mf » après « Prix ») :
   au-delà de 1200 px, un cran plus serré pour qu'il tienne sur une seule ligne. */
@media (min-width: 1100px) {
  .menu { gap: .22rem .1rem; }
  .menu a { padding: .45rem .40rem; font-size: .84rem; }
}

/* Résultats de la recherche de 3mf : une ligne par fichier, case à cocher. */
.trouves { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.trouve {
  display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .85rem;
  border: 1px solid var(--trait); border-radius: 11px; background: var(--papier);
}
.trouve-label { display: flex; gap: .65rem; align-items: flex-start; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.trouve-label input { margin: .2rem 0 0; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: 0 0 auto; }
.trouve-corps { display: grid; gap: .18rem; min-width: 0; }
.trouve-nom { font-weight: 650; font-size: 1rem; line-height: 1.35; }
.trouve-desc { color: var(--encre-douce); font-size: .92rem; line-height: 1.45; }
.trouve-meta { display: flex; flex-wrap: wrap; gap: .35rem .7rem; font-size: .8rem; color: var(--encre-douce); }
.trouve-meta > span { white-space: nowrap; }
.trouve-3mf { color: var(--accent); font-weight: 600; }
.trouve-page { opacity: .8; }
.trouve-lien { flex: 0 0 auto; align-self: center; font-size: .86rem; color: var(--accent); white-space: nowrap; }
.trouve-pied { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.1rem; }
.trouve-trace { margin: .9rem 0 0; font-family: var(--mono); font-size: .72rem; color: var(--encre-douce); opacity: .75; }
.cle-message--ko { border-left-color: #b4483a; }
@media (max-width: 560px) {
  .trouve { flex-direction: column; }
  .trouve-lien { align-self: flex-start; }
}
