/* ==========================================================================
   Tennis AroundMe — feuille de style (charte « Communauté », validée le 31 octobre 2026)
   Terre battue (couleur dominante, reprise de l'affiche), balle jaune-vert, crème rosé,
   vert du logo en complément. Police : Outfit. Formes très arrondies, boutons pilule.
   ========================================================================== */

[hidden] { display: none !important; }

:root {
    --paper: #FBF1EA;          /* fond crème rosé */
    --surface: #FFFFFF;
    --surface-2: #F6E7DD;
    --ink: #2E1510;            /* brun très foncé */
    --ink-2: #6E4A40;
    --ink-3: #8C6B61;          /* 4,6:1 sur le fond */
    --line: #EEDBCF;
    --clay: #B33625;           /* terre battue */
    --clay-dark: #8E2A1C;
    --clay-ink: #9A2E1D;       /* liens : contraste suffisant sur fond clair */
    --ball: #D9DA1D;           /* balle */
    --orange: #FBA918;
    --green: #0B5A25;          /* vert du logo */
    --sky: #00B7EB;
    --accent: var(--clay);
    --accent-ink: #FFFFFF;
    --accent-soft: #F9DED4;
    --amber: #FBA918;
    --amber-soft: #FEEBC8;
    --success: #0B5A25;
    --success-soft: #DCEFD8;
    --danger: #B42318;
    --danger-soft: #FDE2DD;
    --radius: 24px;
    --radius-lg: 36px;
    --radius-sm: 14px;
    --shadow: 0 1px 2px rgba(46, 21, 16, .05), 0 10px 28px -16px rgba(46, 21, 16, .22);
    --shadow-lg: 0 24px 60px -24px rgba(46, 21, 16, .32);
    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    --sidebar: 248px;
    --ad-rail: 180px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 16px/1.55 var(--font);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--clay-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.3em; border-radius: 999px; border: 1px solid transparent; min-height: 44px;
    font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
    background: var(--surface); color: var(--ink); border-color: var(--line);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--clay); color: #fff; border-color: var(--clay); }
