/* Vitrine : pages d'accès (connexion, second facteur, mot de passe), accueil des tuiles et pages
   publiques. Feuille à part de laser.css : les pages internes (tuiles ouvertes, éditeur) n'en
   dépendent pas. CSP du socle : style-src 'self', aucun style en ligne, polices du système.
   Neutre par conception : une seule teinte d'accent (--accent) suffit à l'habiller aux couleurs
   d'une autre entreprise. Deux rayons seulement (--rayon-s, --rayon). */

:root {
  color-scheme: light dark;
  --fond: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --encre: #09090b;
  --texte-2: #52525b;
  --texte-3: #71717a;
  --trait: #e4e4e7;
  --trait-fort: #d4d4d8;
  --bord-champ: #8e8e96;   /* limite d'un champ : 3:1 sur le fond (WCAG 1.4.11) */
  --accent: #18181b;
  --accent-survol: #27272a;
  --sur-accent: #fafafa;
  --anneau: #2563eb;
  --danger: #b91c1c;
  --danger-fond: #fef2f2;
  --danger-trait: #fecaca;
  --succes: #15803d;
  --panneau: #0b0b0d;
  --panneau-bord: rgb(0 0 0 / 0.06);
  --ombre-1: 0 1px 2px rgb(9 9 11 / 0.05);
  --ombre-2: 0 1px 2px rgb(9 9 11 / 0.04), 0 8px 24px -6px rgb(9 9 11 / 0.10);
  --ombre-3: 0 2px 4px rgb(9 9 11 / 0.04), 0 24px 48px -12px rgb(9 9 11 / 0.18);
  --rayon-s: 8px;
  --rayon: 14px;
  --police: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-titre: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --duree: 160ms;
  --courbe: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #09090b;
    --surface: #111113;
    --surface-2: #18181b;
    --encre: #fafafa;
    --texte-2: #a1a1aa;
    --texte-3: #8b8b94;
    --trait: #27272a;
    --trait-fort: #3f3f46;
    --bord-champ: #5c5c66;
    --accent: #fafafa;
    --accent-survol: #e4e4e7;
    --sur-accent: #09090b;
    --anneau: #60a5fa;
    --danger: #fca5a5;
    --danger-fond: #1f0d0d;
    --danger-trait: #4c1d1d;
    --succes: #86efac;
    --panneau: #111113;
    --panneau-bord: rgb(255 255 255 / 0.08);
    --ombre-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --ombre-2: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -6px rgb(0 0 0 / 0.5);
    --ombre-3: 0 2px 4px rgb(0 0 0 / 0.4), 0 24px 48px -12px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.vitrine {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--police);
  font-size: 15px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.vitrine a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.vitrine :focus-visible { outline: 2px solid var(--anneau); outline-offset: 2px; }
.vitrine ::selection { background: color-mix(in srgb, var(--anneau) 22%, transparent); }
.vitrine h1, .vitrine h2, .vitrine h3 { margin: 0; font-family: var(--police-titre); letter-spacing: -0.025em; line-height: 1.2; }
.vitrine p { margin: 0; text-wrap: pretty; }
.vitrine h1, .vitrine h2, .etat-vide strong { text-wrap: balance; }
.vitrine code { font-family: var(--mono); font-size: .92em; }

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  padding: .55rem .9rem; border-radius: var(--rayon-s);
  background: var(--accent); color: var(--sur-accent); text-decoration: none; font-weight: 600;
  transition: top var(--duree) var(--courbe);
}
.vitrine a.evitement { color: var(--sur-accent); }
.evitement:focus { top: 1rem; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Marque : l'initiale du nom dans un carré, propre à chaque entreprise ---------------- */
.marque-v { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none;
  color: var(--encre); font-weight: 650; letter-spacing: -0.01em; }
.marque-v .signe { width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: var(--rayon-s); background: var(--accent); color: var(--sur-accent);
  font-family: var(--police-titre); font-size: 15px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12); }
.marque-v .nom { font-size: 15px; }

