/* ═══════════════════════════════════════════════════════════════════════════
   X-PROFESSO CLEANER — Design System v2.0
   Palette : Navy profond · Or/Champagne · Blanc cassé · Charbon
   Style   : Luxe sobre · Soft shadows · Typographie fine
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ─── TOKENS ────────────────────────────────────────────────────────────── */
:root {
  /* Couleurs principales */
  --navy:        #0f2340;
  --navy-mid:    #1a3558;
  --navy-light:  #1e3f6a;
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --gold-soft:   #f5e9c8;
  --cream:       #faf8f4;
  --white:       #ffffff;
  --charcoal:    #1c1c1e;
  --ink:         #2d2d2d;
  --ink-mid:     #555;
  --ink-muted:   #888;
  --border:      #e8e2d6;
  --border-dark: rgba(255,255,255,0.1);

  /* Surfaces */
  --surface:     #ffffff;
  --surface-2:   #f7f5f1;
  --surface-3:   #f0ece4;

  /* Accent pour boutons/liens dans interface */
  --accent:       var(--navy);
  --accent-light: #e8edf5;
  --success:      #2d7a4f;
  --danger:       #b91c1c;
  --warning-bg:   #fef3c7;
  --warning-text: #92400e;

  /* Typographie */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Espacements */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  18px;
  --radius-2xl: 28px;
  --radius-full: 999px;

  /* Ombres */
  --shadow-xs:  0 1px 3px rgba(15,35,64,.06);
  --shadow-sm:  0 2px 8px rgba(15,35,64,.08);
  --shadow-md:  0 6px 24px rgba(15,35,64,.10);
  --shadow-lg:  0 16px 48px rgba(15,35,64,.14);
  --shadow-xl:  0 32px 80px rgba(15,35,64,.18);

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* Dark mode */
[data-theme="dark"] {
  --surface:    #0f1923;
  --surface-2:  #162030;
  --surface-3:  #1e2d40;
  --cream:      #0f1923;
  --white:      #f0ece4;
  --charcoal:   #f0ece4;
  --ink:        #e8e2d6;
  --ink-mid:    #b0a898;
  --ink-muted:  #7a7060;
  --border:     rgba(255,255,255,.08);
  --accent-light: #1e2d40;
}

/* ─── RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

/* ─── TYPOGRAPHIE ───────────────────────────────────────────────────────── */
.display-title {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.display-title em {
  font-style: italic;
  color: var(--gold);
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; }

/* ─── NAVBAR ────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(15,35,64,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,.15);
  transition: background .3s var(--ease);
}
.navbar.scrolled { background: rgba(15,35,64,.98); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}
.nav-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold-light); }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.btn-nav-login {
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .05em;
  padding: .45rem .9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.2);
  transition: all .2s;
}
.btn-nav-login:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.btn-nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-full);
  border: none;
  transition: background .2s, transform .15s;
}
.btn-nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Mobile menu */
.nav-hamburger {
  display: none;
  background: none; border: none;
  color: #fff; cursor: pointer; padding: .4rem;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--navy);
  padding: 1.5rem 2rem 2rem;
  border-bottom: 1px solid rgba(201,168,76,.2);
  flex-direction: column; gap: 1.25rem;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: block; }
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,53,88,.8) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,168,76,.08) 0%, transparent 50%),
    linear-gradient(135deg, #0a1928 0%, #0f2340 40%, #1a3558 100%);
}

.hero-image {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .25;
  mix-blend-mode: luminosity;
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 5rem 0;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.btn-gold {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  transition: all .25s var(--ease);
  box-shadow: 0 4px 20px rgba(201,168,76,.3);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,.4);
}

.btn-ghost-white {
  display: inline-flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.2);
  transition: all .25s;
}
.btn-ghost-white:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }

.hero-badges {
  display: flex; gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.hero-badge { text-align: center; }
.hero-badge-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
}
.hero-badge-label {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .3rem;
}

/* ─── SECTION BASE ──────────────────────────────────────────────────────── */
section { padding: clamp(4rem, 10vw, 7rem) 0; }

.section-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -.01em;
}
.section-title em { font-style: italic; color: var(--gold); }

