/* Portail ieflouga.info : même présentation que le portail MALCO Business.
   Barre d'icônes blanche à gauche (bande en bas sur téléphone), barre du haut blanche, bandeau d'accueil,
   rubriques par bureau, cartes au fond teinté d'après le bureau, grand pictogramme en filigrane. Bordures neutres. */
:root {
  --texte: #0b0f19; --texte-2: #4b5563; --texte-3: #6b7280;
  --filet: #e5e7eb; --filet-fort: #d1d5db; --fond: #ffffff; --fond-doux: #f8fafc;
  --accent: #1f4fd8; --accent-fonce: #1a43b8; --accent-pale: #eef3ff;
  --ombre: 0 1px 2px rgba(11, 15, 25, .05); --ombre-survol: 0 8px 24px rgba(11, 15, 25, .08);
  --police: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --zoom: 1;
}
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--police); font-size: 1.0625rem; line-height: 1.55; color: var(--texte); background: #f6f7f9;
  min-height: calc(100vh / var(--zoom)); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, p { margin: 0; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- Barre latérale ---------- */
.flottant { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 72px; display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 0 0 14px; background: var(--fond); border-right: 1px solid var(--filet); }
.flottant-marque { display: grid; place-items: center; width: 40px; height: 40px; margin: 12px 0 14px; flex: none; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.flottant-marque:hover { background: var(--accent-fonce); }
.flottant-filet { width: 28px; height: 1px; margin: 6px 0; background: var(--filet); flex: none; }
.flottant-espace { flex: 1; }
.flottant-lien { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px;
  background: none; color: var(--texte-3); cursor: pointer; font: inherit; transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
.flottant-lien:hover { background: var(--fond-doux); color: var(--texte); }
.flottant-lien[style] { background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); }
.flottant-lien[style]:hover { background: color-mix(in srgb, var(--c) 18%, #fff); transform: translateY(-1px); }
.flottant-lien.actif { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(31, 79, 216, .28); }
.flottant-lien[style].actif { background: var(--c); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 35%, transparent); }
.flottant-lien.actif::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, var(--accent)); }
.flottant-lien .ic { width: 21px; height: 21px; }
.flottant [data-info]::after { content: attr(data-info); position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-4px, -50%);
  padding: 6px 10px; border-radius: 8px; background: var(--texte); color: #fff; font-size: .85rem; font-weight: 600; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .12s ease, transform .12s ease; }
.flottant [data-info]:hover::after, .flottant [data-info]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- Barre du haut ---------- */
.haut { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--filet); margin-left: 72px; }
.haut-int { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.haut-chemin { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .98rem; color: var(--texte-2); white-space: nowrap; }
.haut-chemin img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.haut-chemin span { overflow: hidden; text-overflow: ellipsis; }
.haut-chemin b { color: var(--texte); }
.recherche { display: flex; align-items: center; gap: 8px; width: min(340px, 45vw); padding: 0 12px; height: 40px; border: 1px solid var(--filet);
  border-radius: 999px; background: var(--fond); color: var(--texte-3); }
.recherche:focus-within { border-color: var(--filet-fort); background: var(--fond-doux); }
.recherche .ic { width: 18px; height: 18px; }
.recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: .95rem; color: var(--texte); }

/* ---------- Page ---------- */
.page { flex: 1; margin-left: 72px; padding: 40px 28px 56px; }
.page > * { max-width: 1224px; margin-left: auto; margin-right: auto; }
.accueil { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 24px; padding: 16px 22px;
  background: var(--fond); border: 1px solid var(--filet); border-radius: 12px; box-shadow: var(--ombre); }
