/* =========================================================================
   Espace artisan - le systeme Mariline
   =========================================================================
   Feuille REPRISE des maquettes docs/travail/espace-artisan/ : l'ecran rendu
   doit ressembler a ce qui a ete valide, pas a une reinterpretation.

   MOBILE D'ABORD. L'artisan ouvre cet ecran debout sur un chantier : cibles
   de 44px, texte a 16px minimum, une seule colonne. Le bureau est le cas
   secondaire, traite en fin de fichier.
   ========================================================================= */
/* Les jetons viennent de la SOURCE UNIQUE. Ils etaient recopies ici : trois
   feuilles portaient la meme marque, et un changement de charte aurait du etre
   fait trois fois. Propshaft ne concatene pas, l'import coute une requete. */
/* Les jetons sont charges par le LAYOUT (stylesheet_link_tag "systeme/tokens"),
   pas par @import : Propshaft ne reecrit pas les chemins d'import, la cible
   serait en 404 une fois les assets digeres. */

    * { box-sizing: border-box; }
    body {
      margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.5;
      color: var(--encre-2); background: var(--fond);
      background-image: radial-gradient(circle at 1px 1px, var(--pointille) 1.2px, transparent 1.3px);
      background-size: 26px 26px; -webkit-font-smoothing: antialiased;
    }
    a { color: var(--ardoise); text-decoration: none; }
    a:hover { color: var(--ardoise-fonce); }
    h1, h2 { margin: 0; font-family: var(--titre); font-weight: 900; color: var(--encre);
             line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
    .stab { background: var(--stabilo-ambre); color: var(--encre); padding: 0.04em 0.24em;
            margin: 0 -0.06em; border-radius: var(--trace-surl);
            box-decoration-break: clone; -webkit-box-decoration-break: clone; }
    h1 .stab, h2 .stab { display: inline-block; transform: rotate(var(--penche)); }
    .main { font-family: var(--main); font-size: 21px; font-weight: 700;
            color: var(--feutre-lisible); transform: rotate(var(--penche-main));
            display: inline-block; line-height: 1.25; }
    .filet-marque { height: 3px; background: linear-gradient(90deg,
      var(--stabilo-ambre) 0%, var(--stabilo-rose) 38%, var(--stabilo-menthe) 68%, var(--ardoise) 100%); }
    .entete { background: var(--surface); border-bottom: 1px solid var(--filet);
              padding: 12px 18px; display: flex; align-items: center;
              justify-content: space-between; gap: 12px; }
    .fait { display: flex; align-items: center; gap: 7px; color: var(--gris); font-size: 15px; }
    .fait svg { width: 17px; height: 17px; flex: none; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
           min-height: var(--cible); padding: 13px 18px; border: 1.5px solid transparent;
           border-radius: var(--trace-doux); font-family: inherit; font-size: 16px;
           font-weight: 600; white-space: nowrap; cursor: pointer;
           transition: background 120ms, transform 120ms; }
    .btn svg { width: 18px; height: 18px; flex: none; }
    .btn-1 { background: linear-gradient(180deg, var(--ardoise-clair) 0%, var(--ardoise-fonce) 100%);
             color: var(--surface); box-shadow: var(--ombre-ambre); transform: rotate(var(--penche)); }
    .btn-1:hover { transform: rotate(0) scale(1.02); }
    .btn-2 { background: var(--surface); color: var(--encre); border-color: var(--encre); }
    .btn-2:hover { background: var(--fond); transform: scale(1.02); }
    @media (prefers-reduced-motion: reduce) {
      * { transition: none !important; }
      .btn-1, .main, h1 .stab, h2 .stab { transform: none !important; }
    }
    .fiche { border-top: 1px solid var(--filet); padding: 20px 18px;
             display: flex; flex-direction: column; gap: 13px; background: var(--surface); }
    .haut { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
    .client { font-family: var(--titre); font-weight: 700; font-size: 21px;
              letter-spacing: -0.01em; color: var(--encre); }
    .delai { font-size: 14px; color: var(--gris); white-space: nowrap; }
    .delai.presse { color: var(--alerte); font-weight: 600; }
    .besoin { margin: 0; font-size: 16px; color: var(--encre-2); line-height: 1.5; }
    .faits { display: flex; flex-wrap: wrap; gap: 7px 20px; }
    .rdv { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px;
           background: var(--stabilo-ambre); color: var(--encre); font-weight: 600; font-size: 15px;
           border-radius: var(--trace-doux); transform: rotate(var(--penche-plus)); }
    .rdv svg { width: 16px; height: 16px; flex: none; }
    .photos { display: flex; gap: 7px; }
    .photos span { width: 64px; height: 64px; border: 1.5px solid var(--encre);
                   border-radius: var(--trace); display: block; }
    .etat { display: flex; align-items: center; gap: 9px; font-size: 15px; }
    .etat .pt { width: 7px; height: 7px; border-radius: 999px; flex: none; }
    .etat.presse { color: var(--alerte); } .etat.presse .pt { background: var(--alerte); }
    .etat.regle { color: var(--succes); } .etat.regle .pt { background: var(--succes); }
    .actions { display: flex; gap: 10px; padding-top: 3px; }
    .actions .btn { flex-grow: 1; }
    .mois { border-top: 1px solid var(--filet); background: var(--fond-2);
            padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
    .chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .chiffre b { display: block; font-family: var(--titre); font-size: 30px; font-weight: 900;
                 line-height: 1; color: var(--encre); font-variant-numeric: tabular-nums; }
    .chiffre span { display: block; font-size: 14px; color: var(--gris); margin-top: 5px; line-height: 1.35; }
    .chiffre.cle b { background: linear-gradient(180deg, transparent 58%, var(--stabilo-ambre) 58%);
                     display: inline-block; padding: 0 4px; border-radius: var(--trace-surl); }
    @media (prefers-reduced-motion: reduce) { .rdv { transform: none !important; } }

/* --- Complements du portage -----------------------------------------------
   Ce que la maquette rendait en HTML statique et qui demande une regle une
   fois branche sur de vraies donnees. */

/* "Quitter" est un DELETE (donc un formulaire), mais il se lit comme un lien :
   un bouton borde ici attirerait l'oeil autant que "Appeler", alors que c'est
   l'action la moins importante de l'ecran. */
.form-nu { margin: 0; display: inline; }
.lien-nu {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; color: var(--ardoise);
  text-decoration: underline; min-height: var(--cible);
}
.lien-nu:hover { color: var(--ardoise-fonce); }

.marque { font-weight: 600; font-size: 15px; color: var(--encre); }
.chapeau { padding: 22px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.chapeau h1 { font-size: 27px; }
.dit { margin: 0; font-size: 16px; color: var(--gris); }
.liste { display: flex; flex-direction: column; }

/* Les photos du client : assez grandes pour qu'on voie le chantier, assez
   petites pour ne pas pousser les boutons hors de l'ecran. */
.photos img {
  width: 74px; height: 74px; object-fit: cover; flex: none;
  border-radius: 9px; border: 1px solid var(--filet);
}

/* L'etat vide n'est pas une erreur : il rassure. */
.vide { padding: 40px 18px; text-align: center; color: var(--gris); background: var(--surface);
        border-top: 1px solid var(--filet); }
.vide-titre { font-family: var(--titre); font-weight: 900; font-size: 19px;
              color: var(--encre); margin: 0 0 8px; }
.vide p { margin: 0; font-size: 15.5px; }

/* Le bilan du mois : ce que Mariline a fait, en chiffres qui se lisent tous
   dans le journal. */
.bilan { padding: 22px 18px 30px; background: var(--fond-2);
         border-top: 1px solid var(--filet); display: flex;
         flex-direction: column; gap: 12px; }
.chiffres { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.chiffres div { display: flex; align-items: baseline; gap: 7px; }
.chiffres b { font-family: var(--titre); font-weight: 900; font-size: 26px; color: var(--encre); }
.chiffres span { font-size: 14px; color: var(--gris); }

/* Les messages du serveur. */
.flash { padding: 13px 18px; font-size: 15.5px; background: var(--surface);
         border-bottom: 1px solid var(--filet); }
.flash-alerte { color: var(--alerte); }
.flash-succes { color: var(--succes); }
/* Le bandeau d'essai : pendant une demo seulement, au-dessus de l'ecran. */
.bandeau-essai { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
                 gap: 8px 14px; padding: 12px 18px; background: var(--surface);
                 border-bottom: 1px solid var(--filet); font-size: 15.5px; color: var(--encre); }
.bandeau-essai p { margin: 0; flex: 1 1 220px; }
.bandeau-essai a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
                   border-radius: 999px; background: var(--encre); color: var(--surface); font-weight: 700; }

/* --- Bureau ---------------------------------------------------------------
   L'ecran est pense pour le telephone. Sur un grand ecran on ne l'etale pas :
   on le centre, comme une colonne de lecture. */
@media (min-width: 720px) {
  /* TOUS les blocs de premier niveau, pas une liste a tenir a jour : chaque
     ecran ajoute depuis (l agenda, le lien vers l agenda, le dossier) avait
     ete oublie ici et s etirait sur toute la largeur. Constate le 13/09 sur
     l agenda et sur la barre "Mes rendez-vous", ou "1 a venir" se retrouvait
     a 2000px de son libelle. */
  body > * { max-width: 620px; margin-left: auto; margin-right: auto; }
  body > .entete, body > .liste .fiche { border-radius: 0; }
}

/* =========================================================================
   Le DOSSIER d'un client (lot D)
   =========================================================================
   Regles reprises de docs/travail/espace-artisan/Dossier.dc.html. Le tronc
   commun (jetons, boutons, entete) vit plus haut, on ne le redit pas. */

.retour { display: flex; align-items: center; gap: 8px; font-size: 15px;
          min-height: var(--cible); }
.retour svg { width: 18px; height: 18px; flex: none; }

/* LA MEME LARGEUR QUE LA LISTE. Sans limite, le dossier s'etirait sur tout
   l'ecran : les photos devenaient des bandes de 660x96 et les bulles du fil
   traversaient la page, ce qui ne ressemblait plus a une conversation.
   Constate en situation le 13/09. */
.dossier { padding: 22px 18px 40px; display: flex; flex-direction: column; gap: 18px; }
.dossier-tete { display: flex; flex-direction: column; gap: 6px; }
.dossier h1 { font-size: 27px; }

/* Le rendez-vous deja pose, a cote du bouton d'appel : l'artisan voit d'un
   coup d'oeil qu'il n'a rien a proposer. */
.rdv-pose { display: inline-flex; align-items: center; gap: 8px;
            padding: 11px 15px; background: var(--stabilo-ambre); color: var(--encre);
            border-radius: var(--trace-doux); font-weight: 600; font-size: 15.5px;
            transform: rotate(var(--penche-plus)); }
.rdv-pose svg { width: 17px; height: 17px; flex: none; }

.section { border-top: 1px solid var(--filet); padding: 20px 0 4px;
           display: flex; flex-direction: column; gap: 13px; }
.section h2 { font-size: 17px; font-weight: 700; font-family: var(--titre); }

/* Les coordonnees sont des LIENS : on appelle et on ecrit d'un tap. La cible
   fait 44px de haut, l'artisan tape avec des mains froides. */
.infos { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.info { display: flex; align-items: center; gap: 10px; color: var(--encre);
        min-height: var(--cible); text-decoration: none; }
a.info { text-decoration: underline; text-decoration-color: var(--filet-fort);
         text-underline-offset: 3px; }
a.info:hover { text-decoration-color: var(--ardoise); }
.info svg { width: 18px; height: 18px; flex: none; color: var(--gris); }

/* Les photos du chantier : trois par ligne, assez grandes pour qu'on VOIE la
   fuite. Elles s'ouvrent en grand d'un tap. */
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.galerie a { display: block; }
/* Carrees : une photo de chantier se lit mieux dans un cadre proche du carre
   que dans une bande. aspect-ratio plutot qu'une hauteur fixe, pour que la
   vignette suive la largeur de la colonne. */
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
               border: 1.5px solid var(--encre); border-radius: var(--trace);
               transition: transform 120ms ease; }
.galerie a:hover img { transform: scale(1.03); }

.fil { display: flex; flex-direction: column; gap: 14px; }
.bulle { display: flex; flex-direction: column; gap: 5px; }
.bulle .qui { font-size: 13px; color: var(--gris); }
.bulle .dit-bulle { padding: 12px 14px; font-size: 16px; color: var(--encre);
                    background: var(--fond-2); border-radius: var(--trace);
                    white-space: pre-wrap; overflow-wrap: anywhere;
                    max-width: 86%; width: fit-content; }

/* Les deux voix du fil. L'artisan doit voir QUI parle sans avoir a lire.
   Le client reste a GAUCHE sur fond neutre, Mariline passe a DROITE avec le
   trait d'encre : c'est la grammaire d'une messagerie, et l'artisan la
   connait deja par WhatsApp. Le choix precedent (tout a gauche) se defendait
   sur le papier, il ne se lisait pas comme une conversation.
   La bulle ne fait jamais toute la largeur : c'est ce qui donne la forme. */
.bulle.elle { align-items: flex-end; }
.bulle.elle .dit-bulle { background: var(--surface); border: 1.5px solid var(--encre); }
.bulle.elle .qui { color: var(--encre); font-weight: 600; }

/* Sous 30rem la colonne est deja etroite : l'alternance y volerait la moitie
   de la largeur utile sans rien apprendre de plus. */
@media (max-width: 30rem) {
  .bulle.elle { align-items: stretch; }
  .bulle .dit-bulle { max-width: 100%; }
}

/* Ce que le fil ne contient pas encore : on le DIT, plutot que de laisser
   croire qu'il est complet. */
.mention { margin: 0; font-size: 13.5px; color: var(--gris); font-style: italic; }

/* =========================================================================
   L'AGENDA (lot E)
   =========================================================================
   Regles reprises de docs/travail/espace-artisan/Agenda.dc.html.
   L'HEURE est le point d'entree de la lecture : elle est en gros, a gauche,
   alignee d'une ligne a l'autre pour qu'on balaie la colonne du regard. */

.agenda { padding: 22px 18px 40px; display: flex; flex-direction: column; gap: 20px; }
.agenda-tete { display: flex; flex-direction: column; gap: 8px; }
.agenda h1 { font-size: 27px; }

.jour { display: flex; flex-direction: column; gap: 10px; }
.jour-titre { font-size: 14px; font-weight: 600; color: var(--gris);
              font-family: var(--police); margin: 0; }

.rv { display: flex; gap: 14px; padding: 15px 16px; background: var(--surface);
      border: 1.5px solid var(--encre); border-radius: var(--trace);
      text-decoration: none; color: inherit;
      transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1); }
.rv:hover { transform: translateY(-1px); }
/* Le PROCHAIN rendez-vous porte l'ombre ambre : c'est celui qui compte
   aujourd'hui, les autres sont du contexte. */
.rv.prochain { box-shadow: var(--ombre-ambre); }

.heure { font-family: var(--titre); font-weight: 900; font-size: 21px;
         color: var(--encre); flex: none; min-width: 3.4em; letter-spacing: -0.01em; }
.rv-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rv-qui { font-weight: 600; font-size: 16.5px; color: var(--encre); }
.rv-quoi { font-size: 15px; color: var(--encre-2); overflow-wrap: anywhere; }
.rv .fait { font-size: 14px; }

/* Le raccourci vers l'agenda, depuis l'ecran des demandes. */
.vers-agenda { display: flex; align-items: center; justify-content: space-between;
               gap: 12px; padding: 15px 18px; background: var(--surface);
               border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
               text-decoration: none; color: var(--encre); font-weight: 600;
               min-height: var(--cible); }
.vers-agenda:hover { background: var(--fond); }
.vers-agenda .compte { font-weight: 400; color: var(--gris); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .rv { transition: none; }
  .rv:hover { transform: none; }
}

/* Un bouton SEUL ne s'etire pas sur toute la largeur : la maquette en pose
   deux cote a cote, mais une demande sans rendez-vous n'a que "Appeler". Un
   bouton pleine largeur se lit comme une barre, pas comme une action. */
.dossier .actions .btn:only-child { flex-grow: 0; }

/* =========================================================================
   La MISE EN ROUTE (lot G2)
   =========================================================================
   La porte que l'artisan franchit une fois. Reprend le tronc commun (jetons,
   boutons, entete) : on ne redit que ce qui lui est propre. */

.route { padding: 20px 18px 34px; display: flex; flex-direction: column; gap: 22px; }
.route h1 { font-size: 26px; }

.champ { display: flex; flex-direction: column; gap: 9px; border: 0; padding: 0; margin: 0; }
.champ > .intitule, .champ > legend { font-family: var(--titre); font-weight: 900;
                                     font-size: 17px; color: var(--encre); padding: 0;
                                     display: block; }
.aide { margin: -3px 0 0; font-size: 14.5px; color: var(--gris); }
.facultatif { font-family: var(--police); font-weight: 400; font-size: 14px; color: var(--gris); }

/* Les dix metiers : des cibles VISIBLES et non un menu deroulant, qui les
   cacherait derriere une feuille systeme au moment precis ou il faut choisir. */
.metiers { display: flex; flex-wrap: wrap; gap: 8px; }
.metier { display: inline-flex; align-items: center; min-height: var(--cible);
          padding: 9px 15px; background: var(--surface);
          border: 1.5px solid var(--filet-fort); border-radius: var(--trace-doux);
          font-size: 15.5px; color: var(--encre-2); cursor: pointer; }
.metier:hover { border-color: var(--encre); }
.metier.pris { background: var(--ardoise); border-color: var(--ardoise-fonce);
               color: var(--surface); font-weight: 600; }
/* Le radio est masque mais reste FOCUSABLE : sans cela, la porte deviendrait
   infranchissable au clavier. Le contour se reporte sur le label. */
.puce-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.metier:has(.puce-radio:focus-visible) { outline: 2px solid var(--ardoise); outline-offset: 2px; }
.metier:has(.puce-radio:checked) { background: var(--ardoise); border-color: var(--ardoise-fonce);
                                   color: var(--surface); font-weight: 600; }

.route input[type="text"] { width: 100%; min-height: var(--cible); padding: 12px 14px;
                            font-family: inherit; font-size: 16px; color: var(--encre);
                            background: var(--surface); border: 1.5px solid var(--filet-fort);
                            border-radius: var(--trace-doux); }
.route input[type="text"]:focus { outline: 2px solid var(--ardoise); outline-offset: 1px;
                                  border-color: var(--ardoise); }
.route input.rempli { border-color: var(--encre); }

/* Ce que Mariline dit d'elle-meme : sa voix, dans une bulle. */
.mariline { display: flex; gap: 11px; align-items: flex-start; background: var(--fond-2);
            border: 1px solid var(--filet); border-radius: var(--trace); padding: 14px 16px; }
.mariline .rond { width: 32px; height: 32px; flex: none; display: grid; place-items: center;
                  background: var(--stabilo-ambre); border-radius: 50%;
                  font-family: var(--titre); font-weight: 900; font-size: 16px; color: var(--encre); }
.mariline p { margin: 0; font-size: 15.5px; color: var(--encre-2); }

.pied { display: flex; flex-direction: column; gap: 10px; }
.pied .btn { width: 100%; }

@media (min-width: 720px) {
  /* La porte rend son PROPRE entete : sans lui, il s'etalerait sur toute la
     largeur pendant que le formulaire reste dans sa colonne. */
  body > .route, body > .flash, body:has(.route) > .entete {
    max-width: 620px; margin-left: auto; margin-right: auto;
  }
}

/* Une donnée relevée qu'on montre sans la rendre modifiable : l'adresse vient
   de la fiche Google, la corriger demanderait de la resaisir en entier. On la
   montre pour qu'il puisse SIGNALER qu'elle est fausse. */
.route .releve { margin: 0; padding: 12px 14px; font-size: 16px; color: var(--encre-2);
                 background: var(--fond-2); border: 1px solid var(--filet);
                 border-radius: var(--trace-doux); }
.route .champ > .intitule { display: block; }

/* Ajouter le rendez-vous a son agenda : un telechargement, pas une action qui
   change l etat. Le lien reste discret a cote de la date, il ne lui vole pas
   la vedette. */
.agenda-lien {
  font-size: 14px;
  color: var(--ardoise);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}
.agenda-lien:hover { color: var(--ardoise-fonce); }

/* =========================================================================
   L'ESPACE EMPLOYEUR et ses portes (lots A, E, F du 15/11)
   =========================================================================
   Maquette validee « Mon espace employeur » : telephone d'abord a 390 px,
   cibles de 44 px, uniquement des jetons de systeme/tokens.css. Prefixe ee-
   pour ne rien heriter des regles generiques de l'ecran des demandes. */
.ee-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--esp-3);
           padding: var(--esp-3) 18px; background: var(--fond); border-bottom: 1px solid var(--filet); }
.ee-logo { display: flex; align-items: center; gap: var(--esp-2); font-family: var(--titre);
           font-weight: var(--graisse-titre); font-size: var(--taille-xl); color: var(--encre); }
.ee-m { font-family: var(--main); font-size: 28px; color: var(--feutre); line-height: 1; }
.ee-lien-tete, .ee-retour { display: inline-flex; align-items: center; gap: 6px; min-height: var(--cible);
           font-size: 15px; font-weight: var(--graisse-demi); color: var(--ardoise); }
.ee-retour svg { width: 20px; height: 20px; }
.ee-lien-tete.form-nu { margin: 0; }
.ee-page { max-width: 34rem; margin: 0 auto; padding: 26px 18px 40px;
           display: flex; flex-direction: column; gap: 30px; }
.ee-etroite { gap: var(--esp-6); }
.ee-accueil { display: flex; flex-direction: column; gap: 10px; }
.ee-accueil h1 { font-size: 34px; line-height: 1.08; }
.ee-accueil .main { align-self: flex-start; }
.ee-dit { margin: 0; color: var(--encre-2); font-size: 15px; }
.ee-note { margin: 0; font-size: var(--taille-xs); color: var(--gris); }
.ee-avis { margin: 0; padding: var(--esp-3) var(--esp-4); border-radius: var(--trace-doux);
           font-size: 15px; color: var(--encre); }
.ee-avis-alerte { background: var(--alerte-pale); border: 1.5px solid var(--alerte); }
.ee-avis-succes { background: var(--succes-pale); border: 1.5px solid var(--succes); }
.ee-carte { background: var(--surface); border: 1.5px solid var(--encre); border-radius: var(--trace);
            padding: 18px; display: flex; flex-direction: column; gap: var(--esp-3); }
.ee-form { display: flex; flex-direction: column; gap: 14px; }
.ee-champ { display: flex; flex-direction: column; gap: 6px; }
.ee-champ label, .ee-champ .ee-libelle { font-size: 15px; font-weight: var(--graisse-demi); color: var(--encre); }
.ee-champ input[type=email], .ee-champ input[type=password], .ee-champ input[type=text],
.ee-champ input[type=tel], .ee-champ input[type=time], .ee-champ textarea, .ee-champ select {
  font: inherit; min-height: var(--cible); padding: 10px 12px; color: var(--encre);
  background: var(--surface); border: 1.5px solid var(--filet-fort); border-radius: 10px; width: 100%; }
.ee-champ textarea { resize: vertical; }
.ee-champ input:focus-visible, .ee-champ textarea:focus-visible,
.ee-page a:focus-visible, .ee-page button:focus-visible, .ee-page input:focus-visible {
  outline: 3px solid var(--feutre-lisible); outline-offset: 2px; }
.ee-plein { width: 100%; min-height: 50px; }
.ee-mdp summary { min-height: var(--cible); display: flex; align-items: center; cursor: pointer;
                  font-weight: var(--graisse-demi); color: var(--ardoise); }
.ee-mdp[open] summary { margin-bottom: var(--esp-2); }
.ee-lien-bas { margin: 0; }
.ee-lien-bas a, .ee-ligne-mdp a { display: inline-flex; align-items: center; min-height: var(--cible);
                  font-size: 15px; font-weight: var(--graisse-demi); }
.ee-ligne-mdp { margin: 0; }

/* --- Le tableau de bord (lot E) --------------------------------------- */
.ee-surligne { background: linear-gradient(transparent 58%, var(--stabilo-ambre) 58%, var(--stabilo-ambre) 92%, transparent 92%);
               padding: 0 3px; }
.ee-pastille { display: inline-flex; flex-wrap: wrap; align-self: flex-start; align-items: center; gap: var(--esp-2);
               margin: 0; padding: 6px 12px; background: var(--surface); border: 1.5px solid var(--filet-fort);
               border-radius: var(--rond); font-size: var(--taille-sm); color: var(--encre-2); }
.ee-point { width: 9px; height: 9px; border-radius: var(--rond); background: var(--succes); flex: none; }
.ee-pastille-alerte { background: var(--alerte-pale); border-color: var(--alerte); color: var(--alerte-fonce);
                      border-radius: var(--trace-doux); font-weight: var(--graisse-demi); }
.ee-pastille-alerte .ee-point { background: var(--alerte); }
.ee-pastille-alerte a { display: inline-flex; align-items: center; min-height: var(--cible); color: var(--alerte-fonce);
                        text-decoration: underline; }
.ee-page h2 { font-size: 22px; }
.ee-section { display: flex; flex-direction: column; gap: var(--esp-3); }
.ee-section > h2 { font-size: var(--taille-2xl); }
.ee-demarrer { box-shadow: var(--ombre-ambre); gap: 14px; }
.ee-ligne-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ee-compte { font-weight: var(--graisse-grasse); font-size: 15px; font-variant-numeric: tabular-nums; color: var(--encre); }
.ee-jauge { height: 8px; background: var(--filet); border-radius: var(--rond); overflow: hidden; }
.ee-jauge div { height: 100%; background: var(--succes); }
.ee-coches, .ee-inclus { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ee-coches li, .ee-inclus li { display: flex; gap: 10px; align-items: center; color: var(--encre); }
.ee-coches li svg, .ee-inclus li svg { color: var(--succes); flex: none; }
.ee-coches li.suivant { font-weight: var(--graisse-grasse); }
.ee-rond { width: 18px; height: 18px; margin: 0 1px; border: 2px solid var(--filet-fort); border-radius: var(--rond); flex: none; }
.ee-coches li.suivant .ee-rond { border-color: var(--feutre-lisible); }
.ee-main-note { margin: 0; font-family: var(--main); font-size: 20px; line-height: 1.2; color: var(--feutre-lisible); }
.ee-vers-demandes { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--esp-3);
                    color: var(--encre); box-shadow: var(--ombre-papier); }
.ee-vers-demandes:hover { color: var(--encre); }
.ee-vers-demandes svg { color: var(--ardoise); flex: none; }
.ee-vers-texte { display: flex; flex-direction: column; gap: 4px; }
.ee-vers-titre { font-family: var(--titre); font-weight: var(--graisse-titre); font-size: 22px; }
.ee-vers-compte { font-size: 15px; color: var(--encre-2); }
.ee-vers-compte .stab { font-weight: var(--graisse-grasse); }
.ee-offre { border-color: var(--ardoise); }
.ee-offre-nom { font-weight: var(--graisse-grasse); font-size: 17px; color: var(--encre); }
.ee-prix { font-weight: var(--graisse-grasse); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--encre); }
.ee-prix span { font-weight: var(--graisse-normale); color: var(--gris); }
.ee-inclus { font-size: var(--taille-sm); gap: var(--esp-2); }
.ee-inclus li { align-items: flex-start; }
.ee-inclus li svg { width: 18px; height: 18px; margin-top: 2px; }
.ee-plus-loin { display: flex; flex-direction: column; gap: 10px; padding: var(--esp-4);
                background: var(--succes-pale); border: 1.5px dashed var(--succes); border-radius: var(--trace); }
