@charset "utf-8";
:root {
  --green: #2c5f2d;
  --green-dark: #234730;
  --green-accent: #97bc62;
  --ink: #22271f;
  --ink-soft: #545a4f;
  --muted: #6b7269;
  --muted-2: #8a9187;
  --muted-3: #9aa39a;
  --panel: #f4f6f1;
  --panel-2: #eef3ec;
  --border: #e3e8e3;
  --border-2: #e6e8e5;
  --row-border: #f0f1ee;
  --white: #fff;
  --shadow: 0 1px 3px rgba(35, 71, 48, 0.06), 0 8px 28px rgba(35, 71, 48, 0.05);
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
/* Pas de height:100% : l'outil est en iframe auto-dimensionnée (voir syncFrameHeight) */
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: transparent; /* iframe : laisse voir le fond du site hôte */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app { max-width: 1160px; margin: 0 auto; padding: 20px 24px 40px; }

/* Header (app bar) */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-2); padding-bottom: 14px; margin-bottom: 20px;
}
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-accent); }
h1 { font-family: var(--sans); font-weight: 700; font-size: 24px; color: var(--green-dark); line-height: 1.1; margin: 3px 0 0; letter-spacing: -.01em; }
.brand-logo { height: 38px; width: auto; display: block; mix-blend-mode: multiply; }

