/* S33D Email : page d'accueil et webmail, sur les jetons du socle. */

/* ─── accueil : héros ─────────────────────────────────────────────────── */
.e-heros { padding: clamp(36px, 6vw, 84px) 0 clamp(28px, 4vw, 48px); overflow: hidden;
  background: radial-gradient(900px 520px at 78% 18%, rgba(47, 139, 255, .2), transparent 62%), radial-gradient(700px 420px at 8% 92%, rgba(247, 173, 43, .08), transparent 60%), radial-gradient(120% 90% at 50% 0%, #0b1d3f 0%, #060c18 58%, #03060d 100%); }
.e-heros-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.e-heros h1 { margin: 18px 0 16px; color: #fff; font-size: clamp(2.3rem, 4.1vw, 3.9rem); }
.e-chapeau { font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.6; color: var(--texte-nuit-2); max-width: 34em; margin: 0 0 22px; }
.e-note { color: var(--texte-nuit-3); font-size: 13.5px; margin: 12px 0 0; }

.e-composeur { display: flex; flex-direction: column; gap: 12px; max-width: 560px; padding: 18px; }
.e-composeur > * { position: relative; z-index: 1; }
.e-composeur-titre { font: 600 11.5px/1 var(--corps); letter-spacing: .16em; text-transform: uppercase; color: var(--azur-300); }
.e-composeur input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--rayon); background: rgba(3, 8, 18, .6); border: 1px solid var(--trait-nuit); color: #fff; font: 500 17px/1.2 var(--corps); }
.e-composeur input::placeholder { color: var(--texte-nuit-3); }
.e-composeur input:focus { outline: none; border-color: rgba(143, 200, 255, .65); box-shadow: 0 0 0 3px rgba(47, 139, 255, .25); }
.e-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.e-puces .s3-pastille { cursor: pointer; min-height: 36px; font-family: var(--titre); }
.e-apercu { display: flex; align-items: center; gap: 14px; margin: 4px 0 2px; min-width: 0; }
.e-apercu-icone { flex: none; position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff;
  background: linear-gradient(140deg, var(--azur-500), #0b3f8f); box-shadow: 0 12px 26px -10px rgba(47, 139, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.e-apercu-icone svg.i { width: 25px; height: 25px; }
.e-apercu-icone::after { content: ""; position: absolute; top: -4px; right: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--ambre-400); box-shadow: 0 0 0 3px #0c1c3a, 0 0 12px var(--ambre-400); }
#apercu-adresse { min-width: 0; font: 700 clamp(1.2rem, 2.2vw, 1.65rem)/1.15 var(--titre); letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; }
.e-bond { animation: e-bond .5s var(--ease); }
@keyframes e-bond { 35% { transform: scale(1.15) rotate(-7deg); } 70% { transform: scale(.96) rotate(2deg); } }
.e-reserver { justify-content: center; gap: 10px; }

/* ─── accueil : fenêtre de webmail animée ─────────────────────────────── */
.e-scene { position: relative; padding: 30px 0 0 30px; }
.e-flottante { position: absolute; left: -34px; top: -40px; z-index: 2; width: clamp(110px, 11vw, 150px); height: auto; pointer-events: none;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); animation: e-flotte 6s ease-in-out infinite; }
@keyframes e-flotte { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.e-fenetre { position: relative; overflow: hidden; border-radius: 18px; background: #f6f8fc; color: var(--encre); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(143, 200, 255, .2); }
.e-fenetre-barre { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e8edf6; border-bottom: 1px solid var(--trait); }
.e-fenetre-barre i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b5f; }
.e-fenetre-barre i:nth-child(2) { background: #ffbd2e; }
.e-fenetre-barre i:nth-child(3) { background: #28c941; }
.e-fenetre-barre > span { margin: 0 auto; padding: 3px 16px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--encre-3); }
.e-rejouer { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 0; border-radius: 6px; background: none; color: var(--encre-3); font: inherit; font-size: 12px; cursor: pointer; }
.e-rejouer:hover { background: #fff; color: var(--azur-700); }
.e-fenetre-corps { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 392px; }
.e-demo-dossiers { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: #fff; border-right: 1px solid var(--trait); font-size: 13px; color: var(--encre-2); }
.e-demo-dossiers span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.e-demo-dossiers .actif { background: var(--azur-50); color: var(--azur-800); font-weight: 600; }
.e-demo-dossiers b { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--azur-600); color: #fff; font-size: 11px; text-align: center; }
.e-demo-dossiers b[hidden] { display: none; }
.e-demo-ecrire { justify-content: center; margin-bottom: 8px; background: var(--azur-600); color: #fff; font-weight: 600; }
.e-demo-principal { display: flex; flex-direction: column; min-width: 0; }
.e-demo-liste { list-style: none; margin: 0; padding: 0; min-height: 262px; background: #fff; }
.e-demo-liste button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 14px; border-bottom: 1px solid var(--trait); cursor: pointer; font-size: 13.5px; }
.e-demo-liste button:hover { background: var(--azur-50); }
.e-demo-liste button[aria-pressed="true"] { background: var(--azur-100); box-shadow: inset 3px 0 0 var(--azur-500); }
.e-demo-liste button:focus-visible { outline: 2px solid var(--azur-500); outline-offset: -2px; }
.e-demo-de { font-weight: 500; color: var(--encre-2); }
.non-lu .e-demo-de { font-weight: 700; color: var(--encre); }
.non-lu .e-demo-de::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--azur-500); vertical-align: .1em; }
.e-demo-quand { font-size: 12px; color: var(--encre-3); }
.e-demo-sujet { grid-column: 1 / -1; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.non-lu .e-demo-sujet { color: var(--encre); font-weight: 600; }
.e-demo-liste em { grid-column: 1 / -1; justify-self: start; font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fff4d9; color: #8a5600; }
.e-demo-liste em.danger { background: var(--rouge-doux); color: #b42d1d; }
.e-arrive { animation: e-arrive .6s var(--ease) both; }
@keyframes e-arrive { from { opacity: 0; transform: translateY(-16px); background: var(--azur-100); } }
.e-demo-bulle { margin: 12px; padding: 12px 14px; min-height: 104px; border-radius: 14px; border: 1px solid var(--azur-200); background: linear-gradient(135deg, var(--azur-50), #fff); font-size: 13.5px; line-height: 1.5; color: var(--encre); transition: background .3s, border-color .3s; }
.e-demo-bulle.danger { border-color: #f0a99f; background: linear-gradient(135deg, var(--rouge-doux), #fff); }
.e-demo-bulle p { margin: 0; }
.e-demo-bulle .e-demo-bulle-tete { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font: 700 11px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--azur-700); }
.e-demo-bulle.danger .e-demo-bulle-tete { color: #b42d1d; }

.e-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--trait-nuit-doux); }
.e-chiffres .s3-chiffre-valeur { color: #fff; }

/* ─── accueil : démo à onglets ────────────────────────────────────────── */
.e-demo { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.e-onglets { display: flex; flex-direction: column; gap: 8px; }
.e-onglets [role="tab"] { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--rayon-l); background: var(--blanc); border: 1px solid var(--trait); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.e-onglets [role="tab"]:hover { border-color: var(--azur-200); transform: translateX(3px); }
.e-onglets [role="tab"][aria-selected="true"] { border-color: var(--azur-400); background: linear-gradient(90deg, var(--azur-50), var(--blanc)); box-shadow: var(--ombre-jour-forte); }
.e-onglets [role="tab"]:focus-visible { outline: 2px solid var(--azur-500); outline-offset: 2px; }
.e-onglet-icone { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: radial-gradient(120% 120% at 30% 20%, #163d7d, #071634); color: var(--azur-300); box-shadow: inset 0 0 0 1px rgba(143, 200, 255, .22); }
.e-onglet-icone svg.i { width: 22px; height: 22px; }
[aria-selected="true"] .e-onglet-icone { color: var(--ambre-300); }
.e-onglets b { display: block; font: 700 1.05rem/1.2 var(--titre); color: var(--encre); }
.e-onglets small { display: block; margin-top: 2px; font-size: 13px; color: var(--encre-3); }
.e-panneau { display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 26px); border-radius: var(--rayon-l); background: var(--blanc); border: 1px solid var(--trait); box-shadow: var(--ombre-jour); animation: e-monte .45s var(--ease); }
.e-panneau[hidden] { display: none; }
@keyframes e-monte { from { opacity: 0; transform: translateY(8px); } }
.e-mail-tete { display: flex; align-items: center; gap: 12px; }
.e-mail-tete b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.e-mail-tete small { font-size: 12.5px; color: var(--encre-3); }
.e-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--azur-100); color: var(--azur-800); font: 700 16px/1 var(--titre); }
.e-avatar.alerte { background: var(--rouge-doux); color: #b42d1d; }
.e-mail h3 { margin: 12px 0 8px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.e-mail-texte { margin: 0; max-height: 7.4em; overflow: hidden; font-size: 14.5px; line-height: 1.6; color: var(--encre-2); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.e-ia-demo { padding: 14px 16px; border-radius: var(--rayon); border: 1px solid var(--azur-200); background: var(--azur-50); font-size: 14.5px; line-height: 1.55; }
.e-ia-demo.danger { border-color: #f0a99f; background: var(--rouge-doux); }
.e-ia-demo p { margin: 0; }
.e-ia-demo .e-ia-demo-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 700 11px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--azur-700); }
.e-ia-demo.danger .e-ia-demo-tete { color: #b42d1d; }
.e-ia-demo [data-taper] { min-height: 3.1em; }
.e-controles { list-style: none; display: grid; gap: 6px; margin: 0 0 10px; padding: 0; font-size: 14px; }
.e-controles li { display: flex; align-items: flex-start; gap: 8px; }
.e-controles .ko svg.i { color: var(--rouge); }
.e-controles .ok svg.i { color: var(--vert); }
.e-panneau:not([hidden]) .e-controles li { animation: e-monte .4s var(--ease) both; animation-delay: calc(var(--i) * .3s); }
.e-champ-demo { display: flex; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--trait); font-size: 14.5px; }
.e-champ-demo span { min-width: 3.4em; color: var(--encre-3); }
.e-consigne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; padding: 10px 12px; border-radius: var(--rayon-s); border: 1px dashed var(--azur-300); background: var(--azur-50); font-size: 14px; color: var(--azur-800); }
.e-consigne em { margin-left: auto; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--azur-200); background: #fff; font-style: normal; font-size: 12.5px; }
.e-redige { min-height: 10.5em; margin: 0; padding: 12px 14px; border: 1px solid var(--trait); border-radius: var(--rayon-s); font-size: 14.5px; line-height: 1.6; white-space: pre-line; }
.e-redige::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--azur-500); animation: e-curseur 1s steps(1) infinite; }
@keyframes e-curseur { 50% { opacity: 0; } }
.e-mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.e-discret { font-size: 13px; color: var(--encre-3); }
.e-tri { list-style: none; margin: 0; padding: 0; border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.e-tri li { display: grid; grid-template-columns: 11em minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--trait); font-size: 14px; }
.e-tri li:last-child { border-bottom: 0; }
.e-tri span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--encre-2); }
.e-tri em { padding: 3px 10px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; }
.e-tri em.f { background: #fff4d9; color: #8a5600; }
.e-tri em.a { background: var(--azur-100); color: var(--azur-800); }
.e-tri em.c { background: var(--vert-doux); color: #0e7a4e; }
.e-tri em.n { background: var(--glace-2); color: var(--encre-2); }
.e-panneau:not([hidden]) .e-tri em { animation: e-etiquette .5s var(--ease) both; animation-delay: calc(.3s + var(--i) * .25s); }
@keyframes e-etiquette { from { opacity: 0; transform: scale(.6) translateX(12px); } }

/* ─── accueil : atouts, domaines, offres ──────────────────────────────── */
.e-grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.e-grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.e-grille-3 h3, .e-grille-2 h3 { margin: 0 0 8px; font-size: 1.15rem; }
.e-grille-3 p { margin: 0; color: var(--encre-2); line-height: 1.55; }
.e-atout:hover { border-color: var(--azur-200); box-shadow: var(--ombre-jour-forte); }
.e-atout img { display: block; width: 88px; height: 88px; margin-bottom: 14px; border-radius: 24px; box-shadow: 0 16px 30px -18px rgba(13, 115, 230, .9); transition: transform .4s var(--ease); }
.e-atout:hover img { transform: translateY(-4px) rotate(-5deg) scale(1.05); }
.e-domaines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.e-domaine { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; border-radius: var(--rayon-l); background: var(--blanc); border: 1px solid var(--trait); box-shadow: var(--ombre-jour); font: inherit; text-align: left; color: inherit; cursor: pointer; }
.e-domaine:hover { border-color: var(--azur-300); box-shadow: var(--ombre-jour-forte); }
.e-domaine[aria-pressed="true"] { border-color: var(--azur-500); box-shadow: 0 0 0 3px rgba(47, 139, 255, .15), var(--ombre-jour); }
.e-domaine:focus-visible { outline: 2px solid var(--azur-500); outline-offset: 2px; }
.e-domaine svg.i { width: 26px; height: 26px; color: var(--azur-600); }
.e-domaine > span { max-width: 100%; font: 600 1.1rem/1.25 var(--titre); color: var(--azur-700); overflow-wrap: anywhere; }
.e-domaine-nom { font-weight: 500; color: var(--encre-3); }
.e-domaine small { font-size: 13px; color: var(--encre-3); }
.e-perso { display: flex; align-items: center; gap: 16px; }
.e-perso p { margin: 0; color: var(--encre-2); line-height: 1.55; }
.e-perso b { color: var(--encre); }
.e-offre ul { margin: 0; padding-left: 1.1em; line-height: 1.9; color: var(--encre-2); }
.e-offre-forte { border-color: var(--azur-300); box-shadow: var(--ombre-jour-forte); }
.e-fin { padding-bottom: clamp(48px, 6vw, 80px); }
.e-appel { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 32px); padding: clamp(22px, 4vw, 40px); border-radius: var(--rayon-l); overflow: hidden; box-shadow: var(--ombre-jour-forte); }
.e-appel img { flex: none; width: 120px; height: 120px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); animation: e-flotte 6s ease-in-out infinite; }
.e-appel > div { flex: 1 1 260px; }
.e-appel h2 { margin: 0 0 6px; color: #fff; }
.e-appel p { margin: 0; color: var(--texte-nuit-2); }

/* ─── webmail ─────────────────────────────────────────────────────────── */
.e-corps-app { background: var(--glace); }
.e-compte { display: flex; align-items: center; gap: 8px; }
.e-compte .s3-compte { cursor: pointer; }
.e-app { min-height: calc(100vh - var(--barre)); }
.e-chargement { padding: 80px var(--goutiere); color: var(--encre-3); text-align: center; }
.e-boite { display: grid; grid-template-columns: 232px minmax(300px, 400px) 1fr; height: calc(100vh - var(--barre)); }
.e-nav { border-right: 1px solid var(--trait); background: var(--blanc); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.e-ecrire { width: 100%; }
.e-dossiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.e-dossiers button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--rayon-s); cursor: pointer; color: var(--encre-2); font-size: 14.5px; min-height: 44px; }
.e-dossiers button:hover { background: var(--glace-2); }
.e-dossiers button[aria-current="true"] { background: var(--azur-50); color: var(--azur-800); font-weight: 600; }
.e-dossiers button:focus-visible { outline: 2px solid var(--azur-500); outline-offset: 1px; }
.e-dossiers .e-compteur { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--azur-700); }
.e-nav-bas { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; border-top: 1px solid var(--trait); }
.e-nav-bas .e-lien { min-height: 30px; padding: 4px 2px; }
.e-quota { font-size: 12.5px; color: var(--encre-3); margin: 6px 0 0; }
.e-lien { all: unset; cursor: pointer; color: var(--azur-700); font-size: 14px; padding: 6px 2px; min-height: 32px; }
.e-lien:hover { text-decoration: underline; }
.e-lien:focus-visible { outline: 2px solid var(--azur-500); border-radius: 4px; }
.e-champ { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--encre-2); margin: 0 0 12px; }
.e-champ input, .e-champ select, .e-champ textarea, .e-redaction textarea, .e-liste-tete input, .e-ligne input, .e-adresse-saisie input, .e-adresse-saisie select, .e-redaction-ia input, .e-redaction-ia select {
  font: inherit; font-size: 15px; color: var(--encre); background: var(--blanc); border: 1px solid var(--trait-fort); border-radius: var(--rayon-s); padding: 10px 12px; min-height: 44px; }
.e-champ input:focus, .e-champ select:focus, .e-champ textarea:focus, .e-redaction textarea:focus, .e-liste-tete input:focus, .e-ligne input:focus, .e-adresse-saisie input:focus, .e-adresse-saisie select:focus, .e-redaction-ia input:focus {
  outline: none; border-color: var(--azur-500); box-shadow: 0 0 0 3px rgba(47, 139, 255, .2); }

.e-liste { border-right: 1px solid var(--trait); display: flex; flex-direction: column; min-width: 0; background: var(--glace); }
.e-liste-tete { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--trait); background: var(--blanc); }
.e-liste-tete form { flex: 1; }
.e-liste-tete input { width: 100%; }
.e-messages { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.e-messages li > button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--trait); cursor: pointer; background: var(--blanc); }
.e-messages li > button:hover { background: var(--azur-50); }
.e-messages li > button[aria-current="true"] { background: var(--azur-100); box-shadow: inset 3px 0 0 var(--azur-500); }
.e-messages li > button:focus-visible { outline: 2px solid var(--azur-500); outline-offset: -2px; }
.e-messages .e-de { font-weight: 500; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-messages .non-lu .e-de { font-weight: 700; color: var(--encre); }
.e-messages .e-quand { font-size: 12.5px; color: var(--encre-3); white-space: nowrap; }
.e-messages .e-sujet { grid-column: 1 / -1; font-size: 14px; color: var(--encre-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-messages .non-lu .e-sujet { color: var(--encre); font-weight: 600; }
.e-messages .e-etiquette { grid-column: 1 / -1; justify-self: start; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--glace-2); color: var(--encre-2); }
.e-messages .e-etiquette.important { background: var(--orange-doux); color: var(--ambre-700); }
.e-messages .e-vide-liste { padding: 40px 16px; text-align: center; color: var(--encre-3); }
.e-plus { margin: 12px auto; }

.e-lecture { overflow-y: auto; background: var(--blanc); min-width: 0; }
.e-lecture article { padding: 18px clamp(16px, 2.4vw, 32px) 32px; }
.e-vide { display: grid; place-items: center; height: 100%; color: var(--encre-3); }
.e-lecture-barre { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.e-retour { display: none; }
.e-danger:hover { color: var(--rouge) !important; border-color: var(--rouge) !important; }
.e-lecture h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 0 0 8px; overflow-wrap: anywhere; }
.e-meta { margin: 0 0 4px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--encre-2); overflow-wrap: anywhere; }
.e-meta-a { color: var(--encre-3); font-size: 13px; }
.e-assistant { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 10px; padding: 10px 12px; border-radius: var(--rayon); background: linear-gradient(90deg, var(--azur-50), var(--glace)); border: 1px solid var(--azur-100); }
.e-assistant-nom { font: 700 11px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; color: var(--azur-700); margin-right: 4px; }
.e-assistant .s3-pastille { cursor: pointer; min-height: 36px; }
.e-ia { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--rayon); border: 1px solid var(--azur-200); background: var(--azur-50); color: var(--encre); line-height: 1.55; white-space: pre-wrap; font-size: 14.5px; }
.e-ia.fiable { border-color: var(--vert); background: var(--vert-doux); }
.e-ia.douteux { border-color: var(--orange); background: var(--orange-doux); }
.e-ia.dangereux { border-color: var(--rouge); background: var(--rouge-doux); }
.e-ia h3 { margin: 0 0 6px; font-size: 1rem; white-space: normal; }
.e-ia ul { margin: 6px 0; padding-left: 1.2em; white-space: normal; }
.e-ia .e-ia-actions { display: flex; gap: 8px; margin-top: 10px; white-space: normal; }
.e-images { font-size: 13.5px; color: var(--encre-2); background: var(--glace); border-radius: var(--rayon-s); padding: 8px 12px; }
.e-corps { width: 100%; min-height: 360px; border: 0; display: block; background: var(--blanc); }
.e-pieces { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.e-pieces a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--trait); border-radius: var(--rayon-s); font-size: 13.5px; color: var(--encre-2); min-height: 40px; }
.e-pieces a:hover { border-color: var(--azur-300); color: var(--azur-700); }

.e-accueil, .e-page { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--goutiere); display: flex; flex-direction: column; gap: 16px; }
.e-creation h1, .e-page h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.e-adresse-saisie { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; flex-wrap: wrap; }
.e-adresse-saisie input { flex: 1 1 180px; font-size: 17px; }
.e-adresse-saisie span { font: 600 18px/1 var(--titre); color: var(--encre-3); }
.e-dispo { min-height: 22px; font-size: 14px; margin: 0 0 12px; }
.e-dispo.oui { color: var(--vert); }
.e-dispo.non { color: var(--rouge); }
.e-erreur { color: var(--rouge); font-size: 14px; min-height: 1em; }
.e-ok { color: var(--vert); font-size: 14px; margin-left: 10px; }
.e-mdp { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; padding: 14px; background: var(--glace); border-radius: var(--rayon-s); font-size: 14px; }
.e-mdp dt { color: var(--encre-3); }
.e-mdp dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.e-ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.e-ligne input { flex: 1 1 220px; }
.e-liste-domaines { list-style: none; padding: 0; margin: 14px 0 0; }
.e-liste-domaines li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--trait); }
.e-statut { font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--orange-doux); color: var(--ambre-700); }
.e-statut.actif { background: var(--vert-doux); color: var(--vert); }
.e-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.e-table th, .e-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--trait); vertical-align: top; overflow-wrap: anywhere; }
.e-table th { color: var(--encre-3); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.e-dns { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.e-dns td, .e-dns th { padding: 8px 6px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.e-dns code { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; word-break: break-all; }
.e-controle { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }

.e-redaction { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 1px solid var(--trait); border-radius: var(--rayon-l); padding: 0; box-shadow: var(--ombre-jour-forte); color: var(--encre); }
.e-redaction::backdrop { background: rgba(5, 9, 15, .55); backdrop-filter: blur(2px); }
.e-redaction form { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 26px); overflow-y: auto; }
.e-redaction-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.e-redaction-tete h2 { margin: 0; font-size: 1.2rem; }
.e-fermer { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--encre-2); }
.e-fermer:hover { background: var(--glace-2); }
.e-fermer svg.i { width: 20px; height: 20px; }
.e-champ-ligne { flex-direction: row; align-items: center; margin: 0 0 6px; }
.e-champ-ligne input { flex: 1; }
.e-champ-ligne { gap: 10px; }
.e-champ-ligne > :first-child { min-width: 3.4em; }
.e-redaction textarea { width: 100%; resize: vertical; font-size: 15px; line-height: 1.55; margin: 6px 0; }
.e-redaction-ia { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 10px; }
.e-redaction-ia input { flex: 1 1 260px; font-size: 14px; }
.e-redaction-ia .s3-pastille { cursor: pointer; min-height: 40px; }
.e-redaction-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.e-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--encre); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--ombre-jour-forte); z-index: 200; max-width: calc(100vw - 32px); }