.ee-plus-loin p { margin: 0; font-size: var(--taille-sm); color: var(--encre-2); }
.ee-main-vert { font-family: var(--main); font-size: var(--taille-main); line-height: 1.1; color: var(--succes); font-weight: var(--graisse-grasse); }
.ee-paiement { gap: 6px; }
.ee-montant { font-family: var(--titre); font-weight: var(--graisse-titre); font-size: 26px; color: var(--encre);
              font-variant-numeric: tabular-nums; }
.ee-montant span { font-family: var(--police); font-weight: var(--graisse-normale); font-size: 15px; color: var(--gris); }
.ee-lien-bouton { min-height: var(--cible); padding: 0; background: none; border: 0; font: inherit; font-size: 15px;
                  font-weight: var(--graisse-demi); color: var(--ardoise); cursor: pointer; text-align: left;
                  text-decoration: underline; text-underline-offset: 3px; }
.ee-factures { padding: 6px 18px; gap: 0; }
.ee-facture { display: flex; justify-content: space-between; align-items: center; gap: 10px;
              padding: var(--esp-3) 0; border-bottom: 1px solid var(--filet); }
.ee-facture > div { display: flex; flex-direction: column; }
.ee-facture-mois { font-weight: var(--graisse-grasse); color: var(--encre); }
.ee-pdf { display: inline-flex; align-items: center; gap: 6px; min-height: var(--cible); font-weight: var(--graisse-demi);
          font-size: 15px; white-space: nowrap; }
