/* Carnet des équipes — interface. Couleurs du club injectées dans --club et --club-2.
   Police Inter (OFL), servie par l'app elle-même : aucun appel à un service tiers. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/polices/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/polices/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --fond: #F4F5F9; --surface: #FFFFFF; --surface-2: #F6F7FB; --encre: #121A2E; --doux: #586279; --trait: #E2E5EE; --trait-fort: #C9CFDD;
  --club: #2447D6; --club-2: #0E1B3D; --sur-club: #FFFFFF; --marque: #FFC42E; --nuit: #0E1B3D;
  --teinte: color-mix(in srgb, var(--club) 10%, var(--surface));
  --ok: #1A7F4B; --ok-fond: #E2F3E8; --alerte: #9A4A12; --alerte-fond: #FBEBDD; --danger: #B42318; --danger-fond: #FDECEA;
  --rayon: 14px; --rayon-petit: 10px;
  --ombre: 0 1px 2px rgba(16, 24, 20, .05), 0 1px 3px rgba(16, 24, 20, .06);
  --ombre-haute: 0 12px 32px rgba(16, 24, 20, .16);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-feature-settings: "cv11", "ss01"; font-optical-sizing: auto;
  font-size: 16px; line-height: 1.5; color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #0A0F1F; --surface: #121930; --surface-2: #171F3A; --encre: #E8EBF4; --doux: #9BA4BB; --trait: #222B47; --trait-fort: #323C5C;
    --teinte: color-mix(in srgb, var(--club) 22%, var(--surface)); --ok-fond: #173326; --alerte-fond: #3A2614; --danger-fond: #3A1A17;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4); --ombre-haute: 0 12px 32px rgba(0, 0, 0, .5); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--fond); color: var(--encre); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
h1 { font-size: 1.65rem; line-height: 1.2; margin: 0; letter-spacing: -0.015em; font-weight: 700; text-wrap: balance; }
h2 { font-size: 1.05rem; margin: 0 0 12px; letter-spacing: -0.005em; }
h3 { font-size: 1rem; margin: 20px 0 8px; }
p { margin: 0 0 12px; max-width: 68ch; }
.doux { color: var(--doux); }
.petit-texte { font-size: .88rem; }
.icone { flex: none; }

/* --- barre du haut --- */
.barre { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--trait); }
.marque { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.marque img { display: block; height: 32px; width: auto; }
#nav { display: flex; align-items: center; gap: 6px; }
#nav a, #nav button { color: var(--encre); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; border-radius: 10px; min-height: 0; }
.nav-texte { padding: 8px 12px; font-weight: 600; font-size: .95rem; }
.nav-texte:hover, .nav-icone:hover { background: var(--surface-2) !important; }
.nav-icone { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 !important; }
.nav-bouton { padding: 8px 14px; font-weight: 600; background: var(--club) !important; color: var(--sur-club) !important; }
.nav-avatar { display: grid; place-items: center; padding: 2px; }
.nav-icone .compteur { position: absolute; top: 3px; right: 1px; }
#nav a:focus-visible, #nav button:focus-visible { outline: 2px solid var(--club); outline-offset: 1px; }

/* --- page --- */
main { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto; padding: 28px 32px 56px; outline: none; }
.etroit-large { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.etroit-large > h2 { margin: 12px 0 -8px; }
.etroit { max-width: 440px; margin: 24px auto 0; }
.etroit h1 { margin-bottom: 16px; }
.entete-page { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.entete-page p { margin: 6px 0 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.retour { display: inline-flex; align-items: center; gap: 4px; color: var(--doux); text-decoration: none; font-size: .9rem; font-weight: 600; margin-bottom: -8px; align-self: flex-start; }
.retour:hover { color: var(--encre); }
.section { display: flex; flex-direction: column; gap: 4px; }
.attente { color: var(--doux); }

/* --- coquille d'un club --- */
.club { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.cote { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 18px; background: var(--club-2); color: #E9F1EC; box-shadow: var(--ombre-haute); max-height: calc(100vh - 100px); }
.cote-liens { display: flex; flex-direction: column; gap: 2px; }
.cote a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: color-mix(in srgb, #fff 72%, transparent); font-weight: 600; font-size: .94rem; white-space: nowrap; }
.cote a span { overflow: hidden; text-overflow: ellipsis; }
.cote a:hover { background: color-mix(in srgb, #fff 8%, transparent); color: #fff; }
.cote a[aria-current=page] { background: color-mix(in srgb, #fff 14%, transparent); color: #fff; }
.cote a[aria-current=page] .icone { color: #fff; }
.cote .cote-club { color: #fff; padding: 8px; gap: 12px; border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent); border-radius: 12px 12px 0 0; padding-bottom: 14px; }
.cote-club-texte { display: flex; flex-direction: column; min-width: 0; }
.cote-club-texte strong, .cote-club-texte small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cote-club-texte small { color: color-mix(in srgb, #fff 62%, transparent); font-weight: 500; font-size: .8rem; }
.cote .pastille-club { background: var(--club); box-shadow: 0 0 0 2px color-mix(in srgb, #fff 18%, transparent); }
.cote-apercu { margin-top: 4px; background: color-mix(in srgb, #fff 8%, transparent) !important; border: 1px dashed color-mix(in srgb, #fff 30%, transparent) !important; color: #fff !important; justify-content: flex-start; white-space: nowrap; }
.bandeau-apercu { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #2B2A1F; color: #FFF6D6; }
.bandeau-apercu .bandeau-texte { flex: 1; display: flex; gap: 10px; align-items: baseline; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bandeau-apercu small { color: #E8D9A0; font-weight: 500; }
.bandeau-apercu button { background: #FFE58A; color: #2B2A1F; border-color: #FFE58A; }
.en-apercu .cote { box-shadow: 0 0 0 3px #FFE58A, var(--ombre-haute); }
.pastille-club { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--c, var(--club)); color: #fff; font-size: .8rem; font-weight: 700; flex: none; }
.pastille-club.grande { width: 44px; height: 44px; border-radius: 12px; font-size: .95rem; }
.club-contenu { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* --- cartes et grilles --- */
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre); }
.carte-lien { display: flex; align-items: center; gap: 14px; text-decoration: none; transition: border-color .15s; }
.carte-lien:hover { border-color: var(--trait-fort); }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.grille-clubs { display: grid; gap: 12px; }
.carte-club { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); text-decoration: none; box-shadow: var(--ombre); }
.carte-club:hover { border-color: var(--trait-fort); }
.carte-club-texte { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.carte-club .icone { color: var(--doux); }
.carte-equipe > span:nth-child(2) { flex: 1; }
.carte-equipe .icone { color: var(--doux); }
.badge-cat { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: var(--teinte); color: var(--encre); font-weight: 800; font-size: .9rem; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.chiffre { --ton: var(--club); display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; text-decoration: none; box-shadow: var(--ombre); min-width: 0; transition: transform .15s, box-shadow .15s; }
.chiffre:hover { transform: translateY(-1px); box-shadow: var(--ombre-haute); }
.chiffre.bleu { --ton: #2F6FDE; } .chiffre.ambre { --ton: #C77A0A; } .chiffre.violet { --ton: #7A4FD6; }
.chiffre-icone { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--ton) 13%, var(--surface)); color: var(--ton); flex: none; }
.chiffre-texte { display: flex; flex-direction: column; min-width: 0; }
.chiffre strong { font-size: 1.75rem; line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chiffre-texte span { color: var(--doux); font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tableau { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.panneau { background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; box-shadow: var(--ombre); overflow: hidden; }
.panneau-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 6px; }
.panneau-tete h2 { margin: 0; font-size: 1rem; }
.lien-discret { color: var(--doux); font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lien-discret:hover { color: var(--encre); }
.lignes.nues { border: 0; border-radius: 0; box-shadow: none; }
.lignes.nues > li { padding: 12px 20px; }
.lignes.nues .icone { color: var(--doux); }
.puce-icone { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teinte); color: var(--club) !important; flex: none; }
.puce-icone .icone { color: var(--club); }
.tout-bon { display: flex; align-items: center; gap: 10px; padding: 14px 20px 20px; margin: 0; color: var(--ok); font-weight: 600; }
.badge-cat.petit { min-width: 34px; height: 34px; border-radius: 10px; font-size: .8rem; }
.une-ligne { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; min-width: 0; }
.actions-rapides { display: flex; gap: 8px; flex-wrap: wrap; }
.vide { padding: 32px 20px; text-align: center; color: var(--doux); background: var(--surface); border: 1px dashed var(--trait-fort); border-radius: var(--rayon); }
.vide p { margin: 0 auto; }

/* --- listes en lignes --- */
.lignes { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.lignes > li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--trait); }
.lignes > li:first-child { border-top: 0; }
.lignes.compactes > li { padding: 9px 16px; }
.lignes > li.non-lue { background: var(--teinte); }
.ligne-texte { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 1px; text-decoration: none; }
.ligne-texte small { overflow-wrap: anywhere; }
.ligne-fin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lignes > li:has(.lien-plein) { position: relative; }
.lien-plein::after { content: ""; position: absolute; inset: 0; }
.lignes > li:has(.lien-plein):hover { background: var(--surface-2); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teinte); color: var(--encre); font-size: .8rem; font-weight: 700; flex: none; }
.avatar.grand { width: 44px; height: 44px; font-size: .9rem; }
.avatar-fil { border-radius: 10px; color: var(--club); }
.vide-avatar { background: var(--surface-2); color: var(--doux); }
.nav-avatar .avatar { width: 34px; height: 34px; background: var(--club); color: var(--sur-club); }
.barre-outils { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: -8px; }
.recherche { flex: 1; max-width: 360px; }

/* --- onglets --- */
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--trait); margin-bottom: 18px; overflow-x: auto; }
.onglets button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--doux); padding: 10px 12px; margin-bottom: -1px; font-weight: 600; white-space: nowrap; min-height: 0; }
.onglets button:hover { color: var(--encre); filter: none; }
.onglets button[aria-selected=true] { color: var(--encre); border-bottom-color: var(--club); }
.onglet-contenu { display: flex; flex-direction: column; gap: 16px; }

/* --- puces --- */
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.ligne-texte .puces { margin-top: 6px; }
.puce { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; line-height: 1.3; padding: 4px 10px; border-radius: 999px; background: var(--teinte); color: var(--encre); }
.puce:has(.puce-x) { padding-right: 4px; }
.puce-x { all: unset; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--doux); }
.puce-x:hover { background: var(--trait); color: var(--encre); }
.puce-x:focus-visible { outline: 2px solid var(--club); }
.pastille { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--doux); border: 1px solid var(--trait); white-space: nowrap; }
.pastille.ok { background: var(--ok-fond); color: var(--ok); border-color: transparent; }
.pastille.alerte { background: var(--alerte-fond); color: var(--alerte); border-color: transparent; }

/* --- formulaires et boutons --- */
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
label.case { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, textarea { font: inherit; font-size: .95rem; padding: 10px 12px; min-height: 44px; border: 1px solid var(--trait-fort); border-radius: var(--rayon-petit); background: var(--surface); color: var(--encre); width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--club); box-shadow: 0 0 0 3px color-mix(in srgb, var(--club) 25%, transparent); }
input[type=checkbox] { margin-top: 2px; width: 18px; height: 18px; min-height: 0; accent-color: var(--club); flex: none; }
input[type=color] { padding: 3px; height: 44px; width: 72px; }
button, .bouton { font: inherit; font-size: .95rem; font-weight: 600; min-height: 42px; padding: 9px 16px; border-radius: var(--rayon-petit); border: 1px solid var(--club); background: var(--club); color: var(--sur-club); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:hover, .bouton:hover { filter: brightness(1.06); }
button.second, .bouton.second { background: var(--surface); color: var(--encre); border-color: var(--trait-fort); }
button.second:hover, .bouton.second:hover { background: var(--surface-2); filter: none; }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button.petit { min-height: 34px; padding: 5px 12px; font-size: .85rem; }
button.icone-seule { min-height: 0; width: 34px; height: 34px; padding: 0; background: none; border: 0; color: var(--doux); border-radius: 9px; }
button.icone-seule:hover { background: var(--surface-2); color: var(--encre); filter: none; }
button:focus-visible, .bouton:focus-visible { outline: 2px solid var(--club); outline-offset: 2px; }
button:disabled { opacity: .6; cursor: wait; }
form > button[type=submit] { align-self: flex-start; }
.ligne { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.liste li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; flex-wrap: wrap; }
.liste li.non-lue { border-left: 4px solid var(--club); }
.message { padding: 12px 14px; border-radius: var(--rayon-petit); border: 1px solid var(--trait); background: var(--surface); margin: 0; }
.message.erreur { border-color: transparent; background: var(--danger-fond); color: var(--danger); }
.message.ok { border-color: transparent; background: var(--ok-fond); color: var(--ok); }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 1.05rem; letter-spacing: 2px; word-break: break-all; padding: 12px; background: var(--surface-2); border-radius: var(--rayon-petit); border: 1px dashed var(--trait-fort); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, Menlo, monospace; }
.aide:empty { display: none; }
.aide { margin: -6px 0 0; font-size: .88rem; }
.cible { display: flex; flex-direction: column; gap: 14px; }
.cible:empty { display: none; }
fieldset.cases { border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: 10px 12px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
fieldset.cases legend { font-weight: 700; font-size: .85rem; padding: 0 4px; }
fieldset.cases label { font-weight: 400; font-size: .9rem; }

/* --- fenêtre --- */
dialog { border: 0; border-radius: 18px; padding: 22px; background: var(--surface); color: var(--encre); max-width: 560px; width: calc(100% - 32px); max-height: calc(100vh - 48px); box-shadow: var(--ombre-haute); }
dialog::backdrop { background: rgba(10, 16, 13, .45); backdrop-filter: blur(3px); }
.fenetre-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fenetre-tete h2 { margin: 0; font-size: 1.2rem; }


/* --- messages --- */
.fil { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fil li { max-width: min(560px, 85%); padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--trait); }
.fil li.moi { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--teinte); border-color: transparent; }
.fil li p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.composer { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 8px; position: sticky; bottom: 12px; padding: 8px; background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; box-shadow: var(--ombre-haute); }
.composer [role=alert] { flex-basis: 100%; order: 3; }
.composer [role=alert]:empty { display: none; }
.composer textarea { flex: 1; width: auto; border: 0; min-height: 44px; resize: none; }
.composer textarea:focus-visible { box-shadow: none; }
.composer > button[type=submit] { align-self: flex-end; }
textarea { resize: vertical; }
.compteur { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #D93036; color: #fff; font-size: .7rem; font-weight: 700; text-align: center; line-height: 18px; }
.compteur[hidden] { display: none; }
.lien-notif { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lien-notif:focus-visible { outline: 2px solid var(--club); outline-offset: 4px; border-radius: 4px; }

/* --- divers --- */
.annonce { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--encre); color: var(--fond); padding: 10px 18px; border-radius: 12px; box-shadow: var(--ombre-haute); max-width: calc(100% - 32px); font-weight: 600; }
.pied { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px; font-size: .85rem; color: var(--doux); }
.choix-langue { flex-direction: row; align-items: center; font-weight: 400; }
.choix-langue select { padding: 4px 8px; min-height: 0; font-size: .85rem; width: auto; }
.cache { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .annonce { transition: opacity .2s; } }

/* --- téléphone --- */
@media (max-width: 860px) {
  main { padding: 18px 16px 96px; }
  .barre { padding: 8px 12px; }
  .club { grid-template-columns: 1fr; gap: 16px; }
  .cote { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; flex-direction: row; justify-content: space-around; gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--trait); }
  .cote .cote-club { display: none; }
  .cote a { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .68rem; flex: 1; min-width: 0; text-align: center; }
  .cote a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .cote a[aria-current=page] { background: none; color: var(--club); }
  .pied { padding-bottom: 90px; }
  .deux { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
  .lignes > li { flex-wrap: wrap; }
  .ligne-fin { width: 100%; justify-content: flex-start; padding-left: 50px; }
  .composer { bottom: 84px; }
}
@media (max-width: 480px) {
  .nav-texte { display: none; }
}

/* --- tableaux de données --- */
.tableau-donnees { position: relative; background: var(--surface); border: 1px solid var(--trait); border-radius: 16px; box-shadow: var(--ombre); overflow-x: auto; }
.tableau-donnees table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau-donnees th { text-align: left; font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--trait); white-space: nowrap; }
.tableau-donnees td { padding: 12px 16px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.tableau-donnees tr:last-child td { border-bottom: 0; }
.tableau-donnees tbody tr:hover { background: var(--surface-2); }
.tableau-donnees td:first-child { min-width: 240px; max-width: 320px; }
.cellule-personne { display: flex; align-items: center; gap: 12px; min-width: 0; }
.actions-cellule { text-align: right; white-space: nowrap; width: 1%; }
.actions-cellule > * { vertical-align: middle; }
.actions-cellule button + button { margin-left: 6px; }
.tableau-donnees .puces { flex-wrap: wrap; }
.puce { max-width: 340px; white-space: nowrap; }
.puce > .une-ligne { display: inline-block; }

/* --- sans retour à la ligne : boutons, onglets, titres courts, puces --- */
button, .bouton, .onglets button, .nav-texte, .pastille, .retour, .actions-rapides > * { white-space: nowrap; }
.entete-page h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entete-page > div:first-child { min-width: 0; flex: 1; }
.entete-page p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carte-club strong, .carte-club .doux, .carte-equipe strong, .carte-equipe small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.carte-equipe > span:nth-child(2), .carte-club-texte { min-width: 0; }
.ligne-texte strong, .ligne-texte small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chiffre, .carte-club, .carte-lien { min-width: 0; }
h1 { font-weight: 750; letter-spacing: -0.025em; }
h2 { font-weight: 650; }
.carte, .lignes, .panneau, .chiffre, .tableau-donnees { border-radius: 16px; }
body { background: radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--club) 7%, transparent), transparent 60%), var(--fond); }

@media (max-width: 860px) {
  main { padding: 16px 14px 96px; }
  .cote { border-radius: 0; box-shadow: none; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--club-2); max-height: none; gap: 0; }
  .cote-liens { flex-direction: row; justify-content: space-around; width: 100%; }
  .cote a { color: color-mix(in srgb, #fff 70%, transparent); }
  .cote a[aria-current=page] { color: #fff; background: none; }
  .cote-apercu { display: none !important; }
  .entete-page { flex-wrap: wrap; }
  .entete-page h1 { white-space: normal; }
  .tableau { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chiffre { padding: 14px; gap: 10px; }
  .chiffre-icone { width: 38px; height: 38px; border-radius: 11px; }
  .tableau-donnees td:first-child { min-width: 200px; }
}


/* ===== v0.5 : structure en deux zones, listes sur une ligne ===== */
.barre { height: 61px; padding-block: 0; }
/* Dans un club : barre latérale pleine hauteur collée au bord, contenu à droite */
main:has(> .club) { max-width: none; padding: 0; }
.club { grid-template-columns: 264px minmax(0, 1fr); gap: 0; align-items: stretch; min-height: calc(100vh - 61px); }
.cote { position: sticky; top: 61px; align-self: start; height: calc(100vh - 61px); max-height: none; border-radius: 0; box-shadow: none; padding: 18px 14px 132px; gap: 16px; overflow-y: auto; }
.cote .cote-club { border-bottom: 0; padding: 10px; border-radius: 12px; background: color-mix(in srgb, #fff 7%, transparent); }
.cote-liens::before { content: attr(data-titre); font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, #fff 48%, transparent); padding: 4px 12px 8px; }
.cote-apercu { margin-top: auto; }
.club-contenu { padding: 30px 40px 64px; gap: 22px; max-width: 1520px; width: 100%; }
body:has(.club) .pied { position: fixed; z-index: 21; left: 0; bottom: 0; width: 264px; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 26px 16px; color: color-mix(in srgb, #fff 60%, transparent); font-size: .78rem; border-top: 1px solid color-mix(in srgb, #fff 10%, transparent); background: var(--club-2); }
body:has(.club) .pied a { color: inherit; }
body:has(.club) .pied select { background: color-mix(in srgb, #fff 8%, transparent); color: #fff; border-color: color-mix(in srgb, #fff 22%, transparent); }
body:has(.club) .pied option { color: #121A2E; }
.entete-page { align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--trait); }
.entete-page .actions { display: flex; gap: 8px; flex-wrap: nowrap; }

/* Rien ne passe à la ligne dans les éléments d'interface : on coupe avec « … » */
button, .bouton, .avec-icone, th, .pastille, .onglets button, .badge-cat, h2, .tableau-donnees td, .tableau-donnees strong, .tableau-donnees small { white-space: nowrap; }
h2, .tableau-donnees strong, .tableau-donnees small { overflow: hidden; text-overflow: ellipsis; }
.tableau-donnees td.souple { white-space: normal; }
.tableau-donnees td:first-child { max-width: none; }
.cellule-nom { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cellule-nom > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cellule-nom small { color: var(--doux); font-size: .82rem; max-width: 52ch; }
.tableau-donnees tr.groupe th { background: var(--surface); color: var(--encre); font-size: .8rem; letter-spacing: .06em; padding: 18px 16px 8px; border-bottom: 1px solid var(--trait); }
.tableau-donnees tr.groupe:first-child th { padding-top: 14px; }
.tableau-donnees tr.cliquable { cursor: pointer; }
.tableau-donnees td.fin { text-align: right; width: 1%; }
.tableau-donnees td.fin > * { vertical-align: middle; }
.tableau-donnees td.nombre { font-variant-numeric: tabular-nums; color: var(--doux); }
.tableau-donnees .chevron { display: inline-grid; place-items: center; width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; background: none; color: var(--doux); border-radius: 9px; }
.tableau-donnees .chevron:hover { background: var(--surface-2); color: var(--encre); filter: none; }
.tableau-donnees .chevron svg { transition: transform .15s ease; }
.tableau-donnees .chevron[aria-expanded=true] svg { transform: rotate(90deg); }
.pastille-role { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teinte); color: var(--club); flex: none; }
.tiret { color: var(--trait-fort); }
/* Formulaires de réglages : largeur de lecture, pas toute la page */
.onglet-contenu > .carte > form, .onglet-contenu > .carte > p { max-width: 620px; }
@media (prefers-reduced-motion: reduce) { .tableau-donnees .chevron svg { transition: none; } }

@media (max-width: 860px) {
  main:has(> .club) { padding: 0; }
  .club { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .club-contenu { padding: 16px 14px 104px; }
  .cote { position: fixed; top: auto; height: auto; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); overflow: visible; }
  .cote-liens::before { display: none; }
  body:has(.club) .pied { position: static; width: auto; flex-direction: row; align-items: center; justify-content: center; background: none; color: var(--doux); border-top: 0; padding: 16px 16px 96px; font-size: .85rem; }
  body:has(.club) .pied select { background: var(--surface); color: var(--encre); border-color: var(--trait-fort); }
  .entete-page .actions { flex-wrap: wrap; }
  .tableau-donnees .masquable { display: none; }
  .cellule-nom small { max-width: 30ch; }
}
.tableau-donnees tr.groupe:hover { background: none; }
.lien-nom { color: inherit; text-decoration: none; min-width: 0; display: flex; }
.lien-nom:hover strong { text-decoration: underline; }
.tableau-donnees td .pastille + .pastille { margin-left: 6px; }
.tableau-souple td:first-child { width: 100%; max-width: 0; }
.tableau-souple .cellule-nom small { max-width: none; }
@media (max-width: 860px) {
  .tableau-donnees button.voir span { display: none; }
  .tableau-donnees button.voir { padding: 5px 9px; }
  .entete-page { align-items: flex-start; }
  .entete-page p { white-space: normal; }
}

/* ===== Socle du portage (décembre 2026) ===== */
/* Formulaires : trois champs côte à côte (heures) ; boutons d'une fenêtre alignés à droite */
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trois label, .deux label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-fenetre { justify-content: flex-end; margin-top: 8px; }
button.danger-texte { color: var(--danger); }
.erreur-texte { color: var(--danger); }
dialog > p:first-of-type { max-width: none; }

/* Menu du club : « Plus » ne sert qu'au téléphone */
.cote-plus { display: none !important; }
.menu-plus > li { padding: 10px 14px; }

/* Rôles : une matrice rôles × accès, une ligne par rôle */
.matrice-roles table { width: auto; min-width: 100%; }
.matrice-roles th, .matrice-roles td { white-space: nowrap; padding: 10px 8px; }
.matrice-roles thead th { text-align: center; letter-spacing: .02em; font-size: .7rem; }
.matrice-roles td.fin { padding: 6px 12px 6px 2px; }
.matrice-roles thead th:first-child { padding-left: 16px; }
.matrice-roles td.portee { padding-right: 4px; }
@media (max-width: 1599px) { .matrice-roles button.voir span { display: none; } .matrice-roles button.voir { padding: 5px 9px; } }
.matrice-roles thead th:first-child, .matrice-roles thead th:nth-child(2) { text-align: left; }
.matrice-roles tbody th[scope=row] { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; font-weight: 650; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--encre); padding: 10px 16px; border-bottom: 1px solid var(--trait); max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.matrice-roles tbody tr:hover th[scope=row] { background: var(--surface-2); }
.matrice-roles tbody th .pastille { margin-left: 8px; }
.matrice-roles td:first-child { min-width: 0; }
.matrice-roles td.portee { color: var(--doux); font-size: .86rem; }
.matrice-roles td.niv, .matrice-roles td.mfa { text-align: center; }
.niv span { display: inline-block; min-width: 48px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 650; }
.niv.gerer span { background: var(--club); color: var(--sur-club); }
.niv.voir span { background: var(--teinte); color: var(--encre); }
.niv.famille span { background: var(--surface-2); color: var(--doux); border: 1px dashed var(--trait-fort); font-weight: 550; }
.niv.aucun span { color: var(--trait-fort); min-width: 0; }
.legende { margin: -8px 0 0; }
.grille-acces { border: 1px solid var(--trait); border-radius: var(--rayon-petit); padding: 10px 12px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.grille-acces legend { font-weight: 700; font-size: .85rem; padding: 0 4px; }
.niveau-acces { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; font-weight: 550; }
.niveau-acces > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.niveau-acces select { width: 108px; min-height: 38px; padding: 6px 8px; flex: none; }
fieldset.cases.en-ligne { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 860px) {
  .cote a.hors-barre { display: none; }
  .cote-plus { display: flex !important; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 0; min-height: 0; padding: 6px 2px; background: none !important; border: 0; border-radius: 10px; font-size: .68rem; font-weight: 600; color: color-mix(in srgb, #fff 70%, transparent); }
  .cote-plus.actif { color: #fff; }
  .cote-plus span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .grille-acces { grid-template-columns: minmax(0, 1fr); }
  /* téléphone : le titre et son sous-titre prennent toute la largeur, les boutons passent dessous */
  .entete-page > div:first-child { flex: 1 1 100%; }
  .matrice-roles th, .matrice-roles td { padding: 9px 10px; }
  .matrice-roles tbody th[scope=row] { max-width: 150px; padding-left: 12px; }
}
