/* =========================================
   1. CORE & VARIABLES (MODERN 2026 THEME)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#f8f9fc;
  --card:#ffffff;
  --txt:#0f172a;
  --muted:#64748b;

  --pri:#3b82f6;
  --pri-hover:#2563eb;
  --pri-soft:#eff6ff;

  --ok:#10b981;
  --warn:#f59e0b;
  --bad:#ef4444;

  --border:#e2e8f0;
  --ring:rgba(59,130,246,.25);
  --radius:16px;

  --shadow-sm:0 1px 3px rgba(0,0,0,.05);
  --shadow-md:0 4px 6px -1px rgba(0,0,0,.05),0 2px 4px -1px rgba(0,0,0,.03);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,.05),0 4px 6px -2px rgba(0,0,0,.025);
  --shadow-float:0 20px 25px -5px rgba(0,0,0,.05),0 10px 10px -5px rgba(0,0,0,.02);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--txt);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  font-size:14px;
}

h1,h2,h3,h4,h5,h6{
  margin:0 0 10px 0;
  font-weight:700;
  letter-spacing:-0.025em;
}

/* =========================================
   2. LAYOUT & CONTAINERS
   ========================================= */
.container{
  max-width:1200px;
  margin:24px auto;
  padding:0 20px;
}

.pad{ padding:20px; }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease;
  overflow:hidden;
}
.card:hover{ box-shadow:var(--shadow-md); }

.hrow{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:16px;
}

.p{ color:var(--muted); font-size:14px; margin:0; }
.small{ font-size:13px; color:var(--muted); font-weight:500; }

.grid{ display:grid; gap:20px; }
.grid.two{ grid-template-columns:repeat(2,minmax(0,1fr)); }

@media (max-width:820px){
  .container{ margin:16px auto; padding:0 16px; }
  .grid.two{ grid-template-columns:1fr; }
}

/* =========================================
   3. TOPBAR (GLASSMORPHISM)
   ========================================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(16px);
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid var(--border);
}

.topbar__inner{
  max-width:1480px;
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--txt);
}
.brand__logo{ height:32px; width:auto; object-fit:contain; }
.brand__name{ font-weight:800; font-size:16px; letter-spacing:-.01em; }

.nav{
  display:flex;
  align-items:center;
  gap:6px;
}
.nav a,.nav__link{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  padding:8px 14px;
  border-radius:10px;
  transition:all .2s;
  font-size:14px;
}
.nav a:hover,.nav__link:hover{
  background:var(--bg);
  color:var(--txt);
}

.user__btn{
  display:flex;
  align-items:center;
  gap:10px;
  background:transparent;
  border:1px solid var(--border);
  padding:6px 8px 6px 12px;
  border-radius:99px;
  cursor:pointer;
  transition:all .2s;
}
.user__btn:hover{ background:var(--bg); border-color:#cbd5e1; }

.avatar{
  width:32px; height:32px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--pri),#1e40af);
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:12px;
}
.user__meta{ text-align:left; margin-right:4px; }
.user__name{ font-weight:700; font-size:13px; display:block; line-height:1.1; }
.user__role{ font-size:11px; color:var(--muted); font-weight:500; }
.chev{ font-size:10px; color:var(--muted); opacity:.7; }

.user__menu{
  position:absolute; right:20px; top:70px;
  width:240px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-float);
  padding:8px;
  display:none;
  animation:slideDown .15s ease-out;
}
@keyframes slideDown{ from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:translateY(0);} }
.user__menu.is-open{ display:block; }

.menuitem{
  display:flex;
  align-items:center;
  padding:10px;
  border-radius:8px;
  color:var(--txt);
  text-decoration:none;
  font-weight:500;
  font-size:14px;
}
.menuitem:hover{ background:var(--bg); }
.menuitem--danger{ color:var(--bad); }
.menuitem--danger:hover{ background:#fef2f2; }

/* Burger (PC caché / Mobile visible) */
.topbar__burger{
  display:none;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:12px;
  background:transparent;
  cursor:pointer;
  z-index:100;
}
.burger{
  width:20px;
  height:2px;
  background:var(--txt);
  position:relative;
  border-radius:2px;
  display:block;
}
.burger::before,.burger::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background:var(--txt);
  border-radius:2px;
}
.burger::before{ top:-6px; }
.burger::after{ top:6px; }