.accueil-texte { min-width: 0; flex: 1 1 420px; }
.accueil h1 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.accueil h1 span { color: var(--accent); }
.accueil-date { display: flex; align-items: center; gap: 7px; margin: 4px 0 0; font-size: .86rem; font-weight: 500; color: var(--texte-3); }
.accueil-date .ic { width: 15px; height: 15px; color: var(--accent); }
.accueil-chiffres { display: flex; margin: 0; }
.accueil-chiffres > div { display: flex; align-items: baseline; gap: 8px; padding: 2px 18px; border-left: 1px solid var(--filet); }
.accueil-chiffres > div:first-child { border-left: 0; padding-left: 0; }
.accueil-chiffres dt { order: 2; font-size: .74rem; font-weight: 600; color: var(--texte-3); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.accueil-chiffres dd { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1; }

/* ---------- Rubriques ---------- */
.rubrique-portail { margin-bottom: 36px; }
.titre-rubrique { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--texte-3); }
.titre-rubrique .compte { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--fond-doux); border: 1px solid var(--filet); color: var(--texte-2); font-size: .75rem; letter-spacing: 0; }

/* Annonces */
.annonce { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--fond); border: 1px solid var(--filet); border-radius: 12px;
  box-shadow: var(--ombre); color: var(--texte); transition: box-shadow .15s ease, transform .15s ease; }
.annonce + .annonce { margin-top: 10px; }
.annonce:hover { box-shadow: var(--ombre-survol); transform: translateY(-1px); }
.annonce-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fdf3e7; color: #b45309; flex: none; }
.annonce-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.annonce-txt span { color: var(--texte-2); font-size: .95rem; }

