/* Konekt : les styles de konekt.lu. La page de connexion reprend telle quelle la maquette validée par David le
   19/11/2026 (maquettes/2026-11-19-konekt-connexion/maquette-a-mots1.html) ; les ajouts de la mise en service
   (messages, état connecté, pages de texte) sont en fin de fichier. */

/* Inter, servie par konekt.lu : aucune police chargée chez un tiers. Coupe « texte » (taille optique 14, celle de la
   maquette), graisses 100 à 900, latin étendu ; licence SIL OFL 1.1, notice dans les métadonnées du fichier. */
@font-face { font-family: "Inter"; src: url("/polices/inter.woff2") format("woff2"); font-weight: 100 900;
  font-style: normal; font-display: swap; }

/* Kit interface : jetons Clairgate et base commune, figés le 19/11/2026 */
/* Clairgate : couleurs de site/public/style.css et échelle de site/public/jetons.css, relevées le 13/11/2026 ; fond
   blanc, Inter, la marque en Space Grotesk. Dans le dépôt, aucune valeur hors jeton (npm run lint:css) : une maquette
   validée se porte avec les jetons, jamais avec des valeurs inventées. */
:root {
  --fond: #fff; --barre: #fff; --carte: #f4f6fc; --carte2: #e8eeff; --trait: #e6e8ee; --trait2: #cfd4de;
  --texte: #111; --doux: #5f6573; --discret: #8a909c;
  --accent: #2b5cff; --accent2: #1c3bb3; --gain: #1f9d55; --perte: #d64541; --alerte: #f0a230; --info: #2b5cff;
  --action: #2b5cff; --sur-action: #fff; --sur-gain: #fff; --fond-erreur: #fcecec;
  --titres: "Inter", system-ui, sans-serif; --police: "Inter", system-ui, sans-serif;
  --chiffres: ui-monospace, SFMono-Regular, Menlo, monospace;
  --taille: 15px; --rayon: 10px;
}
.marque { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; color: #14245e; }
.entete h1 { font-weight: 700; letter-spacing: -.02em; }

/* base.css : la base commune des maquettes du skill interface. Elle ne porte aucune couleur ni police : chaque produit
   les donne par ses variables (assets/produits/<produit>.css). Le script de contrôle la recopie dans la maquette, dans la balise style
   data-interface, juste après les variables du produit (jamais de balise fermante écrite dans ce fichier). Elle applique les règles du
   skill : aucun texte sous 13,5 px, jamais de défilement de côté, le tableau devient des fiches sous 640 px, bulle et
   menu maison, boutons centrés, focus visible au clavier. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: var(--taille)/1.5 var(--police);
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Barre du haut */
.barre { display: flex; align-items: center; gap: 22px; padding: 12px 28px; background: var(--barre);
  border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 20; }
.marque { font-family: var(--titres); font-weight: 600; font-size: 19px; color: var(--accent); white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.nav a { padding: 7px 12px; border-radius: var(--rayon); color: var(--doux); text-decoration: none; white-space: nowrap;
  font-size: 15px; }
.nav a.on { color: var(--texte); background: var(--carte2); }

main { padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 16px; max-width: 1600px; margin: 0 auto; }
.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.entete h1 { font-family: var(--titres); font-weight: 500; font-size: 30px; margin: 0; line-height: 1.15; }
.maj { color: var(--doux); font-size: 14px; white-space: nowrap; }

/* Tuiles : une étiquette, une valeur, un détail */
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tuile { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px 14px;
  min-width: 0; }
.tuile .lab { color: var(--doux); font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  white-space: nowrap; }
.tuile .val { font-family: var(--chiffres); font-size: 24px; font-weight: 600; margin-top: 4px; white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.tuile .sub { color: var(--doux); font-size: 13.5px; margin-top: 2px; white-space: nowrap; }

/* Barre d'outils : recherche, menus, boutons */
.outils { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.recherche { flex: 1 1 220px; min-width: 0; background: var(--carte); border: 1px solid var(--trait2);
  border-radius: var(--rayon); padding: 8px 12px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 120px;
  padding: 8px 16px; background: var(--carte2); border: 1px solid var(--trait2); border-radius: var(--rayon);
  cursor: pointer; white-space: nowrap; }
.bouton.principal { background: var(--action); border-color: var(--action); color: var(--sur-action); font-weight: 600; }
.bouton.valider { background: var(--gain); border-color: var(--gain); color: var(--sur-gain); font-weight: 600; }
.boutons { display: flex; gap: 12px; justify-content: center; }   /* jamais une rangée justifiée à gauche */

/* Pastilles de statut : une couleur ET un mot, jamais la couleur seule */
.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap; border: 1px solid currentColor; }
.pastille::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pastille.ok { color: var(--gain); }
.pastille.alerte { color: var(--alerte); }
.pastille.ko { color: var(--perte); }
.pastille.neutre { color: var(--doux); }
.gain { color: var(--gain); }
.perte { color: var(--perte); }

/* Tableau compact : il ne défile jamais de côté ; les phrases passent à la ligne dans leur cellule */
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--carte);
  border: 1px solid var(--trait); border-radius: var(--rayon); }
.tableau th { text-align: left; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux);
  font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--trait); white-space: nowrap; }
