/* Portail client DUDYWEB : feuille unique, sans dépendance externe */
:root {
  --fond: #f8fafc; --carte: #fff; --texte: #0f172a; --doux: #475569; --trait: #e2e8f0;
  --accent: #2563eb; --accent-texte: #fff; --orange: #d97706; --rouge: #dc2626; --vert: #16a34a;
  --cyan-texte: #0e7490; --cyan-fond: #cffafe;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #0b1220; --carte: #111a2e; --texte: #e2e8f0; --doux: #94a3b8; --trait: #24324d; --accent: #60a5fa; --accent-texte: #0b1220; --cyan-texte: #67e8f9; --cyan-fond: rgba(34, 211, 238, .16); }
}
* { box-sizing: border-box; }
/* L'attribut hidden l'emporte toujours (les règles des champs ci-dessous l'annuleraient) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; margin: .2em 0 .6em; }
h2 { font-size: 1.15rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1rem; margin: 1.2em 0 .4em; }
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 16px; background: var(--carte); border-bottom: 1px solid var(--trait); }
.marque { font-weight: 800; letter-spacing: .08em; text-decoration: none; color: var(--texte); }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
nav a { text-decoration: none; }
/* Page ouverte : lien du menu en évidence (couleur, gras, soulignement épais) */
nav > a.actif:not(.bouton) { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
nav > a.bouton.actif { box-shadow: 0 0 0 2px var(--carte), 0 0 0 4px var(--accent); }
.page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.pied { text-align: center; color: var(--doux); font-size: .85rem; padding: 24px 16px; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 20px; margin: 16px 0; }
.etroite { max-width: 440px; margin: 32px auto; }
form label { display: block; margin: 12px 0; color: var(--doux); font-size: .9rem; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; color: var(--texte);
  background: var(--fond); border: 1px solid var(--trait); border-radius: 8px; }
label.case { display: flex; gap: 8px; align-items: flex-start; color: var(--texte); }
label.case input { width: auto; margin-top: 4px; }
fieldset { border: 1px solid var(--trait); border-radius: 8px; margin: 12px 0; }
button, .bouton { display: inline-block; padding: 9px 16px; font: inherit; font-weight: 600; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--accent-texte); cursor: pointer; text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
.secondaire { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.rouge { background: var(--rouge); color: #fff; }
button.lien { background: none; color: var(--accent); padding: 0; font-weight: 400; }
.inline { display: inline; margin: 0; }
.petit { font-size: .85rem; color: var(--doux); }
.alerte { background: #fee2e2; color: #7f1d1d; border-radius: 8px; padding: 10px 14px; }
.bandeau { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 8px; padding: 10px 14px; color: var(--doux); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.chiffre { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.chiffre span { color: var(--doux); font-size: .85rem; }
.chiffre strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.chiffre em { font-style: normal; color: var(--doux); font-size: .85rem; }
.chiffre button { margin-top: 8px; }
/* Jauge du plafond : dégradé vert (0 %) → rouge (100 %) sur toute la largeur, la part non
   consommée est recouverte depuis la droite ; cliquable (page des plafonds) */
.jauge { display: block; position: relative; height: 8px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(to right, var(--vert), var(--orange) 60%, var(--rouge)); }
.jauge .reste { position: absolute; top: 0; right: 0; height: 100%; background: var(--trait); }
a.jauge:hover, a.jauge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.titre-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; overflow: hidden; }
tbody tr:last-child td { border-bottom: 0; }
/* Petits écrans : le tableau défile horizontalement plutôt que la page */
@media (max-width: 720px) { table { display: block; overflow-x: auto; } }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { color: var(--doux); font-weight: 600; font-size: .85rem; }
.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail { color: var(--doux); font-size: .9rem; max-width: 420px; overflow-wrap: anywhere; }
.vide { color: var(--doux); text-align: center; padding: 16px; }
.etat { font-size: .8rem; padding: 2px 8px; border-radius: 999px; background: var(--trait); }
.etat.actif { background: color-mix(in srgb, var(--vert) 18%, transparent); }
.etat.suspendu { background: color-mix(in srgb, var(--orange) 22%, transparent); }
.histogramme { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 8px; background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; }
.barre { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.barre div { width: 100%; min-height: 1px; background: var(--accent); border-radius: 3px 3px 0 0; }
.legende { display: flex; justify-content: space-between; margin-top: 4px; }
.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 16px; }
.filtres label { margin: 0; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; align-items: end; }
.grille button { margin: 12px 0; }
/* Compte SFTP (page Hébergement) : serveur + port sur une ligne, puis identifiant, mot de passe, dossier */
.grille-sftp { grid-template-columns: minmax(0, 1fr) max-content; }
.grille-sftp > * { grid-column: 1 / -1; }
/* Prérequis de l'hébergeur SFTP (page Hébergement) */
.encadre-prerequis { border: 1px solid var(--trait); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; margin: 10px 0 14px; background: color-mix(in srgb, var(--accent) 4%, transparent); }
.encadre-prerequis h3 { margin: 0 0 4px; }
.prerequis { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 10px 0; }
.prerequis dt { font-weight: 600; }
.prerequis dd { margin: 0; }
@media (max-width: 560px) { .prerequis { grid-template-columns: minmax(0, 1fr); } .prerequis dd { margin-bottom: 6px; } }
.grille-sftp > .champ-dudyweb_hebergeur_hote { grid-column: 1; }
.grille-sftp > .champ-dudyweb_hebergeur_port { grid-column: 2; white-space: nowrap; }
@media (max-width: 560px) { .grille-sftp { grid-template-columns: minmax(0, 1fr); } .grille-sftp > .champ-dudyweb_hebergeur_port { grid-column: 1; } }
.pages { display: flex; justify-content: space-between; }
.danger { margin-top: 32px; border: 1px solid var(--rouge); border-radius: 12px; padding: 12px 16px; }
.danger summary { cursor: pointer; color: var(--rouge); font-weight: 600; }
.chiffre.credit { border-color: var(--accent); }
.chiffre.credit strong { color: var(--accent); }
form.ligne { display: flex; gap: 8px; align-items: center; margin: 0; }
form.ligne input { margin: 0; min-width: 0; }
form.ligne button { padding: 6px 10px; font-size: .85rem; white-space: nowrap; }
.rouge-texte { color: var(--rouge); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.etat.creation { background: color-mix(in srgb, var(--accent) 18%, transparent); }
tr.en-creation td { color: var(--doux); }
.console { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; min-height: 240px; overflow-y: auto; }
.bulle { max-width: 80%; padding: 10px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; }
.bulle .texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle.moi { align-self: flex-end; background: var(--accent); color: var(--accent-texte); border-bottom-right-radius: 4px; }
.bulle.moi .petit { color: inherit; opacity: .75; }
.bulle.assistant { align-self: flex-start; background: var(--fond); border: 1px solid var(--trait); border-bottom-left-radius: 4px; }
.bulle.attente .texte { color: var(--doux); font-style: italic; }
.saisie { display: flex; gap: 8px; align-items: flex-end; }
.saisie textarea { flex: 1; font: inherit; color: var(--texte); background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 10px; resize: vertical; }
@media (max-width: 600px) { .bulle { max-width: 92%; } }
.saisie .joindre { cursor: pointer; padding: 9px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Console dans la fenêtre flottante de l'aperçu */
body.integre { padding: 8px; display: flex; flex-direction: column; height: 100vh; box-sizing: border-box; margin: 0; }
body.integre .console { flex: 1; max-height: none; min-height: 0; margin: 4px 0 8px; padding: 10px; }
body.integre .entete-integre { margin: 0; }
body.integre .saisie textarea { min-height: 2.5em; }
body.integre .bulle { max-width: 92%; }
/* Date des bulles de la console : discrète */
.bulle > .petit { font-size: .68rem; line-height: 1.2; opacity: .7; }
/* Site public : présentation, tarifs, contact */
.page.public { max-width: 1100px; }
.hero { text-align: center; padding: 48px 0 32px; }
.petit-hero { padding: 24px 0 8px; }
.surtitre { letter-spacing: .03em; font-weight: 800; color: var(--accent); margin: 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: .3em auto .4em; max-width: 820px; }
.chapo { font-size: 1.15rem; color: var(--doux); max-width: 720px; margin: 0 auto; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.bouton.grand { padding: 13px 22px; font-size: 1.05rem; }
.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0 40px; }
.atout { background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; padding: 22px; }
.atout h2 { margin: .1em 0 .4em; }
.atout p { color: var(--doux); margin: 0; }
.chiffre-cle { font-size: 2.6rem; font-weight: 800; color: var(--accent) !important; line-height: 1; margin: 0 0 6px !important; }
.etapes ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: etape; }
.etapes li { counter-increment: etape; background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; padding: 20px; color: var(--doux); }
.etapes li::before { content: counter(etape); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent); color: var(--accent-texte); font-weight: 800; margin-bottom: 10px; }
.etapes li strong { color: var(--texte); display: block; }
.inclus ul { columns: 2 320px; column-gap: 32px; padding-left: 1.2em; color: var(--doux); }
.inclus li { margin: 0 0 10px; break-inside: avoid; }
.appel { text-align: center; margin: 40px 0 8px; }
.etroite.large { max-width: 620px; }
.piege { position: absolute; left: -9999px; }
nav .bouton { padding: 7px 14px; }
textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--trait); border-radius: 8px; }
.etat.suppression { background: color-mix(in srgb, var(--orange) 22%, transparent); }
.etat.suspendu { background: color-mix(in srgb, var(--rouge) 18%, transparent); }
.bandeau-ferme p { margin: .3em 0; }
.bandeau-ferme form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.etat.veille { background: color-mix(in srgb, var(--doux) 22%, transparent); }
details.veille { margin-top: 32px; border: 1px solid var(--trait); border-radius: 12px; padding: 12px 16px; }
details.veille summary { cursor: pointer; font-weight: 600; }
details.veille + details.danger { margin-top: 12px; }
th a.tri { color: inherit; text-decoration: none; white-space: nowrap; }
th a.tri span { color: var(--doux); font-size: .8em; }
th a.tri.actif, th a.tri:hover { color: var(--accent); }
.compteurs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.compteurs li { color: var(--doux); font-size: .88rem; }
.compteurs strong { font-size: 1.25rem; color: var(--texte); margin-right: 4px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
.legal dt { color: var(--doux); }
.legal dd { margin: 0; }
@media (max-width: 480px) { .legal dl { grid-template-columns: 1fr; gap: 0; } .legal dd { margin-bottom: 8px; } }
button.corbeille { font-size: 1.1em; line-height: 1; }
/* Liste des projets : accès à l'assistant, à l'aperçu et à l'administration par icônes */
.projet-nom .icones { display: inline-flex; gap: 4px; vertical-align: middle; }
/* Pastille « à faire » et icônes calées à droite de la cellule, la pastille juste devant les icônes */
.projet-nom .projet-droite { float: right; display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.projet-nom .projet-droite .badge-a-faire { margin-left: 0; }
.icones a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; color: var(--doux); }
.icones a:hover, .icones a:focus-visible { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.icones svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Console : saisie désactivée pendant que l'assistant travaille */
.saisie.occupe textarea { opacity: .6; cursor: not-allowed; }
.joindre.inactif { opacity: .45; pointer-events: none; }
/* Console : liens des messages (lisibles sur les deux couleurs de bulles) */
.bulle .texte a { color: inherit; text-decoration: underline; }
/* Médiathèque */
.medias .vignette { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--trait); display: block; }
.medias form.ligne input[type=file] { max-width: 180px; font-size: .8rem; padding: 4px; }

/* Responsive : contenus longs (adresses, e-mails) à la ligne ; compteurs sur une colonne si étroit */
td { overflow-wrap: anywhere; }
.compteurs { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
@media (max-width: 900px) { table { display: block; overflow-x: auto; } }
/* Téléphone : chaque ligne de tableau devient une carte, libellé de colonne à gauche (data-label posé
   par base.html) ; en-têtes de tri gardés, en boutons */
@media (max-width: 640px) {
  table.cartes { display: block; border: 0; background: none; overflow: visible; }
  table.cartes thead, table.cartes tbody, table.cartes tr, table.cartes td { display: block; width: 100%; }
  table.cartes thead tr { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
  table.cartes thead th { display: block; width: auto; border: 1px solid var(--trait); border-radius: 999px; padding: 4px 10px; background: var(--carte); }
  table.cartes thead th:empty { display: none; }
  table.cartes thead:not(:has(a)) { display: none; }       /* en-têtes sans tri : inutiles en cartes */
  table.cartes tbody tr { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; margin: 0 0 10px; padding: 6px 0; }
  table.cartes td { position: relative; border: 0; padding: 6px 14px 6px calc(38% + 14px); text-align: left; min-height: 1.7em; }
  table.cartes td::before { content: attr(data-label); position: absolute; left: 14px; top: 7px; width: calc(38% - 10px);
    color: var(--doux); font-size: .8rem; font-weight: 600; overflow-wrap: anywhere; }
  table.cartes td:not([data-label]), table.cartes td[data-label=""] { padding-left: 14px; }
  table.cartes td:not([data-label])::before, table.cartes td[data-label=""]::before { display: none; }
  table.cartes td:first-child { padding-left: 14px; font-weight: 600; }
  table.cartes td:first-child::before { display: none; }
  table.cartes td.vide, table.cartes td[colspan] { padding-left: 14px; text-align: center; }
  table.cartes td form.ligne { flex-wrap: wrap; }
  table.cartes td.nombre { font-variant-numeric: tabular-nums; }
}
/* Journal du projet (page d'administration) */
.filtres { display: flex; flex-wrap: wrap; gap: 6px; }
tr.ligne-echec td { color: var(--rouge); }
/* Tableau de bord : une jauge par plafond */
.jauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 24px; margin: 8px 0 20px; }
.plafond-jauge { display: flex; flex-direction: column; gap: 6px; }
.plafond-titre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: .9rem; }
.plafond-titre span { color: var(--doux); }
/* Fenêtre (dialogue) : ajout et modification d'un plafond */
.fenetre-dialogue { border: 1px solid var(--trait); border-radius: 14px; padding: 20px; width: min(520px, calc(100vw - 32px));
  background: var(--carte); color: var(--texte); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.fenetre-dialogue::backdrop { background: rgba(15,23,42,.45); }
.fenetre-dialogue h2 { margin-top: 0; grid-column: 1 / -1; }
.fenetre-dialogue .petit, .boutons-dialogue { grid-column: 1 / -1; }
.boutons-dialogue { display: flex; justify-content: flex-end; gap: 8px; }
.actions-plafond { white-space: nowrap; }
.actions-plafond form { display: inline; }
button.icone-action { font-size: 1.1em; line-height: 1; padding: 4px 6px; }
button.icone-poubelle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  background: none; border: 1px solid transparent; border-radius: 6px; color: var(--rouge); }
button.icone-poubelle:hover, button.icone-poubelle:focus-visible { background: color-mix(in srgb, var(--rouge) 12%, transparent); border-color: var(--rouge); }
/* Codes à 4 chiffres saisis masqués, sans champ « mot de passe » (pas de remplissage par le navigateur) */
input.code-masque { -webkit-text-security: disc; text-security: disc; letter-spacing: .3em; max-width: 8em; }
button.icone-poubelle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Page Recharger : pack offert sur demande */
.pack-offert { border-color: var(--vert); }
.pack-offert form { margin: 0; }
.pack-texte { margin: 8px 0 0; color: var(--doux); font-style: italic; }
/* Sélecteur de langue (en haut à droite) */
.langues { display: inline-flex; gap: 2px; margin-left: 6px; border: 1px solid var(--trait); border-radius: 999px; padding: 2px; }
.langues a { padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--doux); }
.langues a.actif { background: var(--accent); color: var(--accent-texte); }

/* Passages des textes juridiques encore à compléter par l'éditeur (à retirer avant l'ouverture) */
.a-completer { background: #fef08a; color: #713f12; padding: 0 .25em; border-radius: 4px; font-weight: 600; }
.legal ul { padding-left: 1.2em; }

/* Accueil : bandeau des garanties, sous les atouts */
.garanties { margin: 28px 0; border-left: 4px solid var(--accent); }
.garanties h2 { margin-top: 0; }
.garanties p { margin-bottom: 0; }


/* Tarifs : exemples de budget */
.budgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.budget { margin: 0; }
.budget h3 { margin: 0 0 8px; font-size: 1.05rem; }
.budget .montant { margin: 8px 0 0; font-weight: 800; font-size: 1.15rem; color: var(--accent); }
.budget .petit { margin: 2px 0 0; }

/* FAQ : questions dépliables */
.faq details { margin: 10px 0; padding: 0; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style-position: inside; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--doux); }

/* Tarifs : chaque pack mène à l'inscription (visiteur) ou au rechargement (client connecté) */
a.pack-lien { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.pack-lien:hover, a.pack-lien:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
a.pack-lien .pack-action { margin-top: 8px; color: var(--accent); font-weight: 700; font-size: .9rem; }

/* À propos */
.apropos ul { padding-left: 1.2em; }
.apropos li { margin: 0 0 8px; }
.apropos > h2:first-child { margin-top: 0; }

/* Professionnels : cartes des arguments */
.pros { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 8px 0 24px; }
.pros .carte { margin: 0; }
.pros h2 { margin: 0 0 8px; font-size: 1.1rem; }
.pros p { margin: 0; color: var(--doux); }
.pros article:last-child { grid-column: 1 / -1; }

/* Liste « À faire » des projets */
.todo .todo-terminee td { color: var(--doux); }
.todo .todo-terminee strong { text-decoration: line-through; font-weight: 600; }
.todo .todo-en_cours td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.todo .todo-a_faire td:first-child { box-shadow: inset 4px 0 0 var(--rouge); }
.badge-a-faire { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent);
  color: var(--accent-texte) !important; font-size: .78rem; font-weight: 700; text-decoration: none; }

/* Indicateur de l'assistant : crédit (vert, discret), attention (orange), blocage proche (rouge) */
.indicateur { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; vertical-align: middle; }
.indicateur-vert { color: var(--doux); background: transparent; border: 1px solid var(--trait); font-weight: 600; }
.indicateur-orange { color: #7c2d12; background: #fed7aa; border: 1px solid #fb923c; }
.indicateur-rouge { color: #fff; background: var(--rouge); border: 1px solid var(--rouge); }
.indicateur-orange::before, .indicateur-rouge::before { content: "⚠ "; }

/* Activité du projet, sous son nom dans la liste des projets */
.projet-nom .activite { display: block; font-size: .85em; color: var(--doux); font-weight: normal; margin-top: 2px; }

/* Super-administration : tableaux larges, défilement horizontal si besoin */
.page.large { max-width: none; }
.tableau-defilant { overflow-x: auto; margin-bottom: 24px; }
.tableau-defilant table { min-width: 900px; }
.tableau-defilant td, .tableau-defilant th { white-space: nowrap; }
table.triable th button.tri { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
table.triable th button.tri:hover, table.triable th[aria-sort="ascending"] button.tri, table.triable th[aria-sort="descending"] button.tri { color: var(--accent); }
.etat.bloque { background: color-mix(in srgb, var(--rouge) 28%, transparent); }
.blocage { display: flex; gap: 6px; align-items: center; margin: 0; }
.blocage input[name="motif"] { width: 14em; padding: 4px 6px; font-size: .85rem; }
.petit-bouton { padding: 4px 10px; font-size: .85rem; }
.petit-bouton.danger { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.blocage input, .blocage button { margin: 0; width: auto; }
.blocage input[name="motif"] { width: 14em; }

/* Retour de la page de paiement (Recharger) : encadré en tête de page */
.retour-paiement { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0 24px; padding: 18px 20px; border-radius: 12px;
  border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--carte)); outline: none; }
.retour-paiement strong { display: block; font-size: 1.15rem; color: var(--texte); }
.retour-paiement p { margin: 4px 0 0; color: var(--doux); }
.retour-icone { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 1.2rem; color: #fff; background: var(--accent); }
.retour-paiement.succes { border-color: var(--vert); background: color-mix(in srgb, var(--vert) 12%, var(--carte)); }
.retour-paiement.succes .retour-icone { background: var(--vert); }
.retour-paiement.erreur { border-color: var(--rouge); background: color-mix(in srgb, var(--rouge) 10%, var(--carte)); }
.retour-paiement.erreur .retour-icone { background: var(--rouge); }
.retour-paiement.neutre { border-color: var(--doux); background: color-mix(in srgb, var(--doux) 8%, var(--carte)); }
.retour-paiement.neutre .retour-icone { background: var(--doux); }
.retour-icone.tourne { animation: retour-tourne 1.2s linear infinite; }
@keyframes retour-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .retour-icone.tourne { animation: none; } }
/* Super-administration : fiche d'un projet (libellé, valeur) */
table.fiche th { width: 14em; white-space: nowrap; }

/* Cadeau de bienvenue (cadeau.html) : bloc mis en valeur et bandeau des pages publiques */
.cadeau-bloc { display: flex; align-items: center; gap: 18px; margin: 28px auto; max-width: 860px; padding: 20px 24px; text-align: left;
  border-radius: 16px; border: 2px solid var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--carte));
  box-shadow: 0 6px 24px color-mix(in srgb, var(--orange) 18%, transparent); }
.cadeau-icone { flex: 0 0 auto; width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--orange); color: #fff;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cadeau-texte { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cadeau-sur { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); }
.cadeau-texte strong { font-size: 1.6rem; line-height: 1.15; color: var(--texte); }
.cadeau-texte > span { color: var(--doux); }
.cadeau-bouton { flex: 0 0 auto; background: var(--orange); border-color: var(--orange); }
.carte .cadeau-bloc, .etroite .cadeau-bloc { margin: 12px 0 20px; padding: 16px; box-shadow: none; }
.etroite .cadeau-bloc .cadeau-texte strong { font-size: 1.3rem; }
.cadeau-bandeau { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 16px;
  background: var(--orange); color: #fff; font-weight: 600; font-size: .95rem; text-align: center; }
.cadeau-bandeau .cadeau-icone { width: 26px; height: 26px; padding: 4px; background: transparent; }
.cadeau-bandeau a { color: #fff; text-decoration: underline; white-space: nowrap; }
@media (max-width: 640px) { .cadeau-bloc { flex-direction: column; text-align: center; } .cadeau-texte { align-items: center; } }
.appel .cadeau-bloc { margin: 18px auto 22px; }
a.cadeau-lien { color: inherit; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
a.cadeau-lien:hover, a.cadeau-lien:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--orange) 30%, transparent); }
a.cadeau-lien:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { a.cadeau-lien { transition: none; } a.cadeau-lien:hover { transform: none; } }
.cadeau-vite { margin-top: 4px; font-weight: 700; color: var(--orange); }
.cadeau-texte > .cadeau-sur { color: var(--orange); }

/* Exemples de demandes */
.exemples { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 8px 0 24px; }
.exemples .carte { margin: 0; }
.exemples h2 { margin: 0 0 8px; font-size: 1.1rem; }
.exemples ul { margin: 0; padding-left: 1.1em; }
.exemples li { margin: 6px 0; }
.centre { text-align: center; }
.lien-exemples { display: inline-block; margin-top: 8px; font-weight: 600; }
.chapo.resume { margin-top: 14px; font-weight: 700; color: var(--texte); }

/* Historique : relevé complet (entrées en vert, sorties en rouge) */
.releve .releve-entree .montant { color: var(--vert); font-weight: 600; }
.releve .releve-sortie .montant { color: var(--rouge); }
.releve .releve-neutre .montant { color: var(--doux); }

/* Liste « À faire » : rouge à faire, orange en cours, vert terminée (barre de la ligne et statut) */
.todo .todo-terminee td:first-child { box-shadow: inset 4px 0 0 var(--vert); }
.statut { font-weight: 600; border: 1px solid transparent; border-radius: 999px; }
select.statut { padding: 4px 10px; }
.statut-a_faire { color: var(--rouge); background: color-mix(in srgb, var(--rouge) 12%, var(--carte)); border-color: color-mix(in srgb, var(--rouge) 45%, transparent); }
.statut-en_cours { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, var(--carte)); border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
.statut-terminee { color: var(--vert); background: color-mix(in srgb, var(--vert) 14%, var(--carte)); border-color: color-mix(in srgb, var(--vert) 45%, transparent); }
.todo .todo-terminee .statut { color: var(--vert); }
select.statut option { color: var(--texte); background: var(--carte); }
.badge-a-faire { background: var(--rouge); }
.todo button.retirer { font-size: .85em; margin-top: .3em; }
.boutons-projet { display: flex; gap: 8px; flex-wrap: wrap; }
textarea.code, pre.journal { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
pre.journal { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--fond); border: 1px solid var(--trait); border-radius: 8px; padding: 10px; max-height: 70vh; overflow: auto; }
pre.journal-court { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-size: .85rem; }
.actions-serveur { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.copiable { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; }
.copiable textarea { flex: 1; margin-top: 0; }
.copiable button { white-space: nowrap; }
@media (max-width: 600px) { .copiable { flex-direction: column; align-items: stretch; } }
.a-renseigner input, .a-renseigner select { border: 2px solid var(--rouge); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rouge) 20%, transparent); }
.a-renseigner .requis { color: var(--rouge); font-weight: 600; font-size: .85em; }
.onglets { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; border-bottom: 1px solid var(--trait); }
.onglets button { background: none; color: var(--texte); border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; padding: 8px 14px; font-weight: 500; margin-bottom: -1px; }
.onglets button[aria-selected="true"] { background: var(--carte); border-color: var(--trait); color: var(--accent); font-weight: 700; }
.onglets + form .onglet { border-top-left-radius: 0; margin-top: 0; }
.onglets .onglet-lien { display: inline-block; padding: 8px 14px; border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; margin-bottom: -1px; color: var(--texte); text-decoration: none; font-weight: 500; }
.onglets .onglet-lien:hover { color: var(--accent); }
.onglets .onglet-lien.actif { background: var(--carte); border-color: var(--trait); color: var(--accent); font-weight: 700; }
.onglets + .onglet-page { border-top-left-radius: 0; margin-top: 0; }
.resultat-test { padding: 10px 14px; border-radius: 10px; border: 1px solid; font-weight: 600; }
.resultat-test.ok { color: var(--vert); border-color: var(--vert); background: color-mix(in srgb, var(--vert) 12%, transparent); }
.resultat-test.echec { color: var(--rouge); border-color: var(--rouge); background: color-mix(in srgb, var(--rouge) 12%, transparent); }
.periodes { display: flex; gap: 6px; flex-wrap: wrap; }
.periodes .bouton { padding: 5px 10px; font-size: .85rem; }
.graphique { display: grid; grid-template-columns: auto 1fr; gap: 6px; }
.axe-y { position: relative; height: 140px; min-width: 3.2em; font-size: .75rem; color: var(--doux, #64748b); }
.axe-y span { position: absolute; right: 0; bottom: calc(8px + (100% - 16px) * var(--p) / 100); transform: translateY(50%); white-space: nowrap; line-height: 1; }
.graphique .histogramme { position: relative; }
.ligne-y { position: absolute; left: 0; right: 0; bottom: calc(8px + (100% - 16px) * var(--p) / 100); border-top: 1px dashed var(--trait); pointer-events: none; }
.graphique .barre { position: relative; z-index: 1; }
.graphique-legende { margin-left: calc(3.2em + 6px); }
.barre.empilee { flex-direction: column; justify-content: flex-end; align-items: stretch; }
.barre.empilee > div { width: 100%; min-height: 0; border-radius: 0; }
.barre.empilee .part-site { background: var(--accent); border-radius: 3px 3px 0 0; }
.barre.empilee .part-presta { background: var(--orange); }
.barre.empilee .part-presta.haut { border-radius: 3px 3px 0 0; }
.cles-graphique { display: flex; flex-wrap: wrap; gap: 16px; margin-left: calc(3.2em + 6px); }
.cles-graphique span { display: inline-flex; align-items: center; gap: 6px; }
.pastille { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.pastille.part-site { background: var(--accent); }
.pastille.part-presta { background: var(--orange); }
.compteurs-barre { position: absolute; left: 50%; bottom: calc(var(--h, 0) * 1%); transform: translate(-50%, -4px); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.compteur-pub.export { background: #7c3aed; }
.compteur-pub { display: block; min-width: 1.5em; height: 1.5em; padding: 0 .3em; border-radius: 999px; background: var(--vert); color: #fff; font-size: .7rem; font-weight: 700; font-style: normal; line-height: 1.5em; text-align: center; box-shadow: 0 0 0 2px var(--carte); pointer-events: none; }
.compteur-pub.exemple { position: static; transform: none; display: inline-block; box-shadow: none; }
.onglets ~ .onglet { border-top-left-radius: 0; margin-top: 0; }
.badge-onglet { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: 4px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.4em; text-align: center; }
.badge-onglet.alerte-onglet { background: var(--orange); }
.onglet > h2:first-child, .onglet > .titre-section:first-child h2 { margin-top: 0; }
.onglets-projet { margin-top: 12px; flex-wrap: nowrap; gap: 2px; }
/* Onglets du projet sur une seule ligne : resserrés ; écran étroit : la barre défile horizontalement */
.onglets-projet .onglet-lien { padding: 8px 8px; font-size: .88rem; white-space: nowrap; flex: none; }
.onglets-projet .badge-onglet { margin-left: 3px; }
@media (max-width: 1100px) { .onglets-projet { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; } }
.onglets .onglet-lien.onglet-danger { color: var(--rouge); }
.onglets .onglet-lien.onglet-danger.actif { border-color: var(--rouge); }
.onglet.zone-danger { border-color: var(--rouge); }
.onglets button.onglet-danger { color: var(--rouge); }
.onglets button.onglet-danger[aria-selected="true"] { border-color: var(--rouge); color: var(--rouge); }
.titre-projet { margin-bottom: 0; }
.messenger-contact { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--fond); border-radius: 6px; }
.messenger-contact h3 { margin-top: 0; }
.todo .col-statut { width: 11rem; min-width: 11rem; }
.todo td.col-statut { white-space: nowrap; }
.todo td.col-statut form.ligne { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.todo td.col-statut select.statut { width: auto; min-width: 9.5rem; margin: 0; }
.todo td.col-statut button.retirer { margin-top: 2px; white-space: nowrap; }
@media (max-width: 640px) { .todo .col-statut { width: auto; min-width: 0; } }
.exports { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.exports .bouton { padding: 4px 10px; font-size: .85rem; }
table.dns-enregistrements code { word-break: break-all; }
td.hebergement .adresse-hebergement { overflow-wrap: anywhere; }
.todo td.col-statut .termine-le { display: block; margin: 4px 0 0; padding-left: 11px; white-space: nowrap; }   /* aligné sur le texte du sélecteur */
.todo td.col-statut button.retirer { padding-left: 11px; }
.todo td.col-statut span.etat + .termine-le { padding-left: 8px; }                                                /* aligné sur le texte du badge */
.pastille-site { display: inline-block; font-size: .78em; padding: 0 .5em; border-radius: 1em; white-space: nowrap; vertical-align: middle; }
.pastille-site::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .3em; background: currentColor; vertical-align: .05em; }
.pastille-site.en_ligne { color: var(--vert); background: color-mix(in srgb, var(--vert) 15%, transparent); }
.pastille-site.hors_ligne { color: var(--rouge); background: color-mix(in srgb, var(--rouge) 15%, transparent); }
.pastille-site.suspendu { color: var(--orange); background: color-mix(in srgb, var(--orange) 18%, transparent); }
td.col-etat .etat, .etat { white-space: nowrap; }   /* badges d’état jamais coupés */
td.statut-site { white-space: nowrap; }
.pastille-site.maj { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pastille-site.publie { color: var(--cyan-texte); background: var(--cyan-fond); }      /* cyan pastel */
.pastille-site.apercu { color: var(--doux); background: color-mix(in srgb, var(--doux) 14%, transparent); }   /* gris : non publié */
a.pastille-site { text-decoration: none; cursor: pointer; }
/* Pastille du statut du site à droite du nom du projet (en-tête des pages du projet) */
/* Nom et pastille centrés verticalement l'un par rapport à l'autre */
h1.titre-projet { display: flex; align-items: center; flex-wrap: wrap; gap: .25em .45em; }
.statut-titre { display: inline-flex; align-items: center; font-size: .62em; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.statut-titre .petit { font-size: .9em; }
a.pastille-site:hover, a.pastille-site:focus-visible { text-decoration: underline; }
/* Onglet Application : vignette de l'icône */
.icone-pwa { display: flex; gap: 16px; align-items: flex-start; }
.icone-ios { width: 56px; height: 56px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 22%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25); }
.icone-ios img { width: 88%; height: 88%; object-fit: contain; }
.icone-mono { color: #fff; font: 800 1.3rem/1 system-ui, sans-serif; }
.icone-details { flex: 1 1 auto; min-width: 0; }
.icone-details p { margin: 0 0 .6em; }
.icone-envoi { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 .6em; }
.icone-choisir { cursor: pointer; }