/* =========================================
   4. FORMS & INPUTS
   ========================================= */
.field{
  margin-bottom:24px;
  padding-bottom:24px;
  border-bottom:1px dashed var(--border);
}
.field:last-child{ border-bottom:none; padding-bottom:0; margin-bottom:0; }

.field > label{
  font-size:13px;
  font-weight:700;
  color:var(--txt);
  display:block;
  margin-bottom:10px;
}

.field input,.field select,.field textarea{
  width:100%;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  font-size:14px;
  color:var(--txt);
  outline:none;
  transition:all .2s;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--pri);
  box-shadow:0 0 0 4px var(--ring);
}

.field select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  cursor:pointer;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3Cpolyline points='6 9 12 15 18 9'%3e%3C/polyline%3e%3C/svg%3e");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:16px;
  padding-right:40px;
}
.field select:hover{ background-color:#f8fafc; border-color:#cbd5e1; }

/* =========================================
   5. BUTTONS & BADGES
   ========================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  border:1px solid var(--border);
  background:#fff;
  color:var(--txt);
  transition:all .2s;
  font-size:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.btn:hover{ border-color:#cbd5e1; background:#f8fafc; transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }

.btn.primary{
  background:var(--pri);
  border-color:var(--pri);
  color:#fff;
  box-shadow:0 4px 12px rgba(37,99,235,.2);
}
.btn.primary:hover{
  background:var(--pri-hover);
  border-color:var(--pri-hover);
  box-shadow:0 6px 16px rgba(37,99,235,.3);
}
.btn.danger{ color:var(--bad); border-color:transparent; background:#fef2f2; }
.btn.danger:hover{ background:#fee2e2; border-color:#fecaca; }

.chip,.badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:99px;
  font-size:12px;
  font-weight:600;
  line-height:1;
}
.badge.ok{ background:#dcfce7; color:#166534; border:1px solid #bbf7d0; }
.badge.warn{ background:#fef3c7; color:#92400e; border:1px solid #fde68a; }
.badge.draft{ background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; }

/* =========================================
   6. DASHBOARD
   ========================================= */
.dash h2{ font-size:24px; color:var(--txt); margin-bottom:4px; }

.dash__head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:24px;
}
.dash__actions{ display:flex; gap:10px; flex-wrap:wrap; }