.ee-factures-suite { padding: var(--esp-3) 0; }
.ee-fiche { margin: 0; padding: 4px 18px; gap: 0; font-size: 15px; }
.ee-fiche div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--filet); }
.ee-fiche div:last-child { border-bottom: 0; }
.ee-fiche dt { color: var(--gris); flex: none; }
.ee-fiche dd { margin: 0; font-weight: var(--graisse-demi); color: var(--encre); text-align: right; overflow-wrap: anywhere; }
.ee-fiche dd.ee-manque { font-weight: var(--graisse-grasse); color: var(--feutre-lisible); }
.ee-horaire { display: block; font-variant-numeric: tabular-nums; }
.ee-liens-moi { display: flex; flex-wrap: wrap; gap: 0 var(--esp-5); }
.ee-postit { display: flex; flex-direction: column; gap: var(--esp-3); padding: 18px;
             background: color-mix(in srgb, var(--stabilo-ambre) 22%, var(--surface));
             border: 1.5px solid var(--encre); border-radius: var(--trace); box-shadow: var(--ombre-papier);
             transform: rotate(var(--penche)); }
.ee-postit p { margin: 0; font-size: 15px; color: var(--encre-2); }
.ee-postit h2 { font-size: var(--taille-2xl); line-height: 1.15; }
.ee-postit .main { align-self: flex-start; }
.ee-etapes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--esp-2);
             font-size: var(--taille-sm); color: var(--encre); }
