@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');

/* ════════════════════════════════════════════════════════════
   MHBM — Design Tokens
   Palette : bleu foncé · blanc · bleu clair
   ════════════════════════════════════════════════════════════ */
:root {
  /* Blues — palette principale */
  --blue-deep: #0a1e3f;      /* bleu très foncé — headers, footers, sidebars */
  --blue-dark: #12315e;       /* bleu foncé */
  --blue-primary: #1e40af;    /* bleu principal — boutons, liens importants */
  --blue-bright: #2563eb;     /* bleu vif — accents */
  --blue-light: #60a5fa;      /* bleu clair — highlights */
  --blue-soft: #dbeafe;       /* bleu très clair — fonds */
  --blue-mist: #eff6ff;       /* quasi blanc-bleuté */
  --blue-hover: #1d4ed8;      /* état hover bleu principal */

  /* Blancs */
  --white: #ffffff;
  --off-white: #fafbff;

  /* Textes (ton bleu, plus de gris) */
  --text-ink: #0a1e3f;        /* texte principal = bleu très foncé */
  --text-soft: #3b5178;       /* texte secondaire bleuté */
  --text-muted: #64748b;      /* texte léger bleuté */

  /* Bordures */
  --border-light: #dbeafe;
  --border: #bfdbfe;

  /* Feedback */
  --success: #1d6b3f;
  --error: #b91c1c;
  --info: #1e40af;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic-display: 'Noto Kufi Arabic', sans-serif;
  --font-arabic-body: 'IBM Plex Sans Arabic', sans-serif;

  /* Layout */
  --max-w: 1280px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 30, 63, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 30, 63, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 30, 63, 0.18);
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.3);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease);
}

/* ════════════════════════════════════════════════════════════
   Base & Reset
   ════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: var(--font-arabic-body); letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .display-xl, [dir="rtl"] .display-lg,
[dir="rtl"] .display-md, [dir="rtl"] .display-sm, [dir="rtl"] .font-display {
  font-family: var(--font-arabic-display); font-weight: 600; letter-spacing: 0;
}
[dir="rtl"] .label { font-family: var(--font-arabic-body); font-weight: 600; letter-spacing: 0.02em; }
[dir="rtl"] p, [dir="rtl"] li, [dir="rtl"] .text-lg, [dir="rtl"] .text-md { line-height: 1.9; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   Layout
   ════════════════════════════════════════════════════════════ */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ════════════════════════════════════════════════════════════
   Typography Scale
   ════════════════════════════════════════════════════════════ */
.display-xl { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--blue-deep); }
.display-lg { font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: var(--blue-deep); }
.display-md { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 600; line-height: 1.2; color: var(--blue-deep); }
.display-sm { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 600; line-height: 1.25; color: var(--blue-deep); }
.text-xl { font-size: 1.25rem; line-height: 1.6; }
.text-lg { font-size: 1.0625rem; line-height: 1.65; color: var(--text-soft); }
.text-md { font-size: 0.9375rem; line-height: 1.65; }
.text-sm { font-size: 0.875rem; line-height: 1.6; }
.text-xs { font-size: 0.8125rem; line-height: 1.55; }
.label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-bright);
}
.text-center { text-align: center; }
.text-blue { color: var(--blue-primary); }
.text-muted { color: var(--text-muted); }
.font-display { font-family: var(--font-display); }

/* ════════════════════════════════════════════════════════════
   Sections
   ════════════════════════════════════════════════════════════ */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-xs { padding: 36px 0; }
.section-white { background: var(--white); }
.section-soft { background: var(--blue-mist); }
.section-blue { background: var(--blue-primary); color: var(--white); }
.section-deep { background: var(--blue-deep); color: var(--white); }

/* ════════════════════════════════════════════════════════════
   Grid utilities
   ════════════════════════════════════════════════════════════ */
.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; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 20px; } .gap-6 { gap: 24px; }

