:root {
  --forest: #254d2c;
  --forest-2: #37683f;
  --moss: #6f8f4d;
  --wood: #9b642f;
  --ochre: #d5ad62;
  --sand: #f4ead4;
  --paper: #fffdf8;
  --ink: #26231f;
  --muted: #6d675e;
  --line: #d8cdb9;
  --danger: #a53a32;
  --warning: #a76816;
  --shadow: 0 10px 30px rgba(54, 43, 28, .10);
  --radius: 17px;
}
* { box-sizing: border-box; }
html { background: #eee4d1; }
body { margin: 0; color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: linear-gradient(180deg,#f4ead4 0,#f8f4eb 230px,#f7f4ee 100%); min-height: 100vh; }
a { color: var(--forest); }
button,input,select { font: inherit; }
button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 30; min-height: 70px; padding: 10px max(16px,calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(37,77,44,.97); color: white; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: white; }
.brand img { width: 49px; height: 49px; object-fit: cover; border-radius: 13px; border: 2px solid rgba(255,255,255,.65); }
.brand span { display:flex; flex-direction:column; }
.brand strong { font-size: 1.06rem; letter-spacing:.01em; }
.brand small { opacity:.8; }
.main-nav { display:flex; align-items:center; gap:6px; }
.main-nav a,.link-button { color:white; text-decoration:none; background:transparent; border:0; padding:10px 12px; border-radius:10px; }
.main-nav a:hover,.main-nav a.active,.link-button:hover { background:rgba(255,255,255,.14); }
.main-nav form { margin:0; }
.nav-toggle { display:none; color:white; background:transparent; border:1px solid rgba(255,255,255,.4); border-radius:10px; padding:8px 11px; font-size:1.15rem; }
.page-shell { width:min(1180px,calc(100% - 28px)); margin:0 auto; padding:30px 0 55px; }
.site-footer { text-align:center; color:var(--muted); padding:25px; font-size:.86rem; }
.flash,.live-notice { width:min(1180px,calc(100% - 28px)); margin:14px auto 0; padding:13px 16px; border-radius:12px; box-shadow:var(--shadow); }
.flash-success { background:#e4f2e4; color:#214d27; border:1px solid #b6d7b9; }
.flash-error { background:#f8e1df; color:#7d2822; border:1px solid #e6b2ad; }
.flash-warning,.live-notice { background:#fff0cf; color:#71480e; border:1px solid #e9c987; }
.live-notice button { margin-left:10px; border:0; border-radius:8px; padding:6px 10px; background:var(--warning); color:white; }
.card { background:rgba(255,253,248,.96); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow); }
.card h2:first-child,.card h1:first-child { margin-top:0; }
.narrow { width:min(620px,100%); margin:28px auto; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:22px; }
.page-heading h1 { margin:.1rem 0 .35rem; font-family: Georgia,serif; font-size:clamp(2rem,4vw,3rem); color:#273f29; }
.page-heading p { margin:.25rem 0; color:var(--muted); }
.eyebrow { text-transform:uppercase; letter-spacing:.14em; font-size:.78rem; font-weight:800; color:var(--wood)!important; }
.muted { color:var(--muted); }
.optional { font-size:.8em; color:var(--muted); font-weight:400; }
.back-link { display:inline-block; margin-top:18px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid var(--forest); border-radius:11px; padding:10px 15px; color:var(--forest); background:white; font-weight:700; text-decoration:none; line-height:1.1; }
.button:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,.08); }
.button.primary { background:var(--forest); color:white; }
.button.warning { background:#f0d08e; color:#603b08; border-color:#c38a2f; }
.button.danger { background:var(--danger); color:white; border-color:var(--danger); }
.button.danger.ghost { background:white; color:var(--danger); }
.button.small { padding:8px 11px; font-size:.88rem; }
.button:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.button-row { display:flex; align-items:center; gap:9px; margin-top:12px; }
.button-row.wrap { flex-wrap:wrap; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.form-grid.one { grid-template-columns:1fr; }
.form-grid h2,.form-grid .full-width,.form-grid button[type=submit] { grid-column:1/-1; }
label { display:flex; flex-direction:column; gap:6px; font-weight:700; font-size:.92rem; }
label small { color:var(--muted); font-weight:400; line-height:1.35; }
input,select { width:100%; min-height:44px; border:1px solid #cbbda8; border-radius:10px; padding:9px 11px; color:var(--ink); background:white; }
input:focus,select:focus { outline:3px solid rgba(111,143,77,.25); border-color:var(--moss); }
input:disabled { background:#eeeae2; color:#706b62; }
fieldset { border:1px solid var(--line); border-radius:12px; padding:11px 13px 13px; margin:0; }
legend { padding:0 7px; font-weight:800; color:#4c4437; }
.choice-row { display:flex; flex-wrap:wrap; gap:9px; }
.choice { display:block; cursor:pointer; }
.choice input { position:absolute; opacity:0; pointer-events:none; }
.choice span { display:block; border:1px solid #c5b89f; border-radius:10px; padding:9px 14px; background:white; font-weight:700; }
.choice input:checked + span { background:var(--forest); color:white; border-color:var(--forest); box-shadow:0 0 0 3px rgba(37,77,44,.14); }
.callout { border:1px solid #b9d1b6; background:#e9f3e7; color:#284a2c; padding:14px 16px; border-radius:12px; margin-bottom:18px; }
.callout.warning { border-color:#e4c580; background:#fff0cf; color:#6a430d; }
.callout.danger { border-color:#e1aba6; background:#f9e2df; color:#792c26; }
.auth-layout { min-height:calc(100vh - 170px); display:grid; grid-template-columns:1.15fr .85fr; gap:24px; align-items:stretch; }
.auth-visual { position:relative; overflow:hidden; border-radius:22px; min-height:520px; box-shadow:var(--shadow); background:#2e4e2d; }
.auth-visual img { width:100%; height:100%; object-fit:cover; filter:saturate(.9) contrast(1.02); }
.auth-visual:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 35%,rgba(20,34,21,.88)); }
.auth-visual div { position:absolute; z-index:2; left:28px; right:28px; bottom:25px; color:white; }
.auth-visual h1 { font-family:Georgia,serif; font-size:3rem; margin:0; }
.auth-card { align-self:center; }
.auth-card h2 { font-family:Georgia,serif; font-size:2rem; }
.auth-card label { margin:14px 0; }
.auth-card .button { width:100%; margin-top:5px; }
.auth-links { display:flex; justify-content:space-between; gap:12px; margin-top:18px; font-size:.9rem; }
.battue-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:17px; }
.battue-card { display:block; text-decoration:none; color:inherit; background:var(--paper); border:1px solid var(--line); border-left:6px solid var(--forest); border-radius:16px; padding:18px; box-shadow:var(--shadow); transition:.15s ease; }
.battue-card:hover { transform:translateY(-3px); box-shadow:0 14px 35px rgba(54,43,28,.14); }
.battue-card.closed { border-left-color:#7b7265; }
.battue-card.cancelled { border-left-color:var(--danger); opacity:.78; }
.date-block { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.date-block strong { font-family:Georgia,serif; font-size:1.45rem; }
.status-pill,.badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; font-size:.75rem; font-weight:800; }
.status-pill.open { background:#deefdd; color:#29542d; }
.status-pill.closed { background:#f4d9d6; color:#812f28; }
.status-pill.cancelled { background:#f4d9d6; color:#812f28; }
.badge.warning { background:#fff0cf; color:#74490d; }
.stats-row { display:flex; flex-wrap:wrap; gap:9px 16px; margin:17px 0; color:#5b554c; }
.battue-totals { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.battue-totals span { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 11px; border:1px solid #ded3c1; border-radius:10px; background:#f7f2e8; }
.battue-totals small { font-size:.78rem; font-weight:700; color:#6b6255; }
.battue-totals b { font-size:1.25rem; color:#244d2c; }
.card-footer { display:flex; justify-content:space-between; gap:12px; padding-top:13px; border-top:1px solid #e8dfd0; font-size:.9rem; }
.registration-summary { align-items:center; margin-top:4px; padding:13px 14px; border-top:0; border-radius:12px; background:#e4f1df; border:1px solid #a8c99f; box-shadow:inset 0 0 0 1px rgba(255,255,255,.45); }
.registration-summary.not-registered { background:#f2eee6; border-color:#d7cbb7; }
.registration-summary-text { display:flex; align-items:center; gap:9px; min-width:0; font-size:1.05rem; font-weight:700; color:#23452a; }
.registration-summary.not-registered .registration-summary-text { color:#6a624f; }
.registration-summary-text > strong { font-size:1.12rem; font-weight:900; }
.registration-summary-text span strong { font-size:1.18rem; color:#1f5a2b; }
.registration-summary-separator { color:#79906c; font-weight:900; }
.registration-open { white-space:nowrap; font-size:1rem; color:#173f20; }
.count-panels { display:flex; gap:9px; }
.count-panels span { min-width:92px; text-align:center; background:var(--paper); border:1px solid var(--line); border-radius:13px; padding:10px; box-shadow:var(--shadow); }
.count-panels b { display:block; font-size:1.5rem; color:var(--forest); }
.count-panels small { color:var(--muted); }
.two-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
.registration-columns { margin-bottom:18px; }
.weapon-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:12px; background:#f7f1e6; border-radius:12px; }
.suggestions { position:relative; z-index:10; border:1px solid #cbbda8; border-radius:11px; background:white; max-height:260px; overflow:auto; box-shadow:var(--shadow); }
.suggestion-button { display:flex; justify-content:space-between; gap:15px; width:100%; border:0; border-bottom:1px solid #eee4d5; background:white; padding:10px 12px; text-align:left; }
.suggestion-button:hover { background:#eef5e9; }
.suggestion-button small { color:var(--muted); }
.section-title { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.section-title h2 { margin:0 0 4px; }
.section-title p { margin:0; color:var(--muted); }
.live-dot { color:#397d42; font-weight:800; font-size:.85rem; }
.attendee-section { margin-top:18px; }
.attendee-list { display:grid; gap:10px; margin-top:16px; }
.attendee { border:1px solid #ddd1bd; border-left:5px solid var(--forest); border-radius:12px; background:white; padding:12px 14px; }
.attendee.no-weapon { border-left-color:var(--wood); }
.attendee-summary { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.attendee-summary strong { display:block; }
.attendee-summary div:first-child span { display:block; color:var(--muted); font-size:.83rem; margin-top:3px; }
.attendee-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.attendee-tags span { background:#f0ece4; border-radius:999px; padding:5px 8px; font-size:.78rem; }
details { margin-top:11px; border-top:1px dashed #ddd0bc; padding-top:9px; }
summary { cursor:pointer; color:var(--forest); font-weight:800; }
.inline-edit { display:flex; flex-wrap:wrap; gap:9px; margin-top:10px; }
.inline-edit select { width:auto; }
.guest-edit { margin-top:12px; }
.admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.admin-card { color:inherit; text-decoration:none; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:23px; box-shadow:var(--shadow); }
.admin-card:hover { transform:translateY(-2px); }
.admin-card h2 { margin:9px 0 5px; }
.admin-card p { color:var(--muted); }
.admin-icon { font-size:2rem; }
.stack { display:grid; gap:15px; margin-top:18px; }
.compact-form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; }
.compact-form label { flex:1 1 230px; }
.admin-actions-grid { display:grid; gap:8px; margin-top:14px; }
.hunter-card.inactive,.guest-card.inactive { opacity:.62; }
.activation-code { display:flex; justify-content:space-between; align-items:center; gap:12px; background:#fff1d4; border:1px solid #e7c882; border-radius:11px; padding:10px 13px; margin:12px 0; }
.activation-code strong { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.1em; }
code { background:#eee9df; padding:2px 6px; border-radius:6px; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:690px; }
th,td { padding:10px; border-bottom:1px solid #e2d7c5; text-align:left; }
th { background:#f2ecdf; color:#51493e; }
.empty { color:var(--muted); text-align:center; padding:25px; }
@media (max-width: 820px) {
  .nav-toggle { display:block; }
  .main-nav { display:none; position:absolute; top:66px; right:12px; left:12px; flex-direction:column; align-items:stretch; background:var(--forest); border-radius:13px; padding:8px; box-shadow:var(--shadow); }
  .main-nav.open { display:flex; }
  .main-nav a,.link-button { width:100%; text-align:left; }
  .auth-layout,.two-columns,.admin-grid { grid-template-columns:1fr; }
  .auth-visual { min-height:280px; }
  .auth-visual h1 { font-size:2.3rem; }
  .page-heading { flex-direction:column; }
  .count-panels { width:100%; }
  .count-panels span { flex:1; min-width:0; }
  .attendee-summary { align-items:flex-start; flex-direction:column; }
  .attendee-tags { justify-content:flex-start; }
  .registration-summary { gap:8px; }
  .registration-summary-text { font-size:.96rem; gap:7px; }
  .registration-summary-text > strong { font-size:1.02rem; }
  .registration-open { font-size:.92rem; }
}
@media (max-width: 560px) {
  .page-shell { width:min(100% - 18px,1180px); padding-top:18px; }
  .brand small { display:none; }
  .brand img { width:43px; height:43px; }
  .form-grid { grid-template-columns:1fr; }
  .weapon-fields { grid-template-columns:1fr; }
  .battue-grid { grid-template-columns:1fr; }
  .date-block { align-items:flex-start; flex-direction:column; }
  .auth-links { flex-direction:column; }
  .count-panels small { font-size:.67rem; }
  .card { padding:17px; }
  .registration-summary { padding:12px; }
  .registration-summary-text { flex-wrap:wrap; row-gap:2px; }
}

.danger-zone { margin-top:18px; border-color:#e1aba6; background:#fffafa; }
.danger-zone h2 { color:var(--danger); }
/* UX-MOBILE-V12-START */

/* Empêche toutes les pages de dépasser la largeur réelle de l'écran. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  position: relative;
}

img,
picture,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.site-header,
.page-shell,
.site-footer,
.flash,
.live-notice {
  max-width: 100%;
}

.page-shell,
.page-shell > *,
.card,
.battue-card,
.admin-card,
.attendee,
.registration-summary,
.form-grid > *,
.two-columns > *,
.admin-grid > *,
.battue-grid > *,
.weapon-fields > *,
.section-title > *,
.page-heading > * {
  min-width: 0;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* Invisible sur ordinateur : la navigation horizontale du haut reste inchangée. */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 820px) {
  /* Le menu à deux étapes disparaît sur téléphone. */
  .nav-toggle,
  .main-nav {
    display: none !important;
  }

  .site-header {
    min-height: 64px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Barre fixe en bas, adaptée à l'encoche et au mode application iPhone. */
  .mobile-bottom-nav {
    position: fixed;
    z-index: 80;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 66px;
    padding:
      5px
      max(4px, env(safe-area-inset-right))
      calc(5px + env(safe-area-inset-bottom))
      max(4px, env(safe-area-inset-left));
    background: rgba(255, 253, 248, .97);
    border-top: 1px solid rgba(110, 91, 61, .22);
    box-shadow: 0 -6px 24px rgba(39, 32, 21, .15);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav > a,
  .mobile-bottom-nav > form {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }

  .mobile-bottom-nav > a,
  .mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 100%;
    min-height: 56px;
    margin: 0;
    padding: 5px 2px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #6c675e;
    text-decoration: none;
    font-size: clamp(.61rem, 2.65vw, .75rem);
    font-weight: 750;
    line-height: 1.05;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav > a.active {
    color: var(--forest);
    background: rgba(37, 77, 44, .10);
  }

  .mobile-bottom-nav > a:active,
  .mobile-bottom-nav button:active {
    transform: scale(.96);
    background: rgba(37, 77, 44, .09);
  }

  .mobile-nav-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Réserve l'espace nécessaire afin que la barre ne masque aucun bouton. */
  .page-shell {
    padding-bottom: calc(105px + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .flash,
  .live-notice {
    width: calc(100% - 18px);
  }
}

@media (max-width: 390px) {
  .mobile-bottom-nav > a,
  .mobile-bottom-nav button {
    font-size: .60rem;
  }

  .mobile-nav-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
}

/* UX-MOBILE-V12-END */

/* PRELEVEMENTS-SAISON-V14-START */
.harvest-heading { align-items: center; }
.season-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.season-toolbar form { margin: 0; }
.season-toolbar label { min-width: 250px; }
.season-period { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.season-period strong { color: var(--forest); font-family: Georgia, serif; font-size: 1.2rem; }
.season-period span { color: var(--muted); font-size: .88rem; }

.harvest-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}
.harvest-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid #cfdcc7;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8fbf5, #edf5e8);
  box-shadow: var(--shadow);
}
.harvest-stat span { color: #50644f; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.harvest-stat strong { color: var(--forest); font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.harvest-stat small { color: var(--muted); }

.affut-card,
.season-summary-card,
.season-history-card,
.harvest-list-card,
.distribution-card { margin-top: 18px; }
.harvest-form { margin-top: 16px; }
.role-badge { display: inline-flex; border-radius: 999px; padding: 7px 11px; background: #e4efdd; color: #2c5832; font-size: .8rem; font-weight: 850; }

.harvest-battue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.harvest-battue-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  border: 1px solid #d9cdb9;
  border-left: 5px solid var(--forest);
  border-radius: 12px;
  background: white;
  color: inherit;
  text-decoration: none;
}
.harvest-battue-card:hover { transform: translateY(-1px); box-shadow: 0 6px 15px rgba(0,0,0,.07); }
.harvest-battue-card .date { color: var(--wood); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.harvest-battue-card strong { color: #2c472f; font-size: 1.05rem; }
.harvest-battue-card small { color: var(--muted); }

.harvest-summary-table { min-width: 570px; }
.harvest-summary-table th:not(:first-child),
.harvest-summary-table td:not(:first-child) { text-align: center; }
.harvest-summary-table tfoot th,
.harvest-summary-table tfoot td { background: #dcebd5; color: #24462a; font-weight: 900; }
.harvest-totals-columns { margin-top: 18px; }
.simple-ranking { display: grid; gap: 8px; margin-top: 14px; }
.simple-ranking > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e0d6c6; border-radius: 10px; background: #fff; }
.simple-ranking span { min-width: 0; }
.simple-ranking strong,
.simple-ranking small { display: block; }
.simple-ranking small { margin-top: 2px; color: var(--muted); font-size: .78rem; }
.simple-ranking b { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: var(--forest); color: white; }

.harvest-history-list,
.harvest-list { display: grid; gap: 11px; margin-top: 16px; }
.harvest-history-item,
.harvest-item {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #ddd1bd;
  border-radius: 12px;
  background: white;
}
.harvest-history-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.harvest-history-main { display: flex; min-width: 0; flex: 1; align-items: center; gap: 11px; }
.harvest-history-main > div { min-width: 0; }
.harvest-history-main strong,
.harvest-history-main small { display: block; }
.harvest-history-main small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.source-pill { display: inline-grid; min-width: 62px; flex: 0 0 auto; place-items: center; border-radius: 999px; padding: 6px 9px; font-size: .76rem; font-weight: 850; }
.source-pill.battue { background: #e2efe0; color: #28542e; }
.source-pill.affut { background: #f5e4c6; color: #70450d; }
.harvest-history-item details { flex-basis: 100%; }

.harvest-item { display: flex; align-items: flex-start; gap: 12px; border-left: 5px solid var(--wood); }
.harvest-number { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-weight: 850; }
.harvest-item-main { min-width: 0; flex: 1; }
.harvest-item-main strong,
.harvest-item-main span { display: block; }
.harvest-item-main strong { color: #2c472f; font-family: Georgia, serif; font-size: 1.05rem; }
.harvest-item-main span { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.harvest-actions { flex: 0 1 600px; margin-top: 0; }
.harvest-edit-form { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0; }

.distribution-table-scroll { margin-top: 16px; border: 1px solid #d9cdb9; border-radius: 12px; background: white; }
.distribution-table { min-width: 1040px; table-layout: fixed; }
.distribution-table th,
.distribution-table td { border-right: 1px solid #e2d7c5; text-align: center; vertical-align: middle; }
.distribution-table th:last-child,
.distribution-table td:last-child { border-right: 0; }
.distribution-table thead th { background: #efe6d6; color: #493f32; font-size: .78rem; line-height: 1.2; }
.distribution-table thead tr:first-child th { background: #e3d4ba; color: #304831; font-size: .84rem; }
.distribution-table thead th:first-child,
.distribution-table tbody th,
.distribution-table tfoot th { width: 220px; position: sticky; left: 0; z-index: 2; text-align: left; }
.distribution-table thead th:first-child { z-index: 4; }
.distribution-table tbody th { background: var(--paper); }
.distribution-table tbody th strong,
.distribution-table tbody th small { display: block; }
.distribution-table tbody th small { margin-top: 3px; color: var(--muted); font-size: .72rem; font-weight: 500; }
.distribution-table tbody tr.has-distribution th,
.distribution-table tbody tr.has-distribution td { background: #f3f8ee; }
.distribution-table tbody tr.has-distribution th { background: #ecf5e6; }
.distribution-table td { width: 92px; font-weight: 800; }
.distribution-total { color: var(--forest); font-size: 1.05rem; font-weight: 900; }
.distribution-table tfoot th,
.distribution-table tfoot td { background: #dcebd5; color: #24462a; font-weight: 900; }
.table-mobile-hint { display: none; margin: 9px 0 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 820px) {
  .season-toolbar { align-items: stretch; flex-direction: column; }
  .season-toolbar label { min-width: 0; }
  .season-period { align-items: flex-start; text-align: left; }
  .harvest-form,
  .harvest-edit-form { grid-template-columns: 1fr; }
  .harvest-history-item { align-items: stretch; flex-direction: column; }
  .harvest-history-main { align-items: flex-start; }
  .harvest-history-item > .button { align-self: flex-start; }
  .table-mobile-hint { display: block; }
  .mobile-bottom-nav > a,
  .mobile-bottom-nav button { padding-left: 1px; padding-right: 1px; font-size: clamp(.50rem, 2.05vw, .66rem); }
}

@media (max-width: 560px) {
  .harvest-stat-grid { grid-template-columns: 1fr; }
  .harvest-stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
  .harvest-stat span { flex: 1 1 50%; }
  .harvest-stat strong { font-size: 1.7rem; }
  .harvest-stat small { flex-basis: 100%; }
  .harvest-battue-grid { grid-template-columns: 1fr; }
  .harvest-item { gap: 9px; padding: 12px; }
  .harvest-number { width: 30px; height: 30px; flex-basis: 30px; }
  .source-pill { min-width: 54px; }
}
/* PRELEVEMENTS-SAISON-V14-END */

/* PRELEVEMENTS-SOUS-ONGLETS-V15-START */
.harvest-subnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid #d8ccb8;
  border-radius: 16px;
  background: #eee5d6;
  box-shadow: 0 5px 16px rgba(59, 48, 31, .07);
}
.harvest-subnav a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #5d584f;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.harvest-subnav a:hover { transform: translateY(-1px); background: rgba(255,255,255,.58); }
.harvest-subnav a.active {
  border-color: #bdceb6;
  background: white;
  color: var(--forest);
  box-shadow: 0 4px 12px rgba(43, 73, 43, .12);
}
.harvest-subnav a > span:last-child { min-width: 0; }
.harvest-subnav strong,
.harvest-subnav small { display: block; }
.harvest-subnav strong { font-family: Georgia, serif; font-size: 1.02rem; }
.harvest-subnav small { margin-top: 2px; color: var(--muted); font-size: .72rem; line-height: 1.15; }
.harvest-subnav-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 77, 44, .10);
  color: var(--forest);
  font-size: 1.15rem;
  font-weight: 900;
}
.harvest-subnav a.active .harvest-subnav-icon { background: var(--forest); color: white; }
.harvest-subnav-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.harvest-section-card,
.affut-personal-card { margin-top: 18px; }

@media (max-width: 620px) {
  .harvest-subnav { gap: 5px; padding: 5px; }
  .harvest-subnav a { flex-direction: column; gap: 4px; padding: 8px 3px; text-align: center; }
  .harvest-subnav-icon { width: 30px; height: 30px; flex-basis: 30px; font-size: 1rem; }
  .harvest-subnav strong { font-size: .91rem; }
  .harvest-subnav small { display: none; }
  .affut-personal-card .section-title { align-items: flex-start; flex-direction: column; }
}
/* PRELEVEMENTS-SOUS-ONGLETS-V15-END */


/* UX-PARAMETRES-ET-INSCRIPTIONS-V18-START */

.settings-subnav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 18px;
  padding: 7px;
  border: 1px solid #d8ccb7;
  border-radius: 17px;
  background: rgba(235, 226, 207, .72);
}

.settings-subnav a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #455846;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.settings-subnav a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .62);
}

.settings-subnav a.active {
  border-color: #7da074;
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 3px 10px rgba(51, 71, 48, .08);
}

.settings-subnav-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(38, 78, 45, .10);
  font-size: 1.05rem;
}

.settings-subnav a.active .settings-subnav-icon {
  background: var(--forest);
  color: #fff;
}

.settings-subnav a > span:last-child {
  min-width: 0;
}

.settings-subnav strong,
.settings-subnav small {
  display: block;
}

.settings-subnav strong {
  font-family: Georgia, serif;
  font-size: .98rem;
  line-height: 1.15;
}

.settings-subnav small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .70rem;
  line-height: 1.2;
}

.settings-section-card {
  align-items: start;
}

.settings-section-card > .button.primary {
  grid-column: 1 / -1;
}

.recipient-group {
  padding-top: 4px;
}

.recipient-group + .recipient-group {
  padding-top: 16px;
  border-top: 1px solid #e4dac8;
}

.recipient-group h3 {
  margin: 0 0 10px;
  color: #2d4a31;
  font-family: Georgia, serif;
  font-size: 1.08rem;
}

.recipient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.readonly-recipient input,
.readonly-recipient input:disabled {
  border-color: #d6d0c5;
  background: #eceae5;
  color: var(--muted);
  opacity: 1;
  cursor: not-allowed;
  -webkit-text-fill-color: var(--muted);
}

.readonly-recipient span {
  display: block;
  margin-bottom: 5px;
  color: #3f5141;
  font-weight: 800;
}

.compact-empty {
  margin: 0;
  padding: 10px 12px;
}

.attendee-list-compact {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 7px;
}

.attendee-compact {
  min-width: 0;
  padding: 8px 10px;
  border-left-width: 4px;
  border-radius: 10px;
}

.attendee-summary-compact {
  align-items: flex-start;
  gap: 8px;
}

.attendee-identity {
  min-width: 0;
  flex: 1 1 auto;
}

.attendee-identity strong {
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.attendee-summary-compact .attendee-identity span {
  margin-top: 1px;
  overflow: hidden;
  font-size: .69rem;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.attendee-tags-compact {
  flex: 0 1 auto;
  gap: 3px;
}

.attendee-tags-compact span {
  padding: 3px 5px;
  font-size: .62rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.attendee-compact details {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px dashed #e4dac8;
}

.attendee-compact details summary {
  padding: 1px 0;
  font-size: .70rem;
  font-weight: 800;
}

.attendee-compact .inline-edit,
.attendee-compact .guest-edit {
  margin-top: 8px;
}

@media (max-width: 820px) {
  .settings-subnav {
    gap: 5px;
    padding: 5px;
  }

  .settings-subnav a {
    flex-direction: column;
    gap: 4px;
    padding: 8px 3px;
    text-align: center;
  }

  .settings-subnav-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: .95rem;
  }

  .settings-subnav strong {
    font-size: .78rem;
  }

  .settings-subnav small {
    display: none;
  }

  .recipient-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .attendee-list-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .attendee-compact {
    padding: 7px 8px;
  }

  .attendee-summary-compact {
    display: block;
  }

  .attendee-identity strong {
    font-size: .76rem;
    white-space: normal;
  }

  .attendee-summary-compact .attendee-identity span {
    font-size: .60rem;
    white-space: normal;
  }

  .attendee-tags-compact {
    justify-content: flex-start;
    margin-top: 5px;
    gap: 2px;
  }

  .attendee-tags-compact span {
    padding: 2px 4px;
    font-size: .54rem;
    white-space: normal;
  }

  .attendee-compact details summary {
    font-size: .62rem;
  }
}

@media (max-width: 330px) {
  .attendee-list-compact {
    grid-template-columns: 1fr;
  }
}

/* UX-PARAMETRES-ET-INSCRIPTIONS-V18-END */
/* INVITE-WEAPON-FIELDS-V19 */
.weapon-fields[hidden] {
  display: none !important;
}

/* BATTUE-NAV-V23-START */
.battue-overview-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.battue-overview-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: none;
}

.battue-overview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(54, 43, 28, .14);
}

.battue-overview-card.cancelled { opacity: .84; }

.battue-overview-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  color: white;
  background-color: #1a4b26;
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,.12), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 38%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 9px, rgba(0,0,0,0) 9px 18px),
    linear-gradient(135deg, #163d20 0%, var(--forest) 70%, #315f38 100%);
}

.battue-overview-card.closed .battue-overview-head {
  background-image: linear-gradient(135deg, #55584f 0%, #747568 100%);
}

.battue-overview-card.cancelled .battue-overview-head {
  background-image: linear-gradient(135deg, #742f2a 0%, var(--danger) 100%);
}

.battue-overview-date {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.battue-overview-date strong {
  min-width: 0;
  white-space: nowrap;
  font-family: inherit;
  font-size: .96rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.battue-ui-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battue-overview-head .status-pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.13);
  color: white;
  white-space: nowrap;
  font-size: .67rem;
}

.battue-overview-head .status-pill.open {
  background: linear-gradient(180deg, #5f9c3d 0%, #4a832f 100%);
  color: white;
}

.battue-overview-head .status-pill.closed,
.battue-overview-head .status-pill.cancelled {
  background: rgba(255,255,255,.16);
  color: white;
}

.battue-overview-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.battue-total-title {
  margin: 0 0 -5px;
  color: #302b24;
  font-size: .95rem;
  font-weight: 900;
}

.battue-total-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e4d9c7;
  border-radius: 14px;
  background: #fcf9f3;
}

.battue-total-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 7px;
}

.battue-total-item + .battue-total-item { border-left: 1px solid #e6dccb; }

.battue-total-item span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.battue-total-item small {
  color: #28241f;
  font-size: .73rem;
  font-weight: 800;
  white-space: nowrap;
}

.battue-total-item b {
  margin-top: 4px;
  color: #173323;
  font-size: 1.52rem;
  line-height: 1;
}

.battue-stat-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  fill: none;
  stroke: #5f3b08;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battue-user-state { overflow: hidden; border-radius: 15px; }
.battue-user-state.registered {
  border: 1px solid #cbd9b7;
  background: linear-gradient(135deg, #f1f5e9 0%, #edf2e4 100%);
}
.battue-user-state.not-registered {
  border: 1px solid #e2d1b4;
  background: linear-gradient(135deg, #f6ead8 0%, #f5e7d1 100%);
}

.battue-user-state-head {
  min-height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
}

.battue-user-state-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #153c20;
}

.battue-user-state.not-registered .battue-user-state-title { color: #5a3206; }
.battue-user-state-title > strong { font-size: 1.12rem; line-height: 1.15; }

.battue-state-symbol {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.battue-state-symbol svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battue-state-symbol.check {
  color: white;
  background: linear-gradient(180deg, #5e9b38 0%, #3f7c25 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.battue-state-symbol.user {
  color: #6d3e06;
  background: rgba(255,255,255,.30);
}

.battue-state-action,
.battue-detail-link,
.battue-guests-row,
.battue-return-link {
  transition: .14s ease;
}

.battue-state-action:hover,
.battue-detail-link:hover,
.battue-guests-row:hover,
.battue-return-link:hover { transform: translateY(-1px); }

.battue-state-action {
  min-height: 47px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 900;
  box-shadow: 0 5px 13px rgba(42, 35, 20, .12);
}

.battue-state-action.registered {
  border: 1px solid #123f1d;
  background: linear-gradient(180deg, #155526 0%, #0f431d 100%);
}

.battue-state-action.not-registered {
  border: 1px solid #5d3505;
  background: linear-gradient(180deg, #8a5a15 0%, #6d4107 100%);
}

.battue-state-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battue-chevron { font-size: 1.65em; font-weight: 400; line-height: .7; }

.battue-choice-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d7dfc7;
  background: rgba(255,255,255,.34);
}

.battue-choice-summary > span {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 6px;
  color: var(--ink);
  text-align: center;
}

.battue-choice-summary > span + span { border-left: 1px solid #d7dfc7; }
.battue-choice-summary strong { font-size: .78rem; line-height: 1.15; }

.battue-choice-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: #5b3707;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battue-guests-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #e5d9c7;
  border-radius: 13px;
  background: white;
  color: #28241f;
  text-decoration: none;
}

.battue-guests-label,
.battue-guests-count {
  display: flex;
  align-items: center;
  gap: 9px;
}

.battue-guests-label svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #348124;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battue-guests-row.not-registered .battue-guests-label svg { stroke: #6d4107; }
.battue-guests-label strong { font-size: .94rem; }
.battue-guests-count b { color: #2f7d20; font-size: 1.35rem; }
.battue-guests-row.not-registered .battue-guests-count b { color: #6d4107; }
.battue-guests-count span { color: #171512; font-size: 1.75rem; line-height: 1; }

.battue-detail-link {
  min-height: 57px;
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 13px;
  border: 1px solid #d9dcca;
  background: linear-gradient(180deg, #fffefa 0%, #f7f6f0 100%);
  color: #1f3e26;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
}

.battue-detail-link.not-registered {
  border-color: #e2d5c0;
  color: #5d3a0b;
  background: linear-gradient(180deg, #fffdfa 0%, #f9f4eb 100%);
}

.battue-detail-link svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.battue-detail-link .battue-chevron { justify-self: end; }

.battue-focus-tools {
  margin: -6px 0 16px;
}

.battue-return-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #d9d0c3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefa 0%, #f7f3ea 100%);
  color: #2d2a26;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(58, 45, 28, .06);
}

.battue-focus-card { max-width: 760px; }

@media (max-width: 820px) {
  .battue-overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .battue-overview-grid { gap: 14px; }
  .battue-overview-head { min-height: 61px; padding: 12px 13px; gap: 8px; }
  .battue-overview-date { gap: 8px; }
  .battue-overview-date strong { font-size: .89rem; }
  .battue-ui-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .battue-overview-head .status-pill { padding: 4px 6px; font-size: .60rem; }
  .battue-overview-body { gap: 10px; padding: 12px; }
  .battue-total-panel { border-radius: 12px; }
  .battue-total-item { gap: 5px; padding: 9px 4px; }
  .battue-stat-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .battue-total-item small { font-size: .65rem; }
  .battue-total-item b { font-size: 1.3rem; }
  .battue-user-state-head { min-height: 69px; padding: 11px; }
  .battue-user-state-title { gap: 8px; }
  .battue-user-state-title > strong { font-size: .96rem; }
  .battue-state-symbol { width: 38px; height: 38px; flex-basis: 38px; }
  .battue-state-symbol svg { width: 23px; height: 23px; }
  .battue-state-action { min-height: 43px; gap: 5px; padding: 8px 9px; font-size: .78rem; }
  .battue-state-action svg { width: 19px; height: 19px; }
  .battue-choice-summary > span { min-height: 52px; gap: 4px; padding: 7px 3px; }
  .battue-choice-summary strong { font-size: .67rem; }
  .battue-choice-icon { width: 21px; height: 21px; flex-basis: 21px; }
  .battue-guests-row { min-height: 51px; padding: 8px 11px; }
  .battue-guests-label strong { font-size: .85rem; }
  .battue-guests-count b { font-size: 1.2rem; }
  .battue-detail-link { min-height: 52px; grid-template-columns: 24px 1fr 15px; padding: 9px 12px; font-size: .84rem; }
  .battue-detail-link svg { width: 22px; height: 22px; }
  .battue-return-link { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .battue-overview-date strong { font-size: .82rem; }
  .battue-overview-head .status-pill { max-width: 108px; font-size: .57rem; }
  .battue-user-state-title > strong { font-size: .88rem; }
  .battue-state-action { padding-inline: 7px; }
  .battue-state-action svg { display: none; }
}

@container (max-width: 420px) {
  .battue-overview-head {
    gap: 6px;
    padding-inline: 11px;
  }

  .battue-overview-date {
    gap: 6px;
  }

  .battue-overview-date strong {
    font-size: .78rem;
    letter-spacing: -.02em;
  }

  .battue-ui-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .battue-overview-head .status-pill {
    padding: 4px 5px;
    font-size: .54rem;
  }
}

/* BATTUE-NAV-V23-END */

/* MULTI-CHASSES-V30-START */
.auth-layout-multihunt {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
}
.auth-visual-common {
  min-height: 500px;
  background: #102d20;
}
.auth-visual-common img {
  object-fit: cover;
  object-position: center;
  filter: none;
}
.auth-visual-common::after { display: none; }
.auth-app-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.auth-app-heading img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid var(--ochre);
  box-shadow: 0 8px 24px rgba(30,50,30,.18);
}
.auth-app-heading h1 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--forest);
  font-size: 1.75rem;
}
.auth-app-heading p { margin: 4px 0 0; color: var(--muted); }
.brand img { background: #fff; }
@media (max-width: 820px) {
  .auth-layout-multihunt { grid-template-columns: 1fr; }
  .auth-visual-common { min-height: 220px; }
  .auth-app-heading img { width: 60px; height: 60px; }
  .auth-app-heading h1 { font-size: 1.45rem; }
}
/* MULTI-CHASSES-V30-END */
/* LOGIN-BANNER-DESKTOP-V33-START */

/*
 * La source mesure 1920 x 640, soit un format panoramique 3:1.
 * Le panneau suit désormais ce rapport sur ordinateur au lieu
 * de forcer l'image dans un grand cadre presque carré.
 */
@media (min-width: 821px) {
  .auth-layout.auth-layout-multihunt {
    align-items: center;
  }

  .auth-layout-multihunt .auth-visual-common {
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 1;
    align-self: center;
    display: block;
    background: #102d20;
  }

  .auth-layout-multihunt .auth-visual-common > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain !important;
    object-position: center !important;
    filter: none;
  }
}

/* L'affichage mobile validé est conservé. */
@media (max-width: 820px) {
  .auth-layout-multihunt .auth-visual-common {
    aspect-ratio: auto;
  }

  .auth-layout-multihunt .auth-visual-common > img {
    object-fit: cover;
    object-position: center;
  }
}

/* LOGIN-BANNER-DESKTOP-V33-END */

/* AFFUT-ERGONOMIE-V38-START */
.affut-entry-form-v38 {
  width: min(100%, 760px);
  grid-template-columns: minmax(210px, 280px) minmax(300px, 420px);
  align-items: end;
}

.affut-entry-form-v38 button[type="submit"] {
  grid-column: 1 / -1;
}

.affut-history-heading-v38 {
  align-items: end;
}

.affut-history-filter-v38 {
  display: block;
  min-width: 235px;
  margin: 0;
}

.affut-history-filter-v38 label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.affut-history-filter-v38 select {
  min-width: 235px;
}

@media (max-width: 820px) {
  .affut-entry-form-v38 {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .affut-history-heading-v38 {
    align-items: stretch;
    flex-direction: column;
  }

  .affut-history-filter-v38,
  .affut-history-filter-v38 select {
    width: 100%;
    min-width: 0;
  }
}
/* AFFUT-ERGONOMIE-V38-END */
/* ICONES-POSTES-TRAQUEURS-REPAS-V39-START */
.battue-stat-icon-image-v39 {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
  object-fit: contain;
}

@media (max-width: 640px) {
  .battue-stat-icon-image-v39 {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
  }
}
/* ICONES-POSTES-TRAQUEURS-REPAS-V39-END */

/* CARTE-BATTUE-V40R3-START */
.battue-overview-head {
  gap: 8px;
}

.battue-overview-date {
  min-width: 0;
  flex: 1 1 auto;
}

.battue-overview-date strong {
  font-size: 1.04rem;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.battue-overview-head .status-pill {
  width: 82px;
  min-height: 42px;
  flex: 0 0 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 10px;
  white-space: normal;
  text-align: center;
  line-height: 1.04;
  font-size: .61rem;
}

.battue-total-panel {
  grid-template-columns: .92fr 1.16fr .92fr;
}

.battue-total-item {
  gap: 5px;
  padding: 10px 4px;
}

.battue-total-item small {
  font-size: .64rem;
  letter-spacing: -.025em;
}

.battue-stat-icon-image-v39 {
  width: 37px;
  height: 37px;
  flex-basis: 37px;
}

.battue-choice-summary > span {
  gap: 5px;
  padding: 8px 4px;
}

.battue-choice-summary strong {
  font-size: .72rem;
  line-height: 1.1;
}

.battue-choice-icon-image-v40 {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: block;
  object-fit: contain;
}

@container (max-width: 420px) {
  .battue-overview-head {
    gap: 7px;
    padding-inline: 10px;
  }

  .battue-overview-date {
    gap: 6px;
  }

  .battue-overview-date strong {
    font-size: .90rem;
  }

  .battue-overview-head .status-pill {
    width: 72px;
    min-height: 40px;
    flex-basis: 72px;
    padding: 4px 5px;
    border-radius: 9px;
    font-size: .51rem;
  }

  .battue-total-panel {
    grid-template-columns: .90fr 1.20fr .90fr;
  }

  .battue-total-item {
    gap: 3px;
    padding: 9px 2px;
  }

  .battue-total-item small {
    font-size: .56rem;
    letter-spacing: -.035em;
  }

  .battue-stat-icon-image-v39 {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .battue-choice-summary strong {
    font-size: .64rem;
  }

  .battue-choice-icon-image-v40 {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}
/* CARTE-BATTUE-V40R3-END */

/* AFFUT-IPHONE-V41R2-START */
@media (max-width: 820px) {
  .affut-entry-form-v38 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    box-sizing: border-box !important;
  }

  .affut-entry-form-v38 > label,
  .affut-entry-form-v38 label {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .affut-entry-form-v38 input,
  .affut-entry-form-v38 input[type="date"],
  .affut-entry-form-v38 select,
  .affut-entry-form-v38 button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .affut-entry-form-v38 input[type="date"] {
    display: block !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    -webkit-appearance: none;
    appearance: none;
  }
}
/* AFFUT-IPHONE-V41R2-END */

/* NAVIGATION-RETOURS-V42-START */
/* Les boutons de retour des sous-pages utilisent désormais le même bloc
   battue-focus-tools / battue-return-link, déjà validé sur ordinateur et iPhone. */
/* NAVIGATION-RETOURS-V42-END */


/* VALIDATION-CONDITIONNELLE-V43-START */
.change-validation-form [data-dirty-submit][hidden] {
  display: none !important;
}

.change-validation-button {
  min-width: 108px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.change-validation-button.is-validating,
.change-validation-button.is-confirmed {
  background: #173f22 !important;
  border-color: #173f22 !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(23, 63, 34, .16);
}

.change-validation-button.is-confirmed {
  transform: scale(1.02);
}
/* VALIDATION-CONDITIONNELLE-V43-END */

/* VALIDATION-UNIVERSELLE-V44-START */
form button[type="submit"][hidden],
form input[type="submit"][hidden],
.bracelet-field[hidden],
.harvest-weight-field[hidden] {
  display: none !important;
}

.button.is-validating,
button.is-validating,
.button.is-confirmed,
button.is-confirmed {
  background: #173f22 !important;
  border-color: #173f22 !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(23, 63, 34, .16);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.button.is-validating,
button.is-validating {
  cursor: progress;
  opacity: .9;
}

.button.is-confirmed,
button.is-confirmed {
  transform: scale(1.02);
  opacity: 1 !important;
  cursor: default;
}

.bracelet-field,
.harvest-weight-field {
  animation: bracelet-field-appear .18s ease-out;
}

@keyframes bracelet-field-appear {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.history-card { display: grid; gap: 16px; }
.history-title-row { margin-bottom: 0; }
.history-user-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  max-width: 520px;
}
.history-user-filter label { width: 100%; }
.history-user-filter select { width: 100%; }
.history-selection-form { display: grid; gap: 12px; }
.history-selection-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf6ec;
}
.history-select-all {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}
.history-select-all input,
.history-check-column input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--forest);
}
.history-selection-count { color: var(--muted); font-size: .9rem; }
.history-selection-toolbar .button { margin-left: auto; }
.history-table-scroll {
  max-height: 68vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.history-table { min-width: 980px; border-collapse: separate; border-spacing: 0; }
.history-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f2eadc;
  box-shadow: 0 2px 0 rgba(83, 66, 42, .18);
}
.history-table th,
.history-table td { vertical-align: top; }
.history-table td small { display: block; margin-top: 3px; color: var(--muted); }
.history-check-column { width: 64px; text-align: center; }
.history-action-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf3e8;
  color: var(--forest);
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.1;
}
.history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 820px) {
  .history-selection-toolbar { align-items: stretch; }
  .history-selection-toolbar .button { width: 100%; margin-left: 0; }
  .history-table-scroll { max-height: 62vh; }
}
/* VALIDATION-UNIVERSELLE-V44-END */


/* RAPPELS-ET-SAUVEGARDES-V45-START */
.settings-section-card textarea[name="reminder_message"] {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
}
.reminder-variable-help code {
  display: inline-block;
  margin: 4px 3px 0;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(38, 78, 45, .09);
  color: var(--forest);
  font-weight: 800;
}
@media (max-width: 520px) {
  .settings-subnav strong { font-size: .68rem; }
  .settings-subnav a { padding-left: 1px; padding-right: 1px; }
}
/* RAPPELS-ET-SAUVEGARDES-V45-END */

/* V45R2 — Réglage Cerf directement dans le tableau d'administration */
.admin-cerf-card { margin:0; }
.admin-cerf-card:hover { transform:none; }
.admin-cerf-card p { margin-bottom:14px; }
.admin-cerf-fieldset { margin:0 0 14px; padding:11px 12px 12px; }
.admin-cerf-fieldset legend { padding:0 6px; font-weight:800; }
.admin-cerf-submit { align-self:stretch; width:100%; margin-top:auto; }

/* HISTORIQUE-PRINCIPAL-DETAILS-STICKY-V45R3-END */

/* CONNEXION-DIFFEREE-DEMARRAGE-V47R3-START */
.auth-startup-card {
  align-self: center;
}
.auth-startup-title {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  color: var(--forest);
  font-size: 1.9rem;
}
.auth-startup-text {
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 600;
}
.auth-startup-subtext {
  margin: 12px 0 0;
  color: var(--muted);
}
.startup-progress {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #e6e0cf;
  border: 1px solid #d7ccb0;
  box-shadow: inset 0 1px 2px rgba(30, 50, 30, .08);
}
.startup-progress-bar {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6d37 0%, #5f9f38 100%);
  box-shadow: 0 0 12px rgba(47, 109, 55, .25);
  transition: width .35s ease;
}
.auth-login-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.auth-login-card.auth-login-card-visible {
  opacity: 1;
  transform: translateY(0);
}
/* CONNEXION-DIFFEREE-DEMARRAGE-V47R3-END */

/* GIBIER-BRACELETS-SAISON-V48-START */
.game-settings-card,
.bracelet-management-card,
.bracelet-list-card { margin-bottom: 18px; }
.game-cerf-form { align-items: end; }
.game-cerf-form .admin-cerf-fieldset { min-width: 240px; margin: 0; }
.bracelet-management-heading { align-items: end; gap: 18px; }
.bracelet-management-heading .compact-form { flex: 0 0 auto; }
.bracelet-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.bracelet-stat-grid article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  display: grid;
  gap: 3px;
}
.bracelet-stat-grid span { font-weight: 800; color: var(--forest); }
.bracelet-stat-grid strong { font-size: 1.85rem; line-height: 1; }
.bracelet-stat-grid small { color: var(--muted); }
.bracelet-add-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bracelet-add-grid {
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr) minmax(220px, 1fr) auto;
  align-items: end;
}
.bracelet-entry-mode { margin: 0; min-height: 100%; }
.bracelet-entry-mode legend { font-weight: 800; }
.bracelet-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bracelet-add-grid > .button { align-self: end; }
.form-help { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.bracelet-table { min-width: 720px; }
.bracelet-number-cell { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; letter-spacing: .02em; }
.bracelet-used-row { background: rgba(239, 232, 218, .55); }
.bracelet-table td small { display: block; color: var(--muted); margin-top: 3px; }
.selection-cell { width: 44px; text-align: center; }
.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}
.selection-bar span { color: var(--muted); font-weight: 700; }
.bracelet-field small { display: block; margin-top: 6px; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
@media (max-width: 980px) {
  .bracelet-add-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bracelet-add-grid > .button { width: 100%; }
}
@media (max-width: 620px) {
  .bracelet-management-heading { align-items: stretch; flex-direction: column; }
  .bracelet-management-heading .compact-form { width: 100%; }
  .bracelet-stat-grid,
  .bracelet-add-grid,
  .bracelet-range-fields { grid-template-columns: 1fr; }
  .selection-bar { align-items: stretch; flex-direction: column; }
  .selection-bar .button { width: 100%; }
}
/* GIBIER-BRACELETS-SAISON-V48-END */

/* GIBIER-BRACELETS-MODE-V48R1-START */
.bracelet-mode-card { margin-bottom: 18px; }
.bracelet-mode-form { align-items: end; margin-top: 12px; }
.bracelet-mode-form .admin-cerf-fieldset { min-width: 320px; margin: 0; }
.choice-disabled { opacity: .55; cursor: not-allowed; }
.choice-disabled input { cursor: not-allowed; }
.bracelet-lock-notice { margin-top: 14px; }
.bracelet-configuration-warning {
  width: 100%;
  margin: 14px 0 6px;
  box-shadow: none;
}
.bracelet-field input[hidden],
.bracelet-field select[hidden] { display: none !important; }
@media (max-width: 620px) {
  .bracelet-mode-form { align-items: stretch; flex-direction: column; }
  .bracelet-mode-form .admin-cerf-fieldset { min-width: 0; width: 100%; }
}
/* GIBIER-BRACELETS-MODE-V48R1-END */

/* AUTOREMPLISSAGE-CONNEXION-FIREFOX-V48R2-START */
.auth-login-shell {
  position: relative;
  align-self: center;
  overflow: hidden;
}
.auth-login-form {
  pointer-events: none;
}
.auth-startup-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: inherit;
  border-radius: inherit;
  background: var(--paper);
  opacity: 1;
  transition: opacity .28s ease;
}
.auth-login-shell.auth-login-ready .auth-login-form {
  pointer-events: auto;
}
.auth-login-shell.auth-login-ready .auth-startup-overlay {
  opacity: 0;
  pointer-events: none;
}
.auth-login-form button:disabled {
  cursor: wait;
  opacity: .65;
}
/* AUTOREMPLISSAGE-CONNEXION-FIREFOX-V48R2-END */

/* CARTOGRAPHIE-PLAN-IGN-V49-START */
.cartography-settings-card {
  display: grid;
  gap: 22px;
}
.cartography-settings-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}
.cartography-settings-row h2,
.cartography-default-view h2 {
  margin-top: 0;
}
.compact-choice-fieldset {
  min-width: 240px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.compact-choice-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 700;
}
.cartography-default-view {
  display: grid;
  gap: 14px;
}
.cartography-map-frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #e8e3d6;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.cartography-map-admin { height: min(62vh, 620px); min-height: 430px; }
.cartography-map-public { height: min(72vh, 760px); min-height: 520px; }
.cartography-view-card { padding: 10px; }
.cartography-map-error {
  padding: 12px 14px;
  border: 1px solid #e2b6a9;
  border-radius: 12px;
  background: #fff1ed;
  color: #7c3325;
}
.cartography-center-controls {
  display: grid;
  gap: 14px;
}
.cartography-center-controls > .button {
  justify-self: start;
}
.cartography-coordinate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cartography-coordinate-grid input[readonly] {
  background: #f2eee3;
  color: var(--ink);
}
.cartography-map-frame .leaflet-control-attribution {
  font-size: .68rem;
}
.cartography-map-frame .leaflet-control-zoom a {
  color: var(--forest);
}
@media (max-width: 820px) {
  .cartography-settings-row { flex-direction: column; }
  .compact-choice-fieldset { width: 100%; min-width: 0; }
  .cartography-coordinate-grid { grid-template-columns: 1fr; }
  .cartography-map-admin { height: 54vh; min-height: 360px; }
  .cartography-map-public { height: 65vh; min-height: 430px; }
  .cartography-view-card { padding: 6px; }
  .cartography-page-heading .button { flex: 0 0 auto; }
}
@media (max-width: 420px) {
  .mobile-bottom-nav > a,
  .mobile-bottom-nav button { font-size: .52rem; padding-left: 1px; padding-right: 1px; }
  .mobile-nav-icon { width: 21px; height: 21px; flex-basis: 21px; }
}
/* CARTOGRAPHIE-PLAN-IGN-V49-END */

/* CARTOGRAPHIE-EDITEUR-V50-START */
.page-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.cartography-toolbar-card,
.cartography-editor-toolbar {
  margin-bottom: 16px;
}
.cartography-scope-row {
  display: grid;
  grid-template-columns: minmax(250px, 430px) minmax(220px, 1fr);
  gap: 18px;
  align-items: end;
}
.cartography-scope-select {
  margin: 0;
}
.cartography-scope-help {
  margin: 0 0 4px;
}
.cartography-layer-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.cartography-layer-switches label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f5f0e4;
  border: 1px solid #ded3bb;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
}
.cartography-layer-switches input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.cartography-editor-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: center;
}
.cartography-editor-toolbar h2 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--forest);
}
.cartography-editor-toolbar p {
  margin: 0;
}
.cartography-draw-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.cartography-draw-buttons .button {
  min-height: 42px;
}
.cartography-editor-status,
.cartography-live-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #e5f2e5;
  color: #24552b;
  border: 1px solid #bad7bc;
  font-weight: 700;
}
.cartography-live-status {
  position: absolute;
  z-index: 700;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}
.cartography-view-card {
  position: relative;
}
.cartography-marker-wrapper {
  background: transparent;
  border: 0;
}
.cartography-marker {
  width: 38px;
  min-height: 38px;
  padding: 4px 5px 5px;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--marker-color);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 5px 13px rgba(0,0,0,.32);
  line-height: 1;
}
.cartography-marker > * {
  transform: rotate(45deg);
}
.cartography-marker b {
  font-size: .94rem;
}
.cartography-marker span {
  margin-top: 2px;
  font-size: .69rem;
  font-weight: 800;
}
.cartography-marker-stand {
  border-radius: 9px;
}
.cartography-marker-poi {
  border-radius: 50%;
}
.cartography-popup h3 {
  margin: 0 0 4px;
  color: var(--forest);
}
.cartography-popup p {
  margin: 7px 0;
}
.cartography-popup-scope {
  color: var(--muted);
  font-size: .82rem;
}
.cartography-popup-photo {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
}
.cartography-modal[hidden] {
  display: none !important;
}
.cartography-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}
.cartography-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 27, 20, .46);
  backdrop-filter: blur(2px);
}
.cartography-feature-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  border-radius: 22px 0 0 22px;
  padding: 22px;
  margin: 0;
  animation: cartography-panel-in .2s ease-out;
}
@keyframes cartography-panel-in {
  from { transform: translateX(28px); opacity: .65; }
  to { transform: translateX(0); opacity: 1; }
}
.cartography-feature-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.cartography-feature-panel h2 {
  margin: 0;
  color: var(--forest);
  font-family: Georgia, serif;
}
.cartography-modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--muted);
}
.cartography-feature-panel label {
  margin: 12px 0;
}
.cartography-feature-panel [hidden],
.cartography-geometry-actions[hidden],
.cartography-map-edit-finish[hidden] {
  display: none !important;
}
.cartography-view-card {
  position: relative;
}
.cartography-map-edit-finish {
  position: absolute;
  z-index: 700;
  right: 16px;
  bottom: 16px;
  box-shadow: 0 8px 22px rgba(18, 53, 28, .28);
}
.cartography-photo-field {
  margin-top: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf7ef;
}
.cartography-photo-field > label {
  margin-top: 0;
}
.cartography-photo-preview {
  display: grid;
  gap: 10px;
}
.cartography-photo-preview img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 11px;
}
.cartography-photo-preview .choice {
  margin: 0;
}
.cartography-geometry-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cartography-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.cartography-feature-actions .button {
  flex: 1 1 120px;
}
.cartography-map-frame .leaflet-draw-tooltip {
  white-space: normal;
}
.field-help {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
}
@media (max-width: 820px) {
  .page-heading-actions {
    justify-content: flex-start;
  }
  .cartography-scope-row,
  .cartography-editor-toolbar {
    grid-template-columns: 1fr;
  }
  .cartography-draw-buttons {
    justify-content: flex-start;
  }
  .cartography-draw-buttons .button {
    flex: 1 1 calc(50% - 8px);
  }
  .cartography-feature-panel {
    width: 100%;
    border-radius: 18px 18px 0 0;
    height: min(86vh, 820px);
    margin-top: auto;
  }
  .cartography-modal {
    align-items: flex-end;
  }
  .cartography-layer-switches {
    gap: 6px;
  }
  .cartography-layer-switches label {
    flex: 0 0 auto;
  }
}
@media (max-width: 480px) {
  .cartography-draw-buttons .button {
    flex-basis: 100%;
  }
  .cartography-layer-switches label {
    flex-basis: auto;
  }
  .cartography-feature-panel {
    padding: 17px;
  }
}
/* CARTOGRAPHIE-EDITEUR-V50-END */

/* CARTOGRAPHIE-VUE-UNIQUE-ADMIN-V50R3-START */
.cartography-toolbar-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.cartography-toolbar-line .cartography-scope-select {
  flex: 0 1 360px;
  min-width: 270px;
}
.cartography-toolbar-line .cartography-scope-select > span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.cartography-toolbar-line .cartography-layer-switches {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
  padding: 0 0 2px;
  border-top: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.cartography-toolbar-line .cartography-layer-switches label {
  flex: 0 0 auto;
  padding: 3px 6px;
  font-size: .72rem;
}
.cartography-toolbar-line .cartography-layer-switches input {
  width: 13px;
  height: 13px;
}
.cartography-enable-fieldset {
  width: max-content;
  min-width: 210px;
  padding: 10px 14px;
}
.cartography-admin-editor-title {
  margin-top: 26px;
  margin-bottom: 12px;
}
.cartography-admin-editor-title h2 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--forest);
}
@media (max-width: 900px) {
  .cartography-toolbar-line {
    align-items: stretch;
    flex-direction: column;
  }
  .cartography-toolbar-line .cartography-scope-select {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
  .cartography-toolbar-line .cartography-layer-switches {
    width: 100%;
    padding-bottom: 4px;
  }
}
@media (max-width: 560px) {
  .cartography-enable-fieldset {
    width: 100%;
    min-width: 0;
  }
}
/* CARTOGRAPHIE-VUE-UNIQUE-ADMIN-V50R3-END */

/* CARTOGRAPHIE-NAVIGATION-ET-CALQUES-V50R4-START */
.cartography-section-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cartography-section-nav .settings-subnav-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cartography-section-card {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.cartography-section-card > .button.primary {
  grid-column: auto;
}
.cartography-disabled-editor {
  display: grid;
  gap: 16px;
  justify-items: start;
}

/* Sélecteur de carte et calques visuels sur une même ligne sur ordinateur. */
.cartography-toolbar-line {
  align-items: center;
  gap: 14px;
}
.cartography-toolbar-line .cartography-scope-select {
  flex: 0 0 330px;
  min-width: 290px;
}
.cartography-toolbar-line .cartography-layer-switches.cartography-layer-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(70px, 1fr));
  flex: 1 1 auto;
  min-width: 500px;
  gap: 7px;
  margin: 0;
  padding: 2px;
  border: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.cartography-layer-switches.cartography-layer-tiles .cartography-layer-tile {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  white-space: normal;
  font-size: inherit;
  font-weight: inherit;
}
.cartography-layer-tile > input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
}
.cartography-layer-tile-body {
  position: relative;
  display: flex;
  min-height: 82px;
  padding: 7px 4px 6px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f6f3ed;
  color: #62645f;
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cartography-layer-tile:hover .cartography-layer-tile-body {
  transform: translateY(-1px);
}
.cartography-layer-visual {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--layer-soft);
  color: var(--layer-color);
}
.cartography-layer-visual svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cartography-layer-name {
  display: block;
  max-width: 100%;
  color: #343b35;
  font-size: .67rem;
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
}
.cartography-layer-check {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--layer-color);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(34, 48, 34, .18);
  transition: opacity .15s ease, transform .15s ease;
}
.cartography-layer-tile input:checked + .cartography-layer-tile-body {
  border-color: var(--layer-border);
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(44, 57, 43, .09);
  color: var(--layer-color);
}
.cartography-layer-tile input:not(:checked) + .cartography-layer-tile-body {
  opacity: .48;
  filter: grayscale(.35);
}
.cartography-layer-tile input:not(:checked) + .cartography-layer-tile-body .cartography-layer-check {
  opacity: 0;
  transform: scale(.65);
}
.cartography-layer-tile input:focus-visible + .cartography-layer-tile-body {
  outline: 3px solid rgba(37, 77, 44, .28);
  outline-offset: 2px;
}
.cartography-layer-territory { --layer-color: #2f733d; --layer-soft: #dff1e2; --layer-border: #8db797; }
.cartography-layer-post { --layer-color: #246db3; --layer-soft: #dcecff; --layer-border: #8fb6dc; }
.cartography-layer-stand { --layer-color: #79502f; --layer-soft: #eee4d8; --layer-border: #b59a82; }
.cartography-layer-poi { --layer-color: #b33f3a; --layer-soft: #ffe1df; --layer-border: #d99a96; }

@media (max-width: 980px) {
  .cartography-toolbar-line {
    align-items: stretch;
    flex-direction: column;
  }
  .cartography-toolbar-line .cartography-scope-select {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
  .cartography-toolbar-line .cartography-layer-switches.cartography-layer-tiles {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(6, minmax(72px, 1fr));
  }
}
@media (max-width: 680px) {
  .cartography-toolbar-line .cartography-layer-switches.cartography-layer-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .cartography-layer-tile-body {
    min-height: 80px;
  }
}
@media (max-width: 420px) {
  .cartography-layer-name {
    font-size: .63rem;
  }
  .cartography-section-nav strong {
    font-size: .64rem;
  }
}
/* CARTOGRAPHIE-NAVIGATION-ET-CALQUES-V50R4-END */

/* CARTOGRAPHIE-ERGONOMIE-MOBILE-ET-ADMIN-V50R5-START */
/* Les tuiles d'ajout reprennent exactement le langage visuel des calques. */
.cartography-draw-buttons.cartography-draw-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(82px, 1fr));
  justify-content: stretch;
  gap: 9px;
  width: 100%;
}
.cartography-draw-tile {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}
.cartography-draw-tile .cartography-layer-tile-body {
  min-height: 88px;
  border-color: var(--layer-border);
  background: var(--paper);
  box-shadow: 0 4px 12px rgba(44, 57, 43, .09);
}
.cartography-draw-tile:hover .cartography-layer-tile-body,
.cartography-draw-tile:focus-visible .cartography-layer-tile-body {
  transform: translateY(-1px);
  box-shadow: 0 7px 17px rgba(44, 57, 43, .14);
}
.cartography-draw-tile:focus-visible {
  outline: none;
}
.cartography-draw-tile:active .cartography-layer-tile-body {
  transform: scale(.98);
}
.cartography-draw-add {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--layer-color);
  color: #fff;
  font-size: .85rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(34, 48, 34, .18);
}

/* Empêche les panneaux Leaflet de passer au-dessus de la navigation fixe mobile. */
.cartography-map-frame {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

@media (max-width: 980px) {
  .cartography-draw-buttons.cartography-draw-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .cartography-view-card,
  .cartography-settings-card {
    position: relative;
    z-index: 0;
    isolation: isolate;
  }
}
@media (max-width: 520px) {
  .cartography-draw-buttons.cartography-draw-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* CARTOGRAPHIE-ERGONOMIE-MOBILE-ET-ADMIN-V50R5-END */


/* DATES-BATTUES-COMPACTES-V50R6-START */
.admin-battues-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}
.admin-battues-grid .admin-battue {
  min-width: 0;
  padding: 18px;
}
.admin-battues-grid .admin-battue .section-title h2 {
  font-size: 1.55rem;
}
.admin-battues-grid .admin-actions-grid {
  gap: 6px;
  margin-top: 10px;
}
.admin-battues-grid .admin-actions-grid > .compact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
}
.admin-battues-grid .admin-actions-grid > .compact-form label {
  min-width: 0;
}
.admin-battues-grid .button-row {
  gap: 7px;
  margin-top: 9px;
}
.admin-battues-grid .button.small {
  padding: 8px 10px;
}
.admin-battues-grid .muted {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}
@media (max-width: 940px) {
  .admin-battues-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .admin-battues-grid .admin-battue {
    padding: 16px;
  }
  .admin-battues-grid .admin-actions-grid > .compact-form {
    grid-template-columns: 1fr;
  }
  .admin-battues-grid .admin-actions-grid > .compact-form .button {
    width: 100%;
  }
}
/* DATES-BATTUES-COMPACTES-V50R6-END */


/* ACCESSIBILITE-V51R1-START */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 14px;
  border: 2px solid var(--forest);
  border-radius: 10px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }
#contenu-principal:focus { outline: none; }
/* ACCESSIBILITE-V51R1-END */

/* CARTOGRAPHIE-ORGANISATION-V52-START */

.cartography-toolbar-card,
.cartography-editor-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
  margin-bottom: 16px;
}
.cartography-toolbar-stack {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: 100%;
}
.cartography-toolbar-general {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.cartography-toolbar-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  text-align: center;
}
.cartography-toolbar-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--forest);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.15;
}
.cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles,
.cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  width: min(100%, 940px);
  max-width: 940px;
  min-width: 0;
  margin: 0 auto;
}
.cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles {
  padding: 0;
  border-top: 0;
  overflow: visible;
}
.cartography-editor-toolbar {
  align-items: center;
}
.cartography-editor-toolbar > .cartography-editor-status {
  width: min(100%, 940px);
  max-width: 940px;
  text-align: center;
}
.cartography-layer-switches.cartography-layer-tiles .cartography-layer-tile,
.cartography-draw-buttons.cartography-draw-tiles .cartography-draw-tile {
  width: 100%;
  min-width: 0;
}
.cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles .cartography-layer-tile-body,
.cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles .cartography-layer-tile-body {
  min-height: 88px;
}
.cartography-layer-line { --layer-color: #7550a6; --layer-soft: #eee4fa; --layer-border: #b6a0d1; }
.cartography-feature-panel select,
.cartography-feature-panel input[type="number"] {
  width: 100%;
}
.organisation-counter-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}
.organisation-counter-card > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf7ef;
  text-align: center;
}
.organisation-counter-card span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.organisation-counter-card strong {
  color: var(--forest);
  font-size: 1.8rem;
  line-height: 1;
}
.organisation-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  font-weight: 800;
  text-align: center;
}
.organisation-status.complete { background: #e5f2e5; color: #24552b; border: 1px solid #bad7bc; }
.organisation-status.incomplete { background: #fff6dc; color: #765914; border: 1px solid #e6d397; }
.organisation-status.error { background: #fff0ed; color: #8b3025; border: 1px solid #e2b6a9; }
.organisation-form,
.organisation-lines {
  display: grid;
  gap: 16px;
}
.organisation-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.organisation-line-card[hidden],
.organisation-empty[hidden] { display: none !important; }
.organisation-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 9px;
}
.organisation-post-choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
.organisation-post-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.organisation-post-choice span {
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f3ea;
  color: var(--ink);
  text-align: center;
  transition: .15s ease;
}
.organisation-post-choice input:checked + span {
  border-color: #7fa48a;
  background: #e5f2e5;
  color: var(--forest);
  box-shadow: 0 3px 9px rgba(37,77,44,.12);
}
.organisation-post-choice input:focus-visible + span {
  outline: 3px solid rgba(37,77,44,.25);
  outline-offset: 2px;
}
.organisation-save-row {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 980px) {
  .cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles,
  .cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 760px) {
  .organisation-lines { grid-template-columns: 1fr; }
  .organisation-counter-card { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 560px) {
  .cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles,
  .cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .organisation-counter-card { grid-template-columns: 1fr; }
  .organisation-status { grid-column: 1; }
  .organisation-save-row .button { width: 100%; }
}
/* CARTOGRAPHIE-ORGANISATION-V52-END */

/* DETAIL-BATTUE-ORGANISATION-V52R1-START */
.battue-detail-map-card {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}
.battue-detail-map-title { align-items: flex-start; }
.battue-detail-map-frame {
  width: 100%;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #e9eee7;
  isolation: isolate;
}
.battue-detail-map-help { margin: -8px 0 0; }
.battue-organisation-form {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}
.battue-organisation-step {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbf8f1;
}
.battue-organisation-step.is-locked { background: #f8f6f0; }
.battue-organisation-step-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.battue-organisation-step-heading > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-weight: 900;
}
.battue-organisation-step-heading h3,
.battue-organisation-step-heading p,
.battue-organisation-post-line h4 { margin: 0; }
.battue-organisation-step-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .9rem;
}
.battue-organisation-line-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.battue-organisation-line-choice {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
.battue-organisation-line-choice[hidden],
.battue-organisation-post-line[hidden],
.battue-organisation-empty-lines[hidden] { display: none !important; }
.battue-organisation-line-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.battue-organisation-line-choice span {
  display: grid;
  min-height: 76px;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: .15s ease;
}
.battue-organisation-line-choice small { color: var(--muted); }
.battue-organisation-line-choice input:checked + span {
  border-color: #8d70b7;
  background: #eee4fa;
  color: #4d3470;
  box-shadow: 0 3px 10px rgba(86,57,126,.13);
}
.battue-organisation-line-choice input:focus-visible + span {
  outline: 3px solid rgba(117,80,166,.24);
  outline-offset: 2px;
}
.battue-organisation-post-lines {
  display: grid;
  gap: 12px;
}
.battue-organisation-post-line {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.battue-organisation-post-line .section-title { margin: 0; }
.battue-organisation-counter { margin: 0; }
.battue-organisation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.battue-organisation-summary > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf7ef;
}
.battue-organisation-summary span,
.battue-organisation-summary small { color: var(--muted); }
.battue-organisation-summary strong { color: var(--forest); }
@media (max-width: 900px) {
  .battue-organisation-line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .battue-organisation-summary { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .battue-detail-map-frame { min-height: 360px; }
  .battue-organisation-line-grid { grid-template-columns: 1fr; }
  .battue-organisation-step { padding: 13px; }
  .battue-detail-map-card { margin-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
/* DETAIL-BATTUE-ORGANISATION-V52R1-END */
/* BATTUE-DETAIL-ACTIONS-V52R3R1 */
.battue-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.battue-detail-actions .battue-detail-link {
  min-width: 0;
  min-height: 70px;
  grid-template-columns: 23px minmax(0, 1fr) 12px;
  gap: 5px;
  padding: 10px 8px;
}

.battue-detail-actions .battue-detail-link svg {
  width: 22px;
  height: 22px;
}

.battue-detail-actions .battue-detail-link > span:not(.battue-chevron) {
  min-width: 0;
  font-size: .78rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.battue-detail-actions .battue-chevron {
  font-size: 1.35rem;
}

@media (max-width: 380px) {
  .battue-detail-actions { gap: 7px; }
  .battue-detail-actions .battue-detail-link {
    grid-template-columns: 20px minmax(0, 1fr) 10px;
    gap: 3px;
    padding: 9px 5px;
  }
  .battue-detail-actions .battue-detail-link svg {
    width: 20px;
    height: 20px;
  }
  .battue-detail-actions .battue-detail-link > span:not(.battue-chevron) {
    font-size: .70rem;
  }
}
/* BATTUE-DETAIL-ACTIONS-V52R3R1-END */

/* HARMONISATION-VISUELLE-V54-START */
:root {
  --color-forest: var(--forest);
  --color-wood: var(--wood);
  --color-background: var(--sand);
  --color-surface: var(--paper);
  --color-border: var(--line);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
  --color-success: var(--forest-2);
  --color-warning: var(--warning);
  --color-danger: var(--danger);
  --radius-small: 8px;
  --radius-control: 11px;
  --radius-medium: 13px;
  --radius-large: 17px;
  --radius-extra-large: 22px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
}

.app-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2);
}
.nav-toggle-icon { width: 25px; height: 25px; }

.button { border-radius: var(--radius-control); }
input,
select,
textarea { border-radius: var(--radius-control); }
fieldset,
.callout { border-radius: var(--radius-medium); }
.status-pill,
.badge { border-radius: var(--radius-pill); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Tableau de bord : une seule famille d'icônes et une hiérarchie d'actions commune. */
.app-icon-stat {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  color: #5f3b08;
  stroke-width: 1.65;
}
.app-icon-choice {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  color: #5b3707;
  stroke-width: 1.65;
}
.battue-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.battue-secondary-actions .battue-guests-row,
.battue-secondary-actions .battue-detail-link {
  min-width: 0;
  min-height: 66px;
  padding: 10px 12px;
  border-radius: var(--radius-medium);
}
.battue-secondary-actions .battue-guests-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.battue-secondary-actions .battue-guests-label {
  min-width: 0;
}
.battue-secondary-actions .battue-guests-label strong,
.battue-detail-link-compact > span:not(.battue-chevron) {
  min-width: 0;
  font-size: .82rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.battue-secondary-actions .battue-guests-count { gap: 4px; }
.battue-detail-link-compact {
  grid-template-columns: 24px minmax(0, 1fr) 13px;
  gap: 7px;
}
.battue-detail-link-wide {
  min-height: 58px;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  border-radius: var(--radius-medium);
}

/* Paramètres : proposition B2, rubriques repliables avec une seule section ouverte. */
.settings-page-heading { margin-bottom: var(--space-4); }
.settings-accordion {
  display: grid;
  gap: var(--space-3);
  max-width: 980px;
}
.settings-accordion-item {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 5px 18px rgba(54, 43, 28, .07);
}
.settings-accordion-trigger {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: var(--space-3);
  min-height: 78px;
  padding: 14px 18px;
  color: var(--color-text-primary);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(250,246,238,.82));
  transition: background-color .15s ease, color .15s ease;
}
.settings-accordion-trigger:hover { background: #fbf5e9; }
.settings-accordion-item.is-expanded .settings-accordion-trigger {
  color: #5f3908;
  background: linear-gradient(180deg, #fbf0df, #f8ead5);
  border-bottom: 1px solid var(--color-border);
}
.settings-accordion-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffaf1;
  color: #70430b;
  border: 1px solid #eadbc4;
}
.settings-accordion-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.settings-accordion-heading {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.settings-accordion-heading strong {
  font-family: Georgia, serif;
  font-size: 1.24rem;
  color: inherit;
}
.settings-accordion-heading small {
  color: var(--color-text-secondary);
  font-size: .87rem;
  line-height: 1.3;
}
.settings-accordion-chevron {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s ease;
}
.settings-accordion-item.is-expanded .settings-accordion-chevron { transform: rotate(180deg); }
.settings-accordion-panel { padding: 20px; }
.settings-section-card {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.settings-panel-intro {
  padding: 12px 14px;
  border: 1px solid #e6dbc9;
  border-radius: var(--radius-medium);
  background: #fbf8f1;
}
.settings-panel-intro p { margin: 0; color: var(--color-text-secondary); }
.settings-save-button {
  width: 100%;
  min-height: 48px;
  margin-top: var(--space-1);
}
.settings-save-button .app-icon { width: 21px; height: 21px; }

/* Confirmation intégrée : indépendante des autorisations de boîtes de dialogue du navigateur. */
.app-confirm-overlay[hidden] { display: none !important; }
.app-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 25, 22, .68);
  backdrop-filter: blur(3px);
}
body.has-open-dialog { overflow: hidden; }
.app-confirm-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 27px;
  border: 1px solid #ddcfb9;
  border-radius: var(--radius-extra-large);
  background: var(--color-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}
.app-confirm-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #dacbb4;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text-secondary);
}
.app-confirm-close .app-icon { width: 20px; height: 20px; }
.app-confirm-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-right: 44px;
}
.app-confirm-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--color-forest);
  font-size: clamp(1.45rem, 4vw, 2rem);
}
.app-confirm-symbol {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8a570c;
  background: #fff4d9;
}
.app-confirm-symbol .app-icon { width: 29px; height: 29px; }
.app-confirm-dialog > p { margin: 20px 0 0; line-height: 1.55; }
.app-confirm-secondary { color: var(--color-text-secondary); }
.app-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.app-confirm-actions .button { min-height: 48px; }

/* Détail inscription : liste compacte, recherche et filtres. */
.attendee-section-compact { padding: 20px; }
.attendee-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  margin: 16px 0 18px;
}
.attendee-search-label {
  position: relative;
  display: block;
}
.attendee-search-label .app-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
}
.attendee-search-label input { padding-left: 46px; min-height: 48px; }
.attendee-visible-count {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: #fff;
  color: #5f3a0b;
  white-space: nowrap;
}
.attendee-visible-count .app-icon { width: 22px; height: 22px; }
.attendee-filter-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.attendee-filter-chip {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #b99c74;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #67400e;
  font-weight: 750;
}
.attendee-filter-chip.is-active {
  border-color: var(--color-forest);
  background: var(--color-forest);
  color: #fff;
}
.attendee-compact-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #e0d4c1;
  border-radius: var(--radius-large);
  background: #fff;
}
.attendee-compact-row { border-bottom: 1px solid #eadfce; }
.attendee-compact-row:last-child { border-bottom: 0; }
.attendee-compact-row[hidden] { display: none !important; }
.attendee-compact-row > summary {
  display: grid;
  grid-template-columns: 48px minmax(150px, 1.4fr) minmax(102px, .72fr) minmax(112px, .78fr) minmax(102px, .68fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 14px;
  list-style: none;
  cursor: pointer;
}
.attendee-compact-row > summary::-webkit-details-marker { display: none; }
.attendee-compact-row[open] > summary { background: #fbf7ee; }
.attendee-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f0de;
  color: var(--color-forest);
  font-weight: 850;
}
.attendee-compact-name {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.attendee-compact-name strong { overflow-wrap: anywhere; }
.attendee-compact-name small { color: var(--color-text-secondary); font-size: .78rem; }
.attendee-compact-tag {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid #d8cdb9;
  border-radius: var(--radius-control);
  font-size: .77rem;
  line-height: 1.1;
  text-align: center;
}
.attendee-compact-tag .app-icon { width: 17px; height: 17px; flex-basis: 17px; }
.attendee-compact-tag.role.poste { background: #edf4e6; color: #3d652c; border-color: #cdddbc; }
.attendee-compact-tag.role.traqueur { background: #eaf1f6; color: #315d7d; border-color: #c6d8e4; }
.attendee-compact-tag.meal.yes { background: #eef5e8; color: #456c31; border-color: #cfdfc2; }
.attendee-compact-tag.meal.no { background: #fff0ed; color: #a13e33; border-color: #e7c3bc; }
.attendee-compact-tag.guests { background: #fbf5eb; color: #725022; border-color: #e2d3bd; }
.attendee-expand-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #70430b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s ease;
}
.attendee-compact-row[open] .attendee-expand-icon { transform: rotate(90deg); }
.attendee-compact-details {
  display: grid;
  gap: var(--space-3);
  padding: 16px;
  border-top: 1px solid #eadfce;
  background: #fdfbf7;
}
.attendee-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--color-text-secondary);
  font-size: .86rem;
}
.attendee-compact-edit { align-items: center; }
.attendee-filter-empty { margin-top: 14px; }
.noscript-weapon-help { margin-bottom: 16px; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .settings-accordion { max-width: none; }
  .attendee-compact-row > summary {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
  }
  .attendee-compact-tag { justify-self: start; }
  .attendee-compact-row > summary .attendee-compact-tag { display: none; }
  .attendee-expand-icon { grid-column: 3; grid-row: 1; }
  .attendee-compact-name { grid-column: 2; }
}

@media (max-width: 620px) {
  .battue-secondary-actions { gap: 8px; }
  .battue-secondary-actions .battue-guests-row,
  .battue-secondary-actions .battue-detail-link { padding: 8px 9px; }
  .battue-secondary-actions .battue-guests-label { gap: 6px; }
  .battue-secondary-actions .battue-guests-label svg,
  .battue-secondary-actions .battue-detail-link svg { width: 21px; height: 21px; }
  .battue-secondary-actions .battue-guests-label strong,
  .battue-detail-link-compact > span:not(.battue-chevron) { font-size: .73rem; }
  .settings-accordion-trigger {
    grid-template-columns: 42px minmax(0, 1fr) 21px;
    min-height: 70px;
    padding: 12px 13px;
  }
  .settings-accordion-icon { width: 39px; height: 39px; }
  .settings-accordion-heading strong { font-size: 1.05rem; }
  .settings-accordion-heading small { font-size: .76rem; }
  .settings-accordion-panel { padding: 14px; }
  .settings-accordion-panel .form-grid { grid-template-columns: 1fr; }
  .attendee-filter-toolbar { grid-template-columns: 1fr; }
  .attendee-visible-count { justify-self: start; }
  .attendee-filter-chips { grid-column: 1; }
  .app-confirm-dialog { padding: 23px 18px 18px; }
  .app-confirm-heading { align-items: flex-start; }
  .app-confirm-symbol { width: 42px; height: 42px; flex-basis: 42px; }
  .app-confirm-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .battue-secondary-actions { grid-template-columns: 1fr; }
  .battue-secondary-actions .battue-guests-row,
  .battue-secondary-actions .battue-detail-link { min-height: 54px; }
  .app-confirm-actions { grid-template-columns: 1fr; }
}
/* HARMONISATION-VISUELLE-V54-END */
.cartography-layer-check .app-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}


/* URGENCE-V55-START */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  margin-left: auto;
}
.emergency-header-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-medium, 12px);
  color: #fff;
  background: #b84032;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(70,15,10,.2);
}
.emergency-header-button:hover,
.emergency-header-button.active { background: #cf4939; transform: translateY(-1px); }
.emergency-header-button svg,
.emergency-map-symbol svg,
.emergency-hero-icon svg,
.emergency-call-icon svg,
.admin-icon-svg svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.emergency-page-heading h1 { color: var(--danger); }
.emergency-hero-card {
  display: flex;
  align-items: center;
  gap: var(--space-4, 16px);
  margin-bottom: var(--space-5, 24px);
  padding: var(--space-5, 24px);
  border-radius: var(--radius-large, 17px);
  color: #fff;
  background: linear-gradient(135deg,#9b2f28,#bd4939);
  box-shadow: var(--shadow);
}
.emergency-hero-card h2 { margin: 3px 0 6px; font-family: Georgia,serif; }
.emergency-hero-card p { margin: 0; color: rgba(255,255,255,.88); }
.emergency-hero-card .eyebrow { color: #ffe1c2!important; }
.emergency-hero-icon {
  display: grid;
  place-items: center;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  color: #fff5d9;
  background: rgba(255,255,255,.14);
}
.emergency-hero-icon svg { width: 42px; height: 42px; stroke-width: 1.8; }
.emergency-contact-section,
.emergency-map-section { margin-bottom: var(--space-5, 24px); }
.emergency-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3, 12px); margin-top: var(--space-4, 16px); }
.emergency-call-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3, 12px);
  min-width: 0;
  padding: var(--space-4, 16px);
  border: 1px solid #e2b2ad;
  border-radius: var(--radius-medium, 12px);
  color: #712820;
  background: #fff7f5;
  text-decoration: none;
}
.emergency-call-card:hover { border-color: var(--danger); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(100,25,20,.1); }
.emergency-call-card small { display: block; color: var(--muted); font-weight: 700; }
.emergency-call-card strong { display: block; margin-top: 2px; font-size: 1.2rem; overflow-wrap: anywhere; }
.emergency-call-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--danger); }
.emergency-call-action { font-weight: 900; color: var(--danger); }
.emergency-map { width: 100%; min-height: 420px; margin-top: var(--space-4, 16px); border: 1px solid var(--line); border-radius: var(--radius-medium, 12px); overflow: hidden; }
.emergency-coordinate-text { margin: 10px 0 0; color: var(--muted); font-size: .86rem; }
.emergency-map-symbol { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--danger); }
.emergency-leaflet-icon { background: transparent!important; border: 0!important; }
.emergency-leaflet-icon > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.28));
}
.emergency-leaflet-icon svg { width: 42px; height: 42px; fill: #c23f31; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.emergency-leaflet-icon-large > span,
.emergency-leaflet-icon-large svg { width: 52px; height: 52px; }
.emergency-meeting-config {
  margin-top: var(--space-5, 24px);
  padding: var(--space-4, 16px);
  border: 1px solid #e2b2ad;
  border-radius: var(--radius-medium, 12px);
  background: #fff8f4;
}
.emergency-coordinate-grid { margin-top: var(--space-3, 12px); }
.emergency-settings-intro strong { color: var(--danger); }
.emergency-settings-intro + label input[type="tel"] { min-height: 46px; }
.admin-icon-svg { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: var(--danger); }
.emergency-admin-card { border-color: #e4b7b2; }
.emergency-admin-card h2 { color: #8c3028; }
@media (max-width: 820px) {
  .header-controls { gap: 6px; }
  .emergency-header-button { padding-inline: 10px; }
  .emergency-contact-grid { grid-template-columns: 1fr; }
  .emergency-map { min-height: 360px; }
}
@media (max-width: 440px) {
  .site-header { padding-left: 10px; padding-right: 10px; }
  .brand { gap: 7px; }
  .brand img { width: 39px; height: 39px; }
  .brand strong { font-size: .94rem; }
  .emergency-header-button { min-height: 40px; padding: 7px 8px; font-size: .69rem; }
  .emergency-header-button svg { width: 21px; height: 21px; }
  .emergency-hero-card { align-items: flex-start; padding: 18px; }
  .emergency-hero-icon { flex-basis: 50px; width: 50px; height: 50px; }
  .emergency-map { min-height: 310px; }
}
/* URGENCE-V55-END */

/* CARTOGRAPHIE-LARGEUR-COMPLETE-V55R6R2R1-START */
.cartography-toolbar-card > .cartography-toolbar-stack,
.cartography-editor-toolbar > .cartography-toolbar-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
.cartography-toolbar-card .cartography-toolbar-heading,
.cartography-editor-toolbar .cartography-toolbar-heading {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: center !important;
}
.cartography-toolbar-card .cartography-toolbar-heading h2,
.cartography-editor-toolbar .cartography-toolbar-heading h2 {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  font-family: Georgia, serif !important;
  font-size: 1.75rem !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color: var(--forest) !important;
}
.cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles,
.cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}
.cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles .cartography-layer-tile,
.cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles .cartography-draw-tile {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
}
.cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles .cartography-layer-tile-body,
.cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles .cartography-layer-tile-body {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 96px !important;
  height: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 760px) {
  .cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles,
  .cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .cartography-toolbar-card .cartography-toolbar-heading h2,
  .cartography-editor-toolbar .cartography-toolbar-heading h2 {
    font-size: 1.45rem !important;
  }
}
@media (max-width: 430px) {
  .cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles,
  .cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* CARTOGRAPHIE-LARGEUR-COMPLETE-V55R6R2R1-END */

/* CACHE-CSS-SERVICE-WORKER-V55R6R3 */

/* PRELEVEMENTS-ERGONOMIE-V55R7-START */
/* Les champs dynamiques Poids et Bracelet sont regroupés sur une même ligne. */
.affut-entry-form-v38,
.battue-harvest-entry-form,
.harvest-edit-form {
  align-items: start;
}
.harvest-dynamic-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 15px;
  width: 100%;
}
.harvest-dynamic-row[hidden] {
  display: none !important;
}
.harvest-dynamic-row .harvest-weight-field,
.harvest-dynamic-row .bracelet-field {
  align-self: start;
  min-width: 0;
}
.battue-harvest-entry-form,
.battue-harvest-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.battue-harvest-entry-form .harvest-game-field,
.battue-harvest-edit-form .harvest-game-field {
  grid-column: 1 / -1;
}
/* Historique saisonnier inspiré de la liste compacte des inscrits. */
.harvest-browser-card {
  padding: 20px;
}
.harvest-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: var(--space-3, 12px);
  align-items: center;
  margin: 16px 0 18px;
}
.harvest-search-label {
  position: relative;
  display: block;
}
.harvest-search-label .app-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: var(--color-text-secondary, var(--muted));
}
.harvest-search-label input {
  min-height: 48px;
  padding-left: 46px;
}
.harvest-visible-count {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--color-border, var(--line));
  border-radius: var(--radius-medium, 12px);
  background: #fff;
  color: #5f3a0b;
  white-space: nowrap;
}
.harvest-visible-count .app-icon {
  width: 22px;
  height: 22px;
}
.harvest-filter-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
}
.harvest-filter-chip {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #b99c74;
  border-radius: var(--radius-pill, 999px);
  background: #fff;
  color: #67400e;
  font-weight: 750;
}
.harvest-filter-chip.is-active {
  border-color: var(--color-forest, var(--forest));
  background: var(--color-forest, var(--forest));
  color: #fff;
}
.harvest-compact-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #e0d4c1;
  border-radius: var(--radius-large, 17px);
  background: #fff;
}
.harvest-compact-row {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #eadfce;
}
.harvest-compact-row:last-child {
  border-bottom: 0;
}
.harvest-compact-row[hidden] {
  display: none !important;
}
.harvest-compact-row > summary {
  display: grid;
  grid-template-columns: 48px minmax(170px, 1.35fr) minmax(82px, .55fr) minmax(102px, .68fr) minmax(170px, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 10px 14px;
  list-style: none;
  cursor: pointer;
}
.harvest-compact-row > summary::-webkit-details-marker {
  display: none;
}
.harvest-compact-row[open] > summary {
  background: #fbf7ee;
}
.harvest-compact-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.harvest-compact-avatar .app-icon {
  width: 25px;
  height: 25px;
}
.harvest-compact-avatar.affut {
  background: #f7e8cc;
  color: #75490d;
}
.harvest-compact-avatar.battue {
  background: #e6f0df;
  color: #315d37;
}
.harvest-compact-name {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.harvest-compact-name strong {
  overflow-wrap: anywhere;
}
.harvest-compact-name small {
  color: var(--color-text-secondary, var(--muted));
  font-size: .78rem;
}
.harvest-compact-tag {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid #d8cdb9;
  border-radius: var(--radius-control, 10px);
  font-size: .77rem;
  line-height: 1.1;
  text-align: center;
}
.harvest-compact-tag.source.affut {
  background: #fbedd5;
  color: #75490d;
  border-color: #e8cfaa;
}
.harvest-compact-tag.source.battue {
  background: #eaf3e5;
  color: #315d37;
  border-color: #cbdcc1;
}
.harvest-compact-tag.date {
  background: #f7f3ea;
  color: #5f5548;
}
.harvest-compact-tag.shooter {
  background: #eef3f5;
  color: #31576b;
  border-color: #cbd9df;
  overflow-wrap: anywhere;
}
.harvest-expand-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #70430b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s ease;
}
.harvest-compact-row[open] .harvest-expand-icon {
  transform: rotate(90deg);
}
.harvest-compact-details {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #eadfce;
  background: #fdfbf7;
}
.harvest-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--color-text-secondary, var(--muted));
  font-size: .86rem;
}
.harvest-compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.harvest-inline-editor {
  margin: 0;
}
.harvest-inline-editor > summary {
  padding: 2px 0;
}
.harvest-filter-empty {
  margin-top: 14px;
}

@media (max-width: 820px) {
  .battue-harvest-entry-form,
  .battue-harvest-edit-form,
  .harvest-dynamic-row {
    grid-template-columns: 1fr;
  }
  .harvest-compact-row > summary {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
  }
  .harvest-compact-row > summary .harvest-compact-tag {
    display: none;
  }
  .harvest-compact-name {
    grid-column: 2;
  }
  .harvest-expand-icon {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .harvest-filter-toolbar {
    grid-template-columns: 1fr;
  }
  .harvest-visible-count {
    justify-self: start;
  }
  .harvest-filter-chips {
    grid-column: 1;
  }
}
/* PRELEVEMENTS-ERGONOMIE-V55R7-END */

/* POSITION-PERSONNELLE-CARTE-V55R8-START */
.battue-detail-map-shell {
  position: relative;
}
.battue-location-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 900;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: calc(100% - 24px);
  pointer-events: none;
}
.battue-location-controls > button {
  pointer-events: auto;
}
.battue-location-button,
.battue-location-stop-button {
  min-height: 42px;
  border: 1px solid rgba(37, 77, 44, .34);
  background: rgba(255, 255, 255, .96);
  color: var(--forest);
  box-shadow: 0 3px 12px rgba(29, 49, 32, .18);
  backdrop-filter: blur(5px);
}
.battue-location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.battue-location-button .app-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.battue-location-button.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}
.battue-location-stop-button {
  padding-inline: 13px;
}
.battue-location-status {
  margin: 10px 0 0;
  padding: 10px 13px;
  border: 1px solid #d6c8ae;
  border-radius: 11px;
  background: #fbf7ee;
  color: #574c3d;
  font-size: .86rem;
}
.battue-location-status[data-state="warning"] {
  border-color: #dbb77c;
  background: #fff7e7;
  color: #704b13;
}
.battue-location-status[data-state="error"] {
  border-color: #d5a4a0;
  background: #fff0ef;
  color: #7d2822;
}
.battue-user-location-wrapper {
  border: 0;
  background: transparent;
}
.battue-user-location-dot {
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #1677d2;
  box-shadow: 0 0 0 2px #0f5ea7, 0 3px 10px rgba(12, 60, 105, .36);
}

@media (max-width: 620px) {
  .battue-location-controls {
    top: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
    gap: 6px;
  }
  .battue-location-button,
  .battue-location-stop-button {
    min-height: 40px;
    padding: 8px 11px;
    font-size: .82rem;
  }
}
/* POSITION-PERSONNELLE-CARTE-V55R8-END */


/* AJOUTS-CARTOGRAPHIQUES-GEOLOCALISES-V56-START */
.cartography-add-mode {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbf8f0;
}
.cartography-add-mode-geolocated {
  background: linear-gradient(145deg, #eef6ef, #f9fbf5);
  border-color: #b9d2bd;
}
.cartography-add-mode-heading {
  display: grid;
  gap: 4px;
  text-align: center;
}
.cartography-add-mode-heading h3 {
  margin: 0;
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}
.cartography-add-mode-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}
.cartography-editor-toolbar .cartography-geolocated-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.cartography-geolocated-tile {
  position: relative;
}
.cartography-geolocated-tile .cartography-layer-visual text {
  fill: currentColor;
  stroke: none;
  font-size: 8px;
  font-weight: 900;
}
.cartography-geolocated-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .05em;
}
.cartography-draw-tile:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.cartography-geolocation-help {
  margin: 14px 0;
  font-size: .84rem;
}
.cartography-geolocation-recorder[hidden],
.cartography-geolocation-post-list[hidden] {
  display: none !important;
}
.cartography-geolocation-recorder {
  display: grid;
  gap: 13px;
  margin-bottom: 14px;
  padding: 16px;
  border: 2px solid #4f8758;
  border-radius: 16px;
  background: rgba(244, 250, 242, .97);
  box-shadow: 0 8px 24px rgba(34, 77, 41, .15);
}
.cartography-geolocation-recorder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cartography-geolocation-recorder-head h2 {
  margin: 0;
  color: var(--forest);
  font-family: Georgia, serif;
}
.cartography-geolocation-recorder-head p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
}
.cartography-geolocation-pulse {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 5px;
  border-radius: 50%;
  background: #2f7a3b;
  box-shadow: 0 0 0 0 rgba(47, 122, 59, .45);
  animation: cartography-geolocation-pulse 1.5s infinite;
}
@keyframes cartography-geolocation-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 122, 59, .45); }
  70% { box-shadow: 0 0 0 12px rgba(47, 122, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 122, 59, 0); }
}
.cartography-geolocation-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.cartography-geolocation-stats > span {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid #c6d9c8;
  border-radius: 11px;
  background: #fff;
  text-align: center;
}
.cartography-geolocation-stats small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}
.cartography-geolocation-stats strong {
  color: var(--forest);
  font-size: 1.05rem;
}
.cartography-geolocation-message {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #e7f1e6;
  color: #285731;
  font-weight: 700;
  font-size: .84rem;
}
.cartography-geolocation-post-list {
  display: grid;
  gap: 7px;
}
.cartography-geolocation-post-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.cartography-geolocation-post-list .button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: .73rem;
}
.cartography-geolocation-actions {
  margin: 0;
}
@media (max-width: 760px) {
  .cartography-editor-toolbar .cartography-geolocated-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .cartography-geolocation-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartography-geolocation-actions .button { flex: 1 1 100%; }
}
@media (max-width: 430px) {
  .cartography-add-mode { padding: 12px; }
  .cartography-editor-toolbar .cartography-geolocated-tiles {
    grid-template-columns: 1fr !important;
  }
  .cartography-geolocation-post-list > div { align-items: flex-start; }
}
/* AJOUTS-CARTOGRAPHIQUES-GEOLOCALISES-V56-END */

/* CARTOGRAPHIE-COMPACTE-V56R1-START */
/* Réduit la hauteur des commandes afin de laisser la carte visible dès l'ouverture,
   tout en conservant des zones tactiles d'au moins 44 px sur téléphone. */
.cartography-section-nav {
  gap: 4px !important;
  margin-bottom: 8px !important;
  padding: 4px !important;
  border-radius: 13px !important;
}
.cartography-section-nav a {
  gap: 6px !important;
  min-height: 44px !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
}
.cartography-section-nav .settings-subnav-icon {
  width: 27px !important;
  height: 27px !important;
  flex-basis: 27px !important;
  border-radius: 8px !important;
}
.cartography-section-nav .settings-subnav-icon svg {
  width: 17px !important;
  height: 17px !important;
}
.cartography-section-nav strong {
  font-size: .78rem !important;
}

.cartography-toolbar-card,
.cartography-editor-toolbar {
  gap: 7px !important;
  margin-bottom: 8px !important;
  padding: 10px !important;
  border-radius: 14px !important;
}

/* Sur ordinateur, le titre Filtres est placé à gauche des cinq pastilles. */
.cartography-toolbar-card > .cartography-toolbar-stack {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
}
.cartography-toolbar-card .cartography-toolbar-heading {
  width: auto !important;
  white-space: nowrap !important;
}

/* Les deux modes d'ajout sont côte à côte sur les écrans suffisamment larges. */
.cartography-editor-toolbar > .cartography-toolbar-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 8px !important;
}
.cartography-editor-toolbar > .cartography-toolbar-stack > .cartography-toolbar-heading {
  grid-column: 1 / -1 !important;
}
.cartography-toolbar-card .cartography-toolbar-heading h2,
.cartography-editor-toolbar .cartography-toolbar-heading h2 {
  font-size: 1.12rem !important;
  line-height: 1.05 !important;
}

.cartography-add-mode {
  align-content: start !important;
  gap: 6px !important;
  padding: 8px !important;
  border-radius: 12px !important;
}
.cartography-add-mode-heading {
  gap: 1px !important;
}
.cartography-add-mode-heading h3 {
  font-size: .98rem !important;
  line-height: 1.1 !important;
}
.cartography-add-mode-heading p {
  font-size: .71rem !important;
  line-height: 1.2 !important;
}

.cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles,
.cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles,
.cartography-editor-toolbar .cartography-geolocated-tiles {
  gap: 5px !important;
}
.cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles,
.cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.cartography-editor-toolbar .cartography-geolocated-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles .cartography-layer-tile-body,
.cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles .cartography-layer-tile-body {
  min-height: 58px !important;
  padding: 4px 2px 3px !important;
  gap: 2px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 7px rgba(44, 57, 43, .08) !important;
}
.cartography-toolbar-card .cartography-layer-visual,
.cartography-editor-toolbar .cartography-layer-visual {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
  border-radius: 9px !important;
}
.cartography-toolbar-card .cartography-layer-visual svg,
.cartography-editor-toolbar .cartography-layer-visual svg {
  width: 21px !important;
  height: 21px !important;
}
.cartography-toolbar-card .cartography-layer-name,
.cartography-editor-toolbar .cartography-layer-name {
  font-size: .64rem !important;
  line-height: 1.02 !important;
}
.cartography-toolbar-card .cartography-layer-check,
.cartography-editor-toolbar .cartography-draw-add {
  top: 3px !important;
  right: 3px !important;
  width: 15px !important;
  height: 15px !important;
  font-size: .64rem !important;
}
.cartography-geolocated-badge {
  top: 3px !important;
  right: 3px !important;
  padding: 2px 4px !important;
  font-size: .48rem !important;
}

@media (max-width: 760px) {
  .cartography-section-nav a {
    min-height: 43px !important;
    gap: 3px !important;
    padding: 4px 2px !important;
  }
  .cartography-section-nav .settings-subnav-icon {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
  }
  .cartography-section-nav strong {
    font-size: .66rem !important;
    line-height: 1.05 !important;
  }
  .cartography-toolbar-card,
  .cartography-editor-toolbar {
    padding: 8px !important;
  }
  .cartography-toolbar-card > .cartography-toolbar-stack,
  .cartography-editor-toolbar > .cartography-toolbar-stack {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .cartography-toolbar-card .cartography-toolbar-heading {
    width: 100% !important;
  }
  .cartography-toolbar-card .cartography-toolbar-heading h2,
  .cartography-editor-toolbar .cartography-toolbar-heading h2 {
    font-size: 1rem !important;
  }
  .cartography-add-mode {
    padding: 7px !important;
    gap: 5px !important;
  }
  .cartography-add-mode-heading h3 {
    font-size: .91rem !important;
  }
  .cartography-add-mode-heading p {
    display: none !important;
  }
  .cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles,
  .cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .cartography-editor-toolbar .cartography-geolocated-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .cartography-toolbar-card .cartography-layer-switches.cartography-layer-tiles .cartography-layer-tile-body,
  .cartography-editor-toolbar .cartography-draw-buttons.cartography-draw-tiles .cartography-layer-tile-body {
    min-height: 54px !important;
  }
  .cartography-toolbar-card .cartography-layer-visual,
  .cartography-editor-toolbar .cartography-layer-visual {
    width: 27px !important;
    height: 27px !important;
    flex-basis: 27px !important;
  }
  .cartography-toolbar-card .cartography-layer-visual svg,
  .cartography-editor-toolbar .cartography-layer-visual svg {
    width: 19px !important;
    height: 19px !important;
  }
  .cartography-toolbar-card .cartography-layer-name,
  .cartography-editor-toolbar .cartography-layer-name {
    font-size: .60rem !important;
  }
}

@media (max-width: 360px) {
  .cartography-section-nav strong {
    font-size: .60rem !important;
  }
  .cartography-toolbar-card .cartography-layer-name,
  .cartography-editor-toolbar .cartography-layer-name {
    font-size: .56rem !important;
  }
}
/* CARTOGRAPHIE-COMPACTE-V56R1-END */



/* PARTAGE-POSITIONS-CARTOGRAPHIE-V57-START */
.cartography-share-position-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(47, 109, 55, .42);
  background: rgba(241, 248, 238, .97);
  color: #285d31;
  box-shadow: 0 3px 12px rgba(29, 49, 32, .18);
  backdrop-filter: blur(5px);
}
.cartography-share-position-button .app-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cartography-share-position-button.is-active {
  border-color: #8b4e12;
  background: #fff1d8;
  color: #75410e;
  box-shadow: 0 0 0 2px rgba(239, 173, 73, .25), 0 3px 12px rgba(29, 49, 32, .18);
}
.cartography-location-statuses {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.cartography-location-statuses .battue-location-status {
  margin: 0;
}
.cartography-share-position-status {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #b9d1b6;
  border-radius: 11px;
  background: #edf6e9;
  color: #28552f;
  font-size: .86rem;
  font-weight: 650;
}
.cartography-share-position-status[data-state="active"]::before {
  content: "●";
  margin-right: 7px;
  color: #2f863c;
}
.cartography-share-position-status[data-state="warning"] {
  border-color: #dbb77c;
  background: #fff7e7;
  color: #704b13;
}
.cartography-share-position-status[data-state="error"] {
  border-color: #d5a4a0;
  background: #fff0ef;
  color: #7d2822;
}
.cartography-shared-location-wrapper {
  border: 0;
  background: transparent;
}
.cartography-shared-location-dot {
  display: grid;
  width: 30px;
  height: 30px;
  margin: 3px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3f8b43;
  color: #fff;
  box-shadow: 0 0 0 2px #27652d, 0 3px 10px rgba(24, 77, 31, .38);
}
.cartography-shared-location-dot b {
  font-size: .68rem;
  line-height: 1;
  letter-spacing: -.03em;
}
.cartography-shared-location-dot.is-stale {
  background: #d08326;
  box-shadow: 0 0 0 2px #9b5a13, 0 3px 10px rgba(109, 65, 17, .34);
}
.cartography-shared-location-label {
  padding: 3px 7px;
  border: 1px solid rgba(39, 101, 45, .38);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: #244b29;
  box-shadow: 0 2px 7px rgba(22, 55, 26, .18);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.cartography-shared-location-label::before {
  display: none;
}
@media (max-width: 620px) {
  .cartography-location-controls {
    left: 8px;
    right: 8px;
    justify-content: flex-end;
  }
  .cartography-share-position-button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: .79rem;
  }
  .cartography-location-controls .battue-location-button,
  .cartography-location-controls .cartography-share-position-button,
  .cartography-location-controls .battue-location-stop-button {
    flex: 0 1 auto;
  }
  .cartography-shared-location-label {
    font-size: .67rem;
  }
}
@media (max-width: 430px) {
  .cartography-location-controls {
    justify-content: stretch;
  }
  .cartography-location-controls .battue-location-button,
  .cartography-location-controls .cartography-share-position-button {
    flex: 1 1 calc(50% - 3px);
    padding-inline: 7px;
  }
  .cartography-location-controls .battue-location-stop-button {
    flex: 1 1 100%;
  }
}
/* PARTAGE-POSITIONS-CARTOGRAPHIE-V57-END */

/* FONDS-CARTOGRAPHIQUES-IGN-ET-CADASTRE-V58 */
.cartography-source-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 14px;
  margin:0 0 8px;
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8f3e9;
}
.cartography-source-group {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.cartography-source-title {
  flex:0 0 auto;
  color:#5e5548;
  font-size:.75rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.cartography-source-options {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.cartography-source-option {
  position:relative;
  display:block;
  cursor:pointer;
  font-size:.82rem;
  font-weight:800;
}
.cartography-source-option input {
  position:absolute;
  width:1px;
  height:1px;
  min-height:0;
  opacity:0;
  pointer-events:none;
}
.cartography-source-option span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:6px 11px;
  border:1px solid #c8baa3;
  border-radius:9px;
  color:#4d453a;
  background:#fff;
  line-height:1.15;
  text-align:center;
  white-space:nowrap;
  transition:border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.cartography-source-option:hover span {
  border-color:#8aa181;
}
.cartography-source-option input:checked + span {
  border-color:var(--forest);
  color:#fff;
  background:var(--forest);
  box-shadow:0 0 0 2px rgba(37,77,44,.12);
}
.cartography-source-option input:focus-visible + span {
  outline:3px solid rgba(111,143,77,.28);
  outline-offset:2px;
}
.cartography-source-option-overlay input:checked + span {
  border-color:#875d24;
  color:#5e3b08;
  background:#f2d69b;
  box-shadow:0 0 0 2px rgba(167,104,22,.12);
}
.cartography-cadastre-group {
  display:grid;
  grid-template-columns:auto minmax(0,auto);
  align-items:center;
  column-gap:8px;
  row-gap:1px;
}
.cartography-cadastre-group small {
  grid-column:2;
  max-width:440px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:500;
  line-height:1.2;
}
@media (max-width: 720px) {
  .cartography-source-controls {
    gap:6px;
    padding:6px;
  }
  .cartography-source-group {
    width:100%;
    gap:6px;
  }
  .cartography-source-title {
    width:72px;
    font-size:.69rem;
  }
  .cartography-source-options {
    flex:1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .cartography-source-option {
    min-width:0;
  }
  .cartography-source-option span {
    width:100%;
    min-height:35px;
    padding:5px 7px;
    font-size:.78rem;
    white-space:normal;
  }
  .cartography-cadastre-group {
    grid-template-columns:72px minmax(0,1fr);
  }
  .cartography-cadastre-group small {
    display:none;
  }
}

/* TERRITOIRE-PAR-PARCELLES-CADASTRALES-V58R2 */
.cartography-cadastral-launch {
  display:grid;
  grid-template-columns:minmax(190px,auto) minmax(0,1fr);
  align-items:center;
  gap:6px 9px;
  margin-top:2px;
  padding-top:6px;
  border-top:1px dashed rgba(91,111,79,.28);
}
.cartography-cadastral-launch-button {
  min-height:40px;
  padding:7px 11px;
  justify-content:center;
  gap:7px;
  font-size:.79rem;
  white-space:nowrap;
}
.cartography-cadastral-launch-button .app-icon {
  width:19px;
  height:19px;
}
.cartography-cadastral-launch small {
  color:var(--muted);
  font-size:.69rem;
  line-height:1.18;
}
.cartography-cadastral-selector[hidden] {
  display:none !important;
}
.cartography-cadastral-selector {
  display:grid;
  gap:8px;
  margin:0 0 9px;
  padding:11px;
  border:1px solid rgba(173,103,22,.38);
  border-radius:13px;
  background:linear-gradient(145deg,#fff9ed,#f8edd7);
  box-shadow:0 4px 14px rgba(90,60,22,.09);
}
.cartography-cadastral-selector-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.cartography-cadastral-selector-head .eyebrow {
  margin:0 0 1px;
  color:#885514;
  font-size:.65rem;
}
.cartography-cadastral-selector-head h2 {
  margin:0;
  font-size:1.05rem;
  line-height:1.1;
}
.cartography-cadastral-selector-head > strong {
  flex:0 0 auto;
  padding:5px 8px;
  border-radius:999px;
  color:#5b3709;
  background:#f2d69b;
  font-size:.76rem;
}
#cadastral-selector-message {
  margin:0;
  color:#5e5548;
  font-size:.82rem;
  line-height:1.3;
}
#cadastral-selector-message[data-state="loading"] {
  color:#72510e;
  font-weight:800;
}
#cadastral-selector-message[data-state="success"] {
  color:#2f6d37;
  font-weight:700;
}
#cadastral-selector-message[data-state="error"] {
  color:#a02d26;
  font-weight:800;
}
.cartography-cadastral-references {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  max-height:92px;
  overflow:auto;
  padding:1px;
}
.cartography-cadastral-references span {
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:4px 8px;
  border:1px solid rgba(198,108,19,.38);
  border-radius:999px;
  color:#6b3e08;
  background:#fff;
  font-size:.72rem;
  font-weight:850;
}
.cartography-cadastral-actions {
  margin-top:0;
  gap:6px;
}
.cartography-cadastral-actions .button {
  min-height:39px;
  padding:7px 11px;
  font-size:.78rem;
}
.cartography-source-option input:disabled + span {
  cursor:not-allowed;
  opacity:.72;
}
@media (max-width:760px) {
  .cartography-cadastral-launch {
    grid-template-columns:1fr;
    gap:3px;
  }
  .cartography-cadastral-launch small {
    display:none;
  }
  .cartography-cadastral-launch-button {
    width:100%;
    min-height:38px;
  }
  .cartography-cadastral-selector {
    gap:6px;
    padding:9px;
  }
  .cartography-cadastral-selector-head h2 {
    font-size:.96rem;
  }
  #cadastral-selector-message {
    font-size:.76rem;
  }
  .cartography-cadastral-actions {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .cartography-cadastral-actions .button {
    width:100%;
  }
  .cartography-cadastral-actions .button:last-child {
    grid-column:1 / -1;
  }
}
/* TERRITOIRE-PAR-PARCELLES-CADASTRALES-V58R2-END */


/* COMMANDES-CARTOGRAPHIE-INVERSEES-V59-START */
.cartography-base-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #c8baa3;
  border-radius: 9px;
  color: var(--forest);
  background: #fff;
  font-size: .82rem;
  font-weight: 850;
  box-shadow: none;
}
.cartography-base-toggle:hover {
  border-color: var(--forest);
  background: #f5f9f2;
}
.cartography-base-toggle .app-icon {
  width: 18px;
  height: 18px;
}
.cartography-location-controls .battue-location-button,
.cartography-location-controls .cartography-share-position-button {
  min-width: 0;
}
@media (max-width: 620px) {
  .cartography-source-controls {
    min-height: 48px;
  }
  .cartography-source-controls .cartography-base-toggle {
    width: 100%;
    min-height: 38px;
    padding: 6px 8px;
    font-size: .76rem;
  }
  .cartography-source-controls .cartography-source-group {
    width: auto;
    flex: 1 1 38%;
  }
  .cartography-location-controls {
    max-width: 62%;
  }
  .cartography-location-controls .battue-location-button,
  .cartography-location-controls .cartography-share-position-button {
    min-height: 38px;
    padding: 6px 7px;
    font-size: .72rem;
  }
  .cartography-location-controls .app-icon {
    width: 17px;
    height: 17px;
  }
}
@media (max-width: 430px) {
  .cartography-source-controls {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: stretch;
    padding: 5px;
  }
  .cartography-source-controls .cartography-source-title {
    display: none;
  }
  .cartography-source-controls .cartography-source-group {
    width: 100%;
  }
  .cartography-location-controls {
    top: 11px;
    right: 10px;
    left: calc(45% + 2px);
    max-width: none;
    gap: 4px;
  }
  .cartography-location-controls .battue-location-button,
  .cartography-location-controls .cartography-share-position-button {
    flex: 1 1 0;
    min-height: 36px;
    padding: 5px 4px;
    gap: 4px;
    font-size: .64rem;
  }
  .cartography-location-controls .app-icon {
    width: 15px;
    height: 15px;
  }
}
/* COMMANDES-CARTOGRAPHIE-INVERSEES-V59-END */

/* HISTORIQUE-SAISONNIER-LECTURE-SEULE-V59-START */
.harvest-current-season {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .86rem;
}
.harvest-current-season strong {
  color: var(--forest);
}
.history-heading p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
}
.history-season-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 15px 18px;
}
.history-season-toolbar form {
  margin: 0;
}
.history-season-toolbar label {
  min-width: 245px;
}
.history-season-period {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.history-season-period strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.08rem;
}
.history-season-period span {
  color: var(--muted);
  font-size: .82rem;
}
.history-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: #eaf2e6;
  font-size: .78rem;
  font-weight: 850;
}
.history-battue-list {
  display: grid;
  gap: 8px;
}
.history-battue-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.history-battue-row:hover {
  border-color: #9ab094;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(42, 65, 40, .09);
}
.history-battue-date {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 750;
}
.history-battue-main {
  min-width: 0;
}
.history-battue-main strong,
.history-battue-main small {
  display: block;
}
.history-battue-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .78rem;
}
.history-row-arrow {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.history-harvest-stats {
  margin-top: 18px;
}
.history-harvest-row .harvest-compact-details {
  background: #fbfaf6;
}
.history-detail-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.history-detail-stat {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #cbdcc6;
  border-radius: 13px;
  background: #f1f7ed;
}
.history-detail-stat span {
  color: #53654f;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.history-detail-stat strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.55rem;
}
.history-detail-facts {
  display: grid;
  gap: 8px;
}
.history-detail-facts span {
  padding: 9px 11px;
  border-radius: 9px;
  background: #f7f3e9;
}
.history-registration-list,
.history-battue-harvest-list {
  display: grid;
  gap: 7px;
}
.history-registration-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) repeat(3, auto);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.history-registration-name {
  min-width: 0;
}
.history-registration-name strong,
.history-registration-name small {
  display: block;
}
.history-registration-name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .74rem;
}
.history-registration-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #4e5749;
  background: #eef1e9;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.history-battue-harvest-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(130px, .8fr) minmax(180px, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.history-battue-harvest-row strong,
.history-battue-harvest-row small {
  display: block;
}
.history-battue-harvest-row small {
  color: var(--muted);
  font-size: .76rem;
}
@media (max-width: 820px) {
  .history-season-toolbar {
    align-items: stretch;
    padding: 12px;
  }
  .history-season-toolbar label {
    min-width: 0;
  }
  .history-detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .history-registration-row {
    grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  }
}
@media (max-width: 620px) {
  .history-season-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .history-season-period {
    align-items: flex-start;
    text-align: left;
  }
  .history-battue-row {
    grid-template-columns: minmax(0, 1fr) auto 20px;
    gap: 8px;
    padding: 10px;
  }
  .history-battue-date {
    grid-column: 1;
    font-size: .9rem;
  }
  .history-battue-main {
    grid-column: 1;
  }
  .history-battue-row .status-pill {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .history-row-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .history-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .history-registration-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .history-registration-name {
    grid-column: 1 / -1;
  }
  .history-registration-tag {
    white-space: normal;
    text-align: center;
  }
  .history-battue-harvest-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
@media (max-width: 390px) {
  .mobile-bottom-nav > a,
  .mobile-bottom-nav button {
    font-size: .50rem;
  }
  .mobile-nav-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }
}
/* HISTORIQUE-SAISONNIER-LECTURE-SEULE-V59-END */

/* ADMINISTRATION-GENERALE-V60-START */
.platform-access-link { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); text-align:center; font-size:.88rem; }
.platform-access-link a { font-weight:750; }
.platform-body { background:linear-gradient(180deg,#e8eee7 0,#f7f4ee 260px,#f7f4ee 100%); }
.platform-header { background:rgba(30,65,39,.98); }
.platform-auth-layout { min-height:calc(100vh - 90px); }
.platform-login-card { max-width:540px; width:100%; justify-self:center; }
.platform-page-heading h1 { max-width:900px; }
.platform-layout { display:grid; grid-template-columns:minmax(310px,.8fr) minmax(0,1.5fr); gap:18px; align-items:start; }
.platform-create-card { position:sticky; top:92px; }
.platform-create-form { display:grid; gap:13px; }
.platform-create-form hr { width:100%; border:0; border-top:1px solid var(--line); margin:3px 0; }
.platform-create-form h3 { margin:0; }
.check-line { flex-direction:row; align-items:center; gap:9px; }
.check-line input { width:auto; min-height:0; }
.info-box { border:1px solid #bfd3bd; background:#edf5eb; color:#2b4d2e; border-radius:12px; padding:13px 15px; }
.info-box p { margin:.35rem 0 0; }
.compact-info-box { font-size:.9rem; }
.section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; }
.section-heading h2 { margin:.1rem 0 0; }
.platform-hunt-list { display:grid; gap:13px; }
.platform-hunt-card { border:1px solid var(--line); border-left:6px solid var(--forest); border-radius:14px; padding:15px; background:#fff; }
.platform-hunt-card.status-blocked { border-left-color:var(--danger); background:#fffafa; }
.platform-hunt-card.status-expired { border-left-color:var(--warning); background:#fffaf0; }
.platform-hunt-title { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.platform-hunt-title h3 { margin:0 0 3px; }
.platform-hunt-title p { margin:0; color:var(--muted); }
.status-pill.status-active { background:#deefdd; color:#29542d; }
.status-pill.status-blocked { background:#f4d9d6; color:#812f28; }
.status-pill.status-expired { background:#fff0cf; color:#74490d; }
.platform-stats-line { display:flex; flex-wrap:wrap; gap:8px 16px; margin:12px 0 8px; }
.platform-stats-line span { color:var(--muted); }
.small-text { font-size:.82rem; }
.platform-hunt-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:11px; }
.platform-hunt-actions form { margin:0; }
.button.danger-outline { color:var(--danger); border-color:var(--danger); background:#fff; }
.button.ghost { background:#f8f4eb; color:#4e493f; border-color:#cbbda8; }
.platform-validity-form { display:flex; align-items:end; gap:8px; margin-top:10px; padding-top:10px; border-top:1px dashed var(--line); }
.platform-validity-form label { flex:1; }
.platform-validity-form input { min-height:39px; }
.platform-audit-card { margin-top:18px; }
.platform-credential-card { margin-bottom:18px; border-color:#a8c99f; background:#eef7eb; }
.credential-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0; }
.credential-grid > div { padding:12px; border:1px solid #b9d1b6; border-radius:11px; background:#fff; }
.credential-grid span,.credential-grid strong { display:block; }
.credential-grid span { color:var(--muted); font-size:.78rem; margin-bottom:5px; }
.copy-value { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.04em; overflow-wrap:anywhere; }
.readonly-banner { margin-bottom:17px; padding:13px 16px; border:1px solid #d1bd83; border-radius:12px; background:#fff4d7; color:#65450d; }
.stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.stat-card { border:1px solid var(--line); border-radius:13px; background:#fff; padding:14px; box-shadow:var(--shadow); }
.stat-card span,.stat-card strong { display:block; }
.stat-card span { color:var(--muted); font-size:.82rem; }
.stat-card strong { margin-top:3px; font-size:1.7rem; color:var(--forest); }
.platform-detail-stats { grid-template-columns:repeat(6,minmax(0,1fr)); margin-bottom:18px; }
.platform-readonly-section { margin-top:15px; }
.platform-readonly-section details { margin:0; border-top:0; padding-top:0; }
.platform-readonly-section summary { padding:4px 0 12px; font-size:1.05rem; }
.platform-mobile-nav { justify-content:center; }
.platform-mobile-nav > a,.platform-mobile-nav > form { max-width:210px; }
@media (max-width:900px) {
  .platform-layout { grid-template-columns:1fr; }
  .platform-create-card { position:static; }
  .platform-detail-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .credential-grid,.stats-grid,.platform-detail-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .platform-hunt-title,.platform-validity-form { align-items:stretch; flex-direction:column; }
  .platform-hunt-actions .button,.platform-hunt-actions form,.platform-hunt-actions form button { width:100%; }
  .platform-auth-layout .auth-visual { display:none; }
  .platform-auth-layout { display:block; min-height:auto; }
}
/* ADMINISTRATION-GENERALE-V60-END */


/* ACCES-DECOUVERTE-V60R1R1-START */
.permanent-check { align-self:center; white-space:nowrap; }
.platform-validity-form .permanent-check { flex:0 0 auto; }
.platform-validity-form input:disabled,.platform-create-form input:disabled { opacity:.55; background:#ececec; cursor:not-allowed; }
.platform-discovery-card { margin-top:18px; }
.platform-discovery-create-form { display:grid; grid-template-columns:minmax(220px,1.4fr) minmax(150px,.5fr) auto; gap:12px; align-items:end; padding:14px; border:1px solid var(--line); border-radius:14px; background:#f8faf6; }
.platform-discovery-list { display:grid; gap:13px; margin-top:15px; }
.platform-discovery-item { border:1px solid var(--line); border-left:6px solid var(--forest); border-radius:14px; padding:15px; background:#fff; }
.platform-discovery-item.status-expired { border-left-color:var(--warning); background:#fffaf0; }
.platform-discovery-item.status-revoked { border-left-color:var(--danger); background:#fffafa; }
.platform-discovery-extension-form { display:flex; align-items:end; gap:9px; margin-top:10px; padding-top:10px; border-top:1px dashed var(--line); }
.platform-discovery-extension-form label { display:flex; gap:8px; align-items:center; }
.platform-discovery-extension-form select,.inline-duration-form select { min-height:39px; }
.inline-duration-form { display:flex; gap:6px; align-items:center; }
.discovery-credential-card { border-width:2px; }
.discovery-credential-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.sensitive-value { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.04em; }
@media (max-width:900px) {
  .platform-discovery-create-form { grid-template-columns:1fr 1fr; }
  .platform-discovery-create-form button { grid-column:1/-1; }
  .discovery-credential-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .platform-discovery-create-form { grid-template-columns:1fr; }
  .platform-discovery-create-form button { grid-column:auto; width:100%; }
  .platform-discovery-extension-form,.inline-duration-form { align-items:stretch; flex-direction:column; }
  .platform-discovery-extension-form label { align-items:stretch; flex-direction:column; }
  .discovery-credential-grid { grid-template-columns:1fr; }
}
.status-pill.status-revoked { background:#f4d9d6; color:#812f28; }
/* ACCES-DECOUVERTE-V60R1R1-END */

/* ADMINISTRATION-GENERALE-QUATRE-ONGLETS-V60R3-START */
.platform-settings-layout {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);
  gap:18px;
  align-items:start;
}
.platform-mail-form { gap:14px; }
.platform-mail-test-card { position:sticky; top:92px; }
.platform-audit-card table td:nth-child(2) { min-width:420px; }
.platform-audit-card table td:first-child { white-space:nowrap; }
.platform-audit-card table td:last-child { white-space:nowrap; }
@media (max-width:980px) {
  .platform-settings-layout { grid-template-columns:1fr; }
  .platform-mail-test-card { position:static; }
}
@media (max-width:820px) {
  .platform-mobile-nav > a,.platform-mobile-nav > form { max-width:none; }
  .platform-mobile-nav > a,.platform-mobile-nav button { font-size:clamp(.48rem,2.2vw,.66rem); padding-left:1px; padding-right:1px; }
  .platform-mobile-nav .mobile-nav-icon { width:21px; height:21px; flex-basis:21px; }
  .platform-audit-card table td:nth-child(2) { min-width:300px; }
}
/* ADMINISTRATION-GENERALE-QUATRE-ONGLETS-V60R3-END */
