/* ================================================================
   Meilleur-Demenageur-Marseille.fr — Design System
   ================================================================ */

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Brand */
  --navy:          #0f2d5e;
  --blue:          #1a56db;
  --blue-light:    #2563eb;
  --orange:        #ea580c;
  --orange-dark:   #c2410c;
  --orange-light:  #fff7ed;

  /* Neutrals */
  --white:   #ffffff;
  --gray-50: #f8faff;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-300:#cbd5e1;
  --gray-400:#94a3b8;
  --gray-500:#64748b;
  --gray-700:#334155;
  --gray-900:#0f172a;

  /* Semantic aliases */
  --primary:      var(--blue);
  --primary-dark: var(--navy);
  --accent:       var(--orange);
  --accent-dark:  var(--orange-dark);
  --text:         var(--gray-900);
  --text-muted:   var(--gray-500);
  --bg-page:      var(--gray-50);
  --bg-card:      var(--white);
  --border:       var(--gray-200);

  /* Shape */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 9999px;

  /* Shadows */
  --sh-xs: 0 1px 3px rgba(15,45,94,.06);
  --sh-sm: 0 2px 8px rgba(15,45,94,.08), 0 1px 2px rgba(0,0,0,.04);
  --sh-md: 0 4px 16px rgba(15,45,94,.10), 0 2px 6px rgba(0,0,0,.04);
  --sh-lg: 0 8px 32px rgba(15,45,94,.12), 0 4px 10px rgba(0,0,0,.05);
  --sh-xl: 0 20px 56px rgba(15,45,94,.14);

  /* Transitions */
  --t-fast: .15s ease;
  --t:      .25s ease;
  --t-slow: .4s ease;

  /* Bootstrap override */
  --bs-primary: var(--blue);
  --bs-primary-rgb: 26,86,219;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.3px;
  color: var(--text);
  margin-top: 0;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

p {
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ─── Bootstrap primary overrides ───────────────────────────── */
.text-primary  { color: var(--primary) !important; }
.bg-primary    { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%) !important; }
.border-primary { border-color: var(--primary) !important; }
.table-primary thead { background: var(--primary); color: var(--white); }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; }
main       { min-height: 60vh; }

/* ─── SITE HEADER (banner) ───────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1d4fb8 60%, var(--blue) 100%);
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, #f97316 50%, var(--orange) 100%);
}

.site-header .header-title {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -.2px;
}

.site-header .header-sub {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  margin: .3rem 0 0;
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  background: var(--white) !important;
  padding: .6rem 0;
  box-shadow: var(--sh-sm);
  border-bottom: 1px solid var(--border);
}

.navbar-brand img {
  height: 44px;
  width: auto;
  transition: opacity var(--t-fast);
}
.navbar-brand img:hover { opacity: .85; }

.nav-link {
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-700) !important;
  padding: .45rem .75rem !important;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  position: relative;
}
.nav-link:hover { color: var(--primary) !important; background: var(--gray-50); }

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: .5rem;
  min-width: 220px;
}
.dropdown-item {
  border-radius: var(--r-sm);
  font-size: .88rem;
  padding: .45rem .9rem;
  color: var(--gray-700);
  transition: all var(--t-fast);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--primary); }

/* Navbar CTA button */
.btn-nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem 1.1rem !important;
  border-radius: var(--r-pill);
  border: none;
  transition: all var(--t-fast);
  box-shadow: 0 2px 8px rgba(234,88,12,.3);
}
.btn-nav-cta:hover {
  background: var(--orange-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234,88,12,.35);
  text-decoration: none;
}

/* ─── TRUST STRIP ────────────────────────────────────────────── */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
}

.trust-item i {
  color: var(--orange);
  font-size: 1rem;
}

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.75rem;
  font-size: .83rem;
}
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-400); }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--gray-500); font-weight: 500; }

/* ─── MAIN CONTENT CARD ──────────────────────────────────────── */
main.container {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
}

/* ─── SECTION SPACING ────────────────────────────────────────── */
section { padding: 1.5rem 0; }