@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; } .section-sm { padding: 36px 0; }
}

/* ════════════════════════════════════════════════════════════
   Navigation
   ════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 14px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
@media (max-width: 768px) { .nav-inner { padding: 10px 20px; } }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--blue-deep); letter-spacing: 0.3px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.brand:hover { opacity: 0.8; }
.brand img { max-height: 64px; width: auto; display: block; }
@media (max-width: 640px) {
  .brand img { max-height: 48px; }
}
.brand-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  padding: 9px 16px; border-radius: 6px; font-size: 0.9375rem; font-weight: 500;
  color: var(--text-soft); transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--blue-primary); background: var(--blue-soft); }
.nav-cta {
  background: var(--blue-primary); color: var(--white) !important;
  padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 0.9375rem;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--blue-hover); transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════
   Hero
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative; padding: 120px 24px 100px; text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-mist) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -150px; left: -150px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1; margin: 20px auto 24px; max-width: 900px;
  color: var(--blue-deep); font-weight: 700; letter-spacing: -0.02em;
  position: relative;
}
.hero .accent-word { color: var(--blue-bright); font-style: italic; font-weight: 600; }
.hero p {
  font-size: 1.125rem; color: var(--text-soft); max-width: 680px;
  margin: 0 auto 40px; line-height: 1.65; position: relative;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ════════════════════════════════════════════════════════════
   Buttons
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  border: 1.5px solid transparent; font-size: 0.9375rem;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue-primary); color: var(--white);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3);
}
.btn-primary:hover { background: var(--blue-hover); box-shadow: var(--shadow-blue); }
.btn-light {
  background: var(--blue-bright); color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-light:hover { background: var(--blue-light); }
.btn-outline {
  border: 1.5px solid var(--blue-primary); color: var(--blue-primary); background: transparent;
}
.btn-outline:hover { background: var(--blue-primary); color: var(--white); }
.btn-outline-white {
  border: 1.5px solid var(--white); color: var(--white); background: transparent;
}
.btn-outline-white:hover { background: var(--white); color: var(--blue-deep); }
.btn-ghost { color: var(--blue-primary); background: transparent; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #991b1b; }
.btn-wa { background: #25D366; color: var(--white); }
.btn-wa:hover { background: #1fb855; }

/* ════════════════════════════════════════════════════════════
   Section Headers
   ════════════════════════════════════════════════════════════ */
.sec-hdr { text-align: center; margin-bottom: 56px; }
.sec-hdr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin: 14px 0 0; color: var(--blue-deep); font-weight: 600;
  letter-spacing: -0.015em;
}
.sec-hdr p { color: var(--text-soft); max-width: 640px; margin: 16px auto 0; font-size: 1.0625rem; line-height: 1.65; }
.divider-gold { display: block; width: 60px; height: 3px; background: linear-gradient(90deg, var(--blue-bright), var(--blue-light)); margin: 14px auto; border-radius: 2px; }

/* ════════════════════════════════════════════════════════════
   Service Cards
   ════════════════════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.service-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 32px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--blue-soft); color: var(--blue-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display); font-size: 1.35rem;
  margin: 0 0 12px; color: var(--blue-deep); font-weight: 600;
}
.service-card p { color: var(--text-soft); line-height: 1.65; margin: 0; font-size: 0.9375rem; }

/* ════════════════════════════════════════════════════════════
   Testimonials
   ════════════════════════════════════════════════════════════ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: 14px;
  padding: 32px; position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 8px; right: 24px;
  font-family: var(--font-display); font-size: 5rem;
  color: var(--blue-soft); line-height: 1; pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; color: var(--blue-bright); position: relative; }
.testimonial-stars svg { fill: currentColor; }
.testimonial-text {
  font-family: var(--font-display); font-style: italic;
  line-height: 1.7; color: var(--text-ink); margin: 0 0 24px;
  font-size: 1.0625rem; font-weight: 400; position: relative;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--border-light); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.25);
}
.testimonial-name { font-weight: 600; color: var(--blue-deep); font-size: 0.9375rem; }
.testimonial-loc { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* ════════════════════════════════════════════════════════════
   Blog Cards
   ════════════════════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.blog-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: 14px;
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-bright) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--white);
  position: relative; overflow: hidden;
}
.blog-cover::after {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.4), transparent 70%);
}
.blog-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-body h3 {
  font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 12px;
  color: var(--blue-deep); line-height: 1.3; font-weight: 600;
}
.blog-body p { color: var(--text-soft); line-height: 1.65; font-size: 0.9375rem; margin: 0 0 18px; flex: 1; }

/* ════════════════════════════════════════════════════════════
   Forms
   ════════════════════════════════════════════════════════════ */