[data-theme="dark"] .section-title { color: var(--white); }

.section-subtitle {
  font-size: .95rem;
  color: var(--ink-mid);
  max-width: 520px;
  line-height: 1.75;
  margin-top: .75rem;
  font-weight: 300;
}

/* ─── COMMENT ÇA MARCHE ─────────────────────────────────────────────────── */
.steps-section { background: var(--white); }
[data-theme="dark"] .steps-section { background: var(--surface-2); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .3;
  pointer-events: none;
}

.step-card {
  text-align: center;
  padding: 2rem 1.25rem;
}

.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all .3s;
}
.step-card:hover .step-number {
  background: var(--gold);
  transform: scale(1.08);
}

.step-icon { font-size: 1.6rem; margin-bottom: .75rem; }
.step-title { font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.step-text { font-size: .83rem; color: var(--ink-muted); line-height: 1.6; font-weight: 300; }
[data-theme="dark"] .step-title { color: var(--white); }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
}
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }

/* ─── SERVICES ──────────────────────────────────────────────────────────── */
.services-section { background: var(--cream); }
[data-theme="dark"] .services-section { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  aspect-ratio: 4/3;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.service-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.service-card:hover .service-card-image img { transform: scale(1.06); }
.service-card-tag {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--navy);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .65rem;
  border-radius: var(--radius-full);
}

.service-card-body { padding: 1.4rem 1.5rem; }
.service-card-title { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.service-card-text { font-size: .82rem; color: var(--ink-muted); line-height: 1.55; font-weight: 300; }
[data-theme="dark"] .service-card { background: var(--surface-2); border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .service-card-title { color: var(--white); }

/* ─── TARIFS (page home) ────────────────────────────────────────────────── */
.tarifs-section { background: var(--navy); }

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 3rem;
  border: 1px solid rgba(255,255,255,.06);
}

.tarif-item {
  background: rgba(255,255,255,.03);
  padding: 1.5rem 1.75rem;
  transition: background .2s;
  display: flex; justify-content: space-between; align-items: center;
}
.tarif-item:hover { background: rgba(201,168,76,.06); }
.tarif-name { font-size: .9rem; color: rgba(255,255,255,.8); font-weight: 400; }
.tarif-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--gold-light);
  white-space: nowrap;
}

.tarifs-section .section-title { color: var(--white); }
.tarifs-section .section-eyebrow::before { background: var(--gold); }

/* ─── ZONES ─────────────────────────────────────────────────────────────── */
.zones-section { background: var(--white); }
[data-theme="dark"] .zones-section { background: var(--surface-2); }

.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.zone-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  transition: all .3s;
}
.zone-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.zone-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.zone-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.zone-quartiers { font-size: .8rem; color: var(--ink-muted); line-height: 1.8; font-weight: 300; }
[data-theme="dark"] .zone-card { background: var(--surface-3); border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .zone-name { color: var(--white); }

@media (max-width: 700px) { .zones-grid { grid-template-columns: 1fr; } }

/* ─── TÉMOIGNAGES ───────────────────────────────────────────────────────── */
.temoignages-section { background: var(--cream); }
[data-theme="dark"] .temoignages-section { background: var(--surface); }

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.temoignage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: box-shadow .3s;
}
.temoignage-card:hover { box-shadow: var(--shadow-md); }
.temoignage-stars { color: var(--gold); font-size: .9rem; margin-bottom: 1rem; letter-spacing: .1em; }
.temoignage-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.temoignage-author { display: flex; align-items: center; gap: .75rem; }
.temoignage-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; color: var(--navy);
  flex-shrink: 0;
}
.temoignage-name { font-size: .85rem; font-weight: 600; color: var(--navy); }
.temoignage-loc { font-size: .75rem; color: var(--ink-muted); }
[data-theme="dark"] .temoignage-card { background: var(--surface-2); border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .temoignage-name { color: var(--white); }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq-section { background: var(--white); }
[data-theme="dark"] .faq-section { background: var(--surface-2); }

.faq-list { max-width: 720px; margin: 3rem auto 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  gap: 1rem;
  transition: color .2s;
}
.faq-question:hover { color: var(--navy); }
.faq-question-text { font-size: .95rem; font-weight: 600; color: var(--navy); }
[data-theme="dark"] .faq-question-text { color: var(--white); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--gold);
  transition: background .2s, transform .3s;
}
.faq-item.open .faq-icon { background: var(--gold); color: var(--navy); transform: rotate(45deg); }
.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-body-inner {
  padding: 0 0 1.25rem;
  font-size: .88rem; color: var(--ink-mid); line-height: 1.75; font-weight: 300;
}