.btn-primary:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-soft { background: var(--paper); border-color: transparent; color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-danger { color: var(--danger); }
.btn-lg { padding: .85em 1.4em; font-size: 1.02rem; }
.btn-sm { padding: .4em .85em; font-size: .88rem; min-height: 36px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.icon-btn { background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: .3em; border-radius: 6px; font: inherit; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: .35em; margin-bottom: 1rem; }
.field label, .label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.input, input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=datetime-local], input[type=month],
input[type=number], input[type=search], input[type=tel], input[type=url], select, textarea {
    width: 100%; padding: .72em 1em; min-height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { background: var(--surface-2); color: var(--ink-3); }
input[type=color] { width: 3rem; height: 2.4rem; padding: .2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: .6em; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: .25em; width: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.hint { font-size: .8rem; color: var(--ink-3); }

/* ---------- Cartes & éléments ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .15em .6em; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-amber { background: var(--amber-soft); color: #92400e; }
.badge-success { background: var(--success-soft); color: var(--success); }
.dot { width: .65em; height: .65em; border-radius: 50%; display: inline-block; flex: none; }
.stack { display: grid; gap: 1rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .25rem; }

.flash-list { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.flash { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.flash p { margin: 0; flex: 1; }
.flash-success { background: var(--success-soft); border-color: transparent; }
.flash-error { background: var(--danger-soft); border-color: transparent; }
.flash-upgrade { background: var(--amber-soft); border-color: transparent; }
.verify-banner { background: var(--accent-soft); border-color: transparent; margin-bottom: 1.25rem; align-items: center; flex-wrap: wrap; }
.verify-banner form { margin: 0; font-weight: 600; }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--danger-soft); margin-bottom: 1rem; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.table td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }
.table .subtotal td { background: var(--surface-2); font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

/* ==========================================================================
   Site public
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1160px; margin: 0 auto; padding: .85rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.15rem; color: var(--ink); text-decoration: none !important; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; overflow: hidden; flex: none; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: var(--ink-2); font-weight: 500; }
@media (max-width: 760px) { .site-nav { order: 10; flex-basis: 100%; } }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 3rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 1.25rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 1.25rem; transform: rotate(-1.2deg); }
.mock-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; margin-top: 1rem; }
.mock-day { background: var(--surface-2); border-radius: 10px; padding: .5rem .35rem; text-align: center; font-size: .72rem; color: var(--ink-3); }
.mock-day b { display: block; font-size: 1rem; color: var(--ink); margin-top: .2rem; }
.mock-day.on { background: var(--accent); color: var(--accent-ink); }
.mock-day.on b { color: var(--accent-ink); }
.mock-line { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.mock-line:last-child { border-bottom: 0; }
.mock-line strong { margin-left: auto; font-variant-numeric: tabular-nums; }

.store-badges { display: flex; gap: .6rem; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem; background: var(--ink); color: var(--paper); border-radius: 12px; text-decoration: none !important; line-height: 1.1; }
.store-badge small { display: block; font-size: .65rem; opacity: .75; }
.store-badge strong { font-size: 1rem; }
.store-badge svg { width: 22px; height: 22px; fill: currentColor; }

.section-title { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-title h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem; font-size: 1.2rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan.current { outline: 2px dashed var(--success); outline-offset: 3px; }
.plan .price { font-size: 2rem; font-weight: 750; letter-spacing: -.03em; margin: .5rem 0 0; }
.plan .price small { font-size: .85rem; font-weight: 500; color: var(--ink-3); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .5rem; font-size: .92rem; flex: 1; }
.plan li::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: .5rem; }
.plan li.inherit { color: var(--ink-3); }
.plan li.inherit::before { content: "↳"; color: var(--ink-3); }
.plan-ribbon { position: absolute; top: -.75rem; left: 1.5rem; background: var(--accent); color: var(--accent-ink); padding: .15rem .65rem; border-radius: 99px; font-size: .72rem; font-weight: 700; }
@media (max-width: 1000px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing { grid-template-columns: 1fr; } }

.switch { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.switch input { appearance: none; width: 44px; height: 24px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; border: 0; padding: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); }

.cta-band { background: var(--ink); color: var(--paper); border-radius: 26px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band .store-badge { background: var(--paper); color: var(--ink); }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0; color: var(--ink-3); font-size: .9rem; }
.site-footer .container { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--ink-2); }

/* Pages d'authentification */
.auth { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 2.5rem 1.25rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--ink-3); margin-bottom: 1.5rem; }
.social { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.social .btn { justify-content: center; }
.social svg { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--ink-3); font-size: .8rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Pages de contenu */
.prose { max-width: 760px; margin: 3rem auto; padding: 0 1.25rem; }
.prose h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; }
.prose h2 { margin-top: 2rem; }
/* Tableaux des textes légaux (aussi dans l'aperçu de l'admin) */
.prose table, .legal-preview table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.prose th, .prose td, .legal-preview th, .legal-preview td { border: 1px solid var(--line, #EEDBCF); padding: .5rem .65rem; text-align: left; vertical-align: top; min-width: 8rem; }
.prose th, .legal-preview th { background: var(--surface-2, #FBF1EA); font-weight: 700; }

/* ==========================================================================
   Application (espace connecté)
   ========================================================================== */
.app-shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 1.25rem 1rem; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar nav { display: grid; gap: .15rem; }
.sidebar nav a { display: flex; align-items: center; gap: .7rem; padding: .58rem .75rem; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 550; text-decoration: none; }
.sidebar nav a:hover { background: var(--surface-2); color: var(--ink); }
.sidebar nav a.active { background: var(--accent-soft); color: var(--accent); }
.sidebar nav svg { width: 18px; height: 18px; flex: none; }
.sidebar .plan-chip { margin-top: auto; padding: .9rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .85rem; }
.sidebar .plan-chip strong { display: block; font-size: .95rem; }
.sidebar .user { display: flex; align-items: center; gap: .6rem; font-size: .88rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.app-main { min-width: 0; display: grid; grid-template-columns: 1fr; }
.app-main.with-ads { grid-template-columns: var(--ad-rail) minmax(0, 1fr) var(--ad-rail); gap: 1.25rem; }
.app-content { padding: 1.75rem clamp(1rem, 3vw, 2.25rem) 3rem; max-width: 1100px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.mobile-bar { display: none; }

@media (max-width: 1300px) { .app-main.with-ads { grid-template-columns: minmax(0, 1fr) var(--ad-rail); } .app-main.with-ads .ad-rail-left { display: none; } }
@media (max-width: 1100px) { .app-main.with-ads { grid-template-columns: minmax(0, 1fr); } .app-main.with-ads .ad-rail { display: none; } }
@media (max-width: 860px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
    body.nav-open .sidebar { transform: none; }
    .mobile-bar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 40; }
}

/* Rails publicitaires latéraux (AdSense) : discrets, collants, jamais au-dessus du contenu */
.ad-rail { padding-top: 1.75rem; }
.ad-slot { position: sticky; top: 1.25rem; width: 160px; min-height: 600px; margin: 0 auto; }
.ad-slot .ad-label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); text-align: center; margin-bottom: .35rem; }
.ad-slot .ad-remove { display: block; text-align: center; font-size: .75rem; margin-top: .5rem; color: var(--ink-3); }
.site-ads { display: grid; grid-template-columns: var(--ad-rail) minmax(0, 1fr) var(--ad-rail); gap: 1rem; max-width: 1560px; margin: 0 auto; }
@media (max-width: 1500px) { .site-ads { grid-template-columns: minmax(0, 1fr); } .site-ads > .ad-rail { display: none; } }

/* Tableau de bord */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat { padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat .label { color: var(--ink-3); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.9rem; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat:last-child { grid-column: span 2; } }

.week-nav { display: flex; align-items: center; gap: .35rem; }
.week { display: grid; gap: .6rem; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.day.weekend { background: var(--surface-2); }
.day-head { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; }
.day-head .date { font-weight: 650; }
.day-head .date small { display: block; font-weight: 500; color: var(--ink-3); font-size: .78rem; text-transform: capitalize; }
.day-head .total { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.day-entries { border-top: 1px solid var(--line); }
.entry { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.entry:last-child { border-bottom: 0; }
.entry:hover { background: var(--surface-2); }
.entry .meta { min-width: 0; flex: 1; }
.entry .meta .title { font-weight: 600; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.entry .meta .note { color: var(--ink-3); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry .time { color: var(--ink-3); font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry .dur { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.5rem; text-align: right; }

.quick-hours { display: flex; gap: .4rem; flex-wrap: wrap; }
.duration-preview { font-weight: 750; font-size: 1.4rem; font-variant-numeric: tabular-nums; color: var(--accent); }

/* Entités */
.org-card .projects { display: grid; gap: .4rem; margin-top: .75rem; }
.org-card .project { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.org-card .project a { color: var(--ink); font-weight: 550; }
.usage { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.lock { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--amber-soft); margin-bottom: 1.25rem; }
.lock p { margin: 0; flex: 1; }

/* Rapports */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem 1rem; align-items: end; }
.filters .field { margin: 0; }
.filters select[multiple] { min-height: 7.5rem; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr; } }
.export-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.tabs { display: inline-flex; padding: .25rem; border-radius: 11px; background: var(--surface-2); gap: .2rem; }
.tabs a { padding: .4rem .85rem; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .88rem; text-decoration: none; }
.tabs a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Sélecteur de langue ---------- */
.locale-switcher { position: relative; }
.locale-switcher summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: .45em .7em; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.locale-switcher summary::-webkit-details-marker { display: none; }
.locale-switcher summary:hover { background: var(--surface-2); }
.locale-switcher ul { position: absolute; right: 0; bottom: auto; top: calc(100% + 4px); z-index: 60; list-style: none; margin: 0; padding: .35rem; min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.locale-switcher li a { display: block; padding: .45rem .7rem; border-radius: 7px; color: var(--ink); text-decoration: none; }
.locale-switcher li a:hover { background: var(--surface-2); }
.locale-switcher li a[aria-current] { color: var(--accent); font-weight: 600; }
.sidebar .locale-switcher ul, .site-footer .locale-switcher ul { top: auto; bottom: calc(100% + 4px); left: 0; right: auto; }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* ---------- Bannière de maintenance ---------- */
.maintenance-banner { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; align-items: center; padding: .6rem 1rem; background: var(--amber-soft); color: #92400e; font-size: .9rem; text-align: center; }
.maintenance-banner.is-active { background: var(--danger-soft); color: var(--danger); }

/* ---------------------------------------------------------------- Consentement mesure d'audience */
.consent {
    position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem;
    display: flex; justify-content: center; pointer-events: none;
}
.consent[hidden] { display: none; }
.consent-inner {
    pointer-events: auto;
    max-width: 760px; width: 100%;
    display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.consent-text { flex: 1 1 320px; font-size: .92rem; }
.consent-text p { margin: .25rem 0 0; color: var(--ink-2, inherit); }
.consent-actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.consent-actions .btn { min-width: 7.5rem; justify-content: center; }
.link-btn {
    background: none; border: 0; padding: 0; font: inherit; color: inherit;
    text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
@media (max-width: 560px) {
    .consent { left: .5rem; right: .5rem; bottom: .5rem; }
    .consent-actions { width: 100%; }
    .consent-actions .btn { flex: 1; }
}


/* ==========================================================================
   Site public — charte « Communauté »
   ========================================================================== */
.skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; }
.skip-link:focus { left: .75rem; }
.site-header { background: var(--paper); border-bottom: 0; backdrop-filter: none; }
.site-header .inner { max-width: 1200px; padding: 1rem 1.25rem; flex-wrap: wrap; gap: .75rem 1.75rem; }
.brand-wordmark { height: 52px; width: auto; display: block; }
.site-nav { flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.site-header .btn:not(.btn-green) { background: var(--surface); border-color: transparent; }
.container { max-width: 1200px; }
.section { padding-block: 1rem 4rem; }
.section-tight { padding-block: 1rem 3rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.5rem; }
.section-head h2, .clay-band h2, .apps-band h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 800; margin: 0; }
.center { text-align: center; justify-content: center; }
mark { background: var(--ball); color: inherit; padding: 0 .2em; border-radius: .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.hero-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem); margin: 1.5rem 0 3.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.hero-card.narrow { max-width: 720px; margin-inline: auto; }
.hero-card h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.04; max-width: 900px; margin: 0; }
.hero-card .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 640px; margin: 0; }

.search-form { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; width: 100%; max-width: 680px; background: var(--paper); padding: .5rem; border-radius: 999px; }
.search-form input[type=search] { flex: 1 1 240px; min-width: 0; border: 0; border-radius: 999px; font-size: 1.1rem; padding: .8em 1.3em; }
.search-form .btn { font-size: 1.1rem; padding-inline: 1.6em; }
.search-form .combo { flex: 1 1 240px; min-width: 0; display: flex; }
.search-form .combo input[type=search] { flex: 1 1 auto; width: 100%; }
.search-form .combo-list { text-align: left; }
@media (max-width: 560px) { .search-form { border-radius: 26px; } .search-form .btn { flex: 1 1 100%; } }
.geolocate { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.05rem; min-height: 44px; }
.geolocate[aria-busy="true"] { opacity: .6; pointer-events: none; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; padding-bottom: 4rem; }

.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 0; background: none; border: 0; }
.feature img { width: 104px; height: 104px; }
.feature strong { font-size: 1.5rem; font-weight: 800; }
.feature span { color: var(--ink-2); max-width: 14rem; }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.profile-card { scroll-margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; background: var(--surface); border-radius: 28px; padding: 1.75rem 1.25rem; color: var(--ink); text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease; }
.profile-card:target { box-shadow: 0 0 0 3px var(--ball); }
.profile-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.profile-card-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.profile-card-photo.is-initials { display: grid; place-items: center; font-weight: 800; font-size: 1.9rem; background: #F6D2C4; color: var(--ink); }
.profile-card-photo.kind-club { background: #F1F2B5; }
.profile-card-photo.kind-coach, .profile-card-photo.kind-shop { background: #FDE2B0; }
.profile-card-photo.kind-league, .profile-card-photo.kind-committee, .profile-card-photo.kind-federation { background: #D9EBCF; }
.hero-card .profile-card-photo { margin-bottom: .25rem; }
.profile-card-name { font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.profile-card-city { color: var(--ink-2); font-size: .95rem; }
.chip { display: inline-flex; align-items: center; gap: .3em; font-size: .88rem; font-weight: 600; background: var(--paper); color: var(--ink); padding: .35em .9em; border-radius: 999px; }

.clay-band { background: linear-gradient(180deg, var(--clay) 0%, var(--clay-dark) 100%); color: #fff; padding: 4rem 0; margin-bottom: 4rem; }
.clay-band .lead { color: rgba(255, 255, 255, .9); margin: .5rem 0 1.75rem; font-size: 1.15rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.post-bubble { background: var(--surface); color: var(--ink); border-radius: 28px 28px 28px 6px; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.post-bubble p { margin: 0; font-size: 1.1rem; line-height: 1.5; }
.post-bubble .btn { align-self: flex-start; }
.post-author { display: flex; align-items: center; gap: .75rem; }
.post-author strong { display: block; }
.post-author small { color: var(--ink-2); font-size: .88rem; }
.avatar-ball { width: 44px; height: 44px; border-radius: 50%; background: var(--ball); display: grid; place-items: center; font-weight: 800; flex: none; }

.apps-band { background: var(--ball); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.apps-band > div:first-child { flex: 1 1 360px; }
.apps-band p { margin: .5rem 0 0; font-size: 1.1rem; }
.store-badge { background: var(--ink); color: #fff; border-radius: 999px; padding: .6rem 1.25rem; }

.search-head { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; margin: 1rem 0 2rem; }
.search-filters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1.25rem; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-flex; min-height: 40px; align-items: center; padding: .45em 1em; border-radius: 999px; background: var(--surface); font-weight: 600; cursor: pointer; }
.chip-radio input:checked + span { background: var(--ink); color: #fff; }
.chip-radio input:focus-visible + span { outline: 3px solid var(--ball); outline-offset: 2px; }
.radius { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.radius select { width: auto; border-radius: 999px; }

.site-footer { border-top: 0; margin-top: 0; padding: .5rem 0 2.5rem; color: var(--ink-2); }
.site-footer a { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

/* Téléphone : en fin de fichier pour l'emporter sur les règles générales */
@media (max-width: 560px) {
    .features { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
    .feature img { width: 72px; height: 72px; }
    .feature strong { font-size: 1.2rem; }
    .profile-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .profile-card { padding: 1.25rem .75rem; border-radius: 22px; }
    .profile-card-photo { width: 72px; height: 72px; }
    .profile-card-name { font-size: 1rem; }
    .brand-wordmark { height: 40px; }
    .site-header .inner { gap: .5rem .75rem; }
    .site-nav { order: 10; flex-basis: 100%; gap: .25rem 1rem; }
    .site-nav a { font-size: .95rem; }
}

/* Champ ville avec autocomplétion */
.back-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; margin-bottom: .75rem; font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .35rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 280px; overflow-y: auto; }
.combo-list [role=option] { padding: .6rem .8rem; border-radius: 10px; cursor: pointer; }
.combo-list [role=option]:hover, .combo-list [role=option][aria-selected=true] { background: var(--paper); }
.city-field .geolocate { justify-self: start; background: none; border: 0; color: var(--clay-ink); cursor: pointer; padding: .25rem 0; font: inherit; }

/* Fiche */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); margin: 1rem 0 1.5rem; }
.profile-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex: none; }
.profile-photo.is-initials { font-size: 2.6rem; }
.profile-id { flex: 1 1 320px; display: grid; gap: .75rem; }
.profile-id h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; color: var(--ink-2); }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--amber-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.notice p { margin: 0; flex: 1 1 320px; }
.profile-body { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.profile-main { flex: 999 1 520px; min-width: 0; display: grid; gap: 1.5rem; }
.profile-side { flex: 1 1 300px; display: grid; gap: 1.5rem; }
.profile-page .card { border: 0; border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: none; }
.profile-page .card + .card { margin-top: 0; }
.profile-page .card h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 1rem; }
.bio { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1rem; }
.facts-grid dt, .facts dt { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.facts-grid dd, .facts dd { margin: .15rem 0 0; font-weight: 600; font-size: 1.05rem; }
.facts { display: grid; gap: .9rem; margin: 0 0 1.25rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-green { background: var(--success-soft); }
.chip-ball { background: #F1F2B5; }
.gimmick { margin: 1.25rem 0 0; padding: 1rem 1.25rem; background: var(--paper); border-radius: 18px; font-style: italic; font-size: 1.05rem; }
.table.courts, .table.hours { margin-bottom: 1rem; }
.table.hours th { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1rem; padding: .55rem .25rem; border-bottom: 1px solid var(--line); }
.table.hours td { padding: .55rem .25rem; }
.post-line { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line); }
.post-line:first-of-type { border-top: 0; padding-top: 0; }
.post-line p { margin: .25rem 0; }
@media (max-width: 560px) { .profile-photo { width: 104px; height: 104px; } .post-line { flex-direction: column; gap: .4rem; } .facts-grid { grid-template-columns: 1fr 1fr; gap: .9rem 1rem; } }

/* ==========================================================================
   Messagerie et réseau (étape 3)
   ========================================================================== */
.mini-avatar { border-radius: 50%; object-fit: cover; flex: none; display: block; }
.mini-avatar.is-initials { display: grid; place-items: center; font-weight: 800; background: #F6D2C4; color: var(--ink); }
.mini-avatar.kind-club { background: #F1F2B5; }
.mini-avatar.kind-coach, .mini-avatar.kind-shop { background: #FDE2B0; }
.mini-avatar.kind-league, .mini-avatar.kind-committee, .mini-avatar.kind-federation { background: #D9EBCF; }
.mini-avatar.kind-none { background: var(--surface-2); color: var(--ink-3); }

.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--clay); color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.mobile-unread { position: relative; display: inline-flex; color: var(--ink); margin-left: auto; padding: .4rem; }
.mobile-unread .nav-badge { position: absolute; top: -2px; right: -6px; height: 18px; min-width: 18px; font-size: .68rem; }

.inbox-filter { justify-content: flex-start; margin-bottom: 1rem; }
.chip-link { display: inline-flex; min-height: 40px; align-items: center; padding: .45em 1em; border-radius: 999px; background: var(--surface); font-weight: 600; color: var(--ink); text-decoration: none; }
.chip-link.active { background: var(--ink); color: #fff; }

.inbox { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox-row { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; color: var(--ink); text-decoration: none !important; }
.inbox-row:hover { background: var(--paper); }
.inbox-main { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.inbox-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.inbox-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-top time { color: var(--ink-3); font-size: .82rem; flex: none; }
.inbox-preview { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.inbox-as { color: var(--ink-3); font-size: .8rem; }
.inbox-row.is-unread .inbox-name, .inbox-row.is-unread .inbox-preview { font-weight: 700; color: var(--ink); }
.inbox-row.is-unread time { color: var(--clay-ink); font-weight: 600; }
.inbox-muted { color: var(--ink-3); flex: none; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--clay); flex: none; }

.thread { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 6rem); }
.thread-head { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.thread-who { flex: 1; min-width: 0; display: grid; }
.thread-who h1 { font-size: 1.25rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-who h1 a { color: inherit; }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .35rem; }
.menu-list button { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: .65rem .8rem; border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu-list button:hover { background: var(--paper); }
.menu-list button.danger { color: var(--danger); }

.messages { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.older { text-align: center; margin-bottom: .75rem; }
.day-sep { text-align: center; margin: 1rem 0 .5rem; }
.day-sep span { font-size: .8rem; font-weight: 600; color: var(--ink-3); background: var(--surface-2); padding: .25rem .8rem; border-radius: 999px; }
.bubble-row { display: flex; align-items: flex-end; gap: .35rem; scroll-margin-top: 4rem; }
.bubble-row.is-mine { flex-direction: row-reverse; }
.bubble { max-width: min(78%, 560px); background: var(--surface); border-radius: 22px 22px 22px 6px; padding: .65rem 1rem .45rem; box-shadow: var(--shadow); }
.bubble-row.is-mine .bubble { background: var(--clay); color: #fff; border-radius: 22px 22px 6px 22px; }
.bubble p { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
.bubble-meta { display: block; text-align: right; font-size: .72rem; color: var(--ink-3); margin-top: .2rem; }
.bubble-row.is-mine .bubble-meta { color: rgba(255, 255, 255, .82); }
.bubble-actions { position: relative; opacity: .55; }
.bubble-row:hover .bubble-actions, .bubble-actions[open] { opacity: 1; }
.bubble-actions > summary { list-style: none; cursor: pointer; color: var(--ink-3); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.bubble-actions > summary::-webkit-details-marker { display: none; }
.bubble-actions > summary:hover { background: var(--surface-2); color: var(--ink); }
.report-form { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 30; width: 260px; display: grid; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .9rem; font-size: .9rem; }
.report-form label { display: grid; gap: .25rem; font-weight: 600; }

.composer { position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: .6rem; padding: .75rem 0 .25rem; margin-top: 1rem; background: linear-gradient(to bottom, transparent, var(--paper) 30%); }
.composer textarea { flex: 1; resize: none; max-height: 40vh; min-height: 48px; border-radius: 24px; padding: .75rem 1.1rem; line-height: 1.4; }
.composer .btn { flex: none; min-height: 48px; }
.composer-hint { margin: .2rem 0 0; font-size: .8rem; }
.new-message textarea { resize: vertical; }

.net-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.net-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; }
.net-row + .net-row { border-top: 1px solid var(--line); }
.net-who { display: flex; align-items: center; gap: .85rem; min-width: 0; color: var(--ink); text-decoration: none !important; }
.net-who > span { display: grid; min-width: 0; }
.net-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 560px) {
    .hide-sm { display: none; }
    .thread { min-height: calc(100vh - 8rem); }
    .bubble { max-width: 86%; }
    .inbox-row, .net-row { padding: .8rem .9rem; }
    .net-row { flex-wrap: wrap; }
}
.nav-badge.is-on-btn { margin-left: .4rem; background: var(--ball); color: var(--ink); }

/* ==========================================================================
   Fil et publications (étape 3)
   ========================================================================== */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.5rem; align-items: start; }
.feed-side { position: sticky; top: 1.5rem; display: grid; gap: 1rem; }
.feed-side .card + .card { margin-top: 0; }
.feed-side h2 { font-size: 1.05rem; }
.feed-tips ul { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.net-list.flat { box-shadow: none; border-radius: 0; background: none; }
.net-list.flat .net-row { padding: .5rem 0; }
.feed-tabs { margin-bottom: 1rem; }
.feed-filters { justify-content: flex-start; margin-bottom: 1rem; }
.feed-where { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.feed-where p { margin: 0; }
.feed-list { display: grid; gap: 1rem; }
.center-row { justify-content: center; margin-top: .75rem; }

.feed-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.4rem; display: grid; gap: .7rem; scroll-margin-top: 1.5rem; }
.feed-card.is-sold { opacity: .78; }
.feed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.feed-author { display: flex; align-items: center; gap: .7rem; min-width: 0; color: var(--ink); text-decoration: none !important; }
.feed-author > span { display: grid; min-width: 0; }
.feed-author strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-author small { color: var(--ink-3); font-size: .85rem; }
.feed-kind { flex: none; font-size: .8rem; }
.kind-partner_search .feed-kind, .kind-partner_offer .feed-kind { background: var(--ball); }
.kind-event .feed-kind, .kind-tournament .feed-kind { background: var(--clay); color: #fff; }
.kind-classified .feed-kind { background: #FDE2B0; }
.feed-title { font-size: 1.3rem; margin: 0; line-height: 1.25; }
h1.feed-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feed-title a { color: inherit; }
.feed-price { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.feed-price strong { font-size: 1.35rem; color: var(--clay-ink); margin-right: .25rem; }
.chip-sold { background: var(--ink) !important; color: #fff; }
.feed-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0; color: var(--ink-2); font-size: .95rem; }
.feed-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.feed-meta svg { flex: none; color: var(--clay); }
.feed-body { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.feed-image { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-sm); display: block; background: var(--surface-2); }
.post-page .feed-image { max-height: none; object-fit: contain; }
.feed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .25rem; }

.post-page { max-width: 780px; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0 1.5rem; }
.danger-text { color: var(--danger) !important; }
.inline-report { opacity: 1; }
.inline-report .report-form { left: auto; right: 0; bottom: auto; top: calc(100% + 4px); }
.comments h2 { font-size: 1.2rem; }
.comment-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.comment { display: flex; gap: .75rem; align-items: flex-start; scroll-margin-top: 1.5rem; }
.comment:target .comment-body { box-shadow: 0 0 0 3px var(--ball); }
.comment-body { flex: 1; min-width: 0; background: var(--paper); border-radius: 6px 18px 18px 18px; padding: .6rem .9rem; }
.comment-body p { margin: 0; overflow-wrap: anywhere; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin-bottom: .2rem !important; }
.comment-head a { color: var(--ink); }
.comment-head time { color: var(--ink-3); font-size: .8rem; }
.chip-xs { font-size: .7rem; padding: .1em .6em; min-height: 0; }
.comment-tools { display: flex; align-items: center; gap: .75rem; margin-top: .25rem; font-size: .85rem; }
.comment-tools .link-btn { font-size: .85rem; color: var(--ink-3); }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: end; }
.comment-form textarea { resize: none; border-radius: 22px; padding: .7rem 1rem; min-height: 46px; }
.comment-as { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }

.post-form { max-width: 760px; }
.kind-picker { border: 0; padding: 0; }
.kind-picker .chips { justify-content: flex-start; }
.kind-picker .chip-radio span { background: var(--paper); }
.chip-radio.is-disabled span { opacity: .45; cursor: not-allowed; }
.post-form-image { border-radius: var(--radius-sm); display: block; margin-bottom: .5rem; height: auto; }
.post-line-link { color: var(--ink); }
.members-only { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }

@media (max-width: 960px) {
    .feed-layout { grid-template-columns: 1fr; }
    .feed-side { position: static; order: 2; }
}
@media (max-width: 560px) {
    .feed-card { padding: 1rem; border-radius: 20px; }
    .comment-form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Modifier ma fiche (étape 3)
   ========================================================================== */
.edit-tabs { margin-bottom: 1rem; flex-wrap: wrap; }
.edit-photo { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.edit-photo .profile-photo { width: 112px; height: 112px; flex: none; }
.edit-photo-forms { display: grid; gap: .5rem; min-width: 0; }
.edit-photo-forms h2 { font-size: 1.1rem; margin: 0; }
.edit-photo-forms input[type=file] { max-width: 100%; }
.edit-form { max-width: 820px; }
.edit-form .grid-2 > .field, .edit-form .grid-3 > .field { align-content: start; }
.form-section { font-size: 1.15rem; margin: 1.75rem 0 .9rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.form-section.first { margin-top: 0; padding-top: 0; border-top: 0; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.chips.start { justify-content: flex-start; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; min-height: 40px; align-items: center; gap: .35em; padding: .45em 1em; border-radius: 999px; background: var(--paper); font-weight: 600; cursor: pointer; border: 1px solid var(--line); }
.chip-check input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip-check input:checked + span::before { content: "✓"; }
.chip-check input:focus-visible + span { outline: 3px solid var(--ball); outline-offset: 2px; }
.narrow-field { max-width: 280px; }
.courts-table { width: 100%; max-width: 520px; border-collapse: collapse; }
.courts-table th, .courts-table td { padding: .4rem .5rem; text-align: left; border-bottom: 1px solid var(--line); }
.courts-table thead th { font-size: .85rem; color: var(--ink-2); }
.courts-table input { max-width: 96px; }
.hours-edit { display: grid; gap: .6rem; }
.hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem; margin: 0; }
.hours-row legend { float: left; width: 7rem; padding: 0; font-weight: 700; }
.hours-ranges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.hours-ranges input { width: auto; min-width: 7.2rem; }
.hours-ranges input:disabled { opacity: .4; }
.edit-actions { margin-top: 1.5rem; }
@media (max-width: 560px) {
    .edit-photo { flex-direction: column; align-items: flex-start; }
    .hours-row legend { width: 100%; }
}
.edit-form fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.edit-form .chips.field { margin-bottom: 1.25rem; }

/* Notifications (la cloche) */
.mobile-unread + .mobile-unread { margin-left: 0; }
.notif-list { list-style: none; margin: 0 0 1rem; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; max-width: 780px; }
.notif-list li + li { border-top: 1px solid var(--line); }
.notif { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; color: var(--ink); text-decoration: none !important; }
a.notif:hover { background: var(--paper); }
.notif.is-unread { background: #FFF8F3; }
.notif.is-unread .notif-text { font-weight: 600; }
.notif-avatar { position: relative; flex: none; }
.notif-icon { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--clay); color: #fff; border: 2px solid var(--surface); }
.notif-icon.icon-follow { background: var(--green); }
.notif-icon.icon-post { background: var(--ball); color: var(--ink); }
.notif-icon.icon-claim { background: var(--green); }
.notif-icon svg { width: 13px; height: 13px; }
.notif-main { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.notif-text { overflow-wrap: anywhere; line-height: 1.4; }
.notif-main time { color: var(--ink-3); font-size: .82rem; }
.notif-settings { margin-top: 1.5rem; }

/* Abonnement (étape 4) */
.billing-layout { display: grid; gap: 1rem; max-width: 720px; }
.billing-offer { display: grid; gap: .6rem; justify-items: start; }
.billing-offer.is-active { border-color: var(--green); box-shadow: 0 0 0 2px var(--success-soft), var(--shadow); }
.billing-price { margin: .25rem 0 0; display: flex; align-items: baseline; gap: .5rem; }
.billing-price strong { font-size: 2.6rem; font-weight: 800; color: var(--clay-ink); line-height: 1; }
.billing-perks { margin: .5rem 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.billing-status p { margin: 0 0 .25rem; }
.billing-history { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.billing-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }

/* Encart « Abonnement » sur la fiche (gestionnaires) */
.sub-card { display: grid; gap: .6rem; }
.sub-card h2 { margin: 0; }
.sub-card p { margin: 0; }
.sub-card.is-active { border-color: var(--green); }
.sub-more { font-size: .9rem; justify-self: start; }
.chip-warn { background: var(--amber-soft); }

/* Mises en avant (étape 4) */
.promo-box { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.promo-box h2 { margin: 0; font-size: 1.2rem; }
.promo-box p { margin: 0; }
.promo-box.is-active { border-color: var(--green); }
.promo-list { display: grid; gap: .75rem; }
.promo-card { display: grid; gap: .35rem; color: var(--ink); text-decoration: none !important; border: 2px solid var(--ball); padding: 1rem; }
.promo-card:hover { box-shadow: var(--shadow-lg); }
.promo-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.promo-card strong { font-size: 1.05rem; line-height: 1.3; }
.promo-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--clay-ink); }
.promo-meta { font-size: .88rem; color: var(--ink-2); }
.promo-mobile { display: none; margin-bottom: 1rem; }
@media (max-width: 960px) {
    .promo-mobile { display: grid; }
    .feed-side .promo-list { display: none; }
}

/* Recherche d'annonces */
.search-what { margin: 0 auto 1rem; }
.search-post-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; width: 100%; }
.search-post-filters input[type=search] { width: auto; min-width: 12rem; }
.search-posts { max-width: 780px; margin: 0 auto; }
.search-promos { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 780px; margin: 0 auto 1.5rem; }
.search-promos .promo-card img { aspect-ratio: 21 / 9; }
.search-ad { max-width: 780px; margin: 0 auto 1.5rem; }

/* Fiches pro : création, gestionnaires */
.takeover-link { text-align: center; margin-top: 2rem; }
.kind-choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kind-choice label { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; cursor: pointer; background: var(--surface); }
.kind-choice label:has(input:checked) { border-color: var(--clay); box-shadow: 0 0 0 2px var(--accent-soft); }
.kind-choice input { margin-top: .25rem; }
.kind-choice small { display: block; color: var(--muted, #7a5a50); }
.similar-list { display: grid; gap: .5rem; margin: 1rem 0; }
.manager-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.manager-row:last-child { border-bottom: 0; }
.manager-row .who { flex: 1 1 220px; display: flex; gap: .75rem; align-items: center; }
.manager-row form { display: inline; }
.edit-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.edit-form fieldset legend.form-section { padding: 0; margin: 0 0 .75rem; border: 0; font-size: 1.15rem; font-weight: 700; }
.similar-list { list-style: none; padding: 0; }
