/* Espace partenaire Les Éclairés : DA officielle (vert #00F5A0 avec texte noir, vert profond #00C27E, menthe, anthracite #141917),
   titres Schibsted Grotesk, texte Manrope, références en JetBrains Mono. Composants calqués sur l'accueil de leseclaires.fr. */

@font-face { font-family: 'Schibsted Grotesk'; src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-normal-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --vert: #00F5A0;
  --vert-fonce: #00C27E;
  --vert-txt: #007A50;
  --vert-bg: rgba(0, 194, 126, 0.08);
  --vert-br: rgba(0, 194, 126, 0.24);
  --menthe: #C2F5DF;
  --menthe-clair: #E6FFF5;
  --page: #F4F6F5;
  --blanc: #FFFFFF;
  --encre: #000000;
  --texte: #1A1D1B;
  --moyen: #454B48;
  --gris: #5C6560;
  --discret: #7D8681;
  --anthracite: #141917;
  --ligne: rgba(0, 0, 0, 0.07);
  --ligne-forte: rgba(0, 0, 0, 0.13);
  --rouge: #B42318;
  --rouge-bg: #FEF1EF;
  --ambre: #9A5B00;
  --ambre-bg: #FFF6E5;
  --verre: rgba(255, 255, 255, 0.72);
  --verre-bord: rgba(255, 255, 255, 0.95);
  --ombre: 0 1px 2px rgba(11, 15, 13, 0.04), 0 10px 32px rgba(11, 15, 13, 0.06);
  --ombre-survol: 0 2px 4px rgba(11, 15, 13, 0.05), 0 18px 44px rgba(11, 15, 13, 0.10);
  --lueur: 0 8px 26px rgba(0, 245, 160, 0.30);
  --lueur-survol: 0 12px 34px rgba(0, 245, 160, 0.45);
  --r-bloc: 32px;
  --r-carte: 24px;
  --r-petit: 16px;
  --ff-titre: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --ff-texte: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ressort: cubic-bezier(0.34, 1.56, 0.64, 1);
  --large: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--page); color: var(--texte);
  font-family: var(--ff-texte); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
/* Deux lueurs vertes très douces derrière les cartes de verre */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 420px at 92% -6%, rgba(0, 245, 160, 0.16), transparent 70%),
    radial-gradient(560px 460px at -8% 38%, rgba(194, 245, 223, 0.55), transparent 70%),
    var(--page);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-titre); color: var(--encre); letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
[hidden] { display: none !important; }
.mono { font-family: var(--ff-mono); font-size: 0.86em; letter-spacing: -0.01em; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--vert-txt); outline-offset: 2px; border-radius: 6px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--petit { width: 16px; height: 16px; }

/* En-tête : pilule de verre, comme sur leseclaires.fr ---------------------------------------- */
.entete {
  position: sticky; top: 14px; z-index: 30; max-width: calc(var(--large) + 40px); margin: 14px auto 0; padding: 0 20px;
}
.entete__barre {
  display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 10px 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.78); border: 1px solid var(--verre-bord);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(11, 15, 13, 0.07);
}
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.marque__tuile { width: 34px; height: 34px; }
.marque__nom { font-family: var(--ff-titre); font-weight: 800; font-size: 17px; letter-spacing: -0.03em; color: var(--encre); }
.marque__espace { font-size: 13px; font-weight: 600; color: var(--gris); padding-left: 10px; border-left: 1px solid var(--ligne-forte); }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--moyen); text-decoration: none; transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: rgba(0, 0, 0, 0.045); color: var(--encre); }
.nav a[aria-current='page'] { background: var(--anthracite); color: #fff; }
.nav .pastille-nb { margin-left: 2px; }
.entete__droite { display: flex; align-items: center; gap: 8px; flex: none; }
.qui { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--ligne); background: rgba(255,255,255,.6); }
.qui__nom { font-size: 13.5px; font-weight: 600; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qui__avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--menthe-clair);
  color: var(--vert-txt); font-family: var(--ff-titre); font-weight: 800; font-size: 13px; border: 1px solid var(--vert-br);
}
.bouton-icone {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ligne);
  background: rgba(255,255,255,.6); color: var(--moyen); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.bouton-icone:hover { background: #fff; color: var(--encre); border-color: var(--ligne-forte); }

/* Barre du bas (téléphone) */
.onglets {
  display: none; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  padding: 6px; border-radius: 26px; background: rgba(255, 255, 255, 0.86); border: 1px solid var(--verre-bord);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 12px 40px rgba(11, 15, 13, 0.14);
}
.onglets a, .onglets button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding: 7px 2px 5px; border-radius: 20px; border: 0; background: none;
  font-size: 11px; font-weight: 700; color: var(--gris); text-decoration: none; cursor: pointer; position: relative;
}
.onglets [aria-current='page'] { background: var(--anthracite); color: #fff; }
.onglets .pastille-nb { position: absolute; top: 3px; right: calc(50% - 22px); }
.plus {
  position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 41; padding: 8px; border-radius: 22px;
  background: #fff; border: 1px solid var(--ligne); box-shadow: 0 18px 50px rgba(11, 15, 13, 0.18);
}
.plus a, .plus button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 0; background: none;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--texte); cursor: pointer; text-align: left;
}
.plus a:hover, .plus button:hover { background: var(--page); }

