/* =====================================================
   MYCLEANHUB — Design System v3
   Inspiré BigCommerce : dark navy, typo massive, carré
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand:        #18A876;
  --brand-dark:   #0F6E56;
  --brand-light:  #E8F8F2;
  --brand-muted:  #6ECFAD;

  --blue:         #1B6CC8;
  --blue-dark:    #134FA0;
  --blue-light:   #E8F0FB;

  --navy:         #07172E;
  --navy-mid:     #132847;
  --navy-light:   #1E3A5F;

  --text-primary:   #0A0A0A;
  --text-secondary: #3D3D3D;
  --text-muted:     #707070;
  --text-placeholder: #A8A8A8;

  --surface:      #F6F6F6;
  --surface-alt:  #EEEEEE;
  --white:        #FFFFFF;
  --black:        #0A0A0A;

  --border:       #E2E2E2;
  --border-dark:  #BEBEBE;

  --danger:       #D93025;
  --danger-light: #FDECEA;
  --warning:      #E37400;
  --warning-light:#FFF3E0;
  --info:         #1B6CC8;
  --info-light:   #E8F0FB;

  --radius-sm:    2px;
  --radius-md:    4px;
  --radius-card:  6px;
  --radius-pill:  4px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);

  --bg: var(--white);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
}
/* Clip horizontal overflow sur mobile UNIQUEMENT — overflow-x:hidden casse position:sticky */
@media (max-width: 768px) {
  body { overflow-x: clip; }
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Containers ── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 680px;  margin: 0 auto; padding: 0 32px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s, transform .1s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary  { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-light); }

.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border-dark); }
.btn-outline:hover { border-color: var(--black); color: var(--black); }

.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn-dark  { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: #222; }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-ghost  { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text-primary); background: var(--surface); }

.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-full { width: 100%; }

/* ── Badge / Tag ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-green   { background: var(--brand-light); color: var(--brand-dark); }
.badge-yellow  { background: var(--warning-light); color: var(--warning); }
.badge-red     { background: var(--danger-light); color: var(--danger); }
.badge-blue    { background: var(--blue-light); color: var(--blue); }
.badge-gray    { background: var(--surface-alt); color: var(--text-muted); }
.badge-brand   { background: var(--brand-light); color: var(--brand-dark); }
.badge-success { background: #E6F9EE; color: #1A7A40; }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-info    { background: var(--blue-light); color: var(--blue); }

/* ── Card ── */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.card:hover { border-color: var(--brand); }
.card-body { padding: 20px; }

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-dark);
  background: var(--white);
  font-size: 15px; color: var(--text-primary);
  transition: border-color .12s;
}
.form-input::placeholder { color: var(--text-placeholder); }
.form-input:focus { outline: none; border-color: var(--brand); border-width: 2px; }
.form-input.error { border-color: var(--danger); }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; font-weight: 500; }
.form-hint  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Stars / Avatar ── */
.stars { color: var(--warning); letter-spacing: 1px; }
.avatar {
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--brand-dark);
  flex-shrink: 0;
}
.avatar-sm  { width: 32px;  height: 32px;  font-size: 13px; }
.avatar-md  { width: 48px;  height: 48px;  font-size: 18px; }
.avatar-lg  { width: 72px;  height: 72px;  font-size: 26px; }
.avatar-xl  { width: 96px;  height: 96px;  font-size: 34px; }

/* ── Divider ── */
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 13px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Spinner ── */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(29,158,117,.2);
  border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