/* ─── CTA FINAL ─────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-content .section-title { color: var(--white); margin: 1rem 0; }
.cta-content .section-title em { color: var(--gold-light); }
.cta-content p { color: rgba(255,255,255,.55); font-size: .9rem; font-weight: 300; margin-bottom: 2.5rem; }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.footer {
  background: #080f1a;
  color: rgba(255,255,255,.55);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(201,168,76,.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: .75rem;
}
.footer-brand-tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  font-weight: 300;
  max-width: 240px;
}
.footer-social {
  display: flex; gap: .75rem; margin-top: 1.5rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-links a {
  font-size: .83rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .77rem;
  color: rgba(255,255,255,.28);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ─── TOAST ─────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9999; display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  display: flex; align-items: center; gap: .75rem;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,.2);
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 280px; max-width: 380px;
  font-size: .85rem;
  transform: translateX(120%);
  transition: transform .3s var(--ease-out);
}
.toast.show { transform: translateX(0); }
.toast-success { border-color: rgba(45,122,79,.5); }
.toast-error   { border-color: rgba(185,28,28,.5); }
.toast-warning { border-color: rgba(201,168,76,.4); }
.toast-icon { font-size: .9rem; flex-shrink: 0; }
.toast-message { flex: 1; }
.toast-close { background: none; border: none; color: rgba(255,255,255,.4); font-size: 1rem; cursor: pointer; padding: 0; line-height: 1; }
.toast-close:hover { color: #fff; }

/* ─── BOUTONS (interface) ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--font-body);
  font-size: .83rem; font-weight: 600;
  letter-spacing: .03em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  padding: .55rem 1.25rem;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary   { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-light); }
.btn-secondary { background: var(--surface-2); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-success   { background: var(--success); color: #fff; border-color: var(--success); }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost     { background: transparent; color: var(--ink-mid); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-warning   { background: #d97706; color: #fff; border-color: #d97706; }

.btn-sm  { padding: .38rem .85rem; font-size: .78rem; }
.btn-lg  { padding: .85rem 2rem; font-size: .9rem; }
.btn-icon { padding: .5rem; border-radius: 50%; width: 36px; height: 36px; }
.btn-gold-solid { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }
.btn-gold-solid:hover { background: var(--gold-light); }
.w-full { width: 100%; }

/* ─── FORMULAIRES ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-mid);
  margin-bottom: .4rem;
  text-transform: uppercase;
}
.form-control {
  display: block; width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .7rem 1rem;
  font-family: var(--font-body);
  font-size: .88rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,35,64,.08);
}
.form-control-sm { padding: .45rem .75rem; font-size: .82rem; }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
[data-theme="dark"] .form-control { background: var(--surface-3); border-color: rgba(255,255,255,.1); color: var(--white); }

/* ─── CARDS ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .card { background: var(--surface-2); border-color: rgba(255,255,255,.06); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .card-header { border-color: rgba(255,255,255,.06); }
.card-title { font-size: .9rem; font-weight: 700; color: var(--navy); margin: 0; }
[data-theme="dark"] .card-title { color: var(--white); }
.card-body { padding: 1.25rem; }

/* ─── BADGES ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .22rem .6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-accent   { background: #ede9fe; color: #5b21b6; }
.badge-gray     { background: var(--surface-3); color: var(--ink-muted); }
.badge-navy     { background: var(--navy); color: var(--gold); }
.badge-gold     { background: var(--gold-soft); color: #92400e; border: 1px solid var(--gold); }
.badge-sm       { font-size: .62rem; padding: .15rem .45rem; }

/* ─── ALERTS ────────────────────────────────────────────────────────────── */
.alert { padding: .875rem 1.25rem; border-radius: var(--radius-lg); font-size: .875rem; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.alert-danger  { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.alert-info    { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.alert-flash   { animation: slideDown .3s var(--ease-out); }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ─── INTERFACE ADMIN/LIVREUR/AGENT ─────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

.app-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--navy);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform .3s var(--ease);
  border-right: 1px solid rgba(201,168,76,.1);
}

.sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white);
  display: flex; align-items: center; gap: .6rem;
}
.sidebar-logo-icon {
  width: 30px; height: 30px;
  background: var(--gold);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-version { font-size: .68rem; color: rgba(255,255,255,.3); margin-top: .1rem; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0; }
.nav-section { margin-bottom: 1.25rem; }
.nav-section-label {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  padding: 0 1.25rem .5rem;
}
.nav-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem 1.25rem;
  color: rgba(255,255,255,.6);
  font-size: .83rem; font-weight: 500;
  transition: all .15s;
  border-left: 2px solid transparent;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active {
  background: rgba(201,168,76,.08);
  color: var(--gold-light);
  border-left-color: var(--gold);
}
.nav-icon { font-size: .95rem; width: 18px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: .1rem .4rem;
  border-radius: var(--radius-full);
  min-width: 18px; text-align: center;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-user {
  display: flex; align-items: center; gap: .65rem;
}
.sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(201,168,76,.2);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.sidebar-user-name { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .7rem; color: rgba(255,255,255,.35); }

.app-main {
  flex: 1;
  margin-left: 240px;
  display: flex; flex-direction: column;
  min-height: 100vh;
  background: #f7f6f3;
}
[data-theme="dark"] .app-main { background: var(--surface); }

.app-topbar {
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .app-topbar { background: var(--surface-2); border-color: rgba(255,255,255,.06); }

.app-content { padding: 1.5rem; flex: 1; }
@media (max-width: 768px) { .app-content { padding: 1rem; } }

/* Mobile sidebar */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 199;
}
@media (max-width: 1024px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .app-main { margin-left: 0; }
}

/* Bottom nav mobile */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,.1);
  z-index: 100;
}
.bottom-nav-inner { display: flex; height: 100%; }
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; color: rgba(255,255,255,.45); font-size: .6rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; transition: color .15s;
}
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a .bn-icon { font-size: 1.1rem; }
@media (max-width: 1024px) {
  .bottom-nav { display: flex; }
  .app-main { padding-bottom: 60px; }
}

