/* ============================================
   iD4Connect : Espace client
   Chargé seulement sur /espace-client/ (mu-plugin id4-espace-client).
   Tout en variables du thème : clair et sombre suivent sans règle en plus.
   ============================================ */

.ec { background: var(--bg); color: var(--t9); padding: 40px 0 88px; min-height: calc(100vh - var(--hh)); }
.ec-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.ec a { text-decoration: none; }
.ec-ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Cartes, titres, textes ── */
.ec-carte { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.ec-bloc { padding: 24px; }
.ec-bloc + .ec-bloc { margin-top: 20px; }
.ec-bloc-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ec-bloc-tete .ec-bloc-titre { margin-bottom: 0; }
.ec-bloc-titre { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--t9); margin-bottom: 16px; }
.ec-bloc-titre .ec-ico { color: var(--orange); }
.ec-sous-titre { font-size: 14px; font-weight: 700; color: var(--t9); margin-bottom: 14px; }
.ec-grand { font-size: 18px; font-weight: 700; color: var(--t9); line-height: 1.3; margin-bottom: 12px; }
.ec-petit { font-size: 13px; color: var(--t5); line-height: 1.6; }
.ec-note { font-size: 12.5px; color: var(--t5); }
.ec-vide-texte { font-size: 14px; color: var(--t5); line-height: 1.6; padding: 6px 0; }
.ec-surtitre { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-txt); margin-bottom: 10px; }

.ec-lien { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13.5px; font-weight: 600; color: var(--orange-txt); margin-top: 6px; }
.ec-bloc-tete .ec-lien { margin-block: -10px; }
.ec-lien .ec-ico { width: 15px; height: 15px; transition: transform var(--tr); }
.ec-lien:hover { color: var(--orange); }
.ec-lien:hover .ec-ico { transform: translateX(2px); }
.ec-lien-discret { font-size: 13px; color: var(--t5); }
.ec-lien-discret:hover { color: var(--orange-txt); text-decoration: underline; }

/* ── Boutons (cibles de 44 px) ── */
.ec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; font-family: var(--font); font-size: 14px; font-weight: 600; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; transition: background var(--tr), border-color var(--tr), color var(--tr); white-space: nowrap; }
.ec-btn .ec-ico { width: 16px; height: 16px; }
.ec-btn--principal { background: var(--orange); color: #fff; }
.ec-btn--principal:hover { background: var(--orange-d); }
.ec-btn--secondaire { background: var(--card); color: var(--t9); border-color: var(--border-s); }
.ec-btn--secondaire:hover { border-color: var(--orange); color: var(--orange-txt); }
.ec-btn--large { width: 100%; min-height: 48px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.3; padding-block: 8px; }
.ec-btn--petit { min-height: 40px; padding: 0 14px; font-size: 13px; }
.ec-btn:disabled { opacity: .5; cursor: not-allowed; }
.ec-btn:focus-visible, .ec-nav-lien:focus-visible, .ec-ligne:focus-visible, .ec-onglet:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ── Messages ── */
.ec-alerte { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.5; margin-bottom: 18px; border: 1px solid; }
.ec-alerte--succes { background: var(--green-pale); border-color: var(--green-border); color: var(--t9); }
.ec-alerte--erreur { background: var(--red-pale); border-color: var(--red-border); color: var(--t9); }
.ec-alerte--info { background: var(--section); border-color: var(--border); color: var(--t7); }
.ec-alerte--attention { background: var(--orange-pale); border-color: var(--orange-border); color: var(--t9); }

/* ── Formulaires ── */
.ec-form { display: flex; flex-direction: column; gap: 16px; }
.ec-form-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ec-champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ec-champ-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ec-champ label, .ec-champ-tete label { font-size: 13px; font-weight: 600; color: var(--t7); }
.ec-champ input, .ec-champ select, .ec-champ textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font-family: var(--font); font-size: 15px; color: var(--t9);
  background: var(--card); border: 1px solid var(--border-s); border-radius: var(--r-sm); outline: none;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.ec-champ textarea { resize: vertical; line-height: 1.6; min-height: 120px; }
.ec-champ input:focus, .ec-champ select:focus, .ec-champ textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-pale); }
.ec-champ input[readonly] { background: var(--section); color: var(--t5); }
.ec-aide-champ { font-size: 12.5px; color: var(--t5); line-height: 1.5; }
.ec-form-pied { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.ec-mdp { position: relative; }
.ec-mdp input { padding-inline-end: 96px; }
.ec-mdp-voir { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 12px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--t5); background: transparent; border: 0; border-radius: var(--r-xs); cursor: pointer; }
.ec-mdp-voir:hover { color: var(--orange-txt); background: var(--section); }

