@charset "utf-8";
/* LA MICRO BY FLO · interface de l'espace de suivi des formalités (installation, connexion, espace de Florian).
   Direction « minimaliste » choisie par Florian le 30/11/2026 (maquettes A à F du canevas « Outil formalités ») : fond
   très clair, cartes blanches à filet fin, pas d'ombre dure, le bleu réservé à l'action principale et à l'élément actif.
   Les couleurs de marque viennent du Design System 2027 (bleu #3058E5, navy #192152, Inter).
   Le formulaire rempli par le client, lui, garde les couleurs du site : il aura sa propre feuille.

   Mode nuit : suit le réglage du système, sauf choix de Florian (data-theme="clair" ou "nuit" sur <html>, posé par le
   serveur). Les jetons du mode nuit sont donc écrits deux fois, à l'identique : garder les deux blocs en phase. */

@font-face {
  font-family: 'Inter';
  src: url('polices/inter.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --fond: #FAFAFC;
  --surface: #FFFFFF;
  --surface-2: #F5F6FA;
  --relief: #FFFFFF;
  --trait: #E2E5F0;
  --trait-champ: #8A90AB;
  --encre: #192152;
  --encre-2: #5A6184;
  --lien: #3058E5;
  --accent: #3058E5;
  --accent-survol: #2A4ECF;
  --accent-appui: #2342B0;
  --sur-accent: #FFFFFF;
  --accent-fond: #EEF2FE;
  --accent-encre: #2342B0;
  --focus: #3058E5;
  --erreur: #B42318;
  --erreur-fond: #FDECEC;
  --succes: #1B6B3A;
  --succes-fond: #E6F5EC;
  --alerte: #9A4B00;
  --alerte-fond: #FFF1E0;
  --ombre: 0 8px 24px rgba(17, 23, 58, .08);
  --ombre-fine: 0 1px 2px rgba(17, 23, 58, .12);

  --police: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --chasse-fixe: ui-monospace, SFMono-Regular, Menlo, monospace;
  --rayon: 8px;
  --rayon-carte: 12px;
  --hauteur: 44px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    color-scheme: dark;
    --fond: #0D1020;
    --surface: #151930;
    --surface-2: #1C2140;
    --relief: #2E3563;
    --trait: #2A3055;
    --trait-champ: #6A72A0;
    --encre: #ECEEF8;
    --encre-2: #A8AECE;
    --lien: #8FA6FF;
    --accent: #4468F2;
    --accent-survol: #5577F5;
    --accent-appui: #3058E5;
    --sur-accent: #FFFFFF;
    --accent-fond: #1D2757;
    --accent-encre: #B7C4FF;
    --focus: #B7C4FF;
    --erreur: #FFA59B;
    --erreur-fond: #3A1A1E;
    --succes: #86D9A6;
    --succes-fond: #13301F;
    --alerte: #F3B878;
    --alerte-fond: #3A2811;
    --ombre: 0 8px 24px rgba(0, 0, 0, .4);
    --ombre-fine: 0 1px 2px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="nuit"] {
  color-scheme: dark;
  --fond: #0D1020;
  --surface: #151930;
  --surface-2: #1C2140;
  --relief: #2E3563;
  --trait: #2A3055;
  --trait-champ: #6A72A0;
  --encre: #ECEEF8;
  --encre-2: #A8AECE;
  --lien: #8FA6FF;
  --accent: #4468F2;
  --accent-survol: #5577F5;
  --accent-appui: #3058E5;
  --sur-accent: #FFFFFF;
  --accent-fond: #1D2757;
  --accent-encre: #B7C4FF;
  --focus: #B7C4FF;
  --erreur: #FFA59B;
  --erreur-fond: #3A1A1E;
  --succes: #86D9A6;
  --succes-fond: #13301F;
  --alerte: #F3B878;
  --alerte-fond: #3A2811;
  --ombre: 0 8px 24px rgba(0, 0, 0, .4);
  --ombre-fine: 0 1px 2px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 600; line-height: 1.3; }
a { color: var(--lien); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Présent pour les lecteurs d'écran et les gestionnaires de mots de passe, invisible à l'écran. */
.masque {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.pile { display: flex; flex-direction: column; gap: 16px; }
.note { font-size: 14px; color: var(--encre-2); }
.surtitre { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); }

/* Marque : pastille bleue et nom de l'outil (le logo du site n'est jamais recomposé en texte). */
.marque { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.marque-pastille { flex: none; width: 26px; height: 26px; border-radius: 7px; background: #3058E5; }

/* Champs */
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ > label, .etiquette { font-size: 13px; font-weight: 600; }
.aide { font-size: 13px; color: var(--encre-2); }
.saisie {
  display: block; width: 100%; min-height: var(--hauteur);
  padding: 10px 12px;
  background: var(--surface); color: var(--encre);
  border: 1px solid var(--trait-champ); border-radius: var(--rayon);
  font-size: 16px; line-height: 1.3;
  -webkit-appearance: none; appearance: none;
}
.saisie:focus-visible { outline-offset: 1px; }
.saisie[aria-invalid="true"] { border-color: var(--erreur); box-shadow: inset 0 0 0 1px var(--erreur); }
.saisie--code { font-family: var(--chasse-fixe); font-size: 20px; letter-spacing: .3em; text-align: center; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--hauteur); padding: 0 16px;
  background: var(--accent); color: var(--sur-accent);
  border: 1px solid transparent; border-radius: var(--rayon);
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .16s ease-out;
}
.bouton:hover { background: var(--accent-survol); }
.bouton:active { background: var(--accent-appui); }
.bouton[disabled] { opacity: .6; cursor: default; }
.bouton--second { background: var(--surface); color: var(--encre); border-color: var(--trait-champ); }
.bouton--second:hover, .bouton--second:active { background: var(--surface-2); }

/* Messages */
.message-erreur {
  padding: 10px 12px; border-radius: var(--rayon);
  background: var(--erreur-fond); color: var(--erreur);
  font-size: 14px; font-weight: 500;
}
.message-succes {
  padding: 10px 12px; border-radius: var(--rayon);
  background: var(--succes-fond); color: var(--succes);
  font-size: 14px; font-weight: 500;
}

/* Pages d'entrée (installation, connexion) : une carte au milieu de l'écran. */
.porte {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.porte-carte {
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--trait); border-radius: var(--rayon-carte);
  box-shadow: var(--ombre);
}
.porte-carte section { display: flex; flex-direction: column; gap: 20px; }
.titre-bloc { display: flex; flex-direction: column; gap: 6px; }

/* Clé de la double authentification, à saisir à la main dans l'application. */
.cle {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 12px;
  background: var(--surface-2); border: 1px solid var(--trait); border-radius: var(--rayon);
}
.cle code { flex: 1; min-width: 0; font-family: var(--chasse-fixe); font-size: 14px; line-height: 1.6; word-spacing: .2em; overflow-wrap: anywhere; }

/* Bouton réduit à une icône (copier une valeur). Toujours avec un aria-label ; l'icône « fait » remplace la première
   une seconde et demie après le clic (classe est-fait posée par le script). */
.icone-bouton {
  flex: none; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--encre-2);
  border: 0; border-radius: var(--rayon); cursor: pointer;
  transition: background-color .16s ease-out, color .16s ease-out;
}
.icone-bouton:hover { background: var(--accent-fond); color: var(--accent-encre); }
.icone-bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icone-bouton .icone-fait { display: none; }
.icone-bouton.est-fait { color: var(--succes); }
.icone-bouton.est-fait .icone-fait { display: block; }
.icone-bouton.est-fait .icone-action { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