.tableau td { padding: 9px 12px; border-top: 1px solid var(--trait); vertical-align: middle; white-space: nowrap; }
.tableau tbody tr:first-child td { border-top: 0; }
.tableau tbody tr:hover td { background: var(--carte2); }
.tableau .n, .tableau th.n { text-align: right; font-family: var(--chiffres); font-variant-numeric: tabular-nums; }
.tableau .phrase { white-space: normal; min-width: 180px; }
.tableau .sous { display: block; color: var(--doux); font-size: 13.5px; }
.avec-bulle { text-decoration: underline dotted var(--discret); text-underline-offset: 3px; }

/* États d'un écran : vide, chargement, erreur */
.vide { text-align: center; color: var(--doux); padding: 28px 16px; border: 1px dashed var(--trait2);
  border-radius: var(--rayon); }
.chargement { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--carte), var(--carte2), var(--carte));
  background-size: 200% 100%; animation: luire 1.4s linear infinite; }
@keyframes luire { to { background-position: -200% 0; } }
.erreur { padding: 10px 14px; border: 1px solid var(--perte); background: var(--fond-erreur); border-radius: var(--rayon); }

/* Bulle maison (jamais la bulle title du navigateur) : mecanique.js la place et l'ouvre */
#bulle { position: fixed; z-index: 100; max-width: min(360px, calc(100vw - 24px)); padding: 9px 12px;
  background: var(--carte2); border: 1px solid var(--trait2); border-radius: var(--rayon); font-size: 14px;
  line-height: 1.45; pointer-events: none; display: none; }
#bulle.on { display: block; }

/* Menu maison (jamais une liste select native) : un bouton qui porte la valeur, un panneau fixe */
.menu { position: relative; display: inline-block; }
.menu > button { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 150px;
  padding: 8px 12px; background: var(--carte); border: 1px solid var(--trait2); border-radius: var(--rayon);
  cursor: pointer; white-space: nowrap; }
.menu > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--doux);
  border-bottom: 2px solid var(--doux); transform: rotate(45deg) translateY(-3px); }
.menu-panneau { position: fixed; z-index: 90; min-width: 180px; max-height: 60vh; overflow-y: auto; padding: 4px;
  background: var(--carte2); border: 1px solid var(--trait2); border-radius: var(--rayon); display: none; }
.menu-panneau.on { display: block; }
.menu-panneau > * { padding: 7px 12px; border-radius: max(0px, calc(var(--rayon) - 3px)); cursor: pointer;
  white-space: nowrap; }
.menu-panneau > *:hover, .menu-panneau > *:focus { background: var(--carte); outline: none; }
.menu-panneau > [aria-selected="true"] { color: var(--accent); }