@media (max-width: 1080px) {
  .e-boite { grid-template-columns: 200px minmax(260px, 340px) 1fr; }
  .e-grille-3, .e-domaines { grid-template-columns: repeat(2, 1fr); }
  .e-demo { grid-template-columns: 1fr; }
  .e-onglets { flex-direction: row; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
  .e-onglets [role="tab"] { flex: 0 0 auto; }
  .e-onglets [role="tab"]:hover { transform: none; }
}
@media (max-width: 960px) {
  .e-heros-grille { grid-template-columns: 1fr; }
  .e-composeur { max-width: none; }
  .e-scene { padding: 34px 0 0; }
  .e-flottante { left: -14px; top: -22px; width: 104px; }
}
@media (max-width: 860px) {
  .e-grille-3, .e-grille-2 { grid-template-columns: 1fr; }
  .e-boite { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: calc(100vh - var(--barre)); }
  .e-nav-bas { margin-top: 4px; }
  .e-quota { width: 100%; margin: 0; }
  .e-nav { border-right: 0; border-bottom: 1px solid var(--trait); }
  .e-dossiers { flex-direction: row; overflow-x: auto; }
  .e-dossiers button { white-space: nowrap; }
  .e-nav-bas { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .e-boite[data-ecran="lecture"] .e-nav, .e-boite[data-ecran="lecture"] .e-liste { display: none; }
  .e-boite:not([data-ecran="lecture"]) .e-lecture { display: none; }
  .e-retour { display: inline-flex; }
  .e-messages { overflow: visible; }
}
@media (max-width: 600px) {
  .e-fenetre-corps { grid-template-columns: 1fr; min-height: 0; }
  .e-demo-dossiers { display: none; }
  .e-chiffres { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .e-domaines { grid-template-columns: 1fr; }
  .e-onglets small { display: none; }
  .e-onglets [role="tab"] { padding: 10px 14px 10px 10px; gap: 10px; }
  .e-onglet-icone { width: 38px; height: 38px; border-radius: 12px; }
  .e-tri li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .e-tri li span { grid-column: 1; grid-row: 2; }
  .e-tri li em { grid-column: 2; grid-row: 1 / 3; }
  .e-perso { align-items: flex-start; }
  .e-appel img { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