/* ─── HOMEPAGE FORM SECTION ──────────────────────────────────── */
form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}

.form-label {
  font-weight: 600;
  font-size: .88rem;
  color: var(--gray-700);
  margin-bottom: .35rem;
}

.form-control,
.form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: .65rem .9rem;
  font-size: .95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  background: var(--white);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
  outline: none;
}

.form-control::placeholder { color: var(--gray-400); font-size: .9rem; }

.form-text {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: .25rem;
}

/* Confidentiality badge inside form */
.form-privacy {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-md);
  padding: .65rem 1rem;
  font-size: .82rem;
  color: #166534;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  border-radius: var(--r-md);
  padding: .7rem 1.5rem;
  font-size: .95rem;
  transition: all var(--t-fast);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none !important;
}

/* Primary = orange for all CTAs */
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #f97316 100%);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(234,88,12,.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234,88,12,.35);
}
.btn-primary:active { transform: translateY(0); }

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

.btn-lg {
  padding: .85rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--r-md);
}

/* ─── HOMEPAGE BENEFITS & STEPS ──────────────────────────────── */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefits-list li {
  padding: .75rem 0 .75rem 2.2rem;
  position: relative;
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.benefits-list li:last-child { border-bottom: none; }
.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--orange);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}
.steps-list li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  background: var(--gray-50);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  font-size: .95rem;
  color: var(--gray-700);
}
.steps-list li::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: .85rem;
}

/* ─── ZONE CARDS ─────────────────────────────────────────────── */
.zone-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  padding: 1.5rem !important;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.zone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--blue-light) 100%);
  opacity: 0;
  transition: opacity var(--t);
}
.zone-card:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.zone-card:hover::before { opacity: 1; }
.zone-card:hover h2 { color: var(--primary); }
.zone-card h2 {
  font-size: 1rem;
  font-weight: 700;
  transition: color var(--t-fast);
}
.zone-card p {
  font-size: .85rem;
  color: var(--gray-500);
  margin: .4rem 0 .75rem;
  line-height: 1.55;
}
.zone-card span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--orange);
}

/* ─── LIST GROUP (blog) ──────────────────────────────────────── */
.list-group { border: none; }

.list-group-item {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  margin-bottom: .75rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  transition: all var(--t-fast);
}
.list-group-item:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--sh-sm);
  background: var(--gray-50);
}
.list-group-item a {
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
}
.list-group-item a:hover { color: var(--primary); text-decoration: none; }
.list-group-item small { color: var(--gray-400); font-size: .78rem; }

/* ─── CARDS ──────────────────────────────────────────────────── */
.card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: all var(--t);
  background: var(--bg-card);
}
.card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}
.card-header { font-weight: 700; }

/* Sidebar CTA card (zone pages) */
.bg-light.rounded.shadow-sm {
  background: var(--gray-50) !important;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg) !important;
  box-shadow: var(--sh-sm) !important;
  padding: 1.75rem !important;
}
.bg-light.rounded.shadow-sm h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
}

/* ─── TABLES ─────────────────────────────────────────────────── */
.table {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  font-size: .9rem;
}
.table th {
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .85rem 1rem;
  background: var(--navy);
  color: var(--white);
  border: none;
}
.table td {
  padding: .8rem 1rem;
  vertical-align: middle;
  border-color: var(--border);
  color: var(--gray-700);
}
.table tbody tr:hover { background: var(--gray-50); }
.table-primary thead th { background: var(--navy); color: var(--white); }

/* ─── ALERTS ─────────────────────────────────────────────────── */
.alert {
  border: none;
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
}
.alert-success {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #15803d;
}
.alert-danger {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #b91c1c;
}
.alert-info {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  color: var(--primary-dark);
}

/* ─── IMAGES ─────────────────────────────────────────────────── */
.img-fluid {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  transition: transform var(--t);
}
.img-fluid:hover { transform: scale(1.015); }

/* ─── VIDEO ──────────────────────────────────────────────────── */
.ratio video {
  border-radius: var(--r-lg);
  object-fit: cover;
}