/* Texte d'une ligne : il rétrécit jusqu'à tenir (mecanique.js), « … » n'est que le dernier filet */
.une-ligne { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Tablette (641 à 1023 px) */
@media (max-width: 1023px) {
  main { padding: 18px 20px 32px; }
  .barre { padding: 10px 20px; gap: 14px; }
  .tableau th, .tableau td { padding-left: 8px; padding-right: 8px; }
  .tableau .phrase { min-width: 110px; }
}

/* Téléphone (640 px et moins) : une colonne, et le tableau devient des fiches (modèle : onglet Trips du CRM) */
@media (max-width: 640px) {
  main { padding: 14px 12px 28px; }
  .barre { padding: 10px 12px; gap: 6px 12px; flex-wrap: wrap; }
  .entete h1 { font-size: 24px; }
  .tuiles { grid-template-columns: 1fr 1fr; }
  .outils > * { flex: 1 1 100%; }
  .menu > button { width: 100%; }
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
  .tableau { background: none; border: 0; }
  .tableau thead { display: none; }
  .tableau tr { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
    padding: 6px 12px; margin-bottom: 10px; }
  .tableau td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0;
    padding: 6px 0; white-space: normal; text-align: right; }
  .tableau td::before { content: attr(data-l); color: var(--doux); font-size: 13.5px; letter-spacing: .06em;
    text-transform: uppercase; text-align: left; white-space: nowrap; }
  .tableau td:first-child { justify-content: flex-start; text-align: left; font-weight: 600; font-size: 16px; }
  .tableau td:first-child::before { content: none; }
  .tableau td:empty { display: none; }
  .tableau .phrase { min-width: 0; }
  .tableau tbody tr:hover td { background: none; }
  .boutons { flex-wrap: wrap; }
}

/* La page de connexion (maquette validée) */
/* Konekt : marine #0F1E4A et bleu vif #2F5BFF du logo 23.14 ; aucune lueur ni flou, des traits nets. */
:root { --marine: #0F1E4A; --nuit: #0A1636; --bleu: #2F5BFF; --bleu-fonce: #2246D6; --ciel: #EEF2FF;
  --texte: #0F1E4A; --doux: #556079; --trait: #E1E5EE; --fond: #fff; --accent: #2F5BFF; --action: #2F5BFF;
  --clair-sur-marine: #C8D2F2; }
html, body { min-height: 100%; }
body { font-family: "Inter", system-ui, sans-serif; background: var(--fond); color: var(--texte); }

.ecran { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto; grid-template-areas: "scene haut" "scene form" "scene pied"; }

/* La scène : le moyeu et son réseau */
.scene { grid-area: scene; position: relative; overflow: hidden; color: #fff; padding: 40px 52px;
  background: linear-gradient(160deg, #16295F 0%, var(--marine) 46%, var(--nuit) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.moyeu { position: absolute; left: 50%; top: 40%; width: min(320px, 44%); transform: translate(-50%, -50%); }
.moyeu svg { display: block; width: 100%; height: auto; overflow: visible; }
.etiquette { position: absolute; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clair-sur-marine); white-space: nowrap; }
.etiquette.fonds { left: 50%; top: -14%; transform: translateX(-50%); }
.etiquette.gerants { left: -16%; bottom: -2%; transform: translateX(-50%); }
.etiquette.investisseurs { left: 116%; bottom: -2%; transform: translateX(-50%); }
.accroche { position: relative; max-width: 540px; opacity: 0; animation: monter .8s cubic-bezier(.2,.7,.2,1) .9s forwards; }
.accroche h2 { margin: 0 0 12px; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.15; letter-spacing: -.025em;
  font-weight: 700; }
.accroche p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--clair-sur-marine); }

/* La connexion */
.haut { grid-area: haut; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 32px 52px 0; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .logo-icone { width: 44px; height: 44px; display: block; }
.logo .nom { height: 29px; width: auto; display: block; }
.langue { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--trait); border-radius: 999px; }
.langue button { border: 0; background: none; padding: 5px 13px; border-radius: 999px; font-size: 14px;
  font-weight: 600; color: var(--doux); cursor: pointer; transition: background .25s, color .25s; }