.form-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 36px; max-width: 640px; margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 8px;
  color: var(--blue-deep); font-size: 0.875rem; letter-spacing: 0.02em;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--text-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 0.9375rem;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   Calendar
   ════════════════════════════════════════════════════════════ */
.calendar { background: var(--white); border: 1px solid var(--border-light); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.calendar-header h3 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--blue-deep); font-weight: 600; text-transform: capitalize; }
.calendar-nav { display: flex; gap: 8px; }
.calendar-nav button {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--blue-primary); font-size: 1.1rem;
  transition: all var(--transition);
}
.calendar-nav button:hover { background: var(--blue-primary); color: var(--white); border-color: var(--blue-primary); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-day-name {
  text-align: center; padding: 10px 4px;
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
}
.calendar-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--blue-mist); color: var(--text-muted);
  font-size: 0.9375rem; cursor: default; transition: all var(--transition);
  border: 1.5px solid transparent; font-weight: 500;
}
.calendar-day.empty { background: transparent; }
.calendar-day.available {
  background: var(--white); color: var(--blue-deep);
  cursor: pointer; border-color: var(--border);
}
.calendar-day.available:hover { background: var(--blue-soft); border-color: var(--blue-bright); color: var(--blue-primary); }
.calendar-day.selected {
  background: var(--blue-primary); color: var(--white);
  border-color: var(--blue-primary); font-weight: 700;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.3);
}
.calendar-day.blocked { background: var(--blue-mist); color: var(--text-muted); text-decoration: line-through; cursor: not-allowed; opacity: 0.5; }
.calendar-day.past { opacity: 0.35; }

.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.time-slot {
  padding: 12px; text-align: center;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); cursor: pointer;
  transition: all var(--transition);
  font-weight: 600; font-size: 0.9375rem; color: var(--blue-primary);
}
.time-slot:hover { background: var(--blue-soft); border-color: var(--blue-bright); color: var(--blue-deep); }
.time-slot.selected {
  background: var(--blue-bright); color: var(--white);
  border-color: var(--blue-bright);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* ════════════════════════════════════════════════════════════
   Tables
   ════════════════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.data-table thead { background: var(--blue-deep); }
.data-table th {
  padding: 14px 16px; text-align: left; font-weight: 600;
  color: var(--white); font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 0.9375rem; color: var(--text-ink); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--blue-mist); }

/* ════════════════════════════════════════════════════════════
   Badges
   ════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-pending { background: var(--blue-soft); color: var(--blue-primary); }
.badge-confirmed { background: #d1fae5; color: var(--success); }
.badge-cancelled { background: #fee2e2; color: var(--error); }
.badge-new { background: var(--blue-soft); color: var(--blue-primary); }
.badge-in_progress { background: var(--blue-mist); color: var(--blue-deep); }
.badge-done { background: #d1fae5; color: var(--success); }

/* ════════════════════════════════════════════════════════════
   Stats
   ════════════════════════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 24px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700;
  color: var(--blue-primary); margin: 0 0 6px; line-height: 1;
}
.stat-card .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   Footer
   ════════════════════════════════════════════════════════════ */