/* ── Alert ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  font-size: 14px; display: flex; gap: 10px; align-items: flex-start;
}
.alert-success { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); }
.alert-danger  { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }
.alert-info    { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }

/* ══════════════════════════════════════════
   NAVBAR — style BigCommerce
   ══════════════════════════════════════════ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  height: 64px; display: flex; align-items: center;
  overflow: hidden;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; width: 100%;
}
.navbar-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
/* Desktop : logo contenu dans la navbar */
.navbar-logo img, .navbar-logo-img { height: 48px; width: auto; max-height: 48px; }
.navbar-logo-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-link {
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: color .12s, border-color .12s;
}
.navbar-link:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }
.navbar-link.active { color: var(--brand); border-bottom-color: var(--brand); }
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.navbar-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.navbar-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); transition: .3s;
}
.mobile-menu {
  display: none; background: var(--white);
  border-top: 1px solid var(--border); padding: 12px 0;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 32px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--text-primary); border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--surface); color: var(--brand); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  padding: 64px 0 32px;
  border-top: 3px solid var(--brand);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand {
  color: #fff; font-family: var(--font-display);
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1) opacity(.9); }
.footer-desc  { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-heading {
  color: rgba(255,255,255,.9);
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; transition: color .12s; }
.footer-links a:hover { color: var(--brand-muted); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-display); letter-spacing: .3px;
}
.footer-bottom a:hover { color: #fff; }

/* ══════════════════════════════════════════
   PRO CARD
   ══════════════════════════════════════════ */
.pro-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: border-color .12s, box-shadow .12s;
  text-decoration: none; color: inherit;
}
.pro-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(29,158,117,.12);
}
.pro-card-info { flex: 1; min-width: 0; }
.pro-card-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  display: flex; align-items: center; gap: 6px; margin-bottom: 2px;
}
.pro-card-city { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.pro-card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid #fff; position: absolute; bottom: 2px; right: 2px;
}
.avail-dot.online  { background: var(--brand); }
.avail-dot.offline { background: var(--text-placeholder); }
.avatar-wrap { position: relative; flex-shrink: 0; }

/* ── Section ── */
.section    { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px;
  line-height: 1.15; letter-spacing: -.5px;
}
.section-subtitle {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 48px; max-width: 520px; line-height: 1.6;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--brand);
  border-left: 3px solid var(--brand);
  padding-left: 10px; margin-bottom: 16px;
}

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Pills / Chips ── */
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--border-dark);
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .2px;
  color: var(--text-secondary);
  cursor: pointer; transition: all .12s; white-space: nowrap;
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill-clear { background: var(--danger-light); border-color: var(--danger); color: var(--danger); }

.cat-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--white); border: 1.5px solid var(--border);
  cursor: pointer; transition: all .12s; white-space: nowrap;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand); }
.cat-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px; width: 100%; max-width: 480px;
  transform: translateY(12px); transition: transform .2s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border);
}
.modal-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--text-muted); transition: all .12s;
}
.modal-close:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); }
.tab-btn {
  padding: 12px 20px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .2px;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  cursor: pointer; transition: color .12s, border-color .12s;
  margin-bottom: -2px; background: none; border-top: none; border-left: none; border-right: none;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Status ── */
.status-confirmed   { background: var(--brand-light); color: var(--brand-dark); }
.status-pending     { background: var(--warning-light); color: var(--warning); }
.status-cancelled   { background: var(--danger-light); color: var(--danger); }
.status-completed   { background: var(--surface-alt); color: var(--text-muted); }
.status-in_progress { background: var(--blue-light); color: var(--blue); }

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 300; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--navy); color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  min-width: 280px; animation: slideIn .2s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.success { border-left-color: var(--brand); }
.toast.error   { border-left-color: var(--danger); }
@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Auth ── */
body.auth-layout { min-height: 100vh; display: flex; flex-direction: column; }
.auth-page {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; min-height: calc(100vh - 64px);
  background: var(--surface);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 40px; width: 100%; max-width: 440px;
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { height: 48px; width: auto; margin: 0 auto; }
.auth-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--text-primary);
  margin-top: 8px; margin-bottom: 4px; letter-spacing: -.3px;
}
.auth-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 13px; margin: 20px 0;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-google {
  background: var(--white); border: 1.5px solid var(--border-dark);
  color: var(--text-primary); font-family: var(--font-display); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 13px 24px; border-radius: var(--radius-md);
  cursor: pointer; transition: border-color .12s; width: 100%;
}
.btn-google:hover { border-color: var(--black); }