/* ---- Écran d'accès : formulaire à gauche, panneau de marque à droite --------------------- */
.acces { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .acces { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

.acces-colonne { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  padding: 28px 24px 0; }
@media (min-width: 640px) { .acces-colonne { padding: 36px 48px 0; } }
.acces-haut { display: flex; align-items: center; min-height: 32px; }
.acces-centre { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.acces-carte { width: 100%; max-width: 420px; }

.etape { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem;
  font-size: 12.5px; font-weight: 550; color: var(--texte-2); letter-spacing: .01em; }
.etape .points { display: inline-flex; gap: 4px; }
.etape .points span { width: 18px; height: 4px; border-radius: 99px; background: var(--bord-champ); opacity: .45; }
.etape .points span.fait { background: var(--encre); opacity: 1; }
.etape-vide { height: 18.5px; margin-bottom: 1.25rem; }

.acces-titre { font-size: 28px; font-weight: 650; }
.acces-sous-titre { margin-top: .625rem; color: var(--texte-2); font-size: 15px; line-height: 1.5; }
.acces-corps { margin-top: 2rem; display: grid; gap: 1.25rem; }

/* ---- Champs ---------------------------------------------------------------------------- */
.champs { display: grid; gap: 1.1rem; }
.champ { display: grid; gap: .45rem; }
.champ-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.champ label, .champ-libelle { font-size: 13.5px; font-weight: 550; color: var(--encre); }
.lien-discret { font-size: 13px; color: var(--texte-2); text-decoration: none; font-weight: 500; }
.vitrine a.lien-discret { color: var(--texte-2); }
.vitrine a.lien-discret:hover { color: var(--encre); text-decoration: underline; }

.saisie { position: relative; display: flex; align-items: center; }
.vitrine input[type=email], .vitrine input[type=password], .vitrine input[type=text] {
  width: 100%; height: 44px; padding: 0 14px;
  font: inherit; font-size: 15px; color: var(--encre);
  background: var(--surface); border: 1px solid var(--bord-champ); border-radius: var(--rayon-s);
  box-shadow: var(--ombre-1);
  transition: border-color var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe);
  appearance: none;
}
.vitrine input::placeholder { color: var(--texte-3); opacity: .8; }
.vitrine input:hover { border-color: var(--texte-2); }
.vitrine input:focus { outline: none; border-color: var(--encre);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--encre) 12%, transparent); }
.vitrine input[aria-invalid=true] { border-color: var(--danger); }
.vitrine input[aria-invalid=true]:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 16%, transparent); }
.saisie.avec-bouton input { padding-right: 88px; }
.basculer-mdp {
  position: absolute; right: 6px; height: 32px; padding: 0 10px;
  font: inherit; font-size: 13px; font-weight: 550; color: var(--texte-2);
  background: transparent; border: 0; border-radius: 6px; cursor: pointer;
}
.basculer-mdp:hover { color: var(--encre); background: var(--surface-2); }
.basculer-mdp[hidden] { display: none; }

.code-saisie input { height: 56px; font-family: var(--mono); font-size: 24px; letter-spacing: .35em;
  text-align: center; padding: 0 14px 0 calc(14px + .35em); font-variant-numeric: tabular-nums; }
.code-saisie input::placeholder { letter-spacing: .35em; opacity: .45; }

.indice { display: flex; align-items: center; gap: .4rem; font-size: 13px; color: var(--texte-2); }
.indice[hidden] { display: none; }
.indice svg { width: 14px; height: 14px; flex: none; }

/* ---- Boutons --------------------------------------------------------------------------- */
.bouton-v {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 44px; padding: 0 18px; width: 100%;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  color: var(--sur-accent); background: var(--accent);
  border: 1px solid var(--accent); border-radius: var(--rayon-s); cursor: pointer;
  box-shadow: var(--ombre-1), inset 0 1px 0 rgb(255 255 255 / 0.08);
  transition: background var(--duree) var(--courbe), border-color var(--duree) var(--courbe), transform var(--duree) var(--courbe);
}
.vitrine a.bouton-v { color: var(--sur-accent); }
.bouton-v:hover { background: var(--accent-survol); }
.bouton-v:active { transform: translateY(1px); }
.bouton-v svg { width: 16px; height: 16px; flex: none; }
.bouton-v.second, .vitrine a.bouton-v.second { color: var(--encre); background: var(--surface); border-color: var(--trait-fort); }
.bouton-v.second:hover { background: var(--surface-2); border-color: var(--bord-champ); }
.bouton-v.compact { width: auto; height: 40px; padding: 0 14px; font-size: 14px; }
.bouton-v[aria-busy=true] { color: transparent; pointer-events: none; }
.bouton-v[aria-busy=true]::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--sur-accent); border-right-color: transparent;
  animation: tourne .7s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
