/* Gestion Physalis — tableau de bord des projets (gestion.physalis.ovh).
   Fond sobre ; la seule surface forte est la colonne vert sombre du menu (le calice du physalis),
   l'orange du fruit sert d'accent. Atkinson Hyperlegible partout. */

@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--papier: #f6f7f4;
	--blanc: #ffffff;
	--encre: #1b221d;
	--ardoise: #56605a;
	--brume: #858f88;
	--trait: #e3e7e2;
	--trait-fort: #cdd4cd;
	--vert: #1f4a37;
	--vert-2: #2f6a50;
	--vert-doux: #e7f0ea;
	--vert-nav: #2a5c45;
	--fruit: #d8611c;
	--fruit-clair: #f39a3d;
	--bon: #0a7a35;
	--bon-doux: #e5f5ea;
	--alerte: #9a5b00;
	--alerte-doux: #fff3d6;
	--danger: #c62f2f;
	--danger-doux: #fde8e8;
	--info-doux: #e8f1fd;
	--serie-1: #eb6834;
	--serie-2: #4a3aa7;
	--serie-3: #1baf7a;
	--grille: #e9ece8;
	--r-panneau: 14px;
	--r-champ: 8px;
	--ombre: 0 1px 2px rgba(27, 34, 29, .06);
	--police: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--papier);
	color: var(--encre);
	font: 400 16px/1.5 var(--police);
}
a { color: var(--vert-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--vert); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--fruit-clair); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.125rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .75em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muet { color: var(--ardoise); }
.petit { font-size: .875rem; }
[hidden] { display: none !important; }