.ee-etapes li { display: flex; gap: 10px; align-items: flex-start; }
.ee-num { flex: none; width: 24px; height: 24px; border-radius: var(--rond); background: var(--ardoise); color: var(--surface);
          font-weight: var(--graisse-grasse); font-size: var(--taille-xs); display: flex; align-items: center; justify-content: center; }
.ee-pied { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1.5px dashed var(--filet-fort);
           font-size: var(--taille-sm); color: var(--encre-2); }
.ee-pied p { margin: 0; }
.ee-arreter { display: inline-flex; align-self: flex-start; align-items: center; min-height: var(--cible);
              font-size: var(--taille-sm); color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
.ee-page .btn-2.ee-plein { border-color: var(--ardoise); color: var(--ardoise); }
/* Les horaires */
.ee-horaires { gap: var(--esp-3); }
.ee-jour { gap: var(--esp-2); padding: var(--esp-3) var(--esp-4); }
.ee-jour legend { font-weight: var(--graisse-grasse); color: var(--encre); padding: 0; float: left; width: 100%; margin-bottom: var(--esp-1); }
.ee-case { display: inline-flex; align-items: center; gap: 10px; min-height: var(--cible); font-size: 15px; color: var(--encre); }
.ee-case input { width: 22px; height: 22px; accent-color: var(--ardoise); }
.ee-plage { display: flex; align-items: center; gap: var(--esp-2); flex-wrap: wrap; font-size: 15px; }
.ee-plage input { font: inherit; min-height: var(--cible); padding: 6px 10px; border: 1.5px solid var(--filet-fort);
                  border-radius: 10px; background: var(--surface); color: var(--encre); }
.ee-jour:has(input[type=checkbox]:not(:checked)) .ee-plage { opacity: .45; }
/* L'arret de l'abonnement (lot F) */
.ee-rembourse { gap: 6px; }
.ee-rembourse-titre { font-weight: var(--graisse-grasse); font-size: 15px; color: var(--encre); }
.ee-raisons { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ee-raisons legend { font-family: var(--titre); font-weight: var(--graisse-titre); font-size: 21px; color: var(--encre);
                     padding: 0; margin-bottom: var(--esp-1); }
.ee-raisons .ee-note { margin-bottom: var(--esp-1); }
.ee-raison { display: flex; gap: 10px; align-items: center; min-height: var(--cible); padding: 6px 12px;
             background: var(--surface); border: 1.5px solid var(--filet-fort); border-radius: 10px;
             font-size: 15px; color: var(--encre); cursor: pointer; }
.ee-raison input { width: 20px; height: 20px; flex: none; accent-color: var(--ardoise); }
.ee-raison:has(input:checked) { border-color: var(--ardoise); background: var(--ardoise-pale); }
.ee-btn-arret { background: var(--feutre-lisible); color: var(--surface); border-radius: var(--trace); }
.ee-btn-arret:hover { background: var(--alerte-fonce); }

/* --- La demo guidee dans Mon espace (lot F du 26/11, maquette de l'etape 4) ---
   La carte de progression en tete, les demandes jouees marquees « Exemple »,
   ce que Mariline fait et ne fait pas. Un client abonne n'en voit rien. */
.ee-demo { display: grid; gap: 10px; border: 2px solid var(--encre); }
.ee-demo h2 { margin: 0; }
.ee-demo-compte { font-weight: 600; color: var(--succes); white-space: nowrap; }
.ee-demo-segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.ee-demo-seg { height: 6px; border-radius: 3px; background: var(--filet); }
.ee-demo-seg.est-faite { background: var(--succes); }
.ee-demo .ee-note { margin: 0; }
.ee-exemple {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 6px; vertical-align: middle;
  background: var(--stabilo-ambre); color: var(--encre); font-size: 12px; font-weight: 700;
}
.ee-demo-fait { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ee-demo-fait .ee-carte { display: grid; gap: 4px; }
.ee-demo-fait p { margin: 0; font-size: 14px; line-height: 1.45; }