.bouton-lien { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--texte-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bouton-lien:hover { color: var(--encre); }
.boutons-ligne { display: flex; flex-direction: row-reverse; gap: .75rem; }
.boutons-ligne .bouton-v { width: auto; flex: 1; }

.assurance { display: flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: 12.5px; color: var(--texte-3); }
.assurance svg { width: 13px; height: 13px; }

/* ---- Alertes --------------------------------------------------------------------------- */
.alerte-v { display: flex; gap: .65rem; align-items: flex-start; padding: 12px 14px;
  font-size: 14px; color: var(--danger); background: var(--danger-fond);
  border: 1px solid var(--danger-trait); border-radius: var(--rayon-s); }
.alerte-v svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.note-v { padding: 12px 14px; font-size: 14px; color: var(--texte-2); background: var(--surface-2);
  border: 1px solid var(--trait); border-radius: var(--rayon-s); }

/* ---- Second facteur : QR et clé -------------------------------------------------------- */
.qr-bloc { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 16px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre-1); }
@media (max-width: 440px) { .qr-bloc { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.qr-cadre { width: 160px; height: 160px; padding: 8px; background: #fff; border-radius: var(--rayon-s);
  border: 1px solid var(--trait); }
.qr-cadre svg { display: block; width: 100%; height: 100%; }
.qr-texte { display: grid; gap: .75rem; font-size: 14px; line-height: 1.6; color: var(--texte-2); }
.qr-texte ol { margin: 0; padding-left: 1.15rem; display: grid; gap: .2rem; }
.qr-texte ol li::marker { color: var(--texte-3); font-variant-numeric: tabular-nums; }
.vitrine .qr-texte a { display: none; color: var(--encre); font-weight: 550; text-decoration: underline; font-size: 13.5px; }
@media (hover: none) and (pointer: coarse) { .vitrine .qr-texte a { display: inline; white-space: nowrap; } }
.cle { display: grid; gap: .45rem; }
.cle-valeur { display: flex; align-items: stretch; gap: .5rem; }
.cle-code { flex: 1; min-width: 0; display: flex; }
.cle-valeur code { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; overflow-x: auto;
  white-space: nowrap; padding: 0 12px; font-size: 13px; letter-spacing: .06em;
  background: var(--surface-2); border: 1px solid var(--trait); border-radius: var(--rayon-s); }

/* ---- Codes de secours ------------------------------------------------------------------ */
.codes-v { list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: code;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-1); }
.codes-v li { counter-increment: code; display: flex; align-items: center; gap: .6rem;
  padding: 9px 12px; border-radius: 6px; background: var(--surface-2); }
.codes-v li::before { content: counter(code); min-width: 1.4em; text-align: right; font-size: 12px; color: var(--texte-3); opacity: .7;
  font-variant-numeric: tabular-nums; }
.codes-v code { font-size: 14px; letter-spacing: .04em; }
.actions-v { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.actions-v .bouton-v { width: 100%; }

/* ---- Règles du mot de passe ------------------------------------------------------------ */
.regles { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: 13px; color: var(--texte-2); }
.regles li { display: flex; align-items: center; gap: .5rem; transition: color var(--duree) var(--courbe); }
.regles li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--bord-champ); transition: all var(--duree) var(--courbe); }
.regles li.ok { color: var(--succes); }
.regles li.ok::before { border-color: var(--succes); background: var(--succes)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* ---- Panneau de marque (écran d'accès, grand écran) : calme, le nom et une phrase -------- */
.panneau { display: none; position: relative; overflow: hidden; margin: 12px; border-radius: var(--rayon);
  color: #fafafa; background: var(--panneau); isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--panneau-bord); }
@media (min-width: 1024px) { .panneau { display: flex; flex-direction: column; justify-content: flex-end; } }
.panneau::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(70% 55% at 85% 10%, rgb(99 102 241 / 0.22), transparent 70%),
    radial-gradient(60% 50% at 10% 95%, rgb(14 165 233 / 0.14), transparent 70%); }
.panneau::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 80%); }
.panneau-bas { padding: 56px; }
.panneau-haut { margin-bottom: 12px; font-size: 13px; font-weight: 550; color: #a1a1aa; letter-spacing: .02em; }
.panneau-nom { font-family: var(--police-titre); font-size: 52px; font-weight: 650; letter-spacing: -0.028em;
  line-height: 1.08; max-width: 12ch; }
.panneau-phrase { margin-top: 16px; font-size: 17px; line-height: 1.55; color: #a1a1aa; max-width: 30rem; }

/* ---- Pied de page ---------------------------------------------------------------------- */
.pied { width: 100%; font-size: 13px; color: var(--texte-3); }
.pied-dedans { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  padding: 20px 0 24px; border-top: 1px solid var(--trait); }
.page-appli .pied, .page-texte .pied { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.pied nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.vitrine .pied a { color: var(--texte-2); text-decoration: none; }
.vitrine .pied a:hover { color: var(--encre); text-decoration: underline; }

/* ---- Application : barre du haut et accueil des tuiles ---------------------------------- */
.barre { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--trait);
  background: color-mix(in srgb, var(--fond) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.barre-dedans { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.compte { position: relative; }
.compte > summary { list-style: none; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
  padding: 4px 8px 4px 4px; border-radius: 99px; border: 1px solid transparent;
  transition: background var(--duree) var(--courbe), border-color var(--duree) var(--courbe); }
.compte > summary::-webkit-details-marker { display: none; }
.compte > summary:focus { outline: none; }
.compte > summary:focus-visible { outline: 2px solid var(--anneau); outline-offset: 2px; border-radius: 99px; }
.compte > summary:hover, .compte[open] > summary { background: var(--surface); border-color: var(--trait); }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  font-size: 12px; font-weight: 650; letter-spacing: .02em; color: var(--sur-accent); background: var(--accent); }
.compte-nom { font-size: 14px; font-weight: 550; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .compte-nom { display: none; } }
.chevron { display: inline-flex; }
.chevron svg { width: 14px; height: 14px; color: var(--texte-3); transition: transform var(--duree) var(--courbe); }
.compte[open] .chevron svg { transform: rotate(180deg); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 264px; padding: 6px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-3);
  animation: apparait 140ms var(--courbe); }
@keyframes apparait { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.menu-entete { padding: 10px 10px 12px; border-bottom: 1px solid var(--trait); margin-bottom: 6px; }
.menu-entete strong { display: block; font-size: 14px; font-weight: 600; }
.menu-entete span { display: block; font-size: 13px; color: var(--texte-3); overflow-wrap: anywhere; }
.menu a, .menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: 8px 10px;
  font: inherit; font-size: 14px; color: var(--encre); text-decoration: none; text-align: left;
  background: none; border: 0; border-radius: var(--rayon-s); cursor: pointer; }
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { background: var(--surface-2); outline-offset: -2px; }
.menu svg { width: 16px; height: 16px; color: var(--texte-2); }
.menu form { margin: 0; }
.menu hr { height: 1px; border: 0; background: var(--trait); margin: 6px 0; }

.accueil { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 24px 80px; }
.accueil:focus { outline: none; }
.accueil-tete { display: grid; gap: .5rem; margin-bottom: 2.5rem; }
.surtitre { font-size: 13px; font-weight: 550; color: var(--texte-3); letter-spacing: .01em; }
.accueil-titre { font-size: 32px; font-weight: 650; }
@media (min-width: 768px) { .accueil-titre { font-size: 40px; } }
.accueil-intro { color: var(--texte-2); font-size: 16px; max-width: 40rem; }

.grille-tuiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); }
.carte-tuile { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 14px; height: 100%;
  padding: 20px; text-decoration: none; color: var(--encre);
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-1);
  transition: border-color var(--duree) var(--courbe), box-shadow var(--duree) var(--courbe), transform var(--duree) var(--courbe); }
