*{box-sizing:border-box}
body{margin:0;background:#f5f7fb;color:#172033;font-family:Arial,Helvetica,sans-serif}
.topbar{background:#fff;border-bottom:1px solid #e7eaf0;padding:20px max(18px,calc((100% - 1180px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}
.eyebrow{font-size:11px;letter-spacing:1.6px;color:#687085;font-weight:700}
h1{margin:5px 0 0;font-size:27px}
.refresh{background:#172033;color:#fff;text-decoration:none;padding:11px 16px;border-radius:10px;font-weight:700;font-size:14px}
.container{max-width:1180px;margin:24px auto;padding:0 18px}
.month-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.month-nav>a{width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid #e2e6ed;display:grid;place-items:center;text-decoration:none;color:#172033;font-size:30px}
.month-nav>div{text-align:center;font-size:22px}
.today{display:block;font-size:12px;color:#5b4bdb;text-decoration:none;margin-top:4px}
.legend{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 20px;color:#596275;font-size:13px}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}
.airbnb{background:#ff5a60}.booking{background:#2475d0}.both{background:#8b5cf6}
.apartments{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.apartment{background:#fff;border:1px solid #e2e6ed;border-radius:16px;padding:18px;box-shadow:0 4px 18px rgba(20,30,50,.04)}
.apartment-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:16px}
h2{margin:0;font-size:20px}
.apartment p{margin:5px 0 0;color:#6a7282;font-size:13px}
.status{font-size:11px;background:#f0f2f6;padding:7px 9px;border-radius:999px;white-space:nowrap;color:#596275}
.calendar-wrap{border:1px solid #e5e8ee;border-radius:12px;overflow:hidden}
.weekdays,.calendar{display:grid;grid-template-columns:repeat(7,1fr)}
.weekdays{background:#f7f8fa;border-bottom:1px solid #e5e8ee}
.weekdays div{text-align:center;padding:9px 2px;font-size:11px;font-weight:700;color:#71798a}
.day{min-height:58px;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:7px;position:relative;font-size:13px}
.day:nth-child(7n){border-right:0}
.day.empty{background:#fafbfc}
.day.today-cell>span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#172033;color:#fff}
.day small{display:block;font-size:8px;margin-top:5px;line-height:1.1;color:#fff;font-weight:700}
.booked-airbnb{background:#ff5a60}.booked-booking{background:#2475d0}.booked-both{background:#8b5cf6}
.warning{margin-top:12px;padding:10px 12px;background:#fff5d8;color:#785b00;border-radius:9px;font-size:12px}
.links{display:flex;gap:10px;margin-top:14px}
.links a{font-size:12px;text-decoration:none;color:#4f46c5;background:#f3f1ff;padding:8px 10px;border-radius:8px}
.footnote{font-size:11px;color:#8a91a0;margin:18px 2px 30px}
@media(max-width:800px){.apartments{grid-template-columns:1fr}.topbar{padding:16px 18px}.topbar h1{font-size:21px}.container{margin-top:16px}.day{min-height:52px;padding:5px;font-size:12px}.day small{font-size:7px}.month-nav>div{font-size:19px}}
@media(max-width:480px){.apartment{padding:12px}.apartment-head{display:block}.status{display:inline-block;margin-top:8px}.day{min-height:47px}.weekdays div{font-size:9px}.refresh{padding:9px 11px}}

.sync-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-7px 0 14px;color:#7a8291;font-size:10px}
.sync-dot{width:7px;height:7px;border-radius:50%;background:#22a06b;display:inline-block}
.sync-sources{padding-left:4px;color:#626b7b}

/* V1.4 : nuances très nettes entre JOUR D'ARRIVÉE et JOURS OCCUPÉS */
.day.booked-airbnb.occupied { background:#ffd6d8 !important; color:#8b1e27 !important; }
.day.booked-airbnb.arrival  { background:#c91f2b !important; color:#ffffff !important; }

.day.booked-booking.occupied { background:#c7def7 !important; color:#123b65 !important; }
.day.booked-booking.arrival  { background:#0757a8 !important; color:#ffffff !important; }

.day.booked-both.occupied { background:#d9cdf7 !important; color:#39216f !important; }
.day.booked-both.arrival  { background:#6330b8 !important; color:#ffffff !important; }

/* Le numéro du jour reste lisible sur toutes les nuances */
.day.booked-airbnb.arrival > span,
.day.booked-booking.arrival > span,
.day.booked-both.arrival > span { color:#fff !important; }

/* On masque le libellé ARRIVÉE comme dans la version précédente */
.day.arrival small { font-size:0 !important; }
.day.arrival small::after { content:none !important; display:none !important; }

/* =========================================================
   RESERVATIONS CLIQUABLES / FICHE VOYAGEUR
   ========================================================= */
.reservation-day {
  width: 100%;
  height: 100%;
  min-height: 72px;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.reservation-day:hover {
  filter: brightness(.96);
  box-shadow: inset 0 0 0 2px rgba(15,23,42,.18);
}
.saved-message {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  font-weight: 700;
  text-align: center;
}
.modal { display:none; position:fixed; inset:0; z-index:1000; }
.modal.open { display:block; }
.modal-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.52); }
.modal-card {
  position:relative;
  width:min(620px, calc(100% - 28px));
  max-height:calc(100vh - 28px);
  overflow:auto;
  margin:14px auto;
  padding:24px;
  box-sizing:border-box;
  background:#fff;
  border-radius:14px;
  box-shadow:0 18px 60px rgba(0,0,0,.25);
}
.modal-card h2 { margin:0 36px 18px 0; color:#17233f; }
.modal-close {
  position:absolute; right:12px; top:10px; width:36px; height:36px;
  border:0; border-radius:8px; background:#eef2f7; color:#334155;
  font-size:25px; cursor:pointer;
}
.reservation-box { border:1px solid #dbe3ef; border-radius:11px; padding:15px; margin-bottom:14px; }
.reservation-summary { display:flex; justify-content:space-between; gap:12px; padding-bottom:12px; margin-bottom:13px; border-bottom:1px solid #e5e7eb; }
.reservation-summary strong { text-transform:capitalize; }
.reservation-summary span { color:#64748b; font-size:14px; }
.guest-form label { display:block; margin-bottom:11px; color:#334155; font-size:13px; font-weight:700; }
.guest-form input, .guest-form textarea {
  width:100%; box-sizing:border-box; margin-top:5px; padding:10px 11px;
  border:1px solid #cbd5e1; border-radius:8px; font:inherit; color:#17233f; background:#fff;
}
.guest-form input:focus, .guest-form textarea:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,.12); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.save-guest { width:100%; border:0; border-radius:8px; padding:11px 15px; background:#2563eb; color:#fff; font-weight:800; cursor:pointer; }
.save-guest:hover { background:#1d4ed8; }

/* conserver les nuances de la version précédente */
.day.booked-airbnb.arrival { background:#b91c1c !important; color:#fff !important; }
.day.booked-airbnb.occupied { background:#fecaca !important; color:#7f1d1d !important; }
.day.booked-booking.arrival { background:#1d4ed8 !important; color:#fff !important; }
.day.booked-booking.occupied { background:#bfdbfe !important; color:#1e3a8a !important; }
.day.booked-both.arrival { background:#7e22ce !important; color:#fff !important; }
.day.booked-both.occupied { background:#e9d5ff !important; color:#581c87 !important; }

@media (max-width:600px) {
  .modal-card { padding:20px 16px; }
  .form-grid { grid-template-columns:1fr; gap:0; }
  .reservation-summary { flex-direction:column; gap:4px; }
}

/* V2 - réservations manuelles et finances */
.dot.direct{background:#16a05d}
.booked-direct{background:#16a05d}
.day.booked-direct.arrival{background:#087f4f !important;color:#fff !important}
.day.booked-direct.occupied{background:#b9ebd0 !important;color:#14532d !important}
.day.free-day{background:#fff;cursor:pointer;border:0;width:100%;font:inherit;text-align:left}
.day.free-day:hover{background:#f0fdf4;box-shadow:inset 0 0 0 2px rgba(22,160,93,.18)}
.day.free-day .free-label{color:#b6bfcc;font-size:8px}
.day.reservation-day{border:0}
.error-message{margin-bottom:14px;padding:10px 14px;border-radius:9px;background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;font-weight:700}
.modal-card.wide{width:min(760px,calc(100% - 28px))}
.section-title{margin:17px 0 10px;padding-top:13px;border-top:1px solid #e5e7eb;font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:#475569;font-weight:800}
.finance-note{margin:8px 0 12px;padding:9px 11px;border-radius:8px;background:#f8fafc;color:#64748b;font-size:11px;line-height:1.4}
.guest-form select{width:100%;box-sizing:border-box;margin-top:5px;padding:10px 11px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;color:#17233f;background:#fff}
.creation-head{display:flex;justify-content:space-between;gap:12px;padding:12px 13px;background:#f8fafc;border-radius:9px;color:#475569}
.creation-head span{font-size:13px}
.money{font-variant-numeric:tabular-nums}
@media(max-width:600px){
  .creation-head{display:block}
  .creation-head span{display:block;margin-top:4px}
}

.delete-reservation-form {
  margin-top: 10px;
}
.delete-reservation {
  width: 100%;
  border: 1px solid #b42318;
  background: #fff;
  color: #b42318;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.delete-reservation:hover {
  background: #fef3f2;
}

/* V2.4 — vue d'ensemble des deux appartements sur un seul calendrier */
.overview-calendar{background:#fff;border:1px solid #e2e6ed;border-radius:16px;padding:18px;box-shadow:0 4px 18px rgba(20,30,50,.04)}
.overview-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:15px}
.overview-head h2{margin:0;font-size:20px}
.overview-head p{margin:5px 0 0;color:#6a7282;font-size:13px}
.overview-sync{font-size:10px;color:#7a8291;display:flex;align-items:center;gap:7px}
.overview-scroll{border:1px solid #e2e6ed;border-radius:12px;overflow:auto}
.overview-grid{display:grid;grid-template-columns:105px repeat(2,minmax(180px,1fr));min-width:620px}
.overview-header-row{background:#f7f8fa;border-bottom:1px solid #e2e6ed}
.overview-date-head,.overview-apartment-head{padding:12px 10px;font-size:11px;font-weight:800;color:#596275;text-transform:uppercase;letter-spacing:.5px}
.overview-apartment-head{text-align:center;border-left:1px solid #e2e6ed;color:#172033}
.overview-row{min-height:58px;border-bottom:1px solid #edf0f4}
.overview-row:last-child{border-bottom:0}
.overview-today{background:#fafbff}
.overview-date{padding:8px 10px;display:flex;align-items:center;gap:7px;border-right:1px solid #edf0f4;background:#fafbfc}
.overview-date strong{font-size:15px}
.overview-date span{font-size:10px;color:#7a8291;text-transform:uppercase}
.overview-cell{min-height:58px;border:0;border-left:1px solid #edf0f4;width:100%;padding:8px 10px;text-align:left;font:inherit;cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:3px}
.overview-cell:hover{filter:brightness(.97);box-shadow:inset 0 0 0 2px rgba(15,23,42,.13)}
.overview-free{background:#fff}
.overview-free:hover{background:#f0fdf4}
.overview-free-label{font-size:9px;color:#b2bac7;font-weight:700}
.overview-status{font-size:11px;font-weight:800}
.overview-arrival{font-size:8px;font-weight:800;opacity:.8}
.overview-airbnb.arrival{background:#b91c1c;color:#fff}.overview-airbnb.occupied{background:#fecaca;color:#7f1d1d}
.overview-booking.arrival{background:#1d4ed8;color:#fff}.overview-booking.occupied{background:#bfdbfe;color:#1e3a8a}
.overview-direct.arrival{background:#087f4f;color:#fff}.overview-direct.occupied{background:#b9ebd0;color:#14532d}
.overview-both.arrival{background:#7e22ce;color:#fff}.overview-both.occupied{background:#e9d5ff;color:#581c87}
.overview-warning{margin-top:12px}
.overview-warning span{margin-left:8px}
.overview-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:14px;color:#596275;font-size:12px}
.overview-links div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.overview-links a{font-size:11px;text-decoration:none;color:#4f46c5;background:#f3f1ff;padding:6px 9px;border-radius:7px}

@media(max-width:700px){
  .overview-calendar{padding:12px}
  .overview-head{display:block}
  .overview-sync{margin-top:10px}
  .overview-grid{grid-template-columns:82px repeat(2,minmax(155px,1fr));min-width:392px}
  .overview-date{padding:7px 8px;display:block}
  .overview-date strong{display:block}
  .overview-date span{display:block;margin-top:2px}
  .overview-cell{padding:7px 8px}
}

/* V2.5 — planning mensuel à la manière d'un tableau de location :
   7 colonnes de jours, puis une ligne par appartement. */
*{box-sizing:border-box}
body{margin:0;background:#f5f7fb;color:#172033;font-family:Arial,Helvetica,sans-serif}
.topbar{background:#fff;border-bottom:1px solid #e7eaf0;padding:20px max(18px,calc((100% - 1180px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}
.eyebrow{font-size:11px;letter-spacing:1.6px;color:#687085;font-weight:700}
h1{margin:5px 0 0;font-size:27px}
.refresh{background:#172033;color:#fff;text-decoration:none;padding:11px 16px;border-radius:10px;font-weight:700;font-size:14px}
.container{max-width:1180px;margin:24px auto;padding:0 18px}
.month-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.month-nav>a{width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid #e2e6ed;display:grid;place-items:center;text-decoration:none;color:#172033;font-size:30px}
.month-nav>div{text-align:center;font-size:22px}
.today{display:block;font-size:12px;color:#5b4bdb;text-decoration:none;margin-top:4px}
.legend{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 20px;color:#596275;font-size:13px}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px}
.airbnb{background:#ff5a60}.booking{background:#2475d0}.both{background:#8b5cf6}
.apartments{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.apartment{background:#fff;border:1px solid #e2e6ed;border-radius:16px;padding:18px;box-shadow:0 4px 18px rgba(20,30,50,.04)}
.apartment-head{display:flex;justify-content:space-between;gap:15px;margin-bottom:16px}
h2{margin:0;font-size:20px}
.apartment p{margin:5px 0 0;color:#6a7282;font-size:13px}
.status{font-size:11px;background:#f0f2f6;padding:7px 9px;border-radius:999px;white-space:nowrap;color:#596275}
.calendar-wrap{border:1px solid #e5e8ee;border-radius:12px;overflow:hidden}
.weekdays,.calendar{display:grid;grid-template-columns:repeat(7,1fr)}
.weekdays{background:#f7f8fa;border-bottom:1px solid #e5e8ee}
.weekdays div{text-align:center;padding:9px 2px;font-size:11px;font-weight:700;color:#71798a}
.day{min-height:58px;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;padding:7px;position:relative;font-size:13px}
.day:nth-child(7n){border-right:0}
.day.empty{background:#fafbfc}
.day.today-cell>span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#172033;color:#fff}
.day small{display:block;font-size:8px;margin-top:5px;line-height:1.1;color:#fff;font-weight:700}
.booked-airbnb{background:#ff5a60}.booked-booking{background:#2475d0}.booked-both{background:#8b5cf6}
.warning{margin-top:12px;padding:10px 12px;background:#fff5d8;color:#785b00;border-radius:9px;font-size:12px}
.links{display:flex;gap:10px;margin-top:14px}
.links a{font-size:12px;text-decoration:none;color:#4f46c5;background:#f3f1ff;padding:8px 10px;border-radius:8px}
.footnote{font-size:11px;color:#8a91a0;margin:18px 2px 30px}
@media(max-width:800px){.apartments{grid-template-columns:1fr}.topbar{padding:16px 18px}.topbar h1{font-size:21px}.container{margin-top:16px}.day{min-height:52px;padding:5px;font-size:12px}.day small{font-size:7px}.month-nav>div{font-size:19px}}
@media(max-width:480px){.apartment{padding:12px}.apartment-head{display:block}.status{display:inline-block;margin-top:8px}.day{min-height:47px}.weekdays div{font-size:9px}.refresh{padding:9px 11px}}

.sync-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-7px 0 14px;color:#7a8291;font-size:10px}
.sync-dot{width:7px;height:7px;border-radius:50%;background:#22a06b;display:inline-block}
.sync-sources{padding-left:4px;color:#626b7b}

/* V1.4 : nuances très nettes entre JOUR D'ARRIVÉE et JOURS OCCUPÉS */
.day.booked-airbnb.occupied { background:#ffd6d8 !important; color:#8b1e27 !important; }
.day.booked-airbnb.arrival  { background:#c91f2b !important; color:#ffffff !important; }

.day.booked-booking.occupied { background:#c7def7 !important; color:#123b65 !important; }
.day.booked-booking.arrival  { background:#0757a8 !important; color:#ffffff !important; }

.day.booked-both.occupied { background:#d9cdf7 !important; color:#39216f !important; }
.day.booked-both.arrival  { background:#6330b8 !important; color:#ffffff !important; }

/* Le numéro du jour reste lisible sur toutes les nuances */
.day.booked-airbnb.arrival > span,
.day.booked-booking.arrival > span,
.day.booked-both.arrival > span { color:#fff !important; }

/* On masque le libellé ARRIVÉE comme dans la version précédente */
.day.arrival small { font-size:0 !important; }
.day.arrival small::after { content:none !important; display:none !important; }

/* =========================================================
   RESERVATIONS CLIQUABLES / FICHE VOYAGEUR
   ========================================================= */
.reservation-day {
  width: 100%;
  height: 100%;
  min-height: 72px;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.reservation-day:hover {
  filter: brightness(.96);
  box-shadow: inset 0 0 0 2px rgba(15,23,42,.18);
}
.saved-message {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  font-weight: 700;
  text-align: center;
}
.modal { display:none; position:fixed; inset:0; z-index:1000; }
.modal.open { display:block; }
.modal-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.52); }
.modal-card {
  position:relative;
  width:min(620px, calc(100% - 28px));
  max-height:calc(100vh - 28px);
  overflow:auto;
  margin:14px auto;
  padding:24px;
  box-sizing:border-box;
  background:#fff;
  border-radius:14px;
  box-shadow:0 18px 60px rgba(0,0,0,.25);
}
.modal-card h2 { margin:0 36px 18px 0; color:#17233f; }
.modal-close {
  position:absolute; right:12px; top:10px; width:36px; height:36px;
  border:0; border-radius:8px; background:#eef2f7; color:#334155;
  font-size:25px; cursor:pointer;
}
.reservation-box { border:1px solid #dbe3ef; border-radius:11px; padding:15px; margin-bottom:14px; }
.reservation-summary { display:flex; justify-content:space-between; gap:12px; padding-bottom:12px; margin-bottom:13px; border-bottom:1px solid #e5e7eb; }
.reservation-summary strong { text-transform:capitalize; }
.reservation-summary span { color:#64748b; font-size:14px; }
.guest-form label { display:block; margin-bottom:11px; color:#334155; font-size:13px; font-weight:700; }
.guest-form input, .guest-form textarea {
  width:100%; box-sizing:border-box; margin-top:5px; padding:10px 11px;
  border:1px solid #cbd5e1; border-radius:8px; font:inherit; color:#17233f; background:#fff;
}
.guest-form input:focus, .guest-form textarea:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,.12); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.save-guest { width:100%; border:0; border-radius:8px; padding:11px 15px; background:#2563eb; color:#fff; font-weight:800; cursor:pointer; }
.save-guest:hover { background:#1d4ed8; }

/* conserver les nuances de la version précédente */
.day.booked-airbnb.arrival { background:#b91c1c !important; color:#fff !important; }
.day.booked-airbnb.occupied { background:#fecaca !important; color:#7f1d1d !important; }
.day.booked-booking.arrival { background:#1d4ed8 !important; color:#fff !important; }
.day.booked-booking.occupied { background:#bfdbfe !important; color:#1e3a8a !important; }
.day.booked-both.arrival { background:#7e22ce !important; color:#fff !important; }
.day.booked-both.occupied { background:#e9d5ff !important; color:#581c87 !important; }

@media (max-width:600px) {
  .modal-card { padding:20px 16px; }
  .form-grid { grid-template-columns:1fr; gap:0; }
  .reservation-summary { flex-direction:column; gap:4px; }
}

/* V2 - réservations manuelles et finances */
.dot.direct{background:#16a05d}
.booked-direct{background:#16a05d}
.day.booked-direct.arrival{background:#087f4f !important;color:#fff !important}
.day.booked-direct.occupied{background:#b9ebd0 !important;color:#14532d !important}
.day.free-day{background:#fff;cursor:pointer;border:0;width:100%;font:inherit;text-align:left}
.day.free-day:hover{background:#f0fdf4;box-shadow:inset 0 0 0 2px rgba(22,160,93,.18)}
.day.free-day .free-label{color:#b6bfcc;font-size:8px}
.day.reservation-day{border:0}
.error-message{margin-bottom:14px;padding:10px 14px;border-radius:9px;background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;font-weight:700}
.modal-card.wide{width:min(760px,calc(100% - 28px))}
.section-title{margin:17px 0 10px;padding-top:13px;border-top:1px solid #e5e7eb;font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:#475569;font-weight:800}
.finance-note{margin:8px 0 12px;padding:9px 11px;border-radius:8px;background:#f8fafc;color:#64748b;font-size:11px;line-height:1.4}
.guest-form select{width:100%;box-sizing:border-box;margin-top:5px;padding:10px 11px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;color:#17233f;background:#fff}
.creation-head{display:flex;justify-content:space-between;gap:12px;padding:12px 13px;background:#f8fafc;border-radius:9px;color:#475569}
.creation-head span{font-size:13px}
.money{font-variant-numeric:tabular-nums}
@media(max-width:600px){
  .creation-head{display:block}
  .creation-head span{display:block;margin-top:4px}
}

.delete-reservation-form {
  margin-top: 10px;
}
.delete-reservation {
  width: 100%;
  border: 1px solid #b42318;
  background: #fff;
  color: #b42318;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.delete-reservation:hover {
  background: #fef3f2;
}

/* V2.4 — vue d'ensemble des deux appartements sur un seul calendrier */
.overview-calendar{background:#fff;border:1px solid #e2e6ed;border-radius:16px;padding:18px;box-shadow:0 4px 18px rgba(20,30,50,.04)}
.overview-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:15px}
.overview-head h2{margin:0;font-size:20px}
.overview-head p{margin:5px 0 0;color:#6a7282;font-size:13px}
.overview-sync{font-size:10px;color:#7a8291;display:flex;align-items:center;gap:7px}
.overview-scroll{border:1px solid #e2e6ed;border-radius:12px;overflow:auto}
.overview-grid{display:grid;grid-template-columns:105px repeat(2,minmax(180px,1fr));min-width:620px}
.overview-header-row{background:#f7f8fa;border-bottom:1px solid #e2e6ed}
.overview-date-head,.overview-apartment-head{padding:12px 10px;font-size:11px;font-weight:800;color:#596275;text-transform:uppercase;letter-spacing:.5px}
.overview-apartment-head{text-align:center;border-left:1px solid #e2e6ed;color:#172033}
.overview-row{min-height:58px;border-bottom:1px solid #edf0f4}
.overview-row:last-child{border-bottom:0}
.overview-today{background:#fafbff}
.overview-date{padding:8px 10px;display:flex;align-items:center;gap:7px;border-right:1px solid #edf0f4;background:#fafbfc}
.overview-date strong{font-size:15px}
.overview-date span{font-size:10px;color:#7a8291;text-transform:uppercase}
.overview-cell{min-height:58px;border:0;border-left:1px solid #edf0f4;width:100%;padding:8px 10px;text-align:left;font:inherit;cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:3px}
.overview-cell:hover{filter:brightness(.97);box-shadow:inset 0 0 0 2px rgba(15,23,42,.13)}
.overview-free{background:#fff}
.overview-free:hover{background:#f0fdf4}
.overview-free-label{font-size:9px;color:#b2bac7;font-weight:700}
.overview-status{font-size:11px;font-weight:800}
.overview-arrival{font-size:8px;font-weight:800;opacity:.8}
.overview-airbnb.arrival{background:#b91c1c;color:#fff}.overview-airbnb.occupied{background:#fecaca;color:#7f1d1d}
.overview-booking.arrival{background:#1d4ed8;color:#fff}.overview-booking.occupied{background:#bfdbfe;color:#1e3a8a}
.overview-direct.arrival{background:#087f4f;color:#fff}.overview-direct.occupied{background:#b9ebd0;color:#14532d}
.overview-both.arrival{background:#7e22ce;color:#fff}.overview-both.occupied{background:#e9d5ff;color:#581c87}
.overview-warning{margin-top:12px}
.overview-warning span{margin-left:8px}
.overview-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:14px;color:#596275;font-size:12px}
.overview-links div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.overview-links a{font-size:11px;text-decoration:none;color:#4f46c5;background:#f3f1ff;padding:6px 9px;border-radius:7px}

@media(max-width:700px){
  .overview-calendar{padding:12px}
  .overview-head{display:block}
  .overview-sync{margin-top:10px}
  .overview-grid{grid-template-columns:82px repeat(2,minmax(155px,1fr));min-width:392px}
  .overview-date{padding:7px 8px;display:block}
  .overview-date strong{display:block}
  .overview-date span{display:block;margin-top:2px}
  .overview-cell{padding:7px 8px}
}

/* V2.5 — planning mensuel à la manière d'un tableau de location :
   7 colonnes de jours, puis une ligne par appartement. */

/* =========================================================
   PLANNING V27 — rendu cellule par cellule
   Une seule source de vérité : chaque nuit est une cellule.
   Aucun calque absolu, aucun chevauchement, aucun JS pour le clic.
   ========================================================= */
.planning-scroll{border:1px solid #dfe4ea;border-radius:10px;overflow:auto;background:#fff}
.planning-week{min-width:980px;border-bottom:1px solid #bfc6cf}
.planning-week:last-child{border-bottom:0}
.planning-date-row,.planning-apartment-row{display:grid;grid-template-columns:72px repeat(7,minmax(118px,1fr));position:relative}
.planning-date-row{min-height:48px}
.planning-date-head{border-left:1px solid #dfe4ea;background:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.planning-date-head span{font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase}
.planning-date-head strong{font-size:18px;color:#111827;margin-top:2px}
.planning-date-head.weekend{background:#fffdf2}
.planning-date-head.today{background:#fff8a8}
.planning-date-head.outside-month{background:#c7cbd0}
.planning-date-head.outside-month span,.planning-date-head.outside-month strong{color:#7a8088}
.planning-label-head{background:#8a3b0d;border-right:1px solid #652b09}
.planning-apartment-row{min-height:76px;border-top:1px solid #d7dce2}
.planning-apartment-label{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;border-right:1px solid #d7dce2;z-index:2}
.planning-apartment-label.apt-one{background:#c8eafa;color:#155e75}
.planning-apartment-label.apt-two{background:#d9f3cc;color:#276749}
.planning-cell{grid-row:1;min-width:0;min-height:76px;border:0;border-left:1px solid #d7dce2;background:#fff;padding:7px 7px;text-decoration:none;cursor:pointer;position:relative;z-index:1;font:inherit;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:3px;overflow:hidden}
.planning-cell.weekend.free{background:#fffef8}
.planning-cell.free:hover{background:#f0fdf4;box-shadow:inset 0 0 0 2px #86efac;z-index:3}
.planning-cell.outside-month{background:#c7cbd0;cursor:default}
.planning-cell.outside-month:hover{box-shadow:none}
.planning-cell .cell-source{font-size:9px;font-weight:800;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.planning-cell strong{font-size:11px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.planning-cell.free span{font-size:10px;text-transform:uppercase;color:#a0a8b4;font-weight:700}

/* Réservations : arrivée foncée, nuits suivantes claires. */
.planning-cell.airbnb.arrival{background:#b91c1c;color:#fff}
.planning-cell.airbnb.continuation{background:#fecaca;color:#7f1d1d}
.planning-cell.booking.arrival{background:#1769aa;color:#fff}
.planning-cell.booking.continuation{background:#b9dff2;color:#17466d}
.planning-cell.direct.arrival{background:#2f7d1f;color:#fff}
.planning-cell.direct.continuation{background:#bde8aa;color:#275f1c}
.planning-cell.both.arrival{background:#6f42c1;color:#fff}
.planning-cell.both.continuation{background:#dfc9f8;color:#55308d}

/* Indisponible : même couleur, quelle que soit la plateforme et quelle que soit la nuit. */
.planning-cell.blocked,
.planning-cell.blocked.arrival,
.planning-cell.blocked.continuation{background:#cbd5e1;color:#475569}
.planning-cell.blocked .cell-source{color:#475569}
.planning-cell.blocked:hover{background:#cbd5e1;box-shadow:inset 0 0 0 2px rgba(71,85,105,.18)}
.blocked-dot{background:#cbd5e1;border:1px solid #94a3b8}

/* Modal serveur : ouverture par lien PHP, sans dépendre du JavaScript. */
.server-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:14px;overflow:auto}
.server-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.52)}
.server-modal .modal-card{position:relative;z-index:1001;margin:0;width:min(760px,100%);max-height:calc(100vh - 28px);overflow:auto;background:#fff;border-radius:14px;padding:24px;box-shadow:0 18px 60px rgba(0,0,0,.25)}
.modal-close-link{position:absolute;right:12px;top:10px;width:36px;height:36px;border-radius:8px;background:#eef2f7;color:#334155;text-decoration:none;font-size:25px;display:grid;place-items:center}
.modal-close-link:hover{background:#e2e8f0}
.blocked-info{padding:18px;border-radius:10px;background:#cbd5e1;color:#475569;margin-top:15px}
.blocked-info p{margin:7px 0 0}

@media(max-width:700px){
  .planning-week{min-width:820px}
  .planning-date-row,.planning-apartment-row{grid-template-columns:62px repeat(7,minmax(108px,1fr))}
  .planning-apartment-row{min-height:70px}
  .planning-cell{min-height:70px;padding:5px 6px}
  .planning-apartment-label{font-size:12px}
  .planning-cell strong{font-size:10px}
  .planning-cell .cell-source{font-size:8px}
}


/* V2.28 - règles finales du planning : une indisponibilité est toujours uniforme. */
.planning-cell.event-cell.blocked,
.planning-cell.event-cell.blocked.arrival,
.planning-cell.event-cell.blocked.continuation {
  background:#cbd5e1 !important;
  color:#475569 !important;
  border-left-color:#cbd5e1 !important;
}
.planning-cell.event-cell.blocked .cell-source,
.planning-cell.event-cell.blocked strong { color:#475569 !important; }
.planning-cell.event-cell.blocked:hover {
  background:#cbd5e1 !important;
  box-shadow:inset 0 0 0 2px rgba(71,85,105,.16) !important;
}
/* Les réservations gardent obligatoirement leurs deux nuances. */
.planning-cell.event-cell.airbnb.arrival {background:#b91c1c !important;color:#fff !important}
.planning-cell.event-cell.airbnb.continuation {background:#fecaca !important;color:#7f1d1d !important}
.planning-cell.event-cell.booking.arrival {background:#1769aa !important;color:#fff !important}
.planning-cell.event-cell.booking.continuation {background:#b9dff2 !important;color:#17466d !important}
.planning-cell.event-cell.direct.arrival {background:#2f7d1f !important;color:#fff !important}
.planning-cell.event-cell.direct.continuation {background:#bde8aa !important;color:#275f1c !important}
.planning-cell.event-cell.both.arrival {background:#6f42c1 !important;color:#fff !important}
.planning-cell.event-cell.both.continuation {background:#dfc9f8 !important;color:#55308d !important}

/* V2.32 — étiquettes appartements : couleurs neutres distinctes des canaux */
.planning-apartment-label.apt-one{
  background:#334155 !important;
  color:#ffffff !important;
}
.planning-apartment-label.apt-two{
  background:#57534e !important;
  color:#ffffff !important;
}

/* Booking : champs financiers calculés */
.guest-form select{width:100%;box-sizing:border-box;margin-top:5px;padding:10px 11px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;color:#17233f;background:#fff;}
.guest-form input[readonly]{background:#f1f5f9;color:#17233f;font-weight:800;}

/* V2.40 — informations courtes affichées uniquement le jour d'arrivée */
.planning-cell.arrival strong{font-size:10px;line-height:1.2;white-space:normal;overflow:hidden;text-overflow:ellipsis;display:block;}
.planning-cell.continuation strong{display:none;}

/* V2.41 — informations du premier jour sur plusieurs lignes. */
.planning-cell.arrival .cell-source{display:block;margin-bottom:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.planning-cell.arrival .cell-name{display:block;font-size:10px;line-height:1.2;font-weight:800;white-space:normal;overflow-wrap:anywhere;}
.planning-cell.arrival .cell-info-line{display:block;font-size:9px;line-height:1.25;font-weight:700;white-space:normal;overflow-wrap:anywhere;}
.planning-cell.arrival .cell-alert-line{margin-top:2px;}
.planning-cell.arrival .blocked-label{display:block;font-size:10px;line-height:1.25;font-weight:800;white-space:normal;}
.planning-cell.continuation .cell-source,.planning-cell.continuation .cell-name,.planning-cell.continuation .cell-info-line{display:none;}

/* V2.43 — ligne adultes/enfants/animaux compacte sur une seule ligne */
.cell-info-line{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
  font-size:9px !important;
  line-height:1.05;
  letter-spacing:-0.12px;
}
.cell-name{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cell-alert-line{font-size:8px !important;}
@media(max-width:600px){
  .cell-info-line{font-size:8px !important;letter-spacing:-0.15px;}
  .cell-alert-line{font-size:7px !important;}
}


/* V2.44 — texte plus grand tout en conservant la ligne adultes/enfants/animaux */
.planning-cell.arrival .cell-source{font-size:10px !important;}
.planning-cell.arrival .cell-name{font-size:10px !important;}
.cell-info-line{font-size:10px !important;line-height:1.1;letter-spacing:-0.2px;white-space:nowrap;overflow:hidden;text-overflow:clip;}
.cell-alert-line{font-size:9px !important;}
@media(max-width:600px){
  .cell-info-line{font-size:9px !important;letter-spacing:-0.18px;}
  .cell-alert-line{font-size:8px !important;}
}

/* V2.46 — logos des plateformes dans la première nuit */
.planning-cell.arrival .cell-source{
  display:flex;
  align-items:center;
  gap:5px;
  height:15px;
}
.planning-cell .source-logo{
  width:16px;
  height:16px;
  display:block;
  flex:0 0 auto;
  color:#ffffff;
  object-fit:contain;
}
.planning-cell .source-logo-airbnb{width:17px;height:17px}
.planning-cell .source-logo-booking{width:16px;height:16px}
.planning-cell.continuation .source-logo{display:none}
.planning-cell.blocked .source-logo{color:#475569}


/* V2.50 — logo patte proportionnel à la taille du texte */
.planning-cell .cell-info-line .pet-logo{
  width:1em;
  height:1em;
  max-width:1em;
  max-height:1em;
  display:inline-block;
  vertical-align:-0.12em;
  margin:0 0.08em;
  object-fit:contain;
}

/* V2.52 — vraie icône chien, blanche et proportionnelle au texte */
.planning-cell .pet-logo{
  width:1em;
  height:1em;
  max-width:1em;
  max-height:1em;
  display:inline-block;
  vertical-align:-0.12em;
  object-fit:contain;
  flex:0 0 auto;
}

/* V2.53 — accès / authentification */
.auth-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.user-badge{font-size:11px;color:#475569;background:#eef2f7;border:1px solid #dce3eb;padding:8px 10px;border-radius:999px;white-space:nowrap}
.auth-page{min-height:100vh;display:grid;place-items:center;background:#f5f7fa;padding:20px}
.auth-card{width:min(430px,100%);background:#fff;border:1px solid #e3e8ef;border-radius:18px;padding:28px;box-shadow:0 12px 40px rgba(20,30,50,.08)}
.auth-card h1{margin:6px 0 8px;font-size:25px}.auth-intro{font-size:13px;color:#6b7280;margin:0 0 20px}
.auth-card label,.auth-users label{display:block;font-size:12px;font-weight:700;color:#374151;margin:12px 0}.auth-card input,.auth-users input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px 11px;border:1px solid #d7dde6;border-radius:9px;background:#fff;font:inherit}
.auth-card .save-guest{width:100%;margin-top:8px}
.auth-users{max-width:900px;margin:0 auto}.auth-users h3{font-size:16px;margin:26px 0 10px}.user-list{display:grid;gap:8px}.user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e2e7ee;border-radius:10px;padding:11px 13px;background:#fff}.user-row>div{min-width:0}.user-row span{display:block;color:#778091;font-size:11px;margin-top:3px}.user-row button{border:1px solid #d6dce5;background:#fff;border-radius:7px;padding:7px 9px;font-size:11px;cursor:pointer}.readonly-details{margin-top:8px}.readonly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:9px 0}.readonly-grid>div,.readonly-value,.readonly-note{border:1px solid #e2e7ee;background:#f8fafc;border-radius:9px;padding:9px 10px}.readonly-grid span{display:block;color:#7a8291;font-size:10px;margin-bottom:3px}.readonly-grid strong{font-size:13px;color:#263244;overflow-wrap:anywhere}.readonly-note{min-height:40px;font-size:12px;color:#3f4857}.personnel-no-finance{margin-top:15px;padding:10px 12px;border-radius:9px;background:#eef2f7;color:#5d6878;font-size:11px}
@media(max-width:700px){.auth-actions{width:100%;justify-content:flex-start}.user-row{align-items:flex-start;flex-direction:column}.readonly-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.readonly-grid{grid-template-columns:1fr}.user-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis}}


/* V2.54 — gestion des mots de passe utilisateurs */
.user-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.password-form{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.password-form input{min-width:150px}
@media(max-width:700px){.user-actions{align-items:stretch}.password-form{justify-content:stretch}.password-form input{min-width:0;width:100%}.password-form button{width:100%}}

/* V2.55 — calendrier mobile entièrement visible sans défilement horizontal */
@media (max-width: 600px){
  .overview-calendar{padding:6px;border-radius:10px;overflow:hidden}
  .overview-head{margin-bottom:8px}
  .overview-head h2{font-size:16px}
  .overview-head p{font-size:10px}
  .overview-sync{font-size:8px;gap:4px;margin-top:6px}
  .planning-scroll{width:100%;overflow:hidden}
  .planning-week{min-width:0 !important;width:100%;}
  .planning-date-row,
  .planning-apartment-row{
    width:100%;
    grid-template-columns:38px repeat(7,minmax(0,1fr)) !important;
  }
  .planning-date-row{min-height:38px}
  .planning-date-head{min-width:0;overflow:hidden}
  .planning-date-head span{font-size:7px;letter-spacing:-.2px}
  .planning-date-head strong{font-size:13px;margin-top:1px}
  .planning-apartment-row{min-height:58px}
  .planning-apartment-label{font-size:9px;line-height:1;overflow:hidden;text-align:center;padding:2px}
  .planning-cell{min-width:0 !important;min-height:58px !important;padding:3px 2px !important;overflow:hidden}
  .planning-cell.arrival .cell-source{font-size:7px !important;height:11px;gap:2px;margin-bottom:1px}
  .planning-cell.arrival .cell-name{font-size:7px !important;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .planning-cell.arrival .cell-info-line{font-size:6.5px !important;line-height:1.05;letter-spacing:-.25px;white-space:nowrap;overflow:hidden}
  .planning-cell.arrival .cell-alert-line{font-size:6px !important;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .planning-cell .source-logo{width:11px !important;height:11px !important}
  .planning-cell .source-logo-airbnb{width:12px !important;height:12px !important}
  .planning-cell .source-logo-booking{width:11px !important;height:11px !important}
  .planning-cell .pet-logo{width:1em !important;height:1em !important;max-width:1em !important;max-height:1em !important}
  .planning-cell.arrival .blocked-label{font-size:7px;line-height:1.05}
  .legend{gap:5px 9px;font-size:9px;flex-wrap:wrap;margin:7px 0}
  .month-nav{margin-bottom:7px}
}

/* Export iCal — page Administration uniquement */
.ical-export-box{margin-top:24px;padding:18px;border:1px solid #dbe3ec;border-radius:12px;background:#f8fafc}
.ical-export-box h3{margin-top:0}
.ical-export-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid #e2e8f0}
.ical-export-row:first-of-type{border-top:0}
.ical-export-row>div:first-child{display:flex;flex-direction:column;gap:4px}
.ical-export-row>div:first-child span{font-size:.86rem;color:#64748b}
.ical-export-link{display:flex;gap:8px;align-items:center;flex:1;max-width:700px}
.ical-export-link input{flex:1;min-width:0;padding:9px 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;font-size:.84rem}
.ical-export-link button{padding:9px 12px;border:0;border-radius:7px;cursor:pointer;background:#334155;color:#fff;font-weight:600}
@media(max-width:700px){.ical-export-row{align-items:stretch;flex-direction:column}.ical-export-link{max-width:none}.ical-export-link input{font-size:.75rem}}


/* V2.57 — en-tête compact : menu mobile unique, sans doublon */
.topbar{padding-top:12px;padding-bottom:12px;gap:14px}
.topbar-title h1{margin-top:3px}
.auth-desktop-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.mobile-menu{display:none}
.mobile-menu summary{list-style:none;cursor:pointer;background:#172033;color:#fff;border-radius:9px;padding:9px 11px;font-weight:700;font-size:13px;white-space:nowrap}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu-panel{position:absolute;right:0;top:calc(100% + 7px);width:min(270px,calc(100vw - 24px));background:#fff;border:1px solid #dfe4ea;border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.16);padding:7px;z-index:100}
.mobile-menu-panel a{display:block;padding:10px 11px;border-radius:7px;color:#172033;text-decoration:none;font-size:13px;font-weight:700}
.mobile-menu-panel a:hover{background:#f1f5f9}
.mobile-menu-user{padding:8px 11px 9px;color:#64748b;font-size:11px;border-bottom:1px solid #e5e7eb;margin-bottom:3px}
.auth-actions{position:relative}
@media(max-width:700px){
  .topbar{padding:9px 10px;gap:8px;align-items:center}
  .topbar-title{min-width:0;flex:1}
  .eyebrow{font-size:9px;letter-spacing:1.3px}
  .topbar h1{font-size:19px;line-height:1.05;margin:2px 0 0}
  .auth-actions{width:auto;display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto}
  .user-badge{display:none}
  .auth-desktop-links{display:none}
  .mobile-menu{display:block;position:relative}
  .mobile-menu summary{padding:8px 10px;font-size:12px}
}
@media(max-width:380px){
  .topbar{padding:8px 8px}
  .topbar h1{font-size:18px}
  .eyebrow{font-size:8px}
  .mobile-menu summary{padding:7px 8px;font-size:11px}
}

/* V2.60 — icônes modernes pour Paramètres et Actualiser */
.refresh{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.nav-icon{font-size:16px;line-height:1;display:inline-block}
@media(max-width:700px){
  .mobile-menu-panel .nav-icon{margin-right:3px}
}


/* V2.62 — vrais boutons icônes + correction Paramètres */
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border-radius:9px;background:#172033;color:#fff;text-decoration:none;font-size:20px;font-weight:700;line-height:1;box-sizing:border-box;transition:opacity .15s,transform .15s}
.icon-button:hover{opacity:.9;transform:translateY(-1px)}
.icon-button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.auth-desktop-links{gap:7px}
.mobile-menu summary{width:40px;height:40px;padding:0;display:flex;align-items:center;justify-content:center;font-size:20px;border-radius:9px}
@media(max-width:700px){.auth-actions{gap:6px}.mobile-menu summary{width:40px;height:40px}.mobile-menu-panel .nav-icon{margin-right:5px}}
@media(max-width:380px){.icon-button,.mobile-menu summary{width:36px;height:36px;font-size:18px}}

.linen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:6px 0 7px}
.linen-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;padding:4px 6px;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc;min-width:0;min-height:34px;box-sizing:border-box}
.linen-row>span{font-size:10.5px;font-weight:700;color:#334155;line-height:1.1;min-width:0;white-space:normal}
.linen-stepper{display:grid;grid-template-columns:22px 34px 22px;align-items:center;gap:1px;flex:0 0 auto}
.linen-stepper button{width:22px;height:24px;flex:0 0 22px;padding:0;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#172033;font-weight:800;font-size:9px;line-height:1;cursor:pointer}
.linen-stepper button:hover{background:#eef2f7}
.linen-stepper input{width:34px!important;height:24px;flex:0 0 34px;margin:0;padding:2px;text-align:center;border:1px solid #cbd5e1;border-radius:5px;font:inherit;font-size:11px;font-weight:800;color:#172033;background:#fff;box-sizing:border-box}
.linen-help{font-size:11px;color:#64748b;align-self:center;padding:3px 0}
@media(max-width:700px){
  /* V80 — conserver 2 articles de linge par ligne sur mobile */
  .linen-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:6px 0 7px!important;width:100%!important}
  .linen-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:4px!important;padding:4px 5px!important;min-height:34px!important;text-align:left!important;width:100%!important;box-sizing:border-box!important}
  .linen-row>span{font-size:10px!important;line-height:1.1!important;min-height:0!important;display:block!important;white-space:normal!important;text-align:left!important}
  .linen-stepper{display:grid!important;grid-template-columns:20px 32px 20px!important;align-items:center!important;justify-content:end!important;gap:1px!important}
  .linen-stepper button{width:20px!important;height:23px!important;flex-basis:20px!important;font-size:9px!important;padding:0!important}
  .linen-stepper input{width:32px!important;height:23px!important;flex-basis:32px!important;font-size:11px!important;margin:0!important}
  .linen-help{font-size:10px;line-height:1.2}
}
.accounting-page{padding-bottom:40px}.accounting-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0}.accounting-toolbar>div{text-align:center}.accounting-toolbar strong{font-size:1.2rem}.month-arrow{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;text-decoration:none;background:#fff;border:1px solid #dbe3ec;font-size:1.8rem;color:#1e3a5f}.accounting-filters{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px}.accounting-filters select{padding:8px 10px;border:1px solid #d4dde8;border-radius:9px;background:#fff}.accounting-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.accounting-cards>div{background:#fff;border:1px solid #e1e8ef;border-radius:12px;padding:14px 16px}.accounting-cards span{display:block;color:#64748b;font-size:.85rem}.accounting-cards strong{display:block;margin-top:5px;font-size:1.18rem}.accounting-cards .result-card{background:#eef7ee}.accounting-table{width:100%;border-collapse:collapse;background:#fff}.accounting-table th,.accounting-table td{padding:9px 10px;border-bottom:1px solid #e7edf3;text-align:right;white-space:nowrap}.accounting-table th:first-child,.accounting-table td:first-child{text-align:left}.accounting-table thead th{background:#f5f8fb;color:#475569;font-size:.82rem}.accounting-table .strong-row td{font-weight:700;border-top:2px solid #cbd5e1}.table-scroll{overflow-x:auto}.detail-table{font-size:.88rem}.empty-cell{text-align:center!important;color:#64748b;padding:20px!important}.linen-total-table{margin-top:16px;max-width:720px}.accounting-note{margin-top:16px;padding:12px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;color:#475569;font-size:.88rem}.tariff-table-wrap{overflow-x:auto}.tariff-table{width:100%;border-collapse:collapse;font-size:.88rem}.tariff-table th,.tariff-table td{padding:8px;border-bottom:1px solid #e7edf3;text-align:right;white-space:nowrap}.tariff-table th:first-child,.tariff-table td:first-child{text-align:left}.tariff-table th{background:#f5f8fb;color:#475569}.settings-subsection h4{margin-top:18px}
@media(max-width:800px){.accounting-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-toolbar{gap:8px}.accounting-toolbar strong{font-size:1rem}.month-arrow{width:36px;height:36px}.accounting-filters select{max-width:150px}.accounting-table th,.accounting-table td{padding:8px 7px}}

/* V81 — verrouillage de la grille linge sur mobile : 2 articles par ligne */
@media screen and (max-width:700px){
  .guest-form .linen-grid{display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;grid-auto-flow:row !important;grid-auto-columns:auto !important;align-items:stretch !important;gap:7px !important;width:100% !important;box-sizing:border-box !important;}
  .guest-form .linen-row{display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;width:100% !important;min-width:0 !important;box-sizing:border-box !important;}
  .guest-form .linen-row:nth-child(odd), .guest-form .linen-row:nth-child(even){grid-column:auto !important;}
}