.ec-case { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; color: var(--t7); cursor: pointer; }
.ec-case input { width: 18px; height: 18px; accent-color: var(--orange); }

/* ═══ CONNEXION ═══ */
.ec-connexion { display: flex; align-items: center; padding: 56px 0 96px; }
.ec-connexion .ec-wrap { width: 100%; }
.ec-connexion-grille { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 64px; align-items: center; }
.ec-connexion-carte { padding: 40px; }
.ec-connexion-carte h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--t9); line-height: 1.15; }
.ec-intro { font-size: 15px; color: var(--t5); line-height: 1.6; margin: 10px 0 26px; }
.ec-separateur { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--t4); font-size: 13px; }
.ec-separateur::before, .ec-separateur::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.ec-demo { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ec-demo .ec-note { text-align: center; }

.ec-connexion-aside h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--t9); margin-bottom: 28px; max-width: 460px; }
.ec-atouts { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.ec-atouts li { display: flex; gap: 16px; align-items: flex-start; }
.ec-atout-ico { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--orange-pale); border: 1px solid var(--orange-border); color: var(--orange-txt); }
.ec-atout-ico svg { width: 20px; height: 20px; }
.ec-atouts strong { display: block; font-size: 15px; color: var(--t9); margin-bottom: 3px; }
.ec-atouts p { font-size: 14px; color: var(--t5); line-height: 1.6; max-width: 440px; }
.ec-aside-pied { margin-top: 32px; padding-top: 22px; border-top: 1px dashed var(--border-s); font-size: 14px; color: var(--t5); }
.ec-aside-pied a { color: var(--orange-txt); font-weight: 600; }
.ec-aside-pied a:hover { text-decoration: underline; }

/* ═══ ESPACE CONNECTÉ ═══ */
.ec-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; align-items: start; }

.ec-cote { position: sticky; top: calc(var(--hh) + 24px); }
.ec-identite { display: flex; align-items: center; gap: 12px; padding: 4px 4px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.ec-avatar { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--t9); color: var(--card); font-weight: 700; font-size: 15px; }
.ec-avatar--petit { width: 28px; height: 28px; font-size: 12px; border-radius: 6px; }
.ec-identite-texte { min-width: 0; }
.ec-identite-texte strong { display: block; font-size: 14px; color: var(--t9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-identite-texte span { display: block; font-size: 12.5px; color: var(--t5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ec-nav { display: flex; flex-direction: column; gap: 2px; }
.ec-nav-lien { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--t7); border-radius: var(--r-sm); transition: background var(--tr), color var(--tr); }
.ec-nav-lien:hover { background: var(--section); color: var(--t9); }
.ec-nav-lien.is-actif { background: var(--card); color: var(--t9); font-weight: 600; box-shadow: var(--sh-sm); border: 1px solid var(--border); }
.ec-nav-lien.is-actif .ec-ico { color: var(--orange); }
.ec-nav-lien > span:not(.ec-compte) { flex: 1; }
.ec-compte { min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; }
.ec-nav-sortie { margin-top: 12px; color: var(--t5); }

.ec-contenu { min-width: 0; }
.ec-bandeau-demo { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 12px 16px; margin-bottom: 20px; border-radius: var(--r-sm); background: var(--orange-pale); border: 1px solid var(--orange-border); font-size: 14px; line-height: 1.5; color: var(--t7); }
.ec-bandeau-demo strong { color: var(--t9); }

.ec-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ec-entete h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--t9); }
.ec-entete p { font-size: 15px; color: var(--t5); margin-top: 6px; line-height: 1.5; }
.ec-entete--demande { align-items: flex-start; }
.ec-entete--demande h1 { font-size: 24px; }
.ec-retour { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13.5px; font-weight: 600; color: var(--t5); margin-bottom: 8px; }
.ec-retour:hover { color: var(--orange-txt); }
.ec-retour .ec-ico { width: 16px; height: 16px; }

.ec-grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.ec-grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.ec-grille-3 .ec-bloc + .ec-bloc, .ec-grille-2 .ec-bloc + .ec-bloc { margin-top: 0; }
.ec-grille-2--interne { gap: 40px; margin-bottom: 0; }

.ec-liste-def { display: flex; flex-direction: column; gap: 8px; }
.ec-liste-def div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ec-liste-def dt { color: var(--t5); }
.ec-liste-def dd { color: var(--t9); font-weight: 600; text-align: end; }

.ec-echeance { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-s); }
.ec-echeance-texte { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--t5); margin-bottom: 8px; }
.ec-echeance-texte strong { color: var(--t9); }
.ec-jauge { height: 6px; background: var(--section); border-radius: 3px; overflow: hidden; }
.ec-jauge span { display: block; height: 100%; background: var(--orange); border-radius: 3px; }