.carte-tuile:hover { border-color: var(--trait-fort); box-shadow: var(--ombre-2); transform: translateY(-2px); }
.carte-tuile:focus-visible { outline-offset: 3px; border-radius: var(--rayon); }
.tuile-icone { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  color: var(--encre); background: var(--surface-2); border: 1px solid var(--trait); }
.tuile-icone svg { width: 20px; height: 20px; }
.tuile-corps { display: grid; gap: .3rem; align-content: start; }
.tuile-nom { font-size: 16px; font-weight: 600; letter-spacing: -0.012em; }
.tuile-desc { font-size: 14px; color: var(--texte-2); line-height: 1.5; }
.tuile-fleche { position: absolute; top: 20px; right: 20px; width: 18px; height: 18px; color: var(--texte-3);
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity var(--duree) var(--courbe), transform var(--duree) var(--courbe); }
.tuile-fleche svg { width: 18px; height: 18px; }
.carte-tuile:hover .tuile-fleche, .carte-tuile:focus-visible .tuile-fleche { opacity: 1; transform: none; color: var(--encre); }

/* Sections de l'accueil */
.accueil-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.accueil-tete-texte { display: grid; gap: .5rem; }
.section-accueil + .section-accueil { margin-top: 32px; }
.vitrine .section-titre { margin: 0 0 12px; font-family: var(--police); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); }