.dash__kpis .card{
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  min-height:140px;
}
.dash__kpis .card b,
.dash__kpis .card strong,
.dash__kpis .card .big-number{
  font-size:42px;
  font-weight:800;
  line-height:1.1;
  display:block;
  margin-bottom:4px;
  background:linear-gradient(135deg,var(--txt) 0%, #475569 100%);
  -webkit-text-fill-color:transparent;
  letter-spacing:-1px;
}
.dash__kpis .card .p{ font-size:14px; font-weight:500; }
.dash__kpis .card .small{
  display:block;
  margin-top:auto;
  padding-top:10px;
  border-top:1px dashed var(--border);
}

/* =========================================
   7. TABLES
   ========================================= */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.table th{
  background:#f8fafc;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
  font-weight:600;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
  text-align:left;
}
.table td{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
  font-size:14px;
}
.table tr:last-child td{ border-bottom:none; }
.table tr:hover td{ background:#fafafa; }

/* =========================================
   8. SECTION TITLES (plus visible)
   ========================================= */
/* Applique à ton "Armoire fermée / accès sécurisé" si c'est dans un label */
.field > label{
  font-size:14px;          /* un peu plus grand */
  font-weight:800;         /* plus visible */
  letter-spacing:-.01em;
}
.field > label::before{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--pri);
  margin-right:10px;
  transform:translateY(-1px);
}

/* Si tu as un h3 dans la carte ("Baies / Racks") */
.card h3,.section-title{
  font-size:18px;
  font-weight:800;
  color:var(--txt);
  margin:0 0 16px 0;
  display:flex;
  align-items:center;
  gap:10px;
}
.card h3::before,.section-title::before{
  content:"";
  display:block;
  width:4px;
  height:24px;
  background:var(--pri);
  border-radius:4px;
}

/* =========================================
   9. RADIO CHIPS (FIX SELECTION VISIBLE)
   ========================================= */
.radio5{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

/* On ne fait PAS display:none (sinon focus/checked parfois invisibles) */
.radio5 input[type="radio"]{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  pointer-events:none;
}

/* Style unique du chip (supporte 2 structures HTML) */
.radio5 label{
  flex:1;
  min-width:110px;
  text-align:center;
  padding:10px 14px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  cursor:pointer;
  user-select:none;
  transition:transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.radio5 label:hover{
  background:#f8fafc;
  border-color:#cbd5e1;
  transform:translateY(-1px);
}

/* Cas A: <input> + <label> */
.radio5 input[type="radio"]:checked + label{
  background:var(--pri);
  color:#fff;
  border-color:var(--pri);
  box-shadow:0 6px 16px rgba(37,99,235,.25);
}
.radio5 input[type="radio"]:focus-visible + label{
  border-color:var(--pri);
  box-shadow:0 0 0 4px var(--ring), 0 6px 16px rgba(37,99,235,.18);
}

/* Cas B: <label><input> Texte</label> */
.radio5 label:has(> input[type="radio"]:checked){
  background:var(--pri);
  color:#fff;
  border-color:var(--pri);
  box-shadow:0 6px 16px rgba(37,99,235,.25);
}
.radio5 label:has(> input[type="radio"]:focus-visible){
  border-color:var(--pri);
  box-shadow:0 0 0 4px var(--ring), 0 6px 16px rgba(37,99,235,.18);
}

/* Petit “check” visuel optionnel (si tu veux) */
/*
.radio5 label:has(> input[type="radio"]:checked)::after{
  content:"✓";
  margin-left:10px;
  font-weight:900;
}
*/

@media (max-width:600px){
  .radio5{
    display:grid;
    grid-template-columns:repeat(2,1fr);
  }
  .radio5 label{
    font-size:14px;
    padding:12px 10px;
  }
  .radio5 label:last-child:nth-child(odd){
    grid-column:span 2;
  }
}

/* =========================================
   10. RESPONSIVE MOBILE TWEAKS
   ========================================= */
@media (max-width:820px){
  .brand__name{ display:none; }
  .topbar__burger{ display:flex; }
  .nav{
    position:fixed;
    left:16px; right:16px; top:72px;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    padding:16px;
    border-radius:16px;
    box-shadow:var(--shadow-float);
    border:1px solid var(--border);
    display:none;
  }
  .nav.is-open{ display:flex; }
  .user__btn{ display:none; }

  .dash__head{ flex-direction:column; align-items:stretch; }
  .dash__actions .field{ width:100%; }
  .dash__kpis.grid.two{ grid-template-columns:1fr; }

  .table thead{ display:none; }
  .table,.table tbody,.table tr,.table td{ display:block; width:100%; }
  .table tr{
    border:1px solid var(--border);
    border-radius:12px;
    margin-bottom:16px;
    padding:12px;
    box-shadow:var(--shadow-sm);
    background:#fff;
  }
  .table td{
    padding:8px 0;
    border:none;
    display:flex;
    justify-content:space-between;
    text-align:right;
  }
  .table td::before{
    content:attr(data-label);
    font-weight:600;
    color:var(--muted);
    text-align:left;
    margin-right:12px;
  }
}

/* =========================================
   11. UTILITIES
   ========================================= */
.hide{ display:none !important; }
.auth-wrap{ min-height:90vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.auth-card{ width:100%; max-width:420px; }
/* === Checklist : question lisible MAIS secondaire à la section === */
.table--checklist td:first-child{
  text-align:left !important;
  font-weight:700;        /* ↓ moins fort */
  font-size:14px;         /* ↓ taille normale */
  color:var(--txt);
  opacity:.85;            /* ↓ visuellement secondaire */
  justify-content:flex-start !important; /* neutralise space-between */
}
/* ================================
   INPUT RESET PASSWORD (UI FIX)
   ================================ */

/* conteneur (si input + bouton Reset côte à côte) */
.user-reset,
.reset-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* champ mot de passe */
input[type="password"],
input[name*="password"],
input[placeholder*="mdp"]{
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--txt);
  transition: all .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* focus propre */
input[type="password"]:focus,
input[name*="password"]:focus{
  outline: none;
  border-color: var(--pri);
  box-shadow: 0 0 0 4px var(--ring);
}

/* placeholder plus clean */
input::placeholder{
  color: var(--muted);
  opacity: .8;
}

/* bouton reset à côté */
button.reset,
.btn.reset{
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}

/* mobile : input full width */
@media (max-width:820px){
  .user-reset,
  .reset-row{
    flex-direction: column;
    align-items: stretch;
  }

  input[type="password"]{
    width: 100%;
  }
}
/* ===== Filters actions (Filtrer / Reset) ===== */
.form-actions{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-top:2px;
}
.form-actions .btn{
  min-width:120px;
  height:42px;              /* même hauteur */
  padding:10px 18px;        /* même padding */
  border-radius:12px;
}
@media (max-width:820px){
  .form-actions{
    justify-content:stretch;
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  .form-actions .btn{ width:100%; }
}

/* ===== Input locked state (Enseigne imposée) ===== */
.is-locked{
  background:#f8fafc !important;
  border-color:#e2e8f0 !important;
  cursor:not-allowed !important;
}

/* ===== Actions buttons in table ===== */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
}
.actions__form{
  display:inline;
  margin:0;
}
.actions__form button{ width:auto; }

@media (max-width:820px){
  .actions{
    justify-content:flex-start;
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:10px;
  }
  .actions .btn{ width:100%; justify-content:center; }
  .actions__form{ display:block; }
  .actions__form .btn{ width:100%; }
}
/* admin/magasins: actions alignées + responsive */
.actions-row .btn { white-space: nowrap; }
@media (max-width: 820px){
  .mag-row { flex-direction: column; align-items: stretch !important; }
  .mag-row select, .mag-row input, .mag-row .btn { width: 100%; }
  .actions-row { flex-direction: column; }
  .actions-row form, .actions-row .btn { width: 100%; }
}
/* ===== Admin Magasins : champs édition enseigne + nom ===== */
.mag-row select,
.mag-row input[type="text"],
.mag-row input[name="name"] {
  appearance: none;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}

/* Select : flèche custom + alignement */
.mag-row select {
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 12px) 17px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

/* Focus propre (select + input) */
.mag-row select:focus,
.mag-row input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* Placeholder / texte secondaire */
.mag-row input::placeholder {
  color: #9ca3af;
}

/* Mobile : largeur pleine */
@media (max-width: 820px) {
  .mag-row select,
  .mag-row input {
    width: 100%;
  }
}
/* ===== Admin Magasins: filtres + pager + actions ===== */
.filters .grid.two { align-items: end; }

.filters__actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
}
.filters__actions .btn{
  min-width:120px;
}

.pager{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}
.pager .btn[aria-disabled="true"]{
  opacity:.45;
  pointer-events:none;
}

.actions-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
@media (max-width: 820px){
  .filters__actions{ justify-content:stretch; }
  .filters__actions .btn{ flex:1; }
  .pager{ justify-content:stretch; }
  .pager .btn{ flex:1; }
}
/* =========================================================
   INLINE EDIT dans TABLE (même style que .field input)
   + FIX mobile (table cards)
   ========================================================= */

/* style inputs/select dans table */
.table .inline-edit input,
.table .inline-edit select{
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--txt);
  outline: none;
  transition: all .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  height: 42px;
}

.table .inline-edit input:focus,
.table .inline-edit select:focus{
  border-color: var(--pri);
  box-shadow: 0 0 0 4px var(--ring);
}

/* layout inline edit (desktop) */
.table .inline-edit{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.table .inline-edit select{ min-width: 260px; flex: 0 0 auto; }
.table .inline-edit input{ flex: 1 1 auto; min-width: 200px; }

/* bouton même hauteur / même look */
.table .inline-edit .btn{
  height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

/* --- FIX MOBILE: ton "table -> cards" casse les forms --- */
@media (max-width: 820px){
  /* si un td contient un inline-edit, on annule le mode flex du td */
  .table td:has(.inline-edit){
    display: block !important;
    text-align: left !important;
  }

  /* on masque le label auto "data-label" dans ces td-là */
  .table td:has(.inline-edit)::before{
    content: "" !important;
    display: none !important;
  }

  /* on empile proprement les champs */
  .table .inline-edit{
    flex-direction: column;
    align-items: stretch;
  }

  .table .inline-edit select,
  .table .inline-edit input,
  .table .inline-edit .btn{
    width: 100%;
    min-width: 0;
  }
}
/* FORCE same look for INPUT/SELECT everywhere (table/admin inline forms) */
:where(.field, .filters, .mag-row, .actions-row, .table) input,
:where(.field, .filters, .mag-row, .actions-row, .table) select,
:where(.field, .filters, .mag-row, .actions-row, .table) textarea{
  width:100%;
  box-sizing:border-box;
  display:block;

  height:44px !important;
  padding:10px 12px !important;

  border:1px solid var(--border) !important;
  border-radius:12px !important;

  background:var(--card) !important;   /* enlève le gris */
  color:var(--txt) !important;

  font:inherit !important;
  line-height:1.2 !important;

  outline:none !important;
  box-shadow:0 1px 2px rgba(0,0,0,.03) !important;

  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  appearance:none !important;
}

/* textarea: hauteur libre */
:where(.field, .filters, .mag-row, .actions-row, .table) textarea{
  height:auto !important;
  min-height:120px;
}

/* focus identique */
:where(.field, .filters, .mag-row, .actions-row, .table) input:focus,
:where(.field, .filters, .mag-row, .actions-row, .table) select:focus,
:where(.field, .filters, .mag-row, .actions-row, .table) textarea:focus{
  border-color:var(--pri) !important;
  box-shadow:0 0 0 4px var(--ring), 0 1px 2px rgba(0,0,0,.03) !important;
}

/* select arrow (propre) */
:where(.field, .filters, .mag-row, .actions-row, .table) select{
  padding-right:38px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px !important;
  background-size:6px 6px, 6px 6px !important;
  background-repeat:no-repeat !important;
}
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.iconbtn{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px;
  border:1px solid #e5e7eb; border-radius:10px;
  background:#fff; color:#111;
  text-decoration:none;
}
.iconbtn:hover{ background:#f3f4f6; }
.iconbtn.danger{ border-color:#fecaca; color:#b91c1c; }
.iconbtn.primary{ border-color:#bfdbfe; color:#1d4ed8; }
.iconbtn svg{ width:18px; height:18px; }
.actions__form{ display:inline; }

.pager{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap; margin-top:12px;
}
.pager__left{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.pager__right{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.pager__btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:36px;
  padding:0 10px;
  border:1px solid #e5e7eb; border-radius:10px;
  background:#fff; text-decoration:none; color:#111;
}
.pager__btn:hover{ background:#f3f4f6; }
.pager__btn.is-disabled{ opacity:.5; pointer-events:none; }
.pager__btn.is-active{ border-color:#bfdbfe; color:#1d4ed8; }
/* ===== Report view modern ===== */
.report-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.report-meta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:6px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;font-size:12px;color:#111}
.chip svg{width:14px;height:14px}
.chip.ok{border-color:#bbf7d0;color:#166534}
.chip.warn{border-color:#fde68a;color:#92400e}
.chip.draft{border-color:#e5e7eb;color:#374151}
.chip.lock{border-color:#fecaca;color:#991b1b}
.kpi{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.kpi .box{border:1px solid #e5e7eb;border-radius:16px;padding:10px;background:#fff}
.kpi .t{font-size:12px;color:#6b7280}
.kpi .v{font-size:14px;font-weight:700;margin-top:4px;color:#111}
.two-col{display:grid;grid-template-columns:1.2fr 1fr;gap:12px}
@media(max-width:900px){.two-col{grid-template-columns:1fr}.kpi{grid-template-columns:1fr}}
.card.soft{border:1px solid #e5e7eb;border-radius:16px;background:#fff}
.card.soft .cardtitle{font-weight:700;margin:0 0 8px;font-size:14px}
.btnrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;color:#111;text-decoration:none}
.iconbtn:hover{background:#f3f4f6}
.iconbtn.primary{border-color:#bfdbfe;color:#1d4ed8}
.iconbtn svg{width:18px;height:18px}
.gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
@media(max-width:900px){.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
.thumb2{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;border:1px solid #e5e7eb;cursor:pointer;background:#fff}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;padding:18px;z-index:50}
.modal.is-open{display:flex}
.modal__img{max-width:min(1100px,96vw);max-height:86vh;border-radius:16px;border:1px solid rgba(255,255,255,.25);background:#111}
.modal__close{position:absolute;top:16px;right:16px;width:42px;height:42px;border-radius:14px;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.4);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.breadcrumb{font-size:12px;color:#6b7280}
.breadcrumb a{color:inherit;text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
/* Burger caché sur PC */
.topbar__burger{display:none}

/* Desktop layout */
.nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:14px;
}
.nav__links{display:flex;align-items:center;gap:10px}

/* Mobile */
@media (max-width: 900px){
  .topbar__burger{display:inline-flex}
  .nav{
    position:absolute;
    left:0; right:0;
    top:100%;
    background:#fff;
    border-bottom:1px solid #e2e8f0;
    padding:12px 16px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .nav.is-open{display:flex}
  .nav__links{flex-direction:column;align-items:stretch}
}
/* ===== Dropdown "Rapports" (topbar) ===== */
.navdd{ position:relative; display:inline-flex; align-items:center; }
.navdd__btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:12px;
  font-weight:700;
  color:#0f172a;
  cursor:pointer;
}
.navdd__btn:hover{ background:#f1f5f9; }
.navdd__chev{ font-size:12px; line-height:1; opacity:.8; }
.navdd.is-open .navdd__chev{ transform:rotate(180deg); }

.navdd__menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:240px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  box-shadow:0 18px 55px rgba(15,23,42,.14);
  padding:8px;
  display:none;
  z-index:50;
}
.navdd.is-open .navdd__menu{ display:block; }

.navdd__item{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:12px;
  color:#0f172a;
  text-decoration:none;
  font-weight:650;
}
.navdd__item:hover{ background:#f1f5f9; }

.navdd__dot{
  width:8px; height:8px; border-radius:50%;
  background:#2563eb;
  flex:0 0 auto;
}

.navdd__sep{
  height:1px;
  background:#e2e8f0;
  margin:6px 6px;
}

/* Mobile: le menu prend toute la largeur */
@media (max-width: 720px){
  .navdd{ width:100%; }
  .navdd__btn{ width:100%; justify-content:space-between; }
  .navdd__menu{ left:0; right:0; min-width:unset; }
}
/* ===== Saison pill (topbar) ===== */
.seasonpill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#fff;
  color:#0f172a;
  font-weight:800;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.seasonpill__dot{
  width:9px;height:9px;border-radius:999px;
  background:#94a3b8;
  flex:0 0 auto;
}

.seasonpill--ok{
  border-color:#86efac;
  background:#f0fdf4;
  color:#065f46;
}
.seasonpill--ok .seasonpill__dot{ background:#22c55e; }

.seasonpill--lock{
  border-color:#a5b4fc;
  background:#eef2ff;
  color:#3730a3;
}
.seasonpill--lock .seasonpill__dot{ background:#6366f1; }

.seasonpill__label{ opacity:.85; font-weight:900; }
.seasonpill__name{ font-weight:900; }

/* Mobile: ON GARDE le nom, mais compact + ellipsis */
@media (max-width: 820px){
  .seasonpill{
    padding:7px 9px;
    gap:7px;
    font-size:12px;
    max-width: 46vw;          /* ajuste si besoin */
  }
  .seasonpill__name{
    display:inline;           /* au lieu de none */
    max-width: 28vw;          /* ajuste si besoin */
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}
/* =========================
   Topbar NAV – style clean
   ========================= */

.nav__links{
  display:flex;
  align-items:center;
  gap:6px;
}

/* liens simples */
.nav__link,
.navdd__btn{
  appearance:none;
  border:0;
  background:transparent;
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  color:#475569;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:background .15s ease, color .15s ease;
}

/* hover */
.nav__link:hover,
.navdd__btn:hover{
  background:#f1f5f9;
  color:#0f172a;
}

/* actif */
.nav__link.is-active,
.navdd.is-open .navdd__btn{
  background:#e0f2fe;
  color:#0369a1;
}

/* chevron discret */
.navdd__chev{
  font-size:12px;
  opacity:.6;
}

/* supprimer l'effet "bouton blanc" */
.navdd__btn{
  box-shadow:none;
}

/* =========================
   Dropdown menu Rapports
   ========================= */

.navdd__menu{
  margin-top:8px;
  border-radius:14px;
  border:1px solid #e2e8f0;
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  min-width:220px;
  padding:6px;
}

.navdd__item{
  padding:10px 12px;
  border-radius:10px;
  font-weight:600;
  color:#0f172a;
  text-decoration:none;
  display:block;
}

.navdd__item:hover{
  background:#f8fafc;
}
/* ✅ Wide container pour enlever les gros vides gauche/droite */
.container.container--wide{
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

@media (min-width: 1400px){
  .container.container--wide{
    max-width: calc(100vw - 48px);
  }
}