/* Page ------------------------------------------------------------------------------------ */
.contenu { max-width: calc(var(--large) + 40px); margin: 0 auto; padding: 34px 20px 72px; }
.tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 18px 0 28px; }
.surtitre {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--vert-txt);
}
.surtitre .eclair { width: 12px; height: 12px; color: var(--vert-fonce); }
.tete h1 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.chapeau { margin-top: 12px; max-width: 640px; font-size: 16.5px; line-height: 1.65; color: var(--gris); }
.tete__actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }

/* Boutons --------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-family: var(--ff-titre); font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, transform .18s var(--ressort), box-shadow .2s, border-color .2s, color .2s;
}
.btn .ico { width: 17px; height: 17px; transition: transform .2s; }
.btn--vert { background: var(--vert); color: #0a0a09; box-shadow: var(--lueur); }
.btn--vert:hover { background: var(--vert-fonce); transform: translateY(-2px); box-shadow: var(--lueur-survol); }
.btn--vert:hover .ico--fleche { transform: translateX(3px); }
.btn--noir { background: var(--anthracite); color: #fff; }
.btn--noir:hover { background: #000; transform: translateY(-2px); }
.btn--contour { background: rgba(255,255,255,.7); color: var(--texte); border-color: var(--ligne-forte); }
.btn--contour:hover { background: #fff; border-color: rgba(0,0,0,.28); }
.btn--danger { background: #fff; color: var(--rouge); border-color: rgba(180, 35, 24, 0.3); }
.btn--danger:hover { background: var(--rouge-bg); border-color: var(--rouge); }
.btn--petit { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--plein { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none !important; box-shadow: none; }
.lien { color: var(--vert-txt); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.lien:hover { color: var(--encre); }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--vert-txt); text-decoration: none; }
.lien-fleche:hover { color: var(--encre); }
.lien-fleche .ico { width: 16px; height: 16px; transition: transform .2s; }
.lien-fleche:hover .ico { transform: translateX(3px); }

/* Cartes de verre ------------------------------------------------------------------------- */
.carte {
  position: relative; border-radius: var(--r-carte); background: var(--verre); border: 1px solid var(--verre-bord);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: var(--ombre);
}
.carte__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.carte__tete h2 { font-size: 20px; font-weight: 800; }
.carte__corps { padding: 18px 24px 24px; }
.carte--survol { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.carte--survol:hover { transform: translateY(-3px); box-shadow: var(--ombre-survol); border-color: var(--vert-br); }
a.carte { text-decoration: none; color: inherit; display: block; }

.grille { display: grid; gap: 18px; }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--tdb { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.pile { display: grid; gap: 18px; }

/* Bandeau d'accueil anthracite (comme le pied de page du site) */
.accueil {
  position: relative; overflow: hidden; border-radius: var(--r-bloc); padding: 38px 40px; background: var(--anthracite); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end;
}
.accueil::before {
  content: ''; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 245, 160, 0.26), transparent); pointer-events: none;
}
.accueil__eclair { position: absolute; right: 38px; top: 50%; transform: translateY(-50%); width: 230px; height: 230px; color: rgba(255, 255, 255, 0.04); pointer-events: none; }
.accueil > :not(.accueil__eclair) { position: relative; }
.accueil .surtitre { color: var(--vert); }
.accueil h1 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.accueil__texte { margin-top: 12px; color: rgba(255, 255, 255, 0.72); font-size: 16.5px; max-width: 560px; }
.accueil__puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.puce-verre {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px rgba(0, 245, 160, 0.16); flex: none; }
.point--ambre { background: #F5A524; box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.18); }
.point--rouge { background: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.16); }
.point--gris { background: #A3ABA6; box-shadow: 0 0 0 4px rgba(163, 171, 166, 0.2); }
.accueil__action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.accueil__action small { color: rgba(255,255,255,.6); font-size: 13px; }

/* Chiffres clés */
.chiffre { padding: 22px 22px 20px; display: flex; flex-direction: column; min-height: 168px; }
.chiffre__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chiffre__libelle { font-size: 14px; font-weight: 700; color: var(--moyen); }
.tuile-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--menthe-clair); color: var(--vert-txt); border: 1px solid var(--vert-br); flex: none; }
.tuile-ico .ico { width: 19px; height: 19px; }
.tuile-ico--ambre { background: var(--ambre-bg); color: var(--ambre); border-color: rgba(154, 91, 0, 0.2); }
.tuile-ico--rouge { background: var(--rouge-bg); color: var(--rouge); border-color: rgba(180, 35, 24, 0.2); }
.chiffre__valeur { margin-top: auto; padding-top: 16px; font-family: var(--ff-titre); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--encre); }
.chiffre__valeur--date { font-size: 30px; }
.chiffre__note { margin-top: 8px; font-size: 13.5px; color: var(--gris); line-height: 1.45; min-height: 20px; }
.chiffre__note strong { color: var(--texte); font-weight: 700; }
.chiffre__note .alerte { color: var(--rouge); font-weight: 700; }