.langue button[aria-pressed="true"] { background: var(--marine); color: #fff; }

.formulaire { grid-area: form; width: 100%; max-width: 420px; margin: 0 auto; padding: 48px 24px;
  display: flex; flex-direction: column; justify-content: center; }
.etape { animation: monter .7s cubic-bezier(.2,.7,.2,1) both; }
.etape[hidden] { display: none; }
.formulaire h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.formulaire .intro { margin: 0 0 30px; color: var(--doux); font-size: 16px; }
.champ { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.saisie { width: 100%; height: 54px; padding: 0 16px; font-size: 16px; color: var(--texte); background: #fff;
  border: 1.5px solid var(--trait); border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s; }
.saisie::placeholder { color: #98A1B5; }
.saisie:focus { border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(47, 91, 255, .14); }
.envoyer { width: 100%; height: 54px; margin-top: 16px; border: 0; border-radius: 12px; background: var(--bleu);
  color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; display: flex;
  align-items: center; justify-content: center; gap: 10px; transition: background .2s, transform .12s; }
.envoyer:hover { background: var(--bleu-fonce); }
.envoyer:active { transform: scale(.985); }
.envoyer svg { width: 18px; height: 18px; transition: transform .25s; }
.envoyer:hover svg { transform: translateX(3px); }
.aide { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; color: var(--doux); font-size: 14px;
  line-height: 1.5; }
.aide svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--bleu); }
.invitation { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--trait); color: var(--doux);
  font-size: 14px; line-height: 1.5; }