.footer { background: var(--blue-deep); color: var(--white); padding: 64px 24px 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer h4 { color: var(--blue-light); margin: 0 0 18px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em; }
.footer a { display: block; padding: 5px 0; color: var(--white); font-size: 0.9375rem; transition: color var(--transition); opacity: 0.85; }
.footer a:hover { color: var(--blue-light); opacity: 1; }
.footer p { font-size: 0.9375rem; line-height: 1.7; color: rgba(255,255,255,0.8); margin: 0; }
.footer-bottom {
  max-width: var(--max-w); margin: 40px auto 0; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.6);
}

/* ════════════════════════════════════════════════════════════
   WhatsApp Float
   ════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  background: #25D366; color: var(--white); border-radius: 999px;
  padding: 15px 24px; font-weight: 600; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5); }

/* ════════════════════════════════════════════════════════════
   Alerts
   ════════════════════════════════════════════════════════════ */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 0.9375rem; line-height: 1.5; }
.alert-success { background: #d1fae5; color: var(--success); border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: var(--error); border: 1px solid #fecaca; }
.alert-info { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid var(--border); }

/* ════════════════════════════════════════════════════════════
   Auth Pages
   ════════════════════════════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 50%, var(--blue-bright) 100%);
  position: relative; overflow: hidden;
}
.auth-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.3), transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(30, 64, 175, 0.3), transparent 40%);
}
.auth-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: 18px; padding: 44px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg); position: relative;
}
.auth-card h1 {
  margin: 0 0 10px; color: var(--blue-deep);
  font-family: var(--font-display); font-size: 1.8rem; text-align: center; font-weight: 600;
}
.auth-card .sub { color: var(--text-soft); text-align: center; margin: 0 0 32px; font-size: 0.9375rem; }

/* ════════════════════════════════════════════════════════════
   Dashboard
   ════════════════════════════════════════════════════════════ */
.dash-wrap { min-height: 100vh; background: var(--blue-mist); }
.dash-inner { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.dash-sidebar {
  background: var(--blue-deep); color: var(--white);
  padding: 28px 20px;
}
.dash-sidebar .brand { color: var(--white); margin-bottom: 36px; }
.dash-sidebar .brand span:last-child { color: var(--blue-light); }
.dash-menu { display: flex; flex-direction: column; gap: 4px; }
.dash-menu a {
  padding: 11px 16px; border-radius: 8px; color: rgba(255,255,255,0.85);
  font-size: 0.9375rem; transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; gap: 12px;
}
.dash-menu a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-menu a.active {
  background: linear-gradient(90deg, var(--blue-bright), var(--blue-primary));
  color: var(--white); font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.dash-main { padding: 36px; overflow-x: auto; }
.dash-main h1 { margin: 0 0 8px; color: var(--blue-deep); font-family: var(--font-display); font-weight: 600; }
.dash-main .subtitle { color: var(--text-muted); margin-bottom: 32px; }
@media (max-width: 900px) {
  .dash-inner { grid-template-columns: 1fr; }
  .dash-sidebar { padding: 18px; }
  .dash-menu { flex-direction: row; overflow-x: auto; }
  .dash-menu a { white-space: nowrap; }
}

/* ════════════════════════════════════════════════════════════
   File list
   ════════════════════════════════════════════════════════════ */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--blue-mist); border-radius: 8px;
  border: 1px solid var(--border-light); transition: border-color var(--transition);
}
.file-item:hover { border-color: var(--blue-bright); }
.file-item .name { font-weight: 600; color: var(--blue-deep); }
.file-item .meta { color: var(--text-muted); font-size: 0.8125rem; }

.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

/* ════════════════════════════════════════════════════════════
   Lock notice (auth requise)
   ════════════════════════════════════════════════════════════ */
.auth-notice {
  background: var(--white); border: 2px solid var(--blue-soft);
  border-radius: 16px; padding: 32px; text-align: center;
  max-width: 520px; margin: 32px auto;
  box-shadow: var(--shadow-md);
}
.auth-notice .lock-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 2rem;
}
.auth-notice h3 {
  font-family: var(--font-display); color: var(--blue-deep);
  font-size: 1.5rem; margin: 0 0 10px;
}
.auth-notice p { color: var(--text-soft); margin-bottom: 24px; line-height: 1.6; }
.auth-notice .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Demo box */
.demo-box {
  margin-top: 20px; padding: 14px 18px;
  background: var(--blue-mist); border: 1px solid var(--blue-soft);
  border-radius: 10px; font-size: 0.8125rem; color: var(--text-ink);
  line-height: 1.6;
}
.demo-box strong { color: var(--blue-primary); }