/* Listes en lignes cliquables */
.lignes { list-style: none; margin: 0; padding: 6px 12px 12px; }
.ligne {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px; border-radius: 16px;
  text-decoration: none; color: inherit; transition: background .2s;
}
a.ligne:hover, button.ligne:hover { background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 1px var(--ligne); }
button.ligne { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; }
.ligne + .ligne { margin-top: 2px; }
.ligne__titre, .ligne__sous { display: block; }
.ligne__titre { font-weight: 700; font-size: 15px; color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne__sous { font-size: 13px; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne__fin { color: var(--discret); }
.ligne .type { min-width: 98px; justify-content: center; }
.ligne:hover .ligne__fin { color: var(--encre); }

/* Pastilles d'état */
.etat {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: #fff; border: 1px solid var(--ligne-forte); color: var(--moyen);
}
.etat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.etat--vert { background: var(--menthe-clair); border-color: var(--vert-br); color: var(--vert-txt); }
.etat--noir { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.etat--noir::before { background: var(--vert); }
.etat--ambre { background: var(--ambre-bg); border-color: rgba(154, 91, 0, 0.22); color: var(--ambre); }
.etat--rouge { background: var(--rouge-bg); border-color: rgba(180, 35, 24, 0.22); color: var(--rouge); }
.etat--gris { color: var(--gris); }
.pastille-nb {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  background: var(--vert); color: #0a0a09; font-family: var(--ff-texte);
}
.type {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
  background: var(--anthracite); color: #fff; letter-spacing: 0;
}
.type--particulier { background: var(--menthe); color: #05231a; }
.type--entreprise { background: #DCE9FF; color: #102A54; }
.type--copropriete { background: #EFE3FF; color: #35155C; }
.type--collectivite { background: #FFE9D6; color: #5A2A00; }

/* Documents du tableau de bord */
.doc-ligne { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ligne); }
.doc-ligne:first-child { border-top: 0; padding-top: 2px; }
.doc-ligne__texte { flex: 1; min-width: 0; }
.doc-ligne__titre { font-weight: 700; font-size: 14.5px; color: var(--encre); }
.doc-ligne__sous { font-size: 13px; color: var(--gris); }
.tout-bon { display: flex; align-items: center; gap: 12px; padding: 4px 0 2px; color: var(--moyen); font-size: 14.5px; }

/* Segments (onglets dans la page) */
.segments { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--verre-bord); box-shadow: var(--ombre); margin-bottom: 22px; }
.segments button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: none;
  font-weight: 700; font-size: 14.5px; color: var(--moyen); cursor: pointer; transition: background .2s, color .2s;
}
.segments button:hover { color: var(--encre); background: rgba(0,0,0,.04); }
.segments button[aria-selected='true'] { background: var(--anthracite); color: #fff; }
.segments button[aria-selected='true'] .pastille-nb { background: var(--vert); }
.segments .pastille-nb { background: var(--page); color: var(--moyen); }

/* Propositions anonymes */
.proposition { display: flex; flex-direction: column; padding: 24px; }
.proposition__haut { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.proposition__quand { margin-left: auto; font-size: 13px; color: var(--gris); }
.proposition h3 { margin-top: 16px; font-size: 24px; font-weight: 800; letter-spacing: -0.035em; }
.proposition__lieu { margin-top: 4px; font-size: 14px; color: var(--gris); }
.faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.fait { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--ligne); }
.fait dt { font-size: 12px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.fait dd { margin: 3px 0 0; font-weight: 700; font-size: 15px; color: var(--encre); line-height: 1.35; }
.precisions { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--moyen); }
.precisions li { display: flex; gap: 8px; }
.precisions li::before { content: ''; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--vert-fonce); flex: none; }
.precisions b { color: var(--texte); font-weight: 700; }
.proposition__prix {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px;
  background: var(--menthe-clair); border: 1px solid var(--vert-br); font-size: 14px; color: #0b3b28;
}
.proposition__prix strong { font-family: var(--ff-titre); font-size: 17px; color: var(--encre); }
.proposition__actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.proposition__actions .btn { flex: 1; }
.confirmer {
  margin-top: 18px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ligne-forte);
}
.confirmer p { font-size: 14.5px; color: var(--moyen); }
.confirmer p strong { color: var(--encre); }
.confirmer__boutons { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.proposition__prix, .proposition .attente { margin-top: auto !important; }
.proposition .faits, .proposition .precisions { margin-bottom: 18px; }
.attente { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: #fff; border: 1px dashed var(--ligne-forte); font-size: 14px; color: var(--moyen); }

/* Tableau (demandes, factures) */
.tableau-boite { overflow-x: auto; padding: 18px 10px 8px; }
.tableau { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.tableau th { text-align: left; font-size: 12px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; padding: 0 14px 10px; white-space: nowrap; }
.tableau td { padding: 14px; border-top: 1px solid var(--ligne); vertical-align: middle; }
.tableau tbody tr { transition: background .2s; }
.tableau tbody tr:hover { background: rgba(255, 255, 255, 0.85); }
.tableau tbody tr.cliquable { cursor: pointer; }
.tableau .num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--encre); }
.tableau .actions { text-align: right; white-space: nowrap; }
.tableau .actions > * + * { margin-left: 6px; }
.tableau__principal { font-weight: 700; color: var(--encre); }
.tableau__sous { font-size: 13px; color: var(--gris); }
.cartes-mobiles { display: none; }

/* Fenêtre de détail */
dialog.panneau {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--texte);
  box-shadow: 0 30px 80px rgba(11, 15, 13, 0.28);
}
dialog.panneau::backdrop { background: rgba(20, 25, 23, 0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.panneau__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 0; }
.panneau__tete h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.panneau__corps { padding: 18px 24px 26px; }
.bloc-titre { margin: 22px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.client {
  padding: 18px; border-radius: 20px; background: var(--anthracite); color: #fff;
}
.client__nom { font-family: var(--ff-titre); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.client__lignes { display: grid; gap: 8px; margin-top: 12px; }
.client__lignes a, .client__lignes span { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.88); text-decoration: none; font-size: 15px; word-break: break-all; }
.client__lignes a:hover { color: var(--vert); }
.client__lignes .ico { color: var(--vert); }
.client__rgpd { margin-top: 12px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.suivi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.suivi button {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--ligne-forte);
  background: #fff; font-weight: 700; font-size: 14.5px; cursor: pointer; text-align: left; transition: border-color .2s, background .2s;
}
.suivi button:hover { border-color: var(--vert-fonce); background: var(--menthe-clair); }
.suivi button[aria-pressed='true'] { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.suivi button[aria-pressed='true'] .rond { background: var(--vert); border-color: var(--vert); }
.rond { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ligne-forte); flex: none; }

/* Factures */
.resume { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }

/* Abonnement */
.formule { padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.formule__nom { font-family: var(--ff-titre); font-size: 28px; font-weight: 800; letter-spacing: -0.035em; color: var(--encre); }
.formule__prix { text-align: right; }
.formule__prix strong { display: block; font-family: var(--ff-titre); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--encre); line-height: 1; }
.formule__prix span { font-size: 14px; color: var(--gris); }
.frise { grid-column: 1 / -1; }
.frise__barre { height: 10px; border-radius: 999px; background: rgba(0,0,0,.07); overflow: hidden; }
.frise__plein { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--vert-fonce), var(--vert)); }
.frise__dates { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--gris); }
.infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; grid-column: 1 / -1; }
.offre { padding: 26px; display: flex; flex-direction: column; }
.offre h3 { font-size: 22px; font-weight: 800; }
.offre__prix { margin: 14px 0 4px; font-family: var(--ff-titre); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: var(--encre); }
.offre__prix small { font-size: 15px; font-weight: 600; color: var(--gris); letter-spacing: 0; }
.coches { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--moyen); }
.coches li { display: flex; gap: 10px; align-items: flex-start; }
.coches .ico { width: 18px; height: 18px; color: var(--vert-txt); margin-top: 2px; }
.offre--noire { background: var(--anthracite); border-color: var(--anthracite); color: #fff; }
.offre--noire h3, .offre--noire .offre__prix { color: #fff; }
.offre--noire .offre__prix small, .offre--noire .coches { color: rgba(255,255,255,.75); }
.offre--noire .coches .ico { color: var(--vert); }
.offre__actuelle { position: absolute; top: 22px; right: 22px; }
.mandat { display: flex; align-items: center; gap: 14px; }
.mandat__iban { font-family: var(--ff-mono); font-size: 15px; color: var(--encre); }

/* Documents */
.doc { padding: 22px; display: flex; flex-direction: column; min-height: 230px; }
.doc__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.doc h3 { margin-top: 16px; font-size: 19px; font-weight: 800; }
.doc__detail { margin-top: 6px; font-size: 14px; color: var(--gris); }
.doc__detail strong { color: var(--texte); }
.doc__bas { margin-top: auto; padding-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.doc--manquant { border-style: dashed; border-color: var(--ligne-forte); background: rgba(255,255,255,.5); }

/* Formulaires */
.champ { display: grid; gap: 6px; }
.champ + .champ { margin-top: 14px; }
.champ label, .champ .libelle { font-size: 14px; font-weight: 700; color: var(--texte); }
.champ small { font-size: 13px; color: var(--gris); }
.champ input:not([type='hidden']):not(.fichier__cache), .champ select, .champ textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--ligne-forte); background: #fff; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.champ textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 0; border-color: var(--vert-fonce); box-shadow: 0 0 0 4px rgba(0, 245, 160, 0.18); }
.champ input[readonly] { background: var(--page); color: var(--gris); }
.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.deux .champ + .champ { margin-top: 0; }
.message { min-height: 22px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--rouge); }
.message--ok { color: var(--vert-txt); }
.zones { display: flex; flex-wrap: wrap; gap: 8px; }
.zone { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ligne-forte); font-weight: 700; font-size: 14px; }
.zone .mono { color: var(--vert-txt); }
.aide { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--menthe-clair); border: 1px solid var(--vert-br); font-size: 14px; color: #0b3b28; }
.aide .ico { color: var(--vert-txt); margin-top: 2px; }
.aide--ambre { background: var(--ambre-bg); border-color: rgba(154,91,0,.22); color: #4d2e00; }
.aide--ambre .ico { color: var(--ambre); }

/* Calendrier français (calendrier.js) */
.cal-champ {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 48px; padding: 0 14px;
  border-radius: 14px; border: 1px solid var(--ligne-forte); background: #fff; font-size: 16px; text-align: left; cursor: pointer;
}
.cal-champ:hover { border-color: rgba(0,0,0,.3); }
.cal-champ:focus-visible, .cal-champ[aria-expanded='true'] { outline: 0; border-color: var(--vert-fonce); box-shadow: 0 0 0 4px rgba(0, 245, 160, 0.18); }
.cal-champ.vide .cal-champ__texte { color: var(--discret); }
.cal-champ svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gris); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal { position: fixed; z-index: 80; width: 296px; padding: 14px; border-radius: 18px; border: 1px solid var(--ligne-forte); background: #fff; box-shadow: 0 24px 60px rgba(11,15,13,.18); }
.cal button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.cal button:disabled { cursor: default; opacity: 0.35; }
.cal__tete { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.cal__titre { padding: 6px 10px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.cal__titre::first-letter { text-transform: uppercase; }
.cal__titre:not(:disabled):hover { background: var(--page); }
.cal .cal__titre:disabled { opacity: 1; }
.cal__fleche { width: 34px; height: 34px; border-radius: 10px; font-size: 20px; line-height: 1; color: var(--gris); }
.cal__fleche:hover { background: var(--page); color: var(--encre); }
.cal__jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__sem { display: grid; place-items: center; height: 28px; font-size: 12px; font-weight: 600; color: var(--discret); }
.cal__jour { height: 36px; border-radius: 10px; font-size: 14px; }
.cal__jour.autre { color: var(--discret); opacity: 0.55; }
.cal__jour:not(:disabled):hover, .cal__unmois:not(:disabled):hover { background: var(--page); }
.cal__jour.auj, .cal__unmois.auj { box-shadow: inset 0 0 0 1px var(--ligne-forte); font-weight: 700; }
.cal .cal__jour.choisi, .cal .cal__unmois.choisi { background: var(--vert); color: #0a0a09; font-weight: 800; box-shadow: none; opacity: 1; }
.cal__mois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cal__unmois { height: 44px; border-radius: 12px; font-size: 14px; }
.cal__pied { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ligne); }
.cal__pied .cal__lien:only-child { margin-left: auto; }
.cal__lien { padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.cal__lien:hover { background: var(--page); }
.cal__pied .cal__lien:last-child { color: var(--vert-txt); }
.fichier { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; border-radius: 14px; border: 1px solid var(--ligne-forte); background: #fff; }
.fichier:focus-within { border-color: var(--vert-fonce); box-shadow: 0 0 0 4px rgba(0, 245, 160, 0.18); }
.fichier__bouton { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--anthracite); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.fichier__bouton:hover { background: #000; }
.fichier__nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.fichier__nom.vide { color: var(--discret); }
.fichier__cache { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* États vides, chargement, messages */
.vide-etat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 46px 24px; }
.vide-etat .tuile-ico { width: 52px; height: 52px; border-radius: 16px; }
.vide-etat .tuile-ico .ico { width: 24px; height: 24px; }
.vide-etat h3 { font-size: 20px; font-weight: 800; margin-top: 6px; }
.vide-etat p { max-width: 440px; color: var(--gris); font-size: 15px; }
.squelette { height: 168px; border-radius: var(--r-carte); background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.95), rgba(255,255,255,.5)); background-size: 200% 100%; animation: brille 1.4s infinite linear; border: 1px solid var(--verre-bord); }
@keyframes brille { to { background-position: -200% 0; } }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translateX(-50%); max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--anthracite); color: #fff; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 16px 40px rgba(11,15,13,.3);
}
.toast .point { flex: none; }
.synchro { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gris); }
.pied { max-width: calc(var(--large) + 40px); margin: 0 auto; padding: 0 20px 40px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; font-size: 13px; color: var(--gris); }
.pied nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pied a { color: var(--gris); text-decoration: none; }
.pied a:hover { color: var(--encre); text-decoration: underline; }
.note { font-size: 13.5px; color: var(--gris); }

/* Pages simples : connexion, lien, textes légaux */
.seul { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.seul__boite { width: min(460px, 100%); }
.seul__marque { display: flex; justify-content: center; margin-bottom: 26px; }
.seul .carte { padding: 34px 32px 30px; }
.seul h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; }
.seul p.chapeau { font-size: 15.5px; margin-top: 10px; }
.seul form { margin-top: 24px; }
.seul .btn { margin-top: 16px; }
.seul__pied { margin-top: 20px; text-align: center; font-size: 13px; color: var(--gris); }
.seul__pied a { color: var(--gris); }
.coche-ronde { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--vert); color: #0a0a09; margin-bottom: 18px; box-shadow: var(--lueur); }
.coche-ronde .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.texte-legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.texte-legal .carte { padding: 34px 36px; }
.texte-legal h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; }
.texte-legal h2 { margin: 28px 0 8px; font-size: 20px; font-weight: 800; }
.texte-legal p, .texte-legal li { color: var(--moyen); font-size: 15.5px; }
.texte-legal p + p { margin-top: 10px; }
.texte-legal .retour { display: inline-flex; margin-bottom: 18px; }