/* ---------- Cartes des plateformes ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.app { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 6px; min-height: 196px; padding: 20px 20px 16px;
  background: color-mix(in srgb, var(--c) 5%, #fff); color: var(--texte); border: 1px solid var(--filet); border-radius: 12px; box-shadow: var(--ombre);
  transition: box-shadow .15s ease, transform .15s ease; }
a.app:hover { box-shadow: var(--ombre-survol); transform: translateY(-2px); }
.app-filigrane { position: absolute; z-index: -1; right: -18px; top: -14px; color: var(--c); opacity: .09; pointer-events: none; transition: opacity .2s ease, transform .3s ease; }
.app-filigrane .ic { width: 124px; height: 124px; stroke-width: 1.4; }
a.app:hover .app-filigrane { opacity: .16; transform: scale(1.04); }
.app-logo { display: flex; align-items: center; gap: 10px; height: 40px; margin-bottom: 8px; }
.pastille { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c); color: #fff; flex: none; }
.pastille .ic { width: 21px; height: 21px; }
.sigle { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.app-nom { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.app-desc { flex: 1; color: var(--texte-2); font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(11, 15, 25, .07); }
.app-profil { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte-3); font-size: .85rem; }
.app-ouvrir { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: .9rem; font-weight: 650; color: var(--c, var(--accent)); }
.app-ouvrir .ic { width: 16px; height: 16px; transition: transform .15s ease; }
a.app:hover .app-ouvrir .ic, .annonce:hover .app-ouvrir .ic { transform: translateX(3px); }
/* Plateforme en préparation : carte en pointillés, fond blanc */
.app-projet { background: var(--fond); border-style: dashed; border-color: var(--filet-fort); box-shadow: none; }
div.app-projet { cursor: default; }
.app-projet .pastille { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.app-etat { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; color: #b45309; }
.app-etat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.vide { padding: 32px; background: var(--fond-doux); border: 1px solid var(--filet); border-radius: 10px; color: var(--texte-2); }

/* ---------- Pied ---------- */
.pied { margin-left: 72px; border-top: 1px solid var(--filet); background: var(--fond); color: var(--texte-3); font-size: .88rem; }
.pied-int { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; max-width: 1280px; margin: 0 auto; padding: 18px 28px; }
.pied-marque { color: var(--texte-2); }
.pied-marque b { color: var(--texte); }
.pied-marque small { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--filet); color: var(--texte-3); font-size: .85rem; }

/* ---------- Compte (barre du haut) ---------- */
.haut-droite { display: flex; align-items: center; gap: 12px; min-width: 0; }
.profil { position: relative; flex: none; }
.profil summary { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border: 1px solid var(--filet); border-radius: 999px; cursor: pointer; list-style: none; background: var(--fond); }
.profil summary::-webkit-details-marker { display: none; }
.profil summary:hover, .profil[open] summary { border-color: var(--filet-fort); background: var(--fond-doux); }
.profil-initiales { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; flex: none; }
.profil-initiales.grand { width: 44px; height: 44px; font-size: .95rem; }
.profil-texte { display: flex; flex-direction: column; line-height: 1.2; }
.profil-texte b { font-size: .92rem; }
.profil-texte small { color: var(--texte-3); font-size: .78rem; }
.profil-fleche { width: 16px; height: 16px; color: var(--texte-3); transition: transform .12s ease; }
.profil[open] .profil-fleche { transform: rotate(180deg); }
.profil-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; padding: 8px; background: var(--fond); border: 1px solid var(--filet); border-radius: 12px; box-shadow: 0 12px 32px rgba(11, 15, 25, .12); z-index: 60; }
.profil-qui { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; padding: 10px 10px 14px; border-bottom: 1px solid var(--filet); }
.profil-qui > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.profil-qui small { color: var(--texte-3); font-size: .82rem; }
.profil-qui em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--accent); margin-top: 2px; }
.profil-menu form { margin: 0; }
.profil-menu a, .profil-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--texte); font: inherit; font-size: .95rem; cursor: pointer; text-align: left; }
.profil-menu a:hover, .profil-menu button:hover { background: var(--fond-doux); }
.profil-menu button { color: #c0262d; }
.profil-menu .ic { width: 18px; height: 18px; }
.flottant form { margin: 0; }
.flottant-lien.secondaire { color: var(--texte-3); }

/* ---------- Boutons, formulaires, tableaux ---------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.bouton .ic { width: 18px; height: 18px; }
.bouton-plein { background: var(--accent); color: #fff; }
.bouton-plein:hover { background: var(--accent-fonce); }
.bouton-clair { background: var(--fond); color: var(--texte); border-color: var(--filet); }
.bouton-clair:hover { background: var(--fond-doux); border-color: var(--filet-fort); }
.bouton.petit { height: 32px; padding: 0 12px; font-size: .88rem; }
.entete-page { margin-bottom: 20px; }
.entete-page h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.entete-page .chapeau { font-size: 1rem; margin-top: 4px; }
.entete-ligne { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.onglets { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--filet); }
.onglets a { padding: 10px 14px; color: var(--texte-2); font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.onglets a.on { color: var(--accent); border-bottom-color: var(--accent); }
.carte { background: var(--fond); border: 1px solid var(--filet); border-radius: 12px; padding: 24px 26px; margin-bottom: 20px; box-shadow: var(--ombre); }
.carte h2 { font-size: 1.1rem; margin: 0 0 14px; }
.formulaire h2 + .grille-champs, .formulaire .tableau-wrap { margin-bottom: 14px; }
.formulaire h2:not(:first-of-type) { margin-top: 22px; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 18px; }
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: .9rem; }
.champ > span { font-weight: 600; color: var(--texte-2); }
.champ input, .champ select { height: 42px; padding: 0 12px; border: 1px solid var(--filet-fort); border-radius: 8px; font: inherit; font-size: .98rem; background: #fff; color: var(--texte); }
.champ input:focus, .champ select:focus { outline: 2px solid var(--accent-pale); border-color: var(--accent); }
.champ input:disabled { background: var(--fond-doux); color: var(--texte-3); }
.case { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .92rem; color: var(--texte); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tableau-wrap { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tableau th { text-align: left; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-3); padding: 10px 12px; border-bottom: 1px solid var(--filet); background: var(--fond-doux); }
.tableau td { padding: 12px; border-bottom: 1px solid var(--filet); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .centre, .tableau.acces th:not(:first-child):not(:nth-child(2)) { text-align: center; }
.tableau .droite { text-align: right; }
.tableau input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); }
.sous { display: block; color: var(--texte-3); font-size: .82rem; }
.muet { color: var(--texte-3); }
.petit { font-size: .85rem; }
.puce { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: middle; }
.etiquette { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: color-mix(in srgb, var(--c, #1f4fd8) 10%, #fff); color: var(--c, var(--accent)); }
.alerte { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem; border: 1px solid var(--filet); background: var(--fond); }
.alerte-ok { background: #ecf8f1; color: #16794a; border-color: #cdebd9; }
.alerte-err { background: #fdf1f1; color: #c0262d; border-color: #f5d0d2; }
.alerte-info { background: var(--accent-pale); color: #1a3a8f; border-color: #d6e0fb; }
code.mdp { font-family: Consolas, "Cascadia Mono", monospace; font-size: 1.05rem; padding: 2px 8px; border-radius: 6px; background: #fff; border: 1px solid #d6e0fb; letter-spacing: .04em; }

/* Comptes des modules */
.module-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.module-tete .pastille { --c: inherit; }
.module-tete h3 { margin: 0; font-size: 1.05rem; }
.module-tete p { margin: 2px 0 0; }
.ligne-form { margin: 0; }
.ligne-form select { height: 34px; padding: 0 8px; border: 1px solid var(--filet-fort); border-radius: 8px; font: inherit; font-size: .9rem; background: #fff; }
.actions-ligne { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.actions-ligne form { margin: 0; }
.titre-rubrique .puce { margin-right: 0; }

/* ---------- Connexion ---------- */
body.simple .haut, body.simple .page, body.simple .pied { margin-left: 0; }
body.simple { background: var(--fond-doux); }
.connexion-centre { display: flex; justify-content: center; padding: 6vh 0 4vh; }
.boite { width: 100%; max-width: 420px; background: var(--fond); border: 1px solid var(--filet); border-radius: 16px; padding: 28px 32px 22px; box-shadow: 0 10px 30px rgba(11, 15, 25, .06); }
.boite-marque { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 700; color: var(--texte-2); }
.boite-marque span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: .85rem; }
.boite-titre { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.boite-texte { color: var(--texte-2); margin: 0 0 18px; }
.boite .bouton { width: 100%; margin-top: 4px; }
.boite .note { margin: 14px 0 0; font-size: .85rem; color: var(--texte-3); }

/* ---------- Téléphone : barre d'icônes en bas ---------- */
@media (max-width: 760px) {
  .haut, .page, .pied { margin-left: 0; }
  .haut-int { padding: 0 16px; gap: 10px; }
  .haut-chemin span { display: none; }
  .profil-texte, .profil-fleche { display: none; }
  .profil summary { padding: 3px; }
  .haut-droite .bouton-clair span { display: none; }
  .haut-droite .bouton-clair { padding: 0 10px; }
  .carte { padding: 18px 16px; }
  .boite { padding: 24px 20px; }
  .recherche { width: auto; flex: 1; }
  .page { padding: 22px 16px 40px; }
  .pied { padding-bottom: 62px; }
  .pied-int { padding: 16px; }
  .pied-marque small { display: none; }
  .accueil { padding: 14px 16px; }
  .accueil h1 { font-size: 1.1rem; }
  .accueil-chiffres > div { padding: 2px 10px; gap: 5px; }
  .accueil-chiffres dt { font-size: .66rem; }
  .accueil-chiffres dd { font-size: 1.1rem; }
  .flottant { top: auto; bottom: 0; right: 0; width: auto; height: 62px; flex-direction: row; justify-content: space-around; padding: 0 4px; gap: 0;
    border-right: 0; border-top: 1px solid var(--filet); }
  .flottant-marque, .flottant-filet, .flottant-espace, .flottant .secondaire, .flottant form { display: none; }
  .flottant-lien { flex: 1 1 0; width: auto; max-width: 52px; min-width: 0; }
  .flottant [data-info]::after, .flottant-lien.actif::before { display: none; }
  .annonce { align-items: flex-start; }
  .annonce .app-ouvrir { display: none; }
}

/* Grands écrans : tout s'agrandit proportionnellement */
@media screen and (min-width: 1800px) and (min-height: 880px) { :root { --zoom: 1.1; } }
@media screen and (min-width: 2200px) and (min-height: 1080px) { :root { --zoom: 1.3; } }
@media screen and (min-width: 2600px) and (min-height: 1280px) { :root { --zoom: 1.5; } }
@media screen { body { zoom: var(--zoom); } }
@media print { .flottant, .haut { display: none !important; } .page, .pied { margin-left: 0; } }