/* ─── DATA TABLE ─────────────────────────────────────────────────────────── */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: .83rem;
}
.data-table thead th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tfoot td { padding: .75rem 1rem; font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--border); }
@media (max-width: 768px) { .data-table { display: none; } }
[data-theme="dark"] .data-table thead th { background: var(--surface-3); border-color: rgba(255,255,255,.06); color: rgba(255,255,255,.35); }
[data-theme="dark"] .data-table tbody td { border-color: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
[data-theme="dark"] .data-table tbody tr:hover { background: var(--surface-3); }

/* ─── CARD LIST (mobile) ─────────────────────────────────────────────────── */
.card-list { display: none; }
@media (max-width: 768px) { .card-list { display: block; } }
.card-list-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
[data-theme="dark"] .card-list-item { background: var(--surface-2); border-color: rgba(255,255,255,.06); }
.card-list-item:last-child { border-bottom: none; }
.cli-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.cli-body { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .5rem; }
.cli-footer { display: flex; justify-content: space-between; align-items: center; }

/* ─── PAGE HEADER ─────────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap;
}
.page-title { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin: 0; color: var(--navy); }
[data-theme="dark"] .page-title { color: var(--white); }
.page-subtitle { color: var(--ink-muted); font-size: .85rem; margin: .25rem 0 0; }
.page-actions { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }

/* ─── STATS GRID ─────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-xs);
}
[data-theme="dark"] .stat-card { background: var(--surface-2); border-color: rgba(255,255,255,.06); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--navy); }
[data-theme="dark"] .stat-value { color: var(--white); }
.stat-label { font-size: .75rem; color: var(--ink-muted); margin-top: .2rem; }

/* ─── DETAIL GRID ─────────────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

/* ─── INFO GRID ───────────────────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; flex-direction: column; gap: .15rem; }
.info-label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.info-value { font-size: .88rem; font-weight: 500; color: var(--ink); }
[data-theme="dark"] .info-value { color: rgba(255,255,255,.8); }

/* ─── TIMELINE ────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: .4rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 1.25rem; }
.timeline-dot { position: absolute; left: -1.35rem; top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--gold); }
.timeline-dot.dot-success { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-title { font-weight: 600; font-size: .88rem; color: var(--navy); }
[data-theme="dark"] .timeline-title { color: var(--white); }
.timeline-note { font-size: .8rem; color: var(--ink-muted); margin-top: .15rem; }
.timeline-time { font-size: .72rem; color: var(--ink-muted); margin-top: .2rem; }

/* ─── MODAL ───────────────────────────────────────────────────────────────── */
.modal { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.5); align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius-xl); width: 100%; max-width: 480px; box-shadow: var(--shadow-xl); max-height: 90vh; overflow-y: auto; }
[data-theme="dark"] .modal-box { background: var(--surface-2); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--navy); }
[data-theme="dark"] .modal-header h3 { color: var(--white); }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--ink-muted); line-height: 1; padding: .2rem; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; }