/* Espacements utilitaires */
.marge-haut { margin-top: 18px; }
.marge-haut-petite { margin-top: 12px; }
.pile-petite { display: grid; gap: 14px; }
.pile-petite .doc__bas { padding-top: 0; }
.champ-coche { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--moyen); cursor: pointer; }
.champ-coche input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--vert-fonce); flex: none; }

/* Administration */
.admin-ligne td:first-child { min-width: 220px; }
.etat-synchro { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.entete__droite--admin { margin-left: auto; }
@media (max-width: 860px) { .entete__droite--admin .btn { display: none; } .admin-boite { display: none; } }

/* La barre a une largeur fixe : la mention « Espace partenaire » ne tient qu'au téléphone */
.entete:not(.entete--admin) .marque__espace { display: none; }

@media (max-width: 1100px) {
  .nav a { padding: 0 11px; font-size: 14px; }
  .nav a .ico { display: none; }
  .marque__espace { display: none; }
  .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qui__nom { max-width: 140px; }
  .entete:not(.entete--admin) .qui { display: none; }
}
@media (max-width: 1240px) { .entete:not(.entete--admin) .qui { display: none; } }

@media (max-width: 860px) {
  .nav, .qui, .entete__droite .deconnexion { display: none; }
  .marque__espace { display: inline; }
  .onglets { display: flex; }
  .entete { top: 0; margin-top: 0; padding: 10px 12px 8px; background: linear-gradient(var(--page) 72%, rgba(244, 246, 245, 0)); }
  .entete:not(.entete--admin) .marque__espace { display: inline; }
  .entete__barre { height: 56px; }
  .contenu { padding: 20px 16px 40px; }
  .tete { flex-direction: column; align-items: stretch; margin: 10px 0 22px; gap: 16px; }
  .tete__actions .btn { flex: 1; }
  .grille--tdb, .grille--2 { grid-template-columns: 1fr; }
  .accueil { grid-template-columns: 1fr; padding: 28px 22px 24px; border-radius: 28px; gap: 22px; }
  .accueil__action { align-items: stretch; }
  .resume { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .resume .chiffre { min-height: 0; padding: 14px 12px; }
  .resume .tuile-ico { display: none; }
  .resume .chiffre__valeur { font-size: 24px; padding-top: 10px; }
  .resume .chiffre__note { font-size: 12px; }
  .accueil__action small { text-align: center; }
  .accueil__eclair { width: 160px; height: 160px; right: -20px; top: 30%; }
  .formule { grid-template-columns: 1fr; padding: 22px; }
  .formule__prix { text-align: left; }
  .infos { grid-template-columns: 1fr; }
  .tableau-boite { display: none; }
  .cartes-mobiles { display: grid; gap: 10px; padding: 6px 12px 14px; }
  .carte-mobile { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.85); border: 1px solid var(--ligne); text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }
  .carte-mobile__haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .carte-mobile__bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .carte-mobile__actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .segments { display: flex; width: 100%; }
  .segments button { flex: 1; justify-content: center; padding: 0 10px; }
  .proposition { padding: 20px; }
  .proposition__quand { margin-left: 0; width: 100%; }
  .proposition h3 { font-size: 22px; }
  .carte__tete { padding: 20px 18px 0; }
  .carte__corps { padding: 16px 18px 20px; }
  .lignes { padding: 4px 6px 8px; }
  .ligne { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 10px; }
  .ligne .etat { display: none; }
  .deux { grid-template-columns: 1fr; }
  .deux .champ + .champ { margin-top: 0; }
  .seul .carte { padding: 28px 22px 24px; }
  .texte-legal .carte { padding: 26px 22px; }
  .pied { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); border-radius: 18px; }
}