/* ══════════════════════════════════════════
   TOPBAR CONNEXION
   ══════════════════════════════════════════ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  height: 38px;
  display: flex; align-items: center;
  z-index: 200; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 4px; width: 100%;
}
.topbar-greeting { flex: 1; font-size: 12px; opacity: .6; font-family: var(--font-display); }
.topbar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .12s; text-decoration: none; white-space: nowrap;
}
.topbar-btn-ghost { color: rgba(255,255,255,.75); background: transparent; }
.topbar-btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.topbar-btn-white { background: var(--brand); color: #fff; }
.topbar-btn-white:hover { background: var(--brand-dark); }
.topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,.15); margin: 0 4px; }
.topbar-user { display: flex; align-items: center; gap: 8px; }
.topbar-user-name { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: #fff; }
.topbar-user-avatar {
  width: 22px; height: 22px; border-radius: var(--radius-sm);
  background: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
@media (max-width: 600px) { .topbar-greeting { display: none; } }

/* ══════════════════════════════════════════
   ANNOUNCEMENT BANNER
   ══════════════════════════════════════════ */
.announcement-bar {
  background: linear-gradient(90deg, var(--navy) 0%, #0F3460 50%, var(--navy-light) 100%);
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.announcement-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.announcement-left { display: flex; align-items: center; gap: 14px; }
.announcement-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.announcement-text {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
}
.announcement-text strong { color: #FFD700; font-weight: 700; }
.announcement-counter {
  display: flex; align-items: center; gap: 16px;
}
.counter-track {
  width: 140px; height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 0;
  overflow: hidden;
}
.counter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #2EC08D);
  border-radius: 0;
  transition: width 1s ease;
  width: 0%;
}
.counter-label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
}
.counter-num { color: #fff; font-size: 14px; }
.announcement-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .2px; white-space: nowrap;
  transition: background .12s; flex-shrink: 0;
}
.announcement-cta:hover { background: var(--brand-dark); }
@media (max-width: 768px) {
  .announcement-inner { flex-direction: column; gap: 12px; text-align: center; }
  .announcement-left { flex-direction: column; gap: 8px; }
  .counter-track { width: 120px; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-links, .navbar-actions .btn-outline { display: none; }
  .navbar-toggle { display: flex; }
  .navbar { height: 64px; overflow: hidden; }
  .navbar-logo img, .navbar-logo-img { height: 44px; max-width: 130px; object-fit: contain; object-position: left center; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }
}
@media (max-width: 768px) {
  .navbar-actions { display: flex; gap: 6px; }
  .navbar-actions .btn-outline { display: none; }
  .navbar-actions .btn-ghost   { display: none; }
}

/* ══════════════════════════════════════════
   MOBILE FIXES — composants partagés
   Scope : <= 640px (iPhone SE / standard Android)
   Ne PAS modifier le desktop au-dessus de ce breakpoint.
   ══════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Anti-zoom iOS : input font-size >= 16px requis */
  .form-input { font-size: 16px; }

  /* Tap targets — norme 44x44px (Apple HIG + Google) */
  .navbar-toggle { padding: 11px; min-width: 44px; min-height: 44px; justify-content: center; }
  .btn-sm { padding: 10px 14px; font-size: 13px; min-height: 36px; }

  /* Modals — réduire padding pour laisser respirer le contenu */
  .modal-overlay { padding: 12px; }
  .modal-box { padding: 20px; max-height: 92vh; }
  .modal-header { margin-bottom: 16px; padding-bottom: 12px; }
  .modal-title { font-size: 16px; }

  /* Auth — réduire padding double */
  .auth-page { padding: 24px 12px; min-height: auto; }
  .auth-card { padding: 24px; }
  .auth-title { font-size: 22px; }

  /* Toast — ne plus déborder sur petit écran */
  #toast-container { right: 12px; bottom: 12px; left: 12px; }
  .toast { min-width: 0; max-width: 100%; }

  /* Container-sm — padding plus raisonnable */
  .container-sm { padding: 0 16px; }

  /* Tabs — scroll horizontal si plusieurs onglets */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }

  /* Section subtitle — espacement réduit */
  .section-subtitle { margin-bottom: 32px; }

  /* Cards — padding plus compact */
  .card-body { padding: 16px; }
  .pro-card { padding: 16px; gap: 12px; }
}