/* Compteurs de demandes : une ligne par état, libellé à gauche, chiffre à droite, chaque ligne mène à la liste filtrée. */
.ec-bloc--demandes { display: flex; flex-direction: column; }
.ec-bloc--demandes .ec-lien { margin-top: auto; align-self: flex-start; }
.ec-compteurs { list-style: none; margin: -6px 0 12px; }
.ec-compteurs li + li { border-top: 1px solid var(--border); }
.ec-compteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 12px; margin: 0 -12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--t7); transition: background var(--tr), color var(--tr); }
.ec-compteur strong { font-size: 22px; font-weight: 800; line-height: 1; color: var(--t9); font-variant-numeric: tabular-nums; }
a.ec-compteur:hover { background: var(--section); color: var(--t9); }
.ec-compteur.is-zero strong { color: var(--t4); font-weight: 700; }
.ec-compteur.is-attention { background: var(--orange-pale); color: var(--t9); font-weight: 600; }
.ec-compteur.is-attention strong { color: var(--orange-txt); }
a.ec-compteur.is-attention:hover { background: var(--orange-pale); color: var(--orange-txt); }
.ec-compteurs li:has(.is-attention) + li { border-top-color: transparent; }

.ec-contact { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ec-contact a { font-size: 14px; color: var(--orange-txt); word-break: break-all; }
.ec-contact a:hover { text-decoration: underline; }

/* ── Listes de lignes ── */
.ec-lignes { list-style: none; }
.ec-lignes > li + li { border-top: 1px solid var(--border); }
.ec-ligne { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 8px; margin: 0 -8px; border-radius: var(--r-sm); color: inherit; transition: background var(--tr); }
a.ec-ligne:hover { background: var(--section); }
.ec-ligne-principal { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ec-ligne-principal strong { font-size: 14.5px; font-weight: 600; color: var(--t9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-ligne-principal > span { font-size: 13px; color: var(--t5); }
.ec-ligne-action { color: var(--t5); display: flex; }
a.ec-ligne:hover .ec-ligne-action { color: var(--orange-txt); }

.ec-lignes--tableau .ec-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 190px 130px 150px; }
.ec-ligne--tete { min-height: 36px; font-size: 12px; font-weight: 600; color: var(--t5); text-transform: uppercase; letter-spacing: .05em; }
.ec-ligne-cat, .ec-ligne-date { font-size: 13.5px; color: var(--t7); }

.ec-statut { display: inline-flex; align-items: center; justify-self: start; min-height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid; }
.ec-statut--nouvelle { background: var(--section); border-color: var(--border-s); color: var(--t7); }
.ec-statut--en_cours { background: var(--card); border-color: var(--border-s); color: var(--t9); }
.ec-statut--attente { background: var(--orange-pale); border-color: var(--orange-border); color: var(--orange-txt); }
.ec-statut--resolue { background: var(--green-pale); border-color: var(--green-border); color: var(--green); }

.ec-onglets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.ec-onglet { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; font-size: 13.5px; font-weight: 600; color: var(--t7); border-radius: var(--r-sm); border: 1px solid transparent; }
.ec-onglet span { font-size: 12px; color: var(--t5); font-variant-numeric: tabular-nums; }
.ec-onglet:hover { background: var(--section); }
.ec-onglet.is-actif { background: var(--t9); color: var(--card); }
.ec-onglet.is-actif span { color: var(--card); opacity: .75; }

/* ── Documents ── */
.ec-doc { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 0; }
.ec-doc-format { width: 44px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--section); border: 1px solid var(--border); font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--t7); }
.ec-doc-desc { color: var(--t7) !important; }

/* ── Fil d'une demande ── */
.ec-fil { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.ec-message { padding: 16px 18px; border-radius: var(--r); background: var(--section); border: 1px solid var(--border); }
.ec-message--equipe { background: var(--card); border-color: var(--border-s); }
.ec-message--equipe .ec-avatar { background: var(--orange); color: #fff; }
.ec-message-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ec-message-tete strong { font-size: 14px; color: var(--t9); }
.ec-message-tete time { font-size: 12.5px; color: var(--t5); margin-inline-start: auto; }
.ec-message-texte { font-size: 14.5px; line-height: 1.7; color: var(--t7); overflow-wrap: anywhere; }
.ec-reponse { padding-top: 20px; border-top: 1px dashed var(--border-s); }

/* ── Mises à jour du produit ── */
.ec-alerte a { color: var(--orange-txt); font-weight: 600; text-decoration: underline; }

.ec-maj { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 20px; }
.ec-maj.is-nouvelle { background: var(--orange-pale); border-color: var(--orange-border); }
.ec-maj-ico { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--section); border: 1px solid var(--border); color: var(--t7); }
.ec-maj.is-nouvelle .ec-maj-ico { background: var(--card); border-color: var(--orange-border); color: var(--orange-txt); }
.ec-maj-ico .ec-ico { width: 20px; height: 20px; }
.ec-maj-texte { flex: 1; min-width: 0; }
.ec-maj-texte h2 { font-size: 15px; font-weight: 700; color: var(--t9); line-height: 1.4; }
.ec-maj-texte p { font-size: 13.5px; color: var(--t5); line-height: 1.5; margin-top: 2px; }
.ec-maj-texte .ec-maj-resume { color: var(--t7); }

.ec-version-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ec-version-ident { min-width: 0; }
.ec-version-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--t5); margin-bottom: 8px; }
.ec-version-titre { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--t9); }
.ec-version-resume { font-size: 15px; color: var(--t7); line-height: 1.6; margin-top: 6px; max-width: 640px; }
.ec-version-deja { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--green); white-space: nowrap; }
.ec-version-deja .ec-ico { width: 16px; height: 16px; }
.ec-version .ec-sous-titre { margin-top: 8px; margin-bottom: 4px; }