@media (max-width: 520px) {
  .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .chiffre { padding: 16px 16px 14px; min-height: 150px; }
  .chiffre__valeur { font-size: 32px; }
  .chiffre__valeur--date { font-size: 22px; }
  .chiffre__libelle { font-size: 13px; }
  .tuile-ico { width: 34px; height: 34px; border-radius: 11px; }
  .faits { grid-template-columns: 1fr 1fr; }
  .suivi { grid-template-columns: 1fr; }
  .marque__nom { font-size: 16px; }
  .marque__espace { font-size: 12px; padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (pointer: coarse) {
  .btn--petit { min-height: 44px; }
}
.offre--noire .surtitre { color: var(--vert); }

/* ===== Audit visuel du 02/11/2026 : petites touches ===== */
/* Titres sans mot orphelin, paragraphes équilibrés */
h1, h2, h3, .formule__nom, .fait dd, .doc h3 { text-wrap: balance; }
.chapeau, .accueil__texte, .note, .doc__detail { text-wrap: pretty; }
.formule__nom { line-height: 1.1; }
::selection { background: var(--menthe); color: var(--encre); }
input, textarea { caret-color: var(--vert-txt); }
.nw { white-space: nowrap; }

/* Boutons : retour au toucher, pas de lueur dans les listes et tableaux */
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn--petit.btn--vert { box-shadow: none; }
.btn--petit.btn--vert:hover { box-shadow: 0 6px 18px rgba(0, 194, 126, 0.28); }
@media (hover: none) { .carte--survol:hover { transform: none; box-shadow: var(--ombre); } }

/* Tableaux : en-têtes homogènes, chiffres alignés, dates sur une ligne */
.tableau th.num { font-weight: 700; color: var(--gris); }
.tableau td.num { font-variant-numeric: tabular-nums; }
.tableau td:nth-child(2), .tableau td:nth-child(3) { white-space: nowrap; }

/* Chiffres clés : libellé et pastille alignés en haut */
.chiffre__tete { align-items: flex-start; }
.chiffre__libelle { padding-top: 8px; line-height: 1.3; }

/* Propositions : la date toujours sur sa propre ligne ; le type de lieu, plus long, prend toute la largeur */
.proposition__quand { margin-left: 0; width: 100%; }
.fait--large { grid-column: 1 / -1; }
.faits .fait dd { overflow-wrap: anywhere; }

/* Dernières demandes : l'étape passe sous le titre quand la carte est étroite, au lieu de rogner le texte */
.carte--lignes { container-type: inline-size; }
.ligne { grid-template-areas: 'type texte etat fin'; }
.ligne > .type { grid-area: type; }
.ligne > .ligne__texte { grid-area: texte; min-width: 0; }
.ligne > .etat { grid-area: etat; }
.ligne > .ligne__fin { grid-area: fin; }
@container (max-width: 640px) {
  .ligne { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'type texte fin' '. etat fin'; row-gap: 8px; }
  .ligne .etat { max-width: 100%; }
}
@container (max-width: 460px) {
  .ligne { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'type fin' 'texte fin' 'etat fin'; row-gap: 8px; }
  .ligne > .type { justify-self: start; min-width: 0; }
  .ligne .etat { display: inline-flex !important; justify-self: start; }
  .ligne__titre, .ligne__sous { white-space: normal; }
}

/* Messages de formulaire : pas de trou quand il n'y a rien à dire */
.message:empty { min-height: 0; margin-top: 0; }
.message:empty + .btn { margin-top: 18px; }

/* Listes déroulantes à la DA (flèche dessinée, comme le calendrier) */
.champ select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer; background-color: #fff; color: var(--texte);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6560' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}

/* Abonnement */
.mandat__iban { font-family: var(--ff-texte); font-weight: 700; letter-spacing: 0.04em; }
.lien-fleche { white-space: nowrap; }

/* Administration : la mention « Administration » reste visible */
.entete--admin .marque__espace { display: inline; }
.carte-mobile__sous { font-size: 13px; color: var(--gris); }

/* Cibles tactiles et barre du bas sur tablette et téléphone */
@media (max-width: 860px) {
  .btn--petit { min-height: 44px; }
  .segments button { height: 44px; }
  .marque { min-height: 44px; }
  .lien-fleche { min-height: 44px; }
  .client__lignes a, .client__lignes span { min-height: 44px; }
  .onglets { max-width: 560px; margin: 0 auto; }
  .accueil__eclair { display: none; }
  .pied { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .pied nav { justify-content: center; gap: 0 4px; }
  .pied nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
  .ligne .lignes__sous--long { white-space: normal; }
}
@media (max-width: 520px) {
  .chiffre .tuile-ico { display: none; }
  .chiffre__libelle { padding-top: 0; }
  .lignes--abo .ligne__titre { white-space: normal; }
}
/* Fait seul avant un fait large : il prend toute la largeur au lieu de laisser un trou */
.faits .fait:nth-child(odd):has(+ .fait--large) { grid-column: 1 / -1; }
.tableau__sous { text-wrap: balance; }
@media (max-width: 860px) {
  .lignes--journal .ligne { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lignes--journal .tuile-ico, .lignes--journal .ligne > span:last-child { display: none; }
  .lignes--journal .ligne > .ligne__sous { order: 2; }
}

.marge-bas { margin: 18px 0 0; }
.double { display: grid; gap: 14px; max-width: 520px; }
.double__cle { font-family: var(--ff-mono); font-size: 15px; letter-spacing: .06em; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--ligne-forte); word-break: break-all; }
.verrou #resume, .verrou main > section.carte:not(#double), .verrou .tete__actions, .verrou #synchro { display: none; }
#double .champ input { max-width: 320px; letter-spacing: .2em; font-family: var(--ff-mono); }
#double .btn { justify-self: start; }
.double .message:empty { display: none; }
.double .message:empty + .btn { margin-top: 0; }

/* Contrôle du 02/11 en conditions réelles */
/* En-tête collant : un fond dégradé derrière la pilule, pour que le contenu qui défile ne passe pas au-dessus d'elle */
.entete { top: 0; margin-top: 0; padding-top: 14px; padding-bottom: 10px; background: linear-gradient(var(--page) 70%, rgba(244, 246, 245, 0)); }
/* Pied de page toujours en bas, même quand la page est courte */
body { display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > .pied { width: 100%; }
/* Administration : tableau remplacé par des cartes sous 1100 px (5 colonnes ne tiennent pas) */
@media (max-width: 1100px) {
  .admin-boite { display: none; }
  .admin-boite + .cartes-mobiles { display: grid; gap: 10px; padding: 6px 12px 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .admin-boite + .cartes-mobiles .carte-mobile { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.85); border: 1px solid var(--ligne); }
}
/* L'en-tête occupe toute la largeur (le fond couvre aussi les côtés) ; la pilule reste à la largeur du contenu */
.entete { width: 100%; max-width: none; padding-left: max(20px, calc((100% - var(--large)) / 2)); padding-right: max(20px, calc((100% - var(--large)) / 2)); }
@media (max-width: 860px) { .entete { padding: 10px 12px 8px; } }
@media (max-width: 860px) { .sans-onglets .pied { padding-bottom: 40px; } }