/* Le code à 6 chiffres */
.adresse { display: block; margin: 0 0 24px; font-weight: 600; overflow-wrap: anywhere; }
.cases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cases input { width: 100%; height: 60px; text-align: center; font-size: 24px; font-weight: 600;
  font-variant-numeric: tabular-nums; border: 1.5px solid var(--trait); border-radius: 12px; outline: none;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.cases input:focus { border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(47, 91, 255, .14); }
.cases input.rempli { border-color: var(--marine); animation: poser .25s ease; }
.liens { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.liens button { border: 0; background: none; padding: 4px 2px; color: var(--bleu); font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; }

.pied { grid-area: pied; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  padding: 0 52px 28px; color: var(--doux); font-size: 13.5px; }
.pied nav { display: flex; gap: 18px; }
.pied a { color: var(--doux); text-decoration: none; white-space: nowrap; }
.pied a:hover { color: var(--texte); }

/* Le logo s'assemble : les branches se tracent, les nœuds éclosent, le cœur bat doucement */
.branche { stroke-dasharray: 50; stroke-dashoffset: 50; animation: tracer .9s cubic-bezier(.6,0,.2,1) .15s forwards; }
.branche:nth-of-type(2) { animation-delay: .3s; }
.branche:nth-of-type(3) { animation-delay: .45s; }
.noeud { transform-box: fill-box; transform-origin: center; transform: scale(0);
  animation: eclore .55s cubic-bezier(.3,1.6,.5,1) forwards; }
.noeud:nth-of-type(1) { animation-delay: .9s; } .noeud:nth-of-type(2) { animation-delay: 1.02s; }
.noeud:nth-of-type(3) { animation-delay: 1.14s; }
.coeur { transform-box: fill-box; transform-origin: center; animation: battre 3.6s ease-in-out 1.8s infinite; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes eclore { to { transform: scale(1); } }
@keyframes battre { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes monter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes apparaitre { to { opacity: 1; } }
@keyframes poser { 50% { transform: scale(1.06); } }

/* Tablette et téléphone : le logo en haut, la scène en bandeau, puis la connexion */
@media (max-width: 1023px) {
  .ecran { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "haut" "scene" "form" "pied"; }
  .haut { padding: 22px 32px; }
  .scene { min-height: 0; padding: 36px 32px; align-items: center; text-align: center; }
  .moyeu { position: relative; left: auto; top: auto; transform: none; width: 150px; margin: 0 auto 26px; }
  .etiquette { display: none; }
  .accroche h2 { font-size: 26px; }
  .formulaire { padding: 40px 24px; }
  .pied { padding: 0 32px 24px; }
}
@media (max-width: 640px) {
  .haut { padding: 16px; }
  .logo .logo-icone { width: 38px; height: 38px; }
  .logo .nom { height: 25px; }
  .scene { padding: 28px 16px; }
  .moyeu { width: 108px; margin-bottom: 18px; }
  .accroche h2 { font-size: 21px; }
  .accroche p { font-size: 15px; }
  .formulaire { padding: 30px 16px 34px; }
  .formulaire h1 { font-size: 28px; }
  .cases { gap: 6px; }
  .cases input { height: 52px; font-size: 21px; }
  .pied { padding: 0 16px 22px; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition: none !important; }
}

/* Bouton clair / sombre (icône seule) et mode sombre de la connexion */
:root { --logo-tuile: #0F1E4A; --logo-coeur: #2F5BFF; --logo-nom: #0F1E4A; }
.l-tuile { fill: var(--logo-tuile); } .l-coeur { fill: var(--logo-coeur); } .l-nom { fill: var(--logo-nom); }
.reglages { display: flex; align-items: center; gap: 8px; }
.theme { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--trait); background: none; color: var(--doux);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.theme:hover { color: var(--texte); border-color: var(--doux); }
.theme svg { width: 18px; height: 18px; display: block; }
.theme .soleil { display: none; }
[data-theme="sombre"] .theme .lune { display: none; }
[data-theme="sombre"] .theme .soleil { display: block; }
[data-theme="sombre"] { --fond: #0B1636; --texte: #EEF2FF; --doux: #A9B4D6; --trait: #26376E; --logo-tuile: #2F5BFF; --logo-coeur: #0F1E4A;
  --logo-nom: #FFFFFF; color-scheme: dark; }
[data-theme="sombre"] .saisie, [data-theme="sombre"] .cases input { background: #12224F; border-color: #2B3D7A; color: var(--texte); }
[data-theme="sombre"] .saisie::placeholder { color: #8391BC; }
[data-theme="sombre"] .langue button[aria-pressed="true"] { background: #fff; color: #0F1E4A; }
[data-theme="sombre"] .cases input.rempli { border-color: #fff; }
@media (max-width: 640px) {
  .langue button { padding: 5px 10px; }
  .theme { width: 34px; height: 34px; }
  .reglages { gap: 6px; }
}
@media (max-width: 380px) {
  .haut { gap: 8px; padding: 14px 12px; }
  .reglages { gap: 6px; }
  .logo .logo-icone { width: 34px; height: 34px; }
  .theme { width: 32px; height: 32px; }
}
/* Jamais un mot seul en fin de ligne (David, 19/11/2026 : « endroit. » à la ligne) : titres équilibrés, paragraphes soignés */
h1, h2 { text-wrap: balance; }
p, .aide span, .invitation { text-wrap: pretty; }
.accroche { max-width: 600px; }
/* La connexion, plus grande (David, 19/11/2026 : « on a la place ») */
.formulaire { max-width: 500px; }
.formulaire h1 { font-size: 44px; margin-bottom: 10px; }
.formulaire .intro { font-size: 18px; margin-bottom: 34px; }
.champ { font-size: 15px; }
.saisie { height: 62px; padding: 0 18px; font-size: 18px; border-radius: 14px; }
.envoyer { height: 62px; margin-top: 18px; font-size: 18px; border-radius: 14px; }
.envoyer svg { width: 20px; height: 20px; }
.aide { font-size: 15px; }
.invitation { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invitation .court { display: none; }
@media (max-width: 640px) { .invitation .long { display: none; } .invitation .court { display: inline; } }
.cases input { height: 68px; font-size: 26px; border-radius: 14px; }
.liens button { font-size: 15px; }
/* Les trois familles : un bloc posé sur le moyeu, aux mêmes dimensions */
.familles { position: absolute; left: 50%; top: 40%; width: min(320px, 44%); aspect-ratio: 140 / 125; transform: translate(-50%, -50%); pointer-events: none; }
.famille { position: absolute; white-space: nowrap; }
@media (max-width: 1023px) {
  .familles { position: relative; left: auto; top: auto; width: auto; aspect-ratio: auto; transform: none; display: flex; flex-wrap: wrap;
    justify-content: center; gap: 8px; margin: -6px 0 24px; }
  .famille { position: static; transform: none !important; }
}
@media (max-width: 640px) {
  .formulaire h1 { font-size: 32px; }
  .formulaire .intro { font-size: 16px; margin-bottom: 26px; }
  .saisie, .envoyer { height: 56px; font-size: 17px; }
  .cases input { height: 54px; font-size: 22px; }
}
@media (max-width: 380px) {
  .logo .nom { height: 20px; }
  .langue button { padding: 5px 7px; }
}

/* David, 19/11/2026 : pastilles marine, sans pointillés, à la place validée (Fonds au-dessus, Gérants à gauche et
   Investisseurs à droite des nœuds du bas, à 3 % du moyeu), la même sur tous les écrans.
   David, 19/11/2026 au soir : le moyeu exactement au centre, et la même marge des deux côtés, du bord du panneau à
   Gérants et d'Investisseurs au bord ; jamais le moyeu décalé pour compenser. Gérants et Investisseurs ont donc la même
   largeur (--p : celle d'« Investisseurs », le mot le plus long des trois langues), et le moyeu rétrécit quand la place
   manque : sa largeur laisse --marge de chaque côté (52 px, l'alignement du texte du panneau). Les trois pastilles
   ont la même taille, l'icône calée à gauche et le mot centré dans le reste (David, 19/11/2026). Sur téléphone, les
   pastilles perdent leur icône pour que les mots restent à 13,5 px au moins. */
.illus { --p: 165px; --marge: 52px; position: absolute; left: 50%; top: 40%; translate: -50% -50%;
  width: clamp(240px, calc((100% - 2 * var(--marge) - 2 * var(--p)) / 1.06), min(320px, 44%)); }
.illus .moyeu { position: relative; left: auto; top: auto; width: 100%; margin: 0; transform: none; }
.illus .familles { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; transform: none; display: block; margin: 0; max-width: none; }
.illus .famille { position: absolute; display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px;
  min-width: var(--p); padding: 7px 17px 7px 7px; border-radius: 999px; box-sizing: border-box;
  background: #1B2E6B; border: 1px solid rgba(200,210,242,.3); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
.illus .famille .mot { text-align: center; }
.illus .famille .pic { width: 30px; height: 30px; border-radius: 50%; background: var(--bleu); color: #fff; display: grid; place-items: center; flex: none; }
.illus .famille .pic-svg { width: 16px; height: 16px; }
.illus .f-fonds { left: 50%; top: -14%; translate: -50% -100%; }
.illus .f-gerants { right: 103%; top: 91%; translate: 0 -50%; }
.illus .f-investisseurs { left: 103%; top: 91%; translate: 0 -50%; }
@media (max-width: 1279px) {
  .illus { --p: 150px; width: clamp(160px, calc((100% - 2 * var(--marge) - 2 * var(--p)) / 1.06), min(320px, 40%)); }
  .illus .famille { font-size: 14px; gap: 8px; padding: 6px 15px 6px 6px; }
  .illus .famille .pic { width: 27px; height: 27px; }
  .illus .famille .pic-svg { width: 15px; height: 15px; }
}
@media (max-width: 1023px) { .illus { position: relative; left: auto; top: auto; translate: none; width: 240px; margin: 52px auto 30px; } }
@media (max-width: 640px) {
  .illus { --p: 119px; width: clamp(64px, calc((100% - 2 * var(--p)) / 1.06), 150px); margin: 50px auto 26px; }
  .illus .famille { grid-template-columns: 1fr; font-size: 13.5px; padding: 6px 14px; }
  .illus .famille .pic { display: none; }
}
@media (max-width: 360px) { .illus { --p: 111px; } .illus .famille { padding: 6px 10px; } }

/* ── Mise en service (19/11/2026) ─────────────────────────────────────────────────────────────────────────── */

/* Une langue choisie autre que le français : la page attend sa traduction (au plus 1,5 s, voir theme.js) */
.traduction body { visibility: hidden; }

/* L'introduction serrée sur l'adresse (étapes du code et de la connexion) */
.formulaire .intro.serre { margin-bottom: 6px; }

/* Les messages : une erreur ou une information, dans la page, jamais une fenêtre du navigateur */
.alerte { margin: -12px 0 22px; padding: 12px 14px; border: 1px solid; border-radius: 12px; font-size: 15px;
  line-height: 1.45; text-wrap: pretty; }
.alerte[hidden] { display: none; }
.alerte.erreur { background: #FDECEC; border-color: #F3C4C1; color: #8A1C14; }
.alerte.info { background: var(--ciel); border-color: #CDD7FB; color: var(--marine); }
[data-theme="sombre"] .alerte.erreur { background: #3A1522; border-color: #6B2635; color: #FFD9D6; }
[data-theme="sombre"] .alerte.info { background: #13245A; border-color: #2B3D7A; color: var(--texte); }

/* Pendant un envoi : le bouton attend, sans bouger */
.envoyer[disabled] { opacity: .72; cursor: progress; }
.envoyer[disabled]:hover { background: var(--bleu); }
.envoyer[disabled]:hover svg { transform: none; }
.liens button[disabled] { color: var(--doux); cursor: default; }

/* Connecté */
.formulaire .suite { margin: 0 0 30px; color: var(--doux); font-size: 17px; line-height: 1.55; }
.envoyer.secondaire { background: none; color: var(--texte); border: 1.5px solid var(--trait); }
.envoyer.secondaire:hover { background: none; border-color: var(--doux); }

/* Pages de texte : mentions légales et confidentialité */
.page-texte { min-height: 100vh; display: flex; flex-direction: column; }
.page-texte .haut { padding: 28px 52px; border-bottom: 1px solid var(--trait); }
.page-texte .pied { padding: 22px 52px 28px; border-top: 1px solid var(--trait); }
.texte { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 52px 24px 64px; }
.texte section { display: none; }
.texte section.active { display: block; }
.texte h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.texte .maj { margin: 0 0 34px; color: var(--doux); font-size: 15px; }
.texte h2 { margin: 36px 0 10px; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
.texte p, .texte li { font-size: 17px; line-height: 1.65; }
.texte p { margin: 0 0 12px; }
.texte ul { margin: 0 0 12px; padding-left: 22px; }
.texte li { margin-bottom: 6px; }
.texte a { color: var(--bleu); text-underline-offset: 3px; }
.texte .retour { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 600;
  text-decoration: none; }
@media (max-width: 1023px) {
  .page-texte .haut { padding: 22px 32px; }
  .page-texte .pied { padding: 20px 32px 24px; }
}
@media (max-width: 640px) {
  .page-texte .haut { padding: 16px; }
  .page-texte .pied { padding: 18px 16px 22px; }
  .texte { padding: 34px 16px 48px; }
  .texte h1 { font-size: 30px; }
  .texte h2 { font-size: 20px; }
  .texte p, .texte li { font-size: 16px; }
}
@media (max-width: 380px) { .page-texte .haut { padding: 14px 12px; } }

/* Mode sombre : liens et actions dans un bleu clair, lisible sur le fond nuit (contraste 8,7:1 au lieu de 3,4:1) */
[data-theme="sombre"] .texte a, [data-theme="sombre"] .liens button { color: #9DB2FF; }
[data-theme="sombre"] .liens button[disabled] { color: var(--doux); }

/* L'adresse e-mail à la taille de la phrase qui l'annonce (David, 19/11/2026 : « écrit en trop petit ») */
.formulaire .adresse { font-size: 18px; line-height: 1.45; }
@media (max-width: 640px) { .formulaire .adresse { font-size: 16px; } }