.ec-type--majeure { background: var(--t9); border-color: var(--t9); color: var(--card); }
.ec-type--mineure { background: var(--card); border-color: var(--border-s); color: var(--t9); }
.ec-type--correctif { background: var(--section); border-color: var(--border-s); color: var(--t7); }
.ec-type--securite { background: var(--red-pale); border-color: var(--red-border); color: var(--red); }
[data-theme="dark"] .ec-type--securite { color: #F87171; }

/* Ligne d'un fichier : format, nom et bouton sur la première rangée, empreinte sur toute la largeur en dessous. */
.ec-fichier { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "format principal action" "format empreinte empreinte"; align-items: center; gap: 4px 14px; padding: 14px 0; }
.ec-fichier .ec-doc-format { grid-area: format; align-self: start; width: auto; min-width: 44px; padding: 0 6px; }
.ec-fichier .ec-ligne-principal { grid-area: principal; gap: 3px; }
.ec-fichier .ec-btn { grid-area: action; }
.ec-fichier .ec-empreinte { grid-area: empreinte; }
.ec-empreinte { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }
.ec-empreinte-lbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--t5); }
.ec-empreinte code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12.5px; color: var(--t7); background: var(--section); border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px; overflow-wrap: anywhere; min-width: 0; }
.ec-copier { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--t5); background: transparent; border: 0; border-radius: var(--r-sm); cursor: pointer; }
.ec-copier:hover { color: var(--orange-txt); background: var(--section); }
.ec-copier:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ec-copier .ec-ico { width: 15px; height: 15px; }