/* ════════════════════════════════════════════════════════════
   📱 RESPONSIVE — Améliorations mobile & tablette
   ════════════════════════════════════════════════════════════ */

/* ─── Navbar mobile avec menu burger ─── */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--blue-deep);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-inner { padding: 10px 16px; gap: 12px; }
  .brand img { max-height: 44px !important; }
  .nav-toggle { display: flex; align-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-light);
    z-index: 100;
    align-items: stretch;
  }
  .nav-links.active { display: flex; }
  .nav-link, .nav-cta {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    margin: 2px 0;
  }
  .nav-cta { display: block; }
}

/* ─── Hero responsive ─── */
@media (max-width: 768px) {
  .hero { padding: 60px 20px 50px; min-height: auto !important; }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.5rem) !important; }
  .hero p { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Sections ─── */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .sec-hdr { margin-bottom: 32px; }
  .sec-hdr h2 { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
  .sec-hdr p { font-size: 0.95rem; }
}

/* ─── Boutons ─── */
@media (max-width: 640px) {
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  .btn.btn-outline, .btn.btn-primary, .btn.btn-danger { width: auto; }
}

/* ─── Form-card responsive ─── */
@media (max-width: 768px) {
  .form-card { padding: 24px 18px; border-radius: 10px; }
  .form-group { margin-bottom: 16px; }
  .form-group input, .form-group textarea, .form-group select {
    padding: 12px 14px;
    font-size: 16px; /* Empêche zoom auto iOS */
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

/* ─── Grilles responsive ─── */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr !important; gap: 16px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 16px; }
  .services-grid { grid-template-columns: 1fr !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Calendrier responsive ─── */
@media (max-width: 768px) {
  .calendar { padding: 16px; }
  .calendar-header h3 { font-size: 1.1rem !important; }
  .calendar-nav button { width: 34px; height: 34px; font-size: 1rem; }
  .calendar-day { font-size: 0.85rem; }
  .calendar-day-name { font-size: 0.65rem; padding: 6px 2px; }
  .time-slots {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 8px;
  }
  .time-slot { padding: 10px 4px; font-size: 0.9rem; }
}

/* ─── Layout RDV colonne unique sur mobile ─── */
@media (max-width: 900px) {
  section .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  form.form-card[style*="position:sticky"],
  form.form-card[style*="position: sticky"] {
    position: static !important;
  }
}

/* ─── Tables responsive ─── */
@media (max-width: 768px) {
  .data-table {
    font-size: 0.8rem;
  }
  .data-table th, .data-table td {
    padding: 10px 8px;
  }
  /* Rendre les tables scrollables */
  .table-scroll, div[style*="overflow-x:auto"], div[style*="overflow-x: auto"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px;
    padding: 0 18px;
  }
}

/* ─── Stats cards ─── */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
  }
  .stat-card { padding: 16px 12px; }
  .stat-card .value { font-size: 1.75rem; }
  .stat-card .label { font-size: 0.7rem; }
}

/* ─── Dashboard sidebar mobile ─── */
@media (max-width: 900px) {
  .dash-inner { grid-template-columns: 1fr !important; }
  .dash-sidebar {
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .dash-sidebar .brand { margin-bottom: 12px; text-align: center; }
  .dash-sidebar .brand img { max-height: 40px !important; }
  .dash-menu {
    flex-direction: row !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 4px;
  }
  .dash-menu a {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  .dash-main { padding: 20px 16px; }
  .dash-main h1 { font-size: 1.4rem; }
  .dash-main .subtitle { font-size: 0.9rem; margin-bottom: 20px; }
}

/* ─── File items ─── */
@media (max-width: 640px) {
  .file-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    padding: 12px;
  }
  .file-item > div:last-child {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .file-item .btn { flex: 1; text-align: center; font-size: 0.75rem; }
}

/* ─── Alerts et messages ─── */
@media (max-width: 640px) {
  .alert { padding: 12px 14px; font-size: 0.875rem; }
  .demo-box { padding: 12px 14px; font-size: 0.75rem; }
}

/* ─── Boutons dans headers de cards ─── */
@media (max-width: 640px) {
  .flex-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .flex-between > div:last-child {
    width: 100%;
    align-items: flex-start !important;
  }
}

/* ─── Auth pages ─── */
@media (max-width: 640px) {
  .auth-wrap { padding: 16px; }
  .auth-card { padding: 28px 22px; border-radius: 12px; }
  .auth-card h1 { font-size: 1.5rem; }
}

/* ─── Footer ─── */
@media (max-width: 640px) {
  .footer { padding: 40px 20px 20px; }
  .footer-inner { grid-template-columns: 1fr !important; gap: 24px; text-align: center; }
}

/* ─── WhatsApp float ─── */
@media (max-width: 640px) {
  .wa-float {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .wa-float svg { width: 20px; height: 20px; }
}

/* ─── Page paiement responsive ─── */
@media (max-width: 640px) {
  #method-choice {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .payment-method-card {
    padding: 18px !important;
  }
}

/* ─── Header cards (RDV, avis) ─── */
@media (max-width: 640px) {
  .form-card .flex-between {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .form-card .flex-between > div:last-child {
    align-items: flex-start !important;
    flex-direction: row !important;
    flex-wrap: wrap;
  }
}

/* ─── Modal (confirmation) ─── */
@media (max-width: 640px) {
  .modal-confirmation, [style*="position:fixed"][style*="z-index:9999"] > div {
    padding: 28px 20px !important;
    max-width: 92vw !important;
  }
}

/* ─── Actions bar ─── */
@media (max-width: 640px) {
  .action-bar { flex-direction: column; gap: 8px; }
  .action-bar .btn, .action-bar a { width: 100%; justify-content: center; text-align: center; }
}

/* ─── Améliorations tactiles ─── */
@media (hover: none) and (pointer: coarse) {
  .btn, button, a.nav-link {
    min-height: 44px; /* Recommandation Apple/Google */
  }
  .calendar-day.available { min-height: 44px; }
  .time-slot { min-height: 44px; }
}

/* ─── Images responsive ─── */
img { max-width: 100%; height: auto; }

/* ─── Container padding ─── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

/* ─── Print styles ─── */
@media print {
  .nav, .footer, .wa-float, .dash-sidebar, .action-bar, form { display: none !important; }
  .dash-main { padding: 0 !important; }
  body { background: white; color: black; }
  .form-card { box-shadow: none; border: 1px solid #ccc; }
}

/* ─── Admin décision forms responsive ─── */
@media (max-width: 640px) {
  div[style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="min-width:150px"] {
    min-width: auto !important;
  }
}

/* ─── Modal overlay mobile ─── */
@media (max-width: 640px) {
  [style*="z-index:9999"][style*="position:fixed"] {
    padding: 12px !important;
  }
  [style*="z-index:9999"] .modal-confirmation,
  [style*="z-index:9999"] > div[style*="background:white"] {
    padding: 24px 18px !important;
    border-radius: 12px !important;
  }
}

/* ─── Ligne "Cabinet d'avocat · Tunis" label ─── */
@media (max-width: 640px) {
  .hero .label {
    font-size: 0.7rem !important;
    padding: 5px 12px !important;
  }
}

/* ─── Correction padding sections sur mobile étroit ─── */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .form-card { padding: 20px 14px; }
  .hero { padding: 40px 12px 30px; }
  .section { padding: 36px 0; }
  .btn { padding: 11px 16px; font-size: 0.85rem; }
  .btn-primary, .btn-outline { font-size: 0.85rem; }
}

/* ─── Titres sur très petit écran ─── */
@media (max-width: 380px) {
  .display-xl { font-size: 1.6rem !important; }
  .display-lg { font-size: 1.5rem !important; }
  .display-md { font-size: 1.35rem !important; }
  .display-sm { font-size: 1.15rem !important; }
}

/* ─── Space between actions dans les cards ─── */
@media (max-width: 640px) {
  .form-card [style*="display:flex"][style*="gap:8px"],
  .form-card [style*="display:flex"][style*="gap:6px"] {
    flex-wrap: wrap;
  }
}

/* ─── Zone confirmation payment dans espace client ─── */
@media (max-width: 640px) {
  [style*="background:linear-gradient(135deg, #fef3c7"] {
    padding: 16px !important;
  }
  [style*="background:linear-gradient(135deg, #fef3c7"] [style*="font-size:2rem"] {
    font-size: 1.5rem !important;
  }
}

/* ════════════════════════════════════════════════════════════
   📱 RESPONSIVE FINAL — Améliorations complémentaires
   ════════════════════════════════════════════════════════════ */

/* Améliorations globales toutes tailles */
* { box-sizing: border-box; }
input, textarea, select, button { font-family: inherit; }
img, svg { max-width: 100%; height: auto; }

/* ─── Empêcher scroll horizontal ─── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ─── Container universel ─── */
.container {
  width: 100%;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ─── Tables scroll horizontal automatique ─── */
.data-table { display: table; }
.data-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* ─── Cards paiement dans espace client ─── */
@media (max-width: 640px) {
  .form-card {
    padding: 20px 16px !important;
    border-radius: 12px !important;
  }
  .form-card h3.display-sm {
    font-size: 1.1rem !important;
  }
  /* Boutons dans les cards */
  .form-card [style*="display:flex"][style*="gap:8px"],
  .form-card [style*="display:flex"][style*="gap:6px"] {
    flex-wrap: wrap;
  }
  .form-card [style*="display:flex"] > .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
}

/* ─── Zone paiement (montant en gros) ─── */
@media (max-width: 640px) {
  [style*="font-size:2.5rem"],
  [style*="font-size: 2.5rem"] { font-size: 1.75rem !important; }
  [style*="font-size:2rem"],
  [style*="font-size: 2rem"] { font-size: 1.5rem !important; }
  [style*="font-size:1.8rem"],
  [style*="font-size: 1.8rem"] { font-size: 1.4rem !important; }
  [style*="font-size:4rem"],
  [style*="font-size: 4rem"] { font-size: 2.5rem !important; }
  [style*="font-size:3rem"],
  [style*="font-size: 3rem"] { font-size: 2rem !important; }
}

/* ─── Coordonnées bancaires : grid 1 auto → 1fr sur mobile ─── */
@media (max-width: 640px) {
  #bank-national div[style*="grid-template-columns:1fr auto"],
  #bank-intl div[style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  #bank-national button, #bank-intl button {
    justify-self: start;
    width: 100%;
  }
}

/* ─── Onglets bank tabs sur mobile ─── */
@media (max-width: 480px) {
  .bank-tab {
    font-size: 0.82rem !important;
    padding: 10px 8px !important;
  }
}

/* ─── Références virement lisibles sur mobile ─── */
@media (max-width: 640px) {
  [style*="font-family:monospace"] {
    font-size: 0.9rem !important;
    word-break: break-all;
  }
}

/* ─── Aperçu admin coordonnées bancaires ─── */
@media (max-width: 640px) {
  .preview-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* ─── Cards RDV/avis dans admin — actions ─── */
@media (max-width: 640px) {
  .form-card [style*="display:grid"][style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }
  .form-card [style*="min-width:150px"] {
    min-width: auto !important;
    width: 100%;
  }
}

/* ─── Modal confirmation — height contrôlée ─── */
@media (max-width: 640px) {
  .modal-confirmation, [style*="z-index:9999"] > div {
    max-height: 90vh !important;
    overflow-y: auto;
  }
}

/* ─── Aperçu image reçu ─── */
@media (max-width: 640px) {
  #receipt-preview-img {
    max-height: 250px !important;
  }
}

/* ─── Boutons paiement grand format sur desktop, petit sur mobile ─── */
@media (max-width: 640px) {
  [style*="padding:16px"][style*="width:100%"],
  [style*="padding: 16px"][style*="width: 100%"] {
    padding: 14px !important;
    font-size: 0.95rem !important;
  }
}

/* ─── Espace client — stats compactes ─── */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .stat-card { padding: 12px !important; }
  .stat-card .value { font-size: 1.4rem !important; }
  .stat-card .label { font-size: 0.68rem !important; }
}

/* ─── Nav mobile — z-index correct ─── */
.nav { z-index: 100; }
.nav-links.active { z-index: 999; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

/* ─── Login/register — hauteur adaptative ─── */
@media (max-width: 640px) {
  .auth-wrap {
    padding: 12px !important;
    align-items: flex-start !important;
    padding-top: 40px !important;
  }
  .auth-card {
    padding: 24px 20px !important;
    margin: 0 auto;
  }
}

/* ─── Améliorer la lisibilité globale sur mobile ─── */
@media (max-width: 640px) {
  body { font-size: 15px; }
  p { line-height: 1.6; }
  h1, .display-xl { line-height: 1.2 !important; }
  h2, .display-lg, .display-md { line-height: 1.25 !important; }
}

/* ─── Assurer tap targets suffisants ─── */
@media (pointer: coarse) {
  a, button, .btn, input[type="checkbox"], input[type="radio"] {
    min-height: 40px;
  }
  input[type="checkbox"], input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
  }
}

/* ─── Fix pour les inputs de type file ─── */
input[type="file"] {
  padding: 12px !important;
  border: 2px dashed var(--border) !important;
  background: var(--blue-mist);
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 0.9rem;
}
input[type="file"]:hover {
  border-color: var(--blue-bright) !important;
  background: var(--blue-soft);
}

/* ─── Textareas responsive ─── */
textarea {
  min-height: 80px;
  max-width: 100%;
  width: 100%;
  resize: vertical;
}

/* ─── Correction WhatsApp popup ─── */
@media (max-width: 640px) {
  .wa-float[style*="max-width:340px"] {
    max-width: calc(100vw - 32px) !important;
    right: 16px !important;
    left: 16px !important;
    width: auto !important;
  }
}

/* ─── Correction sur les summary cards paiement ─── */
.summary-card { overflow: hidden; }
@media (max-width: 640px) {
  .summary-card { padding: 20px 16px !important; }
}

/* ─── Tables auto-scroll universelles ─── */
.data-table {
  min-width: 100%;
  width: max-content;
}
.data-table thead th { white-space: nowrap; }
@media (max-width: 768px) {
  section .container table.data-table,
  .dash-main table.data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    white-space: nowrap;
    width: 100%;
  }
  section .container table.data-table td,
  .dash-main table.data-table td {
    white-space: nowrap;
  }
}