/* Écran accueil — carte centrée (iframe : hauteur = contenu, pas 100vh) */
.home-screen { display: flex; flex-direction: column; align-items: center; padding: 34px 4px; }
.convert-form { width: 100%; max-width: 560px; }
.file-input-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Carte d'upload à bord pointillé (label cliquable, input caché mais focusable) */
.upload-card {
  position: relative; display: block; text-align: center; background: var(--white);
  border: 2px dashed #c4d2c0; border-radius: 26px; padding: 44px 40px 36px; box-shadow: var(--shadow);
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.upload-card:hover { border-color: var(--green-accent); background: #fbfdfa; box-shadow: 0 12px 34px rgba(35, 71, 48, .1); }
.uc-start { display: block; cursor: pointer; }
/* Drag : la CARTE réagit (voile vert franc + liseré pointillé blanc, épouse les coins) — pas d'overlay plein écran */
.upload-card.drag { border-style: solid; border-color: var(--green); box-shadow: 0 16px 40px rgba(35, 71, 48, .2); transform: scale(1.01); }
.uc-drop {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(44, 95, 45, 0.94); /* vert franc quasi opaque → nettement visible */
}
.uc-drop::after {
  content: ""; position: absolute; inset: 12px; border: 2px dashed rgba(255, 255, 255, 0.5); border-radius: 18px; pointer-events: none;
}
.upload-card.drag .uc-drop { display: flex; }
.uc-drop-ic { position: relative; width: 48px; height: 48px; color: #fff; }
.uc-drop-text { position: relative; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.uc-icon { width: 92px; height: 92px; margin: 4px auto 22px; border-radius: 50%; background: var(--panel-2); color: var(--green); font-size: 34px; font-weight: 700; display: grid; place-items: center; }
.uc-title { font-family: var(--sans); font-size: 30px; font-weight: 800; color: var(--green-dark); letter-spacing: -.02em; line-height: 1.12; }
.uc-sub { font-size: 15.5px; color: var(--muted); max-width: 400px; margin: 12px auto 24px; line-height: 1.5; }
.uc-btn { display: inline-block; background: var(--green); color: var(--white); font-weight: 700; font-size: 15.5px; padding: 15px 34px; border-radius: 14px; box-shadow: var(--shadow); transition: background .15s, transform .05s; }
.upload-card:hover .uc-btn { background: var(--green-dark); }
.uc-hint { display: block; font-size: 14px; color: var(--muted-3); margin-top: 16px; }
.uc-divider { border: 0; border-top: 1px solid var(--border); margin: 26px 0 20px; }
.uc-formats-title { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-3); }
.uc-formats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-top: 14px; }
.uc-format { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); }
.uc-tag { font-weight: 700; font-size: 12px; color: var(--green-dark); background: var(--panel-2); padding: 5px 9px; border-radius: 7px; }

/* État « fichier chargé avec succès » (bascule JS via .has-file) */
.uc-loaded { display: none; }
.convert-form.has-file .uc-start { display: none; }
.convert-form.has-file .uc-loaded { display: block; }
.uc-check { width: 92px; height: 92px; margin: 4px auto 22px; border-radius: 50%; background: #e4f0e2; color: var(--green); font-size: 42px; display: grid; place-items: center; }
.uc-file { display: inline-flex; align-items: center; gap: 11px; max-width: 100%; margin-top: 20px; padding: 13px 20px; background: var(--panel); border-radius: 13px; font-weight: 700; font-size: 15.5px; color: var(--green-dark); }
.uc-file-ic { width: 20px; height: 20px; color: var(--muted-2); flex: none; }
.uc-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-format-ok { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 14.5px; color: var(--green); font-weight: 600; }

/* Analyser + « changer » vivent DANS la carte (état chargé) ; Turnstile sous la carte */
.uc-analyze { margin-top: 22px; }
.uc-change { display: block; margin: 14px auto 0; background: none; border: 0; font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.turnstile-row { display: flex; justify-content: center; margin-top: 20px; }
/* Réserve la place du widget Turnstile (300×65) → pas de layout shift au chargement */
/* interaction-only : le widget est invisible la plupart du temps → on NE réserve PAS 65px
   (sinon un vide gris resterait). Il n'apparaît (et pousse un peu le contenu) que si un
   challenge est nécessaire — cas rare et acceptable. */
.cf-turnstile { width: 300px; max-width: 100%; line-height: 0; }
.cf-turnstile iframe { display: block; }
.status { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; }
.status.error { color: #b0413e; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: var(--white);
  border: 0; border-radius: 12px; padding: 12px 26px; font-family: var(--sans); font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 6px 18px rgba(44,95,45,.22); transition: filter .15s, transform .05s; text-decoration: none;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 9px 14px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; text-decoration: none;
}

/* Results head */
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.file-badge { font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--green-dark); }
.file-badge small { display: block; font-size: 12px; color: var(--muted-2); font-weight: 500; margin-top: 2px; }

/* Stat tiles */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.section-hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
/* Tuiles cliquables : compteur + toggle « afficher / masquer » (œil). « on » = catégorie incluse ;
   décochée = retirée de la liste ET de l'export. L'œil barré rend le toggle explicite. */
.tile {
  position: relative; width: 100%; text-align: left; cursor: pointer; font-family: var(--sans);
  border: 1.5px solid var(--green); border-radius: 12px; padding: 13px 44px 13px 18px; background: var(--white);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tile:hover { box-shadow: 0 4px 14px rgba(44, 95, 45, .1); }
.tile-eye { position: absolute; top: 11px; right: 12px; width: 19px; height: 19px; color: var(--green); }
.tile-eye-slash { display: none; }
.tile-label { font-size: 12px; color: var(--green-dark); font-weight: 600; }
.tile-value { font-family: var(--sans); font-size: 30px; font-weight: 700; color: var(--green); line-height: 1.15; letter-spacing: -.02em; }
/* état masqué : en retrait (fond panel + gris lisible) + œil barré */
.tile:not(.on) { border-color: var(--border); background: var(--panel); }
.tile:not(.on) .tile-eye { color: var(--muted-2); }
.tile:not(.on) .tile-eye-slash { display: inline; }
.tile:not(.on) .tile-label { color: var(--muted); font-weight: 500; }
.tile:not(.on) .tile-value { color: var(--muted-2); }

/* Sélection */
.table-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; }
.select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  user-select: none;
}
.toolbar-hint { font-size: 13px; color: var(--muted); }
/* Table */
.table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); }
.table-head, .row {
  display: grid; grid-template-columns: 42px 1.1fr 1.35fr 120px 150px; align-items: center; padding: 10px 18px; gap: 8px;
}
.table-head {
  background: var(--panel); border-bottom: 1px solid var(--border-2); font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.ta-right { text-align: right; }
.row { border-bottom: 1px solid var(--row-border); }
.row:last-child { border-bottom: 0; }
.row.off { background: #fcfcfb; }
/* Repère : la DERNIÈRE ligne modifiée garde ce fond, jusqu'à la modification d'une autre
   (marqueur « où j'en suis » persistant — pas de flash qui s'efface) */
.row.last-edited { background: #edf5e8; }
/* Checkbox custom (coins arrondis + check centré par grid, pas de position absolue fragile) */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #c7ccc6;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  flex: none;
  display: grid;
  place-content: center;
  transition: background 0.12s, border-color 0.12s;
}
input[type="checkbox"]:hover { border-color: var(--green-accent); }
input[type="checkbox"]:checked,
input[type="checkbox"]:indeterminate {
  background: var(--green);
  border-color: var(--green);
}
/* ✓ dessiné par bordures : centré par la grille, remonté d'1px (recalage optique après rotation) */
input[type="checkbox"]:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
input[type="checkbox"]:indeterminate::after {
  content: "";
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--white);
}
.cell-name { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
/* Nom du spot : éditable inline (bord au survol/focus, comme les coords) */
.spot-name-in {
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: #2b302a;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  padding: 1px 5px; margin-left: -5px; width: 100%; min-width: 0;
}
.spot-name-in:hover { border-color: var(--border); }
.spot-name-in:focus-visible {
  outline: none; background: var(--white); border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(44, 95, 45, 0.15);
}
/* Coordonnées importées : visibles sous le nom, éditables inline (bord au survol/focus) */
.spot-coords { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted-2); }
.coord-pin { font-size: 11px; opacity: 0.85; }
.coord-sep { color: var(--muted-3); }
.coord-in {
  font-family: var(--sans); font-size: 12px; color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 5px; padding: 1px 4px; width: 8ch;
}
.coord-in:hover { border-color: var(--border); }
.coord-in:focus-visible {
  outline: none; color: var(--ink); background: var(--white); border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(44, 95, 45, 0.15);
}
.spot-coords.missing .coord-in { border-color: #e7cccc; }
.cell-detection { font-size: 13.5px; font-weight: 400; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
/* Détection cliquable (type animal/poi) : rouvre le picker pour changer la référence.
   Crayon SVG (masque teinté par background-color) TOUJOURS visible : gris discret, vert au survol. */
.cell-detection.editable { cursor: pointer; border-radius: 8px; }
.cell-detection.editable::after {
  content: ""; width: 13px; height: 13px; flex: none;
  background-color: var(--muted-2); transition: background-color 0.12s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cell-detection.editable:hover { background: var(--panel-2); }
.cell-detection.editable:hover::after { background-color: var(--green); }
.cell-detection .sci { color: var(--green-dark); font-style: italic; }
.cell-detection.empty { color: var(--muted-3); font-style: italic; }
.thumb { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; flex: none; background: var(--panel); }
/* Badge de TYPE dans la colonne Détection : coloré, SANS fond, avec un petit repère carré */
.type-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; flex: none; }
.type-badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; flex: none; }
.type-badge.animal { color: var(--green); }
.type-badge.poi { color: #3a63a8; }
.type-badge.camera { color: #ba7517; }
.type-badge.urban { color: var(--muted-2); }

/* Badges */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.badge.certain { background: #e4f0e2; color: var(--green); }
.badge.probable { background: #f5ead8; color: #ba7517; }
.badge.none { background: #f7e3e3; color: #b0413e; }
.badge.excluded { background: #eeefec; color: var(--muted-2); }
/* Requalifié à la main : l'utilisateur a tranché → bleu « validé », distinct du vert IA */
.badge.manual { background: #e3ecf7; color: #3a63a8; }
.type-select {
  justify-self: end; font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  border: 1px solid #dfe3dd; border-radius: 8px; padding: 6px 8px; background: var(--white); cursor: pointer;
}

.warn-coords { color: #b0413e; font-weight: 700; }

/* Modale de requalification */
.modal { position: fixed; inset: 0; z-index: 200; }
.modal:not([hidden]) { display: block; animation: overlayFade 0.12s ease-out; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14, 22, 14, 0.42); backdrop-filter: blur(2px); }
/* Carte ANCRÉE à la ligne cliquée (top posé en JS) : en iframe auto-hauteur, un centrage
   viserait le milieu du document — hors de l'écran de l'utilisateur. */
.modal-card {
  position: absolute; left: 50%; transform: translateX(-50%); top: 24px;
  z-index: 1; width: 92%; max-width: 460px; background: var(--white);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28); padding: 22px 22px 18px;
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--green-dark); margin: 0 0 2px; }
.modal-spot { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.modal-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.modal-field label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.edit-input {
  font-family: var(--sans); font-size: 13.5px; color: var(--ink); background: var(--white);
  border: 1px solid #dfe3dd; border-radius: 8px; padding: 9px 11px; width: 100%;
}
.edit-input:focus-visible {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--green);
}

/* Picker à vignettes (espèces / types de lieu) — remplace le <select>/<datalist> natif */
.picker-list {
  /* hauteur FIXE (pas max-height) : la carte de la modale garde une taille stable pendant
     la frappe → jamais de croissance qui déborde sous l'écran */
  list-style: none; margin: 8px 0 0; padding: 4px; height: 240px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 10px; background: var(--white);
  position: relative; /* offsetParent des options → offsetTop relatif à la liste (scroll interne) */
}
.picker-opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.picker-opt:hover { background: var(--panel-2); }
.picker-opt.sel { background: #e4f0e2; }
.opt-thumb {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 7px; overflow: hidden;
  background: var(--panel-2); display: grid; place-items: center;
}
.opt-ph-icon { width: 18px; height: 18px; color: var(--muted-3); }
.opt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opt-label { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); }
.opt-label .sci { color: var(--green-dark); font-style: italic; }
.opt-check { flex: none; color: var(--green); font-weight: 700; }
.picker-more { padding: 9px 8px; font-size: 12px; color: var(--muted-3); text-align: center; }
.picker-required { display: none; margin-top: 7px; font-size: 12px; font-weight: 600; color: #b0413e; }
.picker-required.show { display: block; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; filter: none; }

/* Footer */
.results-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 12px; flex-wrap: wrap; }
.selection-count { font-size: 15px; font-weight: 400; color: #40513f; }
.selection-count b { color: var(--green-dark); font-weight: 700; }

/* Focus clavier accessible — anneau via box-shadow avec offset (épouse les coins arrondis) */
:where(a, button, select, input[type="checkbox"], [tabindex]):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--green);
}
.btn-primary:focus-visible {
  box-shadow: 0 6px 18px rgba(44, 95, 45, 0.22), 0 0 0 2px var(--white), 0 0 0 4px var(--green);
}
.upload-card:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.2);
}
.upload-card:focus-within .uc-btn {
  background: var(--green-dark);
}

/* Messages d'erreur vides : ne prennent pas de place */
.status:empty { display: none; }

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Overlay de chargement — loader "objectif photo" */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(238, 241, 236, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.loading-overlay.show { display: flex; animation: overlayFade 0.15s ease-out; }
.loading-content { text-align: center; }
/* Loader « bague de mise au point » — plat, monochrome, « instrument de précision »
   (Stripe/Linear), à l'opposé de l'orbe brillant rejeté : aucun dégradé, reflet, glow ni 3D.
   Anneau gradué fixe + un seul arc de marque qui tourne (animation transform-only). */
.ld { display: inline-flex; line-height: 0; }
.ld-svg { width: 84px; height: 84px; display: block; overflow: visible; }
/* Piste de base : anneau presque imperceptible sur lequel « court » l'arc */
.ld-track { fill: none; stroke: var(--muted); stroke-width: 3; opacity: 0.16; }
/* Graduations = tirets radiaux ; dasharray calculé pour r=33 (C ≈ 207.345 → C/36 et C/4) */
.ld-scale { fill: none; }
.ld-scale--minor { stroke: var(--muted); stroke-width: 3; opacity: 0.28; stroke-dasharray: 1 4.7596; stroke-dashoffset: 0.5; }
.ld-scale--major { stroke: var(--muted); stroke-width: 5; opacity: 0.55; stroke-dasharray: 1.6 50.236; stroke-dashoffset: 0.8; }
/* Index de référence fixe au sommet : la marque qu'on « aligne » pour la MAP */
.ld-index { stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; opacity: 0.9; }
/* Arc de marque : SEULE touche de couleur, rotation posée façon bague qu'on ajuste */
.ld-arc {
  fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 35.34 134.31; transform-box: fill-box; transform-origin: center;
  animation: ldSpin 1.6s linear infinite;
}
@keyframes ldSpin { to { transform: rotate(360deg); } }
.loading-title { margin-top: 22px; font-size: 20px; font-weight: 700; color: var(--green-dark); }
.loading-step {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  min-height: 20px;
  transition: opacity 0.25s;
}
@media (prefers-reduced-motion: reduce) {
  /* On fige l'arc près du sommet : lecture volontaire et stable, sans mouvement */
  .ld-arc { animation: none; transform: rotate(-128deg); }
}

@media (max-width: 720px) {
  .app { padding: 16px 16px 32px; }
  .home-screen { padding: 22px 2px; }
  .upload-card { padding: 34px 22px 28px; border-radius: 22px; }
  .uc-title { font-size: 25px; }
  .uc-sub { font-size: 14.5px; }
  .uc-icon, .uc-check { width: 78px; height: 78px; }
  .results-head { flex-wrap: wrap; }
  .file-badge { font-size: 18px; }

  /* Tuiles : 2 colonnes */
  .stat-tiles { grid-template-columns: 1fr 1fr; }

  /* Table → lignes empilées (carte) */
  .table-head { display: none; }
  .row {
    grid-template-columns: 28px 1fr;
    row-gap: 8px;
    padding: 12px 14px;
  }
  .row > input[type="checkbox"] { grid-column: 1; grid-row: 1; }
  .cell-name { grid-column: 2; }
  .cell-detection { grid-column: 2; }
  .cell-confidence { grid-column: 2; justify-self: start; }
  .type-select { grid-column: 2; justify-self: stretch; width: 100%; }
}

@media (max-width: 380px) {
  .app { padding: 14px 12px 36px; }
  .stat-tiles { grid-template-columns: 1fr; }
  .cf-turnstile { transform: scale(0.92); transform-origin: center; }
}