.ec-notes-titre { padding-top: 18px; margin-top: 10px !important; border-top: 1px dashed var(--border-s); }
.ec-notes { font-size: 14.5px; line-height: 1.7; color: var(--t7); max-width: 720px; }
.ec-notes p, .ec-notes ul, .ec-notes ol { margin: 0 0 12px; }
.ec-notes ul, .ec-notes ol { padding-inline-start: 20px; }
.ec-notes li { margin: 4px 0; }
.ec-notes h2, .ec-notes h3, .ec-notes h4 { font-size: 14.5px; font-weight: 700; color: var(--t9); margin: 16px 0 6px; }
.ec-notes strong { color: var(--t9); }
.ec-notes code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px; background: var(--section); border-radius: 4px; padding: 1px 5px; }
.ec-notes a { color: var(--orange-txt); text-decoration: underline; }

.ec-bloc + .ec-aide { margin-top: 20px; }
.ec-commandes { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; }
.ec-commandes div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ec-commandes dt { font-size: 13px; color: var(--t5); min-width: 150px; }
.ec-commandes code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px; color: var(--t9); background: var(--section); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }

/* ── Aide ── */
.ec-aide { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; }
.ec-aide > .ec-ico { width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
.ec-aide h2 { font-size: 15px; font-weight: 700; color: var(--t9); margin-bottom: 4px; }
.ec-aide p { font-size: 14px; color: var(--t5); line-height: 1.6; }
.ec-aide a { color: var(--orange-txt); font-weight: 600; }
.ec-aide a:hover { text-decoration: underline; }

/* ═══ Largeurs moyennes et petites ═══ */
@media (max-width: 1100px) {
  .ec-grille-3 { grid-template-columns: 1fr 1fr; }
  .ec-grille-3 > :last-child { grid-column: 1 / -1; }
  .ec-lignes--tableau .ec-ligne { grid-template-columns: minmax(0, 1fr) 130px 150px; }
  .ec-lignes--tableau .ec-ligne-cat, .ec-ligne--tete span:nth-child(2) { display: none; }
}
@media (max-width: 960px) {
  .ec-connexion-grille { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ec-connexion-carte { max-width: 520px; width: 100%; margin: 0 auto; }
  .ec-connexion-aside { max-width: 520px; margin: 0 auto; }
  .ec-app { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ec-cote { position: static; }
  .ec-identite { display: none; }
  .ec-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: thin; }
  .ec-nav-lien { flex: 0 0 auto; border: 1px solid var(--border); background: var(--card); }
  .ec-nav-lien > span:not(.ec-compte) { flex: 0 0 auto; }
  .ec-nav-sortie { margin-top: 0; }
  .ec-grille-2, .ec-grille-2--interne { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .ec { padding: 24px 0 64px; }
  .ec-wrap { padding: 0 20px; }
  .ec-connexion { padding: 28px 0 64px; }
  .ec-connexion-carte { padding: 26px 22px; }
  .ec-connexion-aside h2 { font-size: 22px; text-align: center; }
  .ec-entete { flex-direction: column; align-items: stretch; }
  .ec-entete h1 { font-size: 24px; text-align: center; }
  .ec-entete p { text-align: center; }
  .ec-entete--demande h1, .ec-entete--demande p { text-align: start; }
  .ec-entete--demande .ec-statut { align-self: flex-start; }
  .ec-grille-3 { grid-template-columns: minmax(0, 1fr); }
  .ec-form-ligne { grid-template-columns: minmax(0, 1fr); }
  .ec-bloc { padding: 20px 18px; }
  .ec-lignes--tableau .ec-ligne { grid-template-columns: minmax(0, 1fr) auto; }
  .ec-lignes--tableau .ec-ligne-date, .ec-ligne--tete { display: none; }
  /* Sur telephone, le sujet passe sur deux lignes au lieu d'etre coupe par le statut. */
  .ec-ligne-principal strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
  .ec-doc { flex-wrap: wrap; }
  .ec-doc .ec-btn { width: 100%; }
  .ec-maj { flex-wrap: wrap; padding: 18px; }
  .ec-maj-texte { flex-basis: calc(100% - 60px); }
  .ec-maj .ec-btn { width: 100%; }
  .ec-version-tete { flex-direction: column; gap: 10px; }
  .ec-version-titre { font-size: 22px; }
  .ec-fichier { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "format principal" "empreinte empreinte" "action action"; }
  .ec-fichier .ec-btn { width: 100%; margin-top: 6px; }
  .ec-commandes dt { min-width: 0; width: 100%; }
  .ec-message-tete time { margin-inline-start: 0; width: 100%; }
}