/* Tuile « lien externe » : compacte, sur une ligne (pastille, titre et domaine, flèche) */
.grille-tuiles + .grille-liens { margin-top: 16px; }
.grille-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); }
.carte-tuile.externe { grid-template-columns: 40px minmax(0, 1fr) 18px; grid-template-rows: none; align-items: center;
  gap: 12px; min-height: 64px; padding: 12px 14px; }
.carte-tuile.externe .tuile-corps { gap: 0; }
.carte-tuile.externe .tuile-nom { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-tuile.externe .tuile-fleche { position: static; opacity: 1; transform: none; }
.carte-tuile.externe:hover .tuile-fleche { transform: translate(2px, -2px); }
.tuile-image { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 1px solid var(--trait); background: var(--surface); }
@media (prefers-color-scheme: dark) { .tuile-image { border-color: transparent; } }
.pastille-lien { --t: #475569; display: grid; place-items: center; font-family: var(--police-titre); font-size: 17px; font-weight: 650;
  color: var(--t); background: color-mix(in srgb, var(--t) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--t) 22%, transparent);
  border-radius: 10px; }
@media (prefers-color-scheme: dark) { .pastille-lien { background: color-mix(in srgb, var(--t) 24%, var(--surface));
  color: color-mix(in srgb, var(--t) 45%, #fff); } }
.teinte-0 { --t: #4f46e5; } .teinte-1 { --t: #0e7490; } .teinte-2 { --t: #047857; } .teinte-3 { --t: #a16207; }
.teinte-4 { --t: #0369a1; } .teinte-5 { --t: #be185d; } .teinte-6 { --t: #6d28d9; } .teinte-7 { --t: #475569; }
.tuile-hote { display: block; font-size: 12.5px; color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.succes-v { margin-bottom: 1.25rem; padding: 12px 14px; font-size: 14px; color: var(--succes);
  background: color-mix(in srgb, var(--succes) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--succes) 28%, transparent);
  border-radius: var(--rayon-s); }

/* Mode « Organiser » */
.page-organiser .accueil { max-width: 768px; }
.js .page-organiser .accueil { padding-bottom: 120px; }
.vitrine .actions-organiser { margin: 0 0 20px; }
.page-organiser .accueil-tete { margin-bottom: 2rem; }
.organisation { display: grid; gap: 16px; }
.section-org { margin: 0; padding: 0; min-width: 0; border: 1px solid var(--trait); border-radius: var(--rayon);
  background: var(--surface); box-shadow: var(--ombre-1); }
.section-org.nouvelle { border-style: dashed; box-shadow: none; background: transparent; }
.section-org-tete { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--trait);
  background: var(--surface-2); border-radius: var(--rayon) var(--rayon) 0 0; }
.section-org.nouvelle .section-org-tete { background: transparent; }
.crayon { display: inline-flex; color: var(--texte-3); margin-left: -6px; pointer-events: none; }
.crayon svg { width: 14px; height: 14px; }
.bouton-icone:disabled { opacity: .35; cursor: default; background: transparent; border-color: transparent; }
.vitrine .element-actions a.lien-discret { text-decoration: underline; text-underline-offset: 3px; color: var(--texte-2); }
.vitrine input.section-org-titre { flex: 1; height: 38px; font-weight: 600; border-color: transparent; box-shadow: none; background: transparent; padding: 0 10px; }
.vitrine input.section-org-titre:hover { border-color: var(--trait-fort); }
.vitrine input.section-org-titre:focus { border-color: var(--encre); background: var(--surface); }
.liste-org { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; min-height: 56px; }
.element-org { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--rayon-s);
  background: var(--surface); border: 1px solid var(--trait); cursor: grab; }
.element-org:hover { border-color: var(--trait-fort); }
.element-org.glisse { opacity: .45; }
.liste-org.survol { background: color-mix(in srgb, var(--anneau) 6%, transparent); border-radius: var(--rayon-s); }
.liste-vide { display: none; padding: 10px; font-size: 13px; color: var(--texte-3); text-align: center; }
.liste-org > .liste-vide:only-child { display: block; }
.poignee { display: inline-flex; color: var(--texte-3); flex: none; }
.poignee svg { width: 16px; height: 16px; }
.vignette { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--trait); object-fit: cover; font-size: 14px; }
.vignette svg { width: 16px; height: 16px; }
.vignette.pastille-lien { border: 0; }
.element-texte { flex: 1; min-width: 0; display: grid; }
.element-texte strong { font-size: 14px; font-weight: 600; }
.element-texte span { font-size: 12.5px; color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.element-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.vitrine select { height: 34px; padding: 0 28px 0 10px; font: inherit; font-size: 13px; color: var(--encre);
  background: var(--surface); border: 1px solid var(--bord-champ); border-radius: var(--rayon-s); max-width: 11rem; }
.ordre { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--texte-3); }
.vitrine .ordre input { width: 56px; height: 34px; padding: 0 6px; border: 1px solid var(--bord-champ); border-radius: var(--rayon-s);
  font: inherit; background: var(--surface); color: var(--encre); }
.bouton-icone { width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent;
  border-radius: 7px; background: transparent; color: var(--texte-2); cursor: pointer; }
.bouton-icone:hover { background: var(--surface-2); border-color: var(--trait); color: var(--encre); }
.bouton-icone svg { width: 16px; height: 16px; }
.boutons-ordre { display: inline-flex; gap: 2px; }
.avec-script { display: none !important; }
.js .avec-script { display: inline-flex !important; }
.js .sans-script { display: none !important; }
.barre-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0; }
.js .barre-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 24px;
  border-top: 1px solid var(--trait); background: color-mix(in srgb, var(--fond) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.js .barre-actions .barre-actions-dedans { width: 100%; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.barre-actions-dedans { display: contents; }
.barre-actions-note { flex: 1; font-size: 13.5px; color: var(--texte-2); }
.barre-actions[hidden] { display: none !important; }
.succes-v.disparait { opacity: 0; transition: opacity .4s var(--courbe); }
.retablir { margin-top: 8px; display: flex; justify-content: flex-start; }
@media (max-width: 640px) {
  .element-org { flex-wrap: wrap; }
  .element-actions { width: 100%; justify-content: flex-end; }
}

/* Formulaire d'un lien */
.choix-roles { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.choix-roles legend { padding: 0; margin-bottom: 8px; }
.fichier-cache { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.choix-image-actions { display: grid; gap: 6px; justify-items: start; }
.vitrine .champ label.bouton-v { display: inline-flex; font-size: 14px; font-weight: 600; cursor: pointer; }
.nom-fichier { font-size: 13px; color: var(--texte-3); overflow-wrap: anywhere; }
.choix-image .fichier-cache:focus-visible + label { outline: 2px solid var(--anneau); outline-offset: 2px; }
.case-v { display: flex; align-items: center; gap: .6rem; font-size: 14.5px; font-weight: 450; cursor: pointer; }
.case-v input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.champ-aide { font-size: 13px; color: var(--texte-3); }
.choix-image { display: flex; align-items: center; gap: 14px; }
.apercu-image { width: 56px; height: 56px; flex: none; }
.apercu-image img, .apercu-image .pastille-lien { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; font-size: 22px; }
.vitrine input[type=file] { font: inherit; font-size: 13.5px; color: var(--texte-2); }
.vitrine input[type=file]::file-selector-button { height: 36px; margin-right: 10px; padding: 0 12px; font: inherit; font-size: 13.5px;
  font-weight: 550; color: var(--encre); background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--rayon-s); cursor: pointer; }
.bouton-lien.danger { color: var(--danger); }

.etat-vide { display: grid; justify-items: center; gap: .75rem; text-align: center; padding: 64px 24px;
  border: 1px dashed var(--trait-fort); border-radius: var(--rayon); color: var(--texte-2); }
.etat-vide .tuile-icone { width: 48px; height: 48px; }
.etat-vide strong { color: var(--encre); font-size: 16px; font-weight: 600; }

/* ---- Pages de texte (aide, mentions, confidentialité, accessibilité, compte) ------------ */
.texte { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.texte:focus { outline: none; }
.vitrine .texte a.retour { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem;
  font-size: 14px; color: var(--texte-2); text-decoration: none; font-weight: 500; }
.vitrine .texte a.retour:hover { color: var(--encre); }
.texte .retour svg { width: 15px; height: 15px; }
.texte h1 { font-size: 34px; font-weight: 650; margin-bottom: .75rem; }
.texte .chapo { font-size: 17px; line-height: 1.6; color: var(--texte-2); margin-bottom: 1rem; }
.texte section { padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--trait); }
.texte h2 { font-size: 19px; font-weight: 600; margin: 0 0 .6rem; scroll-margin-top: 80px; }
.texte p, .texte li { color: var(--texte-2); font-size: 15.5px; line-height: 1.7; }
.texte p + p { margin-top: .75rem; }
.texte ul { padding-left: 1.2rem; margin: .5rem 0 0; display: grid; gap: .35rem; }
.texte strong { color: var(--encre); font-weight: 600; }
.texte .encadre { margin-top: 2.5rem; padding: 16px 18px; border-radius: var(--rayon); background: var(--surface);
  border: 1px solid var(--trait); }
.texte .sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0 .5rem; padding: 0; list-style: none; }
.vitrine .sommaire a { display: inline-flex; height: 32px; align-items: center; padding: 0 12px; font-size: 13.5px;
  font-weight: 500; color: var(--texte-2); text-decoration: none; background: var(--surface);
  border: 1px solid var(--trait); border-radius: 99px; }
.vitrine .sommaire a:hover { color: var(--encre); border-color: var(--trait-fort); }
.page-compte .accueil { max-width: 516px; }
.vitrine .accueil a.retour { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem;
  font-size: 14px; color: var(--texte-2); text-decoration: none; font-weight: 500; }
.vitrine .accueil a.retour:hover { color: var(--encre); }
.accueil .retour svg { width: 15px; height: 15px; }

@media (prefers-reduced-motion: reduce) {
  .vitrine *, .vitrine *::before, .vitrine *::after { animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .bouton-v, .vitrine input, .carte-tuile, .menu, .panneau { border: 1px solid CanvasText; }
  .regles li::before { border-color: CanvasText; }
  .vitrine :focus-visible { outline-color: Highlight; }
}
@media print {
  .barre, .pied, .acces-haut, .panneau, .actions-v, .assurance, .boutons-ligne { display: none !important; }
  body.vitrine { background: #fff; color: #000; }
  .codes-v { box-shadow: none; }
}