/* ─── FILTERS / TABS / PAGINATION ────────────────────────────────────────── */
.filters-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.filter-group { flex: 1; min-width: 140px; }
@media (max-width: 600px) { .filter-group { min-width: 100%; } }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1.25rem 0; flex-wrap: wrap; }
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--border); flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab { padding: .6rem 1rem; font-size: .82rem; font-weight: 500; color: var(--ink-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; text-decoration: none; transition: all .15s; white-space: nowrap; }
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--gold); }

/* ─── UTILS ───────────────────────────────────────────────────────────────── */
.text-right { text-align: right; } .text-center { text-align: center; } .text-left { text-align: left; }
.text-sm { font-size: .875rem; } .text-xs { font-size: .75rem; }
.text-accent { color: var(--navy); } .text-muted { color: var(--ink-muted); }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: #d97706; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.mono { font-family: 'JetBrains Mono','Fira Code',monospace; font-size: .85em; }
.d-flex { display: flex; } .align-items-center { align-items: center; } .justify-content-between { justify-content: space-between; }
.gap-2 { gap: .5rem; } .text-capitalize { text-transform: capitalize; }
.btn-group { display: flex; gap: .25rem; flex-wrap: wrap; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .my-3 { margin-top: .75rem; margin-bottom: .75rem; }
.p-0 { padding: 0 !important; } .p-3 { padding: .75rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.border-top { border-top: 1px solid var(--border); }
.dashboard-grid { display: flex; gap: 1.5rem; align-items: start; flex-wrap: wrap; }
@media (max-width: 900px) { .dashboard-grid { flex-direction: column; } .dashboard-grid > * { flex: 1 !important; width: 100%; } }
.avatar-sm { width: 34px; height: 34px; border-radius: 8px; background: rgba(15,35,64,.08); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .75rem; flex-shrink: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; align-items: start; }
.zones-grid-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.5rem; gap: .75rem; color: var(--ink-muted); text-align: center; }
.empty-state svg { opacity: .25; }
.empty-state p { font-size: .9rem; }
.notif-list-full {}
.notif-row { display: flex; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); transition: background .15s; }
.notif-row.unread { background: rgba(15,35,64,.03); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: .4rem; }
.notif-dot.read { background: var(--border); }
.notif-content { flex: 1; }
.notif-message { font-size: .85rem; line-height: 1.5; }
.notif-meta { display: flex; gap: 1rem; margin-top: .3rem; align-items: center; }

/* ─── THEME TOGGLE BTN ──────────────────────────────────────────────────── */
.btn-theme-toggle {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.5); font-size: 1rem;
  padding: .4rem; transition: color .2s; line-height: 1;
}
.btn-theme-toggle:hover { color: var(--gold-light); }