/* ─── CTA BANNER BOXES ───────────────────────────────────────── */
.text-center.my-5 h2,
.text-center.my-4 h2 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}

/* ─── TIPS (conseils page) ────────────────────────────────────── */
.tips {
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: .85rem 1.1rem;
  margin: 1rem 0 1.5rem;
  font-size: .9rem;
  color: #9a3412;
}

/* ─── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  gap: .35rem;
  margin: 2.5rem 0 1.5rem;
}
.page-link {
  border: 1.5px solid var(--border);
  color: var(--primary);
  padding: .45rem .75rem;
  font-weight: 600;
  font-size: .88rem;
  border-radius: var(--r-sm) !important;
  transition: all var(--t-fast);
  line-height: 1.4;
}
.page-link:hover {
  background: var(--gray-50);
  border-color: var(--primary);
  color: var(--primary);
}
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--sh-xs);
}
.page-item.disabled .page-link {
  color: var(--gray-300);
  border-color: var(--border);
  background: var(--gray-50);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  margin-top: 5rem;
  padding: 3.5rem 0 0;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, #f97316 50%, var(--orange) 100%);
}

footer h5 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 1rem;
}
footer p {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: .5rem;
}
footer a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  transition: color var(--t-fast);
  display: block;
  margin-bottom: .4rem;
}
footer a:hover {
  color: var(--white);
  text-decoration: none;
}
footer .footer-tagline {
  color: var(--orange);
  font-weight: 600;
  font-size: .85rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
  margin: 0;
}

/* ─── VIDEO CONTROLS (mobile) ────────────────────────────────── */
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .trust-strip-inner { gap: 1.2rem; }
  .navbar-collapse { padding: .75rem 0; }
  .btn-nav-cta { display: inline-flex; margin-top: .5rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.2rem; }

  .site-header { padding: 1rem 0; }
  .site-header .header-title { font-size: 1rem; }

  form { padding: 1.25rem; }

  .trust-strip-inner { gap: 1rem; }
  .trust-item span { display: none; }

  main.container { border-radius: var(--r-md); margin: 1rem 0 !important; }

  .btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }

  footer { margin-top: 3rem; }
  footer .row > div { margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
  .trust-strip { display: none; }
  .steps-list li { flex-direction: column; gap: .5rem; }
}

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

main { animation: fadeUp .4s ease-out both; }

/* ─── COMMENT ÇA MARCHE ──────────────────────────────────────�� */
/* Cartes partagées desktop + mobile */
.how-slide {
  background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--sh-sm);
}
.how-slide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: .85rem;
}
.how-slide-icon {
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: .85rem;
}
.how-slide-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}
.how-slide-text {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

/* Desktop : grille 4 colonnes */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

/* Mobile : scroll horizontal snappé */
@media (max-width: 767px) {
  .how-grid-wrap {
    overflow: hidden;
  }
  .how-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: .75rem;
    padding: .25rem 1rem 1rem;
    scrollbar-width: none;
  }
  .how-grid::-webkit-scrollbar { display: none; }
  .how-slide {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
}

/* ─── FORMULAIRE 2 ÉTAPES ────────────────────────────────────── */
.devis-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.devis-step {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  background: var(--gray-200);
  color: var(--gray-500);
  transition: background .25s, color .25s;
}
.step-label {
  font-size: .85rem;
  color: var(--gray-500);
  transition: color .25s;
}
.devis-step.active .step-num {
  background: var(--primary);
  color: #fff;
}
.devis-step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}
.devis-step.done .step-num {
  background: #22c55e;
  color: #fff;
}
.devis-step.done .step-num::before {
  content: '✓';
}
.devis-step.done .step-num { font-size: 0; }
.devis-step.done .step-num::before { font-size: .9rem; }
.devis-step.done .step-label { color: #22c55e; }
.devis-step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  margin: 0 .75rem;
}

/* ─── PRINT ──────────────────────────────────────────────────── */
@media print {
  .navbar, footer, .btn, .trust-strip, .site-header { display: none; }
  body { background: white; }
  main.container { box-shadow: none; border: none; }
}
