/* Charte Ingenium animalis, reprise de la Gestion de projets */
:root {
  --bleu: #0D1245; --ardoise: #303366; --or: #DDB670; --orange: #F0822D; --orange-graph: #E0902F;
  --lavande: #8F97D6; --creme: #FEF7E2; --sable: #E6E1D3; --gris: #7D8198;
  --fond: #F7F5EF; --carte: #FFFFFF; --texte: #1B1F45; --doux: #5E6283;
  --ok: #2E7D5B; --proche: #C27C0E; --retrait: #B3261E;
  --rayon: 10px; --ombre: 0 1px 2px rgba(13,18,69,.06), 0 4px 16px rgba(13,18,69,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.5 "Hanken Grotesk", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; color: var(--bleu); margin: 0; line-height: 1.2; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
a { color: var(--ardoise); }
button, input, select, textarea { font: inherit; color: inherit; }

.entete { background: var(--bleu); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
.marque { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.marque img { height: 30px; }
.marque span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--or); font-weight: 600; }
nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav a, .lien { color: #fff; opacity: .78; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 14px; background: none; border: 0; cursor: pointer; }
nav a:hover, .lien:hover { opacity: 1; background: var(--ardoise); }
nav a.actif { opacity: 1; color: var(--or); }

main { max-width: 1280px; margin: 0 auto; padding: 28px; }
/* Le tableau de bord occupe toute la largeur de l'écran ; les écrans de saisie gardent une largeur de lecture */
main.pleine-largeur { max-width: 2400px; padding: 28px 32px; }
.barre { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.barre .sur-titre { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-graph); font-weight: 700; margin-bottom: 4px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn { border: 1px solid var(--sable); background: var(--carte); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--bleu); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--ardoise); }
.btn.principal { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.principal:hover { filter: brightness(.95); }
.btn:disabled { opacity: .5; cursor: wait; }
.periode { display: flex; align-items: center; gap: 4px; }
.periode select { padding: 7px 10px; border: 1px solid var(--sable); border-radius: 8px; background: var(--carte); font-weight: 600; }

.bandeau { background: var(--creme); border: 1px solid #F0C27A; border-left: 4px solid var(--orange); padding: 10px 14px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.erreur { background: #FDECEA; border-color: #F3B4AE; border-left-color: var(--retrait); }

/* Grille de six colonnes, chaque ligne réunissant des cartes de hauteur voisine :
   notoriété, audience et emailing au tiers ; service et inbound à la moitié ; social sur toute la largeur */
.synthese { display: grid; gap: 14px; margin-bottom: 34px; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas: "notoriete notoriete audience audience engagement engagement" "service service service inbound inbound inbound" "social social social social social social"; }
.theme-notoriete { grid-area: notoriete; } .theme-audience { grid-area: audience; } .theme-engagement { grid-area: engagement; }
.theme-service { grid-area: service; } .theme-inbound { grid-area: inbound; } .theme-social { grid-area: social; }
.theme { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px 16px; border-top: 3px solid var(--or); min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.theme header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.theme-titre { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); font-weight: 700; text-decoration: none; }
.theme-titre:hover { color: var(--orange-graph); }
.theme-titre .num { color: var(--or); margin-right: 6px; }
.theme-sources { font-size: 11px; color: var(--gris); }
.theme-sous-titre { font-size: 13px; color: var(--doux); margin-top: -4px; }
.elements { display: flex; flex-wrap: wrap; gap: 14px 18px; flex: 1; }
.theme-service .el-radar { flex: 3 1 300px; }
.theme-service .el-nps { flex: 1 1 160px; justify-content: center; }

/* Les barres s'étirent pour occuper la hauteur libre de leur colonne : pas de zone vide,
   et deux colonnes voisines finissent au même niveau */
.el > .visuel.extensible { flex: 1 1 72px; min-height: 72px; max-height: 170px; height: 0; margin-top: 10px; }
.el { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.el-large { flex: 2 1 260px; }
.el + .el { border-left: 1px solid var(--sable); padding-left: 16px; }
.el-valeur { font-family: "Playfair Display", Georgia, serif; font-size: 30px; color: var(--orange-graph); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-valeur small { font-size: 16px; color: var(--doux); }
.el-libelle { font-weight: 700; color: var(--bleu); font-size: 14px; }
.el-vide { justify-content: center; border: 1px dashed var(--sable); border-radius: 8px; padding: 12px; min-height: 90px; }
.el + .el-vide { border-left: 1px dashed var(--sable); padding-left: 12px; }
.el-vide .el-libelle { color: var(--doux); }
.el-vide .contexte { font-style: italic; }
.contexte { font-size: 13px; color: var(--doux); }
.centre { text-align: center; }
.visuel { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.visuel-ligne { display: flex; align-items: center; gap: 14px; }
.visuel-ligne > .visuel { width: 104px; flex: none; margin: 0; }
.visuel-centre { font: 700 19px "Hanken Grotesk", sans-serif; fill: var(--bleu); }
.visuel-centre.petit { font-size: 16px; }
.visuel-petit { font: 600 10px "Hanken Grotesk", sans-serif; fill: var(--gris); }
.duel-valeur { font: 700 13px "Hanken Grotesk", sans-serif; fill: var(--doux); }
.duel-valeur.fort { fill: var(--orange-graph); font-size: 15px; }
.el-duel .visuel { max-width: 260px; }
.toile-libelle { font: 600 12px "Hanken Grotesk", sans-serif; fill: var(--doux); }
.toile-note { font-weight: 700; fill: var(--orange-graph); }
.el-radar .visuel { max-width: 440px; margin: 4px auto 0; }
.radar-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.el-nps { align-items: center; }
.el-nps .visuel { max-width: 170px; }
.el-nps .el-valeur { margin-top: -6px; }
.cumul { font-size: 12.5px; color: var(--doux); margin-top: 2px; }
.cumul strong { color: var(--texte); font-weight: 700; }
.cumul .evol { font-size: 12.5px; }
.el-liste { flex: 3 1 240px; }
/* La liste occupe toute la hauteur libre : ses lignes se répartissent au lieu de laisser un vide dessous */
.liste-lp { display: flex; flex-direction: column; justify-content: space-around; gap: 7px; flex: 1; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sable); }
/* Nom sur sa ligne, puis barre et valeur (colonne de largeur fixe) : noms entiers, barres alignées */
.lp { display: grid; grid-template-columns: minmax(0, 1fr) 52px; grid-template-areas: "nom nom" "barre valeur" "cumul cumul"; column-gap: 10px; row-gap: 2px; align-items: center; }
.lp-nom { grid-area: nom; font-size: 13px; font-weight: 600; color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-barre { grid-area: barre; } .lp-valeur { grid-area: valeur; }
.lp-barre { height: 8px; background: var(--sable); border-radius: 4px; overflow: hidden; }
.lp-barre span { display: block; height: 100%; background: var(--orange-graph); border-radius: 4px; }
.lp-valeur { font-size: 13px; font-weight: 700; color: var(--bleu); text-align: right; font-variant-numeric: tabular-nums; }
.lp-cumul { grid-area: cumul; font-size: 11.5px; color: var(--gris); }
/* Indice de marque : jauge à gauche, composantes à droite, publics dessous */
.el-indice { flex: 1 1 100%; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.3fr); grid-template-areas: "jauge composantes" "publics publics"; gap: 4px 20px; }
.indice-jauge { grid-area: jauge; } .indice-composantes { grid-area: composantes; } .indice-publics { grid-area: publics; }
.indice-composantes .sous-titre-liste { margin-top: 0; }
.indice-tete { position: relative; max-width: 220px; margin: 0 auto; width: 100%; }
.indice-tete .visuel { margin: 0; }
.indice-valeur { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-family: "Playfair Display", Georgia, serif; font-size: 34px; color: var(--orange-graph); line-height: 1; }
.indice-valeur small { font-size: 15px; color: var(--doux); }
.sous-titre-liste { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); font-weight: 700; margin-top: 12px; }
.el-indice .liste-lp { margin-top: 6px; padding-top: 0; border-top: 0; flex: 0; }
.publics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; text-align: center; }
.public { background: var(--fond); border-radius: 6px; padding: 6px 2px; }
.table-publics td.ensemble { font-weight: 700; background: var(--creme); }
.table-publics .evol { font-size: 11.5px; }
.table-saisie td, .table-saisie th { padding: 5px 6px; }
.table-saisie .case { width: 72px; border: 1px solid var(--sable); border-radius: 6px; padding: 5px 6px; text-align: right; }
.table-saisie .case:disabled { background: var(--fond); }
.table-saisie tr.secondaire td:first-child { color: var(--doux); }
.table-saisie .unite { color: var(--gris); font-size: 12px; }
.legende-courbe { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--doux); flex-wrap: wrap; }
.trait { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--orange-graph); margin-left: 6px; }
.trait.pointille { border-top: 2px dashed var(--lavande); }
.pastille-couleur { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legende-parts { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--texte); margin-bottom: 4px; }
.legende-parts i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.chiffres-ligne { display: flex; gap: 22px; margin: 4px 0; }
.chiffres-ligne.separe { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sable); }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 2px; }
.mini-valeur { font-size: 19px; font-weight: 700; color: var(--bleu); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-libelle { font-size: 12px; color: var(--doux); font-weight: 600; }
.mini .evol, .chiffres-ligne .evol { font-size: 12px; }
@media (max-width: 1300px) {
  .synthese { grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "notoriete notoriete" "audience engagement" "service service" "inbound inbound" "social social"; }
}
@media (max-width: 640px) {
  .synthese { grid-template-columns: minmax(0, 1fr); grid-template-areas: "notoriete" "audience" "engagement" "service" "inbound" "social"; }
  .el-indice { grid-template-columns: minmax(0, 1fr); grid-template-areas: "jauge" "composantes" "publics"; }
  .el + .el, .el + .el-vide { border-left: 0; padding-left: 0; border-top: 1px solid var(--sable); padding-top: 12px; }
  .el { flex-basis: 100%; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.evol { font-size: 13px; font-weight: 600; }
.evol.haut { color: var(--ok); } .evol.bas { color: var(--retrait); } .evol.neutre { color: var(--doux); }
.pastille { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; margin-top: 4px; width: fit-content; }
.pastille.ok { background: #E3F2EA; color: var(--ok); } .pastille.proche { background: #FBF0DC; color: var(--proche); } .pastille.retrait { background: #FBE4E2; color: var(--retrait); }

.axe-bloc { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px 24px; margin-bottom: 22px; }
.axe-tete { display: flex; gap: 14px; align-items: baseline; margin-bottom: 4px; }
.axe-tete .num { font-family: "Playfair Display", Georgia, serif; color: var(--or); font-size: 26px; }
.axe-message { color: var(--doux); margin: 2px 0 16px 40px; }
.axe-message strong { color: var(--texte); font-weight: 600; }
.indicateurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ind { border: 1px solid var(--sable); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.ind .libelle { font-size: 13px; color: var(--doux); }
.ind .valeur { font-size: 22px; font-weight: 700; color: var(--bleu); font-variant-numeric: tabular-nums; }
.ind .contexte { font-size: 12px; color: var(--gris); }
.graphes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px; }
.graphe { min-width: 0; }
.graphe h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--doux); }
/* Le canevas est sorti du flux : il suit la largeur de sa colonne sans jamais l'élargir,
   même après un redimensionnement de la fenêtre (sinon les graphiques débordent) */
.graphe .toile { position: relative; height: 260px; min-width: 0; overflow: hidden; }
.graphe .toile canvas { position: absolute; left: 0; top: 0; }
.graphes, .graphes-site, .colonnes-sites, .service-grille, .service-indicateurs, .axe-bloc { min-width: 0; }
.commentaire { margin-top: 14px; padding: 10px 14px; background: var(--fond); border-radius: 8px; font-size: 14px; white-space: pre-line; }
.a-venir { color: var(--doux); font-style: italic; }
details.detail { margin-bottom: 14px; }
details.detail summary { cursor: pointer; color: var(--ardoise); font-size: 14px; font-weight: 600; }

/* Axes I-CAD : bleu Klein, pour les distinguer d'un coup d'œil des données Ingenium */
:root { --klein: #002FA7; --klein-clair: #E8EEFC; }
.axe-bloc.theme-klein { border-top: 4px solid var(--klein); background: linear-gradient(180deg, var(--klein-clair) 0, var(--carte) 140px); }
.theme-klein .axe-tete .num, .theme-klein .axe-tete h2 { color: var(--klein); }
.theme-klein .ind { border-color: #C9D5F6; background: #fff; }
.theme-klein .ind .valeur { color: var(--klein); }
.theme-klein .axe-message strong { color: var(--klein); }

.colonne-site.theme-klein { border-color: #C9D5F6; border-top: 4px solid var(--klein); background: linear-gradient(180deg, var(--klein-clair) 0, #fff 90px); }
.colonne-site.theme-klein h3, .colonne-site.theme-klein td strong { color: var(--klein); }
.colonne-site:not(.theme-klein) { border-top: 4px solid var(--or); }
.medias { margin-top: 12px; }
.medias ol { margin: 6px 0 0; padding-left: 20px; font-size: 13px; }
.medias li { padding: 3px 0; border-bottom: 1px solid var(--sable); }
.medias li span { display: inline-block; min-width: 60%; color: var(--texte); }
.medias li strong { color: var(--doux); font-weight: 600; }

.bloc-reseaux { margin-top: 22px; padding-top: 16px; border-top: 1px solid #C9D5F6; }
.bloc-reseaux h3 { font-size: 17px; margin-bottom: 10px; }
.theme-klein .bloc-reseaux h3 { color: var(--klein); }
.graphes.graphes-reseaux { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1500px) { .graphes.graphes-reseaux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .graphes.graphes-reseaux { grid-template-columns: minmax(0, 1fr); } }

/* Service : toile à gauche, indicateurs regroupés à droite */
.service-grille { display: grid; grid-template-columns: minmax(360px, 1.15fr) minmax(0, 1.5fr); gap: 24px; align-items: stretch; }
.service-toile { border: 1px solid var(--sable); border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; }
.toile-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.toile-tete h3 { font-size: 16px; }
/* Toile agrandie : elle occupe toute la hauteur de sa zone */
.service-toile .visuel { max-width: 760px; width: 100%; margin: auto; flex: 1; }
/* Cartes de couleur : bleu Ingenium, chiffre en or */
.cartes-couleur { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.carte-couleur { background: var(--bleu); color: #fff; border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.cc-libelle { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); }
.cc-valeur { font-family: "Playfair Display", Georgia, serif; font-size: 40px; color: var(--or); line-height: 1.1; }
.cc-valeur small { font-size: 18px; color: rgba(255,255,255,.7); }
.cc-contexte { font-size: 13px; color: rgba(255,255,255,.7); }
.cc-evol { font-size: 13px; font-weight: 700; }
.cc-evol.haut { color: #8FD3AE; } .cc-evol.bas { color: #F2A39C; }
.cc-cible { font-size: 12px; color: var(--or); margin-top: 4px; }
.service-indicateurs { display: flex; flex-direction: column; gap: 16px; }
.groupe-service h3 { font-size: 16px; margin-bottom: 8px; }
.graphe-briefs { grid-template-columns: minmax(0, 1fr); }
.graphe-briefs .toile { height: 190px; }
.groupe-service .indicateurs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 1100px) { .service-grille { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .groupe-service .indicateurs, .cartes-couleur { grid-template-columns: minmax(0, 1fr); } }

/* Emailing : détail par campagne */
.campagnes { margin-top: 6px; }
.campagnes-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.campagnes-tete h3 { font-size: 17px; }
.table-campagnes th.triable { cursor: pointer; user-select: none; white-space: nowrap; }
.table-campagnes th.actif { color: var(--bleu); }
.table-campagnes td { vertical-align: middle; padding: 7px 10px; }
.table-campagnes td.date { white-space: nowrap; color: var(--doux); font-size: 13px; }
.table-campagnes td.nom-campagne { font-weight: 600; color: var(--texte); }
.table-campagnes td.taux { width: 17%; min-width: 150px; }
.taux-ligne { display: flex; align-items: center; gap: 10px; }
.taux-ligne strong { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; color: var(--bleu); }
.taux-barre { position: relative; flex: 1; height: 8px; background: var(--fond); border-radius: 4px; }
.taux-barre span { display: block; height: 100%; border-radius: 4px; background: var(--lavande); }
.taux-barre span.dessus, .puce.dessus { background: var(--ok); }
.taux-barre span.dessous, .puce.dessous { background: var(--retrait); opacity: .75; }
.repere-moyenne { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--bleu); }
.repere-moyenne.legende { position: relative; display: inline-block; top: 2px; }
.puce { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.ligne-moyenne td { background: var(--creme); font-weight: 600; }
.campagnes > .btn { margin-top: 10px; }

/* Audience : une colonne par site */
.colonnes-sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.colonne-site { border: 1px solid var(--sable); border-radius: 8px; padding: 14px 16px; min-width: 0; }
.colonne-site h3 { font-size: 20px; margin-bottom: 8px; }
.table-site td, .table-site th { padding: 6px 6px; }
.table-site td:first-child { color: var(--doux); font-size: 13px; }
.table-site td strong { font-size: 15px; color: var(--bleu); }
.table-site .evol { font-size: 12px; }
.graphes-site { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.graphes-site .toile { height: 200px; }
@media (max-width: 1100px) { .colonnes-sites { grid-template-columns: minmax(0, 1fr); } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--sable); }
td { padding: 8px 10px; border-bottom: 1px solid var(--sable); vertical-align: top; }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; }
.table-defile { overflow-x: auto; }

.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px 24px; margin-bottom: 20px; }
.champ { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.champ label { font-size: 13px; font-weight: 600; color: var(--doux); }
.champ input, .champ textarea, .champ select { border: 1px solid var(--sable); border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; }
.champ textarea { min-height: 64px; resize: vertical; }
.champ .aide { font-size: 12px; color: var(--gris); }
.grille2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 18px; }
.statut { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.statut.ok { background: #E3F2EA; color: var(--ok); } .statut.erreur { background: #FBE4E2; color: var(--retrait); }
.statut.demo { background: #FBF0DC; color: var(--proche); } .statut.attente { background: var(--sable); color: var(--doux); }

.connexion { max-width: 380px; margin: 60px auto; }
.connexion h1 { margin-bottom: 18px; }
.note { font-size: 13px; color: var(--doux); }

@media (max-width: 640px) {
  .entete { padding: 10px 16px; position: static; }
  .marque span { display: none; }
  main { padding: 18px 16px; }
  .axe-bloc, .carte { padding: 16px; }
  .axe-message { margin-left: 0; }
}

/* Plein écran : bouton discret en haut à droite de chaque carte et graphique */
.theme, .graphe, .service-toile, .colonne-site { position: relative; }
.bouton-plein-ecran { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 5px; border: 1px solid var(--sable);
  border-radius: 6px; background: rgba(255,255,255,.9); color: var(--doux); cursor: pointer; opacity: .55; transition: opacity .15s, color .15s; z-index: 2; }
.bouton-plein-ecran svg { width: 100%; height: 100%; display: block; }
.theme:hover > .bouton-plein-ecran, .graphe:hover > .bouton-plein-ecran, .service-toile:hover > .bouton-plein-ecran,
.colonne-site:hover > .bouton-plein-ecran, .bouton-plein-ecran:focus-visible { opacity: 1; color: var(--bleu); }
.graphe { padding-right: 30px; }
.theme header { padding-right: 30px; }
.colonne-site h3, .toile-tete { padding-right: 30px; }

/* Élément affiché en plein écran : par-dessus la page, sur toute la fenêtre */
:is(.theme, .graphe, .service-toile, .colonne-site).plein-ecran {
  background: var(--carte); padding: 32px 40px; overflow: auto; box-sizing: border-box; max-width: none; border-radius: 0; }
.plein-ecran { position: fixed; inset: 0; z-index: 1000; }
body.sans-defilement { overflow: hidden; }
.plein-ecran > .bouton-plein-ecran { top: 16px; right: 16px; width: 34px; height: 34px; opacity: 1; }
.graphe.plein-ecran h4 { font-size: 20px; margin-bottom: 14px; }
.graphe.plein-ecran .toile { height: calc(100vh - 140px); }
.service-toile.plein-ecran .visuel { max-width: none; height: calc(100vh - 130px); }
.theme.plein-ecran { display: flex; flex-direction: column; font-size: 18px; }
.theme.plein-ecran .elements { flex: 1; gap: 30px 40px; }
.theme.plein-ecran .el-valeur { font-size: 56px; }
/* Les graphiques de la carte prennent toute la hauteur libre de l'écran */
.theme.plein-ecran .el > .visuel.extensible { max-height: none; min-height: 240px; }
.theme.plein-ecran .el-radar .visuel { max-width: min(980px, 100%); height: calc(100vh - 230px); }
.theme.plein-ecran .el-nps .visuel { max-width: 380px; }
.theme.plein-ecran .indice-tete { max-width: 520px; }
.theme.plein-ecran .el-duel .visuel { max-width: 520px; }