/* ——— Structure ——— */
.cadre { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.menu {
	position: sticky; top: 0; height: 100vh; overflow-y: auto;
	background: var(--vert); color: #fff;
	display: flex; flex-direction: column; padding: 20px 14px 16px;
}
.marque { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: #fff; text-decoration: none; }
.marque img { width: 40px; height: 40px; }
.marque b { display: block; font-weight: 700; font-size: 1.125rem; line-height: 1; }
.marque span { display: block; font-size: .8125rem; color: #bcd5c6; margin-top: 3px; }
.menu nav { display: flex; flex-direction: column; gap: 2px; }
.menu .groupe { margin: 14px 10px 4px; font-size: .8125rem; color: #a9c7b5; }
.lien {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 10px; border-radius: 10px;
	color: #e6f0ea; text-decoration: none; font-weight: 400;
	position: relative;
}
.lien svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.lien:hover { background: var(--vert-nav); color: #fff; }
.lien[aria-current="page"] { background: #fff; color: var(--vert); font-weight: 700; }
.lien[aria-current="page"] svg { opacity: 1; }
.lien .pastille { margin-left: auto; }
.pastille {
	min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
	background: var(--fruit); color: #fff; font-size: .75rem; font-weight: 700;
	display: inline-grid; place-items: center; font-variant-numeric: tabular-nums;
}
.menu-pied { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }
.menu-pied .qui { font-weight: 700; }
.menu-pied .role { color: #bcd5c6; }
.menu-pied .actions-pied { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.menu-pied a, .menu-pied button { color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .875rem; }

.barre { display: none; }
.voile { display: none; }
.contenu { min-width: 0; padding: 28px 32px 64px; max-width: 1440px; width: 100%; }
.contenu:focus { outline: none; }

.entete { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 22px; }
.entete .titres { flex: 1 1 320px; min-width: 0; }
.entete p { margin: 6px 0 0; color: var(--ardoise); }
.entete .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.retour { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: .9375rem; text-decoration: none; }
.retour svg { width: 16px; height: 16px; }

/* ——— Panneaux ——— */
.panneau { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-panneau); box-shadow: var(--ombre); }
.panneau > .tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.panneau > .tete p { margin: 0; color: var(--ardoise); font-size: .875rem; }
.panneau > .corps { padding: 16px 20px 20px; }
.panneau > .corps.serre { padding: 8px 0 4px; }
.pile { display: grid; gap: 20px; }
.duo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.moitie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* Bande de chiffres : un seul panneau, séparateurs fins (pas une grille de cartes). */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-panneau); box-shadow: var(--ombre); overflow: hidden; }
.chiffre { padding: 16px 20px; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); margin: 0 -1px -1px 0; }
.chiffre .etiquette { color: var(--ardoise); font-size: .875rem; }
.chiffre .valeur { font-size: 1.875rem; font-weight: 700; line-height: 1.15; margin-top: 4px; }
.chiffre .valeur small { font-size: 1rem; font-weight: 400; color: var(--ardoise); }
.chiffre .ecart { font-size: .8125rem; margin-top: 2px; color: var(--ardoise); }
.ecart.hausse { color: var(--bon); }
.ecart.baisse { color: var(--danger); }
.chiffre.vedette .valeur { font-size: 2.75rem; color: var(--vert); }

/* À traiter : bandeaux d'attention. */
.attention { display: flex; flex-wrap: wrap; gap: 12px; }
.attention a {
	flex: 1 1 240px; display: flex; align-items: center; gap: 14px;
	padding: 14px 18px; border-radius: 12px; text-decoration: none; color: var(--encre);
	background: var(--alerte-doux); border: 1px solid #f3dca4;
}
.attention a.calme { background: var(--bon-doux); border-color: #c3e6cf; }
.attention a b { font-size: 1.5rem; line-height: 1; min-width: 1.5em; }
.attention a:hover { filter: brightness(.98); }

/* ——— Boutons et champs ——— */
.bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 0 16px; border-radius: var(--r-champ);
	border: 1px solid var(--trait-fort); background: var(--blanc); color: var(--encre);
	font-weight: 700; font-size: .9375rem; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.bouton svg { width: 18px; height: 18px; }
.bouton:hover { background: #f0f3ef; color: var(--encre); }
.bouton.principal { background: var(--vert); border-color: var(--vert); color: #fff; }
.bouton.principal:hover { background: var(--vert-2); }
.bouton.danger { color: var(--danger); border-color: #efc2c2; }
.bouton.danger:hover { background: var(--danger-doux); }
.bouton.danger.plein { background: var(--danger); border-color: var(--danger); color: #fff; }
.bouton.discret { border-color: transparent; background: transparent; }
.bouton.discret:hover { background: #eef1ed; }
.bouton.petit { min-height: 32px; padding: 0 12px; font-size: .875rem; }
.bouton[disabled] { opacity: .5; cursor: not-allowed; }

.champ { display: grid; gap: 6px; }
.champ > span { font-weight: 700; font-size: .9375rem; }
.champ small, .aide { color: var(--ardoise); font-size: .875rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
	width: 100%; min-height: 42px; padding: 8px 12px;
	border: 1px solid var(--trait-fort); border-radius: var(--r-champ); background: var(--blanc);
}
textarea { min-height: 80px; resize: vertical; }
textarea.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .875rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert-2); box-shadow: 0 0 0 3px rgba(47, 106, 80, .2); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f5975' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input[type=number] { max-width: 160px; }
.case { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.case input { width: 18px; height: 18px; accent-color: var(--vert); }

/* Interrupteur. */
.interrupteur { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur i { width: 44px; height: 26px; border-radius: 999px; background: #c9d1ca; position: relative; flex: none; transition: background .15s; }
.interrupteur i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.interrupteur input:checked + i { background: var(--vert); }
.interrupteur input:checked + i::after { transform: translateX(18px); }
.interrupteur input:focus-visible + i { outline: 3px solid var(--fruit-clair); outline-offset: 2px; }

/* Filtres. */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filtres .recherche { flex: 1 1 260px; position: relative; }
.filtres .recherche svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--brume); }
.filtres .recherche input { padding-left: 38px; }
.filtres select { width: auto; flex: 0 1 auto; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.puce {
	border: 1px solid var(--trait-fort); background: var(--blanc); color: var(--encre);
	border-radius: 999px; padding: 6px 14px; font-size: .875rem; cursor: pointer; text-decoration: none;
	display: inline-flex; gap: 6px; align-items: center;
}
.puce:hover { border-color: var(--vert-2); color: var(--encre); }
.puce[aria-pressed="true"], .puce[aria-current="page"] { background: var(--vert); border-color: var(--vert); color: #fff; }
.puce .n { font-variant-numeric: tabular-nums; opacity: .8; }
.champ .segments, .champ > .interrupteur { justify-self: start; }
.segments { display: inline-flex; border: 1px solid var(--trait-fort); border-radius: 10px; padding: 3px; background: var(--blanc); gap: 2px; flex-wrap: wrap; }
.segments button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-size: .875rem; }
.segments button[aria-pressed="true"] { background: var(--vert-doux); color: var(--vert); font-weight: 700; }

/* Étiquettes d'état. */
.etat { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap; background: #eef1ed; color: var(--ardoise); }
.etat.bon, .etat.active { background: var(--bon-doux); color: var(--bon); }
.etat.alerte, .etat.review { background: var(--alerte-doux); color: var(--alerte); }
.etat.danger, .etat.disabled { background: var(--danger-doux); color: var(--danger); }
.etat.vert { background: var(--vert-doux); color: var(--vert); }
.etat.info { background: var(--info-doux); color: #1c5cab; }
.etats { display: flex; flex-wrap: wrap; gap: 6px; }

/* ——— Tableaux ——— */
.table-conteneur { overflow-x: auto; }
table.liste { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.liste th { text-align: left; font-weight: 700; color: var(--ardoise); font-size: .8125rem; padding: 10px 14px; border-bottom: 1px solid var(--trait); white-space: nowrap; }
.liste td { padding: 12px 14px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.liste tr:last-child td { border-bottom: 0; }
.liste .nw { white-space: nowrap; }
.liste .large { min-width: 170px; }
.liste td.n, .liste th.n { text-align: right; font-variant-numeric: tabular-nums; }
.liste tbody tr.cliquable { cursor: pointer; }
.liste tbody tr.cliquable:hover td { background: #f9faf8; }
.liste .principal { font-weight: 700; color: var(--encre); text-decoration: none; }
.liste .principal:hover { color: var(--vert-2); text-decoration: underline; }
.vrai-nom { display: block; color: var(--vert-2); font-size: .875rem; margin-top: 1px; }
.fiche-tete .vrai-nom { font-size: 1rem; margin-top: 2px; }
.liste .sous { display: block; color: var(--ardoise); font-size: .8125rem; margin-top: 2px; }
.courriel { word-break: break-all; }
.vide { padding: 40px 20px; text-align: center; color: var(--ardoise); }
.vide b { display: block; color: var(--encre); font-size: 1.0625rem; margin-bottom: 4px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--trait); flex-wrap: wrap; }

/* Barres horizontales (listes classées). */
.barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.barres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; }
.barres .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barres .val { font-variant-numeric: tabular-nums; font-weight: 700; }
.barres .val small { font-weight: 400; color: var(--ardoise); margin-left: 6px; }
.barres .rail { grid-column: 1 / -1; height: 8px; background: #eef1ed; border-radius: 999px; overflow: hidden; }
.barres .rail span { display: block; height: 100%; background: var(--serie-1); border-radius: 999px; min-width: 3px; }

/* ——— Graphiques ——— */
.graphique { position: relative; width: 100%; }
.graphique svg { display: block; width: 100%; overflow: visible; }
.graphique .axe { fill: var(--brume); font-size: 12px; font-family: var(--police); font-variant-numeric: tabular-nums; }
.graphique .grille { stroke: var(--grille); stroke-width: 1; }
.graphique .base { stroke: var(--trait-fort); stroke-width: 1; }
.graphique .curseur { stroke: var(--brume); stroke-width: 1; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--ardoise); margin-bottom: 8px; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.bulle {
	position: fixed; z-index: 60; pointer-events: none; display: none;
	background: var(--encre); color: #fff; border-radius: 8px; padding: 8px 10px;
	font-size: .8125rem; line-height: 1.4; box-shadow: 0 6px 20px rgba(27, 34, 29, .25); max-width: 260px;
}
.bulle b { font-weight: 700; }
.bulle i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ——— Fiche ——— */
.fiche-tete { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 20px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--vert-doux); color: var(--vert); display: grid; place-items: center; font-size: 1.75rem; font-weight: 700; flex: none; }
.fiche-tete .ident { flex: 1 1 260px; min-width: 0; }
.fiche-tete h1 { font-size: 1.625rem; overflow-wrap: anywhere; }
.fiche-tete .etats { margin-top: 8px; }
.infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--trait); }
.infos div { padding: 12px 20px; border-bottom: 1px solid var(--trait); min-width: 0; }
.infos dt { color: var(--ardoise); font-size: .8125rem; }
.infos dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.barre-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--trait); }
.note { background: var(--info-doux); border-radius: 10px; padding: 12px 16px; font-size: .9375rem; }
.note.alerte { background: var(--alerte-doux); }
.note.danger { background: var(--danger-doux); }
.insignes { display: flex; flex-wrap: wrap; gap: 6px; }
.insignes span { background: #f0f3ef; border-radius: 999px; padding: 4px 12px; font-size: .875rem; }
.chronologie { list-style: none; margin: 0; padding: 0; }
.chronologie li { padding: 10px 20px; border-bottom: 1px solid var(--trait); font-size: .9375rem; }
.chronologie li:last-child { border-bottom: 0; }
.chronologie .quand { color: var(--ardoise); font-size: .8125rem; }

.barre-collante {
	position: sticky; bottom: 0; z-index: 20; margin: 0 -32px -64px; padding: 14px 32px;
	background: rgba(255, 255, 255, .96); border-top: 1px solid var(--trait);
	display: flex; gap: 10px; align-items: center; flex-wrap: wrap; backdrop-filter: blur(6px);
}
.barre-collante .muet { margin-right: auto; }

/* ——— Réglages ——— */
.reglage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 24px; padding: 16px 20px; border-top: 1px solid var(--trait); align-items: start; }
.reglage:first-child { border-top: 0; }
.reglage .libelle { font-weight: 700; }
.reglage .aide { margin-top: 4px; }

/* ——— Accordéon « À savoir » ——— */
details.savoir { border-top: 1px solid var(--trait); }
details.savoir:first-child { border-top: 0; }
details.savoir summary { cursor: pointer; padding: 14px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.savoir summary::-webkit-details-marker { display: none; }
details.savoir summary::after { content: "+"; color: var(--brume); font-weight: 400; font-size: 1.25rem; line-height: 1; }
details.savoir[open] summary::after { content: "−"; }
details.savoir p { padding: 0 20px 16px; margin: 0; color: var(--ardoise); overflow-wrap: anywhere; }

/* ——— Dialogues et avis ——— */
dialog.boite { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(27, 34, 29, .3); color: var(--encre); }
dialog.boite::backdrop { background: rgba(27, 34, 29, .45); }
.boite form { padding: 22px 24px; display: grid; gap: 14px; }
.boite .pied { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.avis { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(460px, calc(100vw - 32px)); }
.avis div { background: var(--encre); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(27, 34, 29, .3); font-size: .9375rem; animation: avis .2s ease-out; }
.avis div.erreur { background: var(--danger); }
@keyframes avis { from { opacity: 0; transform: translateY(8px); } }

/* Chargement. */
.squelette { display: grid; gap: 16px; }
.squelette i { display: block; height: 18px; border-radius: 6px; background: linear-gradient(90deg, #eaeee9, #f4f6f3, #eaeee9); background-size: 200% 100%; animation: luire 1.2s linear infinite; }
.squelette i.gros { height: 120px; border-radius: 14px; }
@keyframes luire { to { background-position: -200% 0; } }

/* ——— Connexion ——— */
.accueil-connexion { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.accueil-connexion .gauche { background: var(--vert); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.accueil-connexion .gauche .marque { padding: 0; }
.accueil-connexion .gauche .marque img { width: 56px; height: 56px; }
.accueil-connexion .gauche .marque b { font-size: 1.375rem; }
.accueil-connexion .devise { font-size: 2.25rem; line-height: 1.15; font-weight: 700; max-width: 12em; }
.accueil-connexion .devise small { display: block; font-size: 1rem; font-weight: 400; color: #bcd5c6; margin-top: 14px; max-width: 28em; line-height: 1.5; }
.accueil-connexion .droite { display: grid; place-items: center; padding: 32px 20px; }
.carte-connexion { width: min(400px, 100%); display: grid; gap: 16px; }
.carte-connexion h1 { font-size: 1.625rem; }
.carte-connexion .code { font-size: 1.75rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.erreur-champ { color: var(--danger); font-size: .9375rem; }

/* ——— Téléphone et tablette ——— */
@media (max-width: 1100px) {
	.duo, .tiers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.cadre { grid-template-columns: minmax(0, 1fr); }
	.menu {
		position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100%; z-index: 50;
		transform: translateX(-100%); transition: transform .2s ease-out;
	}
	.cadre.ouvert .menu { transform: none; }
	.cadre.ouvert .voile { display: block; position: fixed; inset: 0; background: rgba(27, 34, 29, .4); z-index: 40; }
	.barre {
		display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30;
		background: var(--vert); color: #fff; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
	}
	.barre img { width: 32px; height: 32px; }
	.barre .titre-barre { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.barre button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; display: grid; place-items: center; position: relative; }
	.barre button svg { width: 26px; height: 26px; }
	.barre .pastille { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; font-size: .6875rem; padding: 0 5px; }
	.contenu { padding: 20px 16px 56px; }
	h1 { font-size: 1.5rem; }
	.moitie, .langues { grid-template-columns: minmax(0, 1fr); }
	.reglage { grid-template-columns: minmax(0, 1fr); }
	.barre-collante { margin: 0 -16px -56px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
	.accueil-connexion { grid-template-columns: minmax(0, 1fr); }
	.accueil-connexion .gauche { padding: 20px; }
	.accueil-connexion .devise { display: none; }
	.panneau > .tete { padding: 14px 16px 0; }
	.panneau > .corps { padding: 14px 16px 16px; }
	.chiffre { padding: 14px 16px; }
	.chiffre .valeur { font-size: 1.5rem; }
	.chiffre.vedette .valeur { font-size: 2rem; }
	.chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.infos div { padding: 10px 16px; }
	.infos div:first-child { grid-column: 1 / -1; }
	.filtres select { flex: 1 1 auto; }
	.fiche-tete { padding: 16px; }
	.barre-actions { padding: 14px 16px; }

	/* Tableaux en fiches empilées. */
	table.liste.empile thead { display: none; }
	table.liste.empile, .liste.empile tbody, .liste.empile tr, .liste.empile td { display: block; width: 100%; }
	.liste.empile tr { padding: 12px 16px; border-bottom: 1px solid var(--trait); }
	.liste.empile tr:last-child { border-bottom: 0; }
	.liste.empile td { border: 0; padding: 3px 0; text-align: left !important; }
	.liste.empile td[data-l]::before { content: attr(data-l) " : "; color: var(--ardoise); font-size: .8125rem; }
	.liste.empile td.tete-ligne { padding-bottom: 6px; }
	.liste.empile td.tete-ligne::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
	.menu, .barre, .barre-collante, .actions, .barre-actions { display: none !important; }
	.cadre { display: block; }
}

/* ——— Propre à Gestion Physalis ——— */
.marque svg { width: 40px; height: 40px; flex: none; }
.barre svg.logo { width: 30px; height: 30px; }
.accueil-connexion .gauche .marque svg { width: 56px; height: 56px; }
.pastille.calme { background: rgba(255, 255, 255, .18); }
.taches { list-style: none; margin: 0; padding: 0; }
.taches li { padding: 10px 20px; border-top: 1px solid var(--trait); font-size: .9375rem; }
.taches li:first-child { border-top: 0; }
.taches code, .liste code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; background: #eef1ed; border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.taches .groupe-taches { background: #f9faf8; font-weight: 700; color: var(--ardoise); font-size: .8125rem; padding: 8px 20px; }
.source { font-size: .8125rem; color: var(--ardoise); padding: 10px 20px; border-top: 1px solid var(--trait); }
.sites-projet { display: grid; gap: 20px; }
.sources-google { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.lignes-sites td .etat { margin-right: 4px; }
.fiche-edition { display: grid; gap: 16px; }
.fiche-edition fieldset { border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px 16px; display: grid; gap: 12px; margin: 0; }
.fiche-edition legend { font-weight: 700; padding: 0 6px; }
.site-edition { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; border-top: 1px dashed var(--trait-fort); padding-top: 12px; }
.site-edition:first-of-type { border-top: 0; padding-top: 0; }
.formulaire { display: grid; gap: 18px; }
.rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
ol.aide { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.panneau h3 { margin: 18px 0 8px; }
.panneau h3:first-child { margin-top: 0; }
.panneau > .tete h2 a { color: inherit; text-decoration: none; }
.panneau > .tete h2 a:hover { text-decoration: underline; }
.entete code { font-size: .875em; }
.infos code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
