
:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --border2:#d1d5db;
  --head:#f3f4f6;
  --hover:#f9fafb;
  --accent:#0b57d0;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }

body{
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;                     /* important avec topbar sticky */
  background: var(--bg);
  color: var(--text);
}

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration: underline; }

.muted{ color: var(--muted); font-size: 12px; }
h1{ margin: 0 0 10px; }

/* =========================
   Layout
   ========================= */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* =========================
   MENU DU HAUT (Topbar)
   ========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffffcc;              /* blanc translucide */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__brand{
  font-weight: 800;
  color: var(--text);
  letter-spacing: .2px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.topbar__brand::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(11,87,208,.12);
}

/* Nav container */
.nav{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

/* Liens */
.nav__link{
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
  transition: background .15s ease, color .15s ease, transform .08s ease;
}

.nav__link:hover{
  background: #f3f6ff;
  color: var(--text);
  text-decoration: none;
}

.nav__link:active{
  transform: translateY(1px);
}

/* Actif */
.nav__link.is-active,
.nav__link[aria-current="page"]{
  background: rgba(11,87,208,.12);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(11,87,208,.22);
}

/* Focus clavier */
.nav__link:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(11,87,208,.18);
}

/* Bloc "faire une offre" */
.topbar__offer{
  margin-left: auto; /* pousse à droite */
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.topbar__offer-link{
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.topbar__offer-link:hover{
  text-decoration: underline;
}

.topbar__offer-note{
  opacity: .8;
  font-size: 12px;
}

/* Mobile */
@media (max-width: 640px){
  .topbar__inner{
    flex-direction: column;
    align-items: stretch;
  }
  .nav{
    justify-content: space-between;
  }
  .nav__link{
    flex: 1;
    justify-content: center;
  }
  .topbar__offer{
    margin-left: 0;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

/* =========================
   Barre actions (filtres)
   ========================= */
.actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin:10px 0 18px;
  flex-wrap:wrap;
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
  box-shadow:var(--shadow);
}

.actions input,
.actions select{
  padding:10px 12px;
  border:1px solid var(--border2);
  border-radius:10px;
  background:#fff;
  outline:none;
  transition:border-color .15s, box-shadow .15s;
}

.actions input:focus,
.actions select:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.15);
}

.actions button{
  padding:10px 14px;
  border:1px solid #0b57d0;
  border-radius:10px;
  background:#0b57d0;
  color:#fff;
  cursor:pointer;
}

.actions button:hover{ filter:brightness(.95); }

.badge{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  font-size:12px;
}

/* =========================
   Tableau “card”
   ========================= */
.table-wrap{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:auto; /* scroll horizontal si trop large */
}

table{
  border-collapse:separate;
  border-spacing:0;
  width:100%;
  min-width:920px; /* évite que tout écrase */
}

th, td{
  border-bottom:1px solid var(--border);
  padding:10px 12px;
  vertical-align:top;
}

th{
  position:sticky;
  top:0;
  z-index:2;
  background:var(--head);
  text-align:left;
  font-weight:700;
  color:#111;
  border-bottom:1px solid var(--border2);
  white-space:nowrap;
}

tr:hover td{ background:var(--hover); }

/* Lignes zébrées */
tbody tr:nth-child(even) td{ background:#fcfcfd; }
tbody tr:nth-child(even):hover td{ background:var(--hover); }

.right{ text-align:right; white-space:nowrap; }

/* Tri (liens dans TH) */
th a{ color:inherit; text-decoration:none; }
th a:hover{ text-decoration:underline; }

/* Lignes spéciales */
tr.row-choisir td{ background-color:#fffbe6 !important; }

/* =========================
   Images
   ========================= */
.thumb{
  width:120px;
  height:auto;
  display:block;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}

.grid{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:20px;
  align-items:start;
}

.photo{
  width:100%;
  height:auto;
  border:1px solid var(--border);
  border-radius:14px;
  cursor:zoom-in;
  background:#fff;
}

.thumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.thumbs img{
  width:90px;
  height:auto;
  border:1px solid var(--border);
  border-radius:10px;
  cursor:pointer;
  background:#fff;
}

pre{ white-space:pre-wrap; margin:0; }

/* =========================
   Modal (agrandissement)
   ========================= */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.82);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:9999;
}

.modal.open{ display:flex; }

.modal img{
  max-width:95vw;
  max-height:90vh;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.2);
}

.modal .close{
  position:absolute;
  top:12px;
  right:16px;
  color:#fff;
  font-size:28px;
  cursor:pointer;
  user-select:none;
}

.modal .hint{
  position:absolute;
  bottom:12px;
  left:16px;
  color:#fff;
  font-size:12px;
  opacity:.8;
}

/* =========================
   Boutons
   ========================= */
.btn-black{
  appearance:none;
  border:1px solid #000;
  background:#000;
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  transition:background .15s ease, box-shadow .15s ease, transform .05s ease;
}

.btn-black:hover{ background:#111; }
.btn-black:active{ transform:translateY(1px); }
.btn-black:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(0,0,0,.25);
}

.btn-black-outline{
  border:1px solid #000;
  background:#fff;
  color:#000;
  padding:10px 16px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}

.btn-black-outline:hover{
  background:#000;
  color:#fff;
}

/* =========================
   Footer
   ========================= */
.site-footer{
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding: 14px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer__inner{
  max-width: 1200px;      /* même largeur que topbar */
  margin: 0 auto;
  padding: 0 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer strong{ color: var(--text); }
.site-footer a{ font-weight: 800; }
.is-saved { outline: 2px solid #2ecc71; }


.form {
  max-width: 1100px;
}

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.form textarea {
  resize: vertical;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: #666;
}


.form .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .form .grid {
    grid-template-columns: 1fr;
  }
}


.form button,
.form .btn {
  display: inline-block;
  padding: 10px 14px;
  borde
