/* ==========================================================================
   Repair'Phone — Design system partagé (accueil, tarifs, espace client)
   Palette dérivée du logo (bleu marine #1E263E) + blanc.
   ========================================================================== */

:root {
  --navy-900: #10152400;
  --navy-900-solid: #12172a;
  --navy-800: #1e263e; /* couleur exacte du logo */
  --navy-700: #2a3452;
  --navy-600: #3a4566;
  --navy-500: #57628a;
  --navy-100: #eef0f6;
  --navy-050: #f6f7fb;

  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --ink: #1a2033;
  --ink-soft: #545d78;
  --border: #e3e6ef;

  --success: #1c9a5b;
  --success-bg: #e5f6ec;
  --warning: #c8891a;
  --warning-bg: #fbf1dc;
  --info: #2f5fd6;
  --info-bg: #e8eefb;
  --danger: #d14343;
  --danger-bg: #fbeaea;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(18, 23, 42, 0.06);
  --shadow: 0 14px 34px rgba(18, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(18, 23, 42, 0.16);

  --container: 1140px;
  --header-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 1em; }

a { color: inherit; }

img { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-600);
  background: var(--navy-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--navy-800); color: var(--white); box-shadow: 0 10px 24px rgba(30,38,62,.25); }
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 14px 28px rgba(30,38,62,.32); }

.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ==========================================================================
   HEADER — marketing (accueil / tarifs)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: var(--navy-800); }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--navy-800); letter-spacing: -.01em; }
.brand-name .accent { color: var(--navy-500); }

.site-nav { display: flex; align-items: center; gap: 8px; margin: 0 auto; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--navy-050); color: var(--navy-800); }
.site-nav a.active { color: var(--navy-800); background: var(--navy-100); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--navy-800); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 18px;
    gap: 2px;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .nav-cta { display: none; }
  .site-nav.open::after {
    content: "";
    display: block;
    margin-top: 8px;
  }
}

/* ---------- Header léger (auth) ---------- */
.auth-header {
  padding: 28px 24px 0;
  text-align: center;
}
.auth-header .brand { display: inline-flex; justify-content: center; }
.auth-header .brand-logo { width: 52px; height: 52px; }
.auth-header .brand-name { font-size: 1.4rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-800); color: rgba(255,255,255,.75); margin-top: 100px; }
.footer-top { padding: 56px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,.6); margin-top: 14px; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: var(--white); }
.footer-col p { color: rgba(255,255,255,.72); font-size: .93rem; margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); }

@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 30px; }
}

/* ==========================================================================
   HERO (accueil)
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding: 76px 0 84px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 7px 16px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  letter-spacing: .03em; margin-bottom: 22px;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.hero h1 .accent { color: #b9c4e6; }
.hero p.lead { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .phone-frame {
  width: 230px;
  aspect-ratio: 9/18.5;
  background: linear-gradient(160deg, #232d4b, #171d33);
  border-radius: 42px;
  border: 6px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
  position: relative;
}
.hero-visual .phone-frame::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 8px; border-radius: 6px;
  background: rgba(255,255,255,.16);
}
.hero-visual .phone-screen {
  position: absolute; inset: 34px 10px 10px;
  border-radius: 26px;
  background: linear-gradient(200deg, #ffffff, #e5e9f5);
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .phone-screen svg { width: 58%; opacity: .85; }
.hero-badge-float {
  position: absolute;
  background: var(--white);
  color: var(--navy-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
  z-index: 2;
}
.hero-badge-float.top { top: 6%; left: 0; }
.hero-badge-float.bottom { bottom: 8%; right: 0; }
.hero-badge-float .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; padding: 48px 0 56px; text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .hero-badge-float.top, .hero-badge-float.bottom { display: none; }
}

/* ---------- Bande infos pratiques ---------- */
.info-band { border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.info-band .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 26px 24px; }
.info-item { display: flex; align-items: flex-start; gap: 14px; }
.info-item .icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--navy-100);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy-800);
}
.info-item strong { display: block; font-size: .9rem; color: var(--navy-800); }
.info-item span { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 780px) { .info-band .container { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sections génériques
   ========================================================================== */
.section { padding: 88px 0; }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-alt { background: var(--bg-soft); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: .92rem; margin-bottom: 0; }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step-card { position: relative; padding: 32px 26px 26px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-800); color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-card h3 { font-size: 1.05rem; }
.step-card p { font-size: .92rem; margin-bottom: 0; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; } }

.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; }

/* ==========================================================================
   TARIFS
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--navy-800); box-shadow: var(--shadow); position: relative; }
.price-card.featured::before {
  content: "Le plus demandé";
  position: absolute; top: -13px; left: 28px;
  background: var(--navy-800); color: var(--white); font-size: .72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .02em;
}
.price-card .price-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.price-card .price-tag { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.7rem; color: var(--navy-800); margin: 10px 0 16px; }
.price-card .price-tag small { font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: flex-start; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0; }

.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 16px 22px; text-align: left; font-size: .93rem; }
.price-table thead th { background: var(--navy-800); color: var(--white); font-weight: 600; font-family: 'Poppins', sans-serif; }
.price-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.price-table tbody td:last-child { font-weight: 700; color: var(--navy-800); text-align: right; white-space: nowrap; }
.price-table tbody td:first-child { color: var(--ink); font-weight: 500; }

.price-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--navy-050); border: 1px solid var(--navy-100);
  border-radius: var(--radius); padding: 18px 22px; margin-top: 26px;
}
.price-note p { margin: 0; font-size: .9rem; color: var(--navy-700); }

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .price-table { display: block; overflow-x: auto; }
}

/* ==========================================================================
   AUTH (login.html)
   ========================================================================== */
.auth-shell {
  min-height: calc(100vh - var(--header-h));
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 420px;
  padding: 38px 36px;
}
.auth-card h2 { text-align: center; font-size: 1.05rem; letter-spacing: .02em; }
.auth-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.auth-card .subtitle { text-align: center; font-size: .88rem; margin-bottom: 22px; color: var(--ink-soft); }

.field-label { display: block; font-size: .8rem; font-weight: 600; color: var(--navy-700); margin: 14px 0 6px; }
.auth-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(30,38,62,.08); }
.auth-card form { display: flex; flex-direction: column; }
.auth-card button[type="submit"] { margin-top: 22px; }

.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.consent-row input[type="checkbox"] { width: 16px !important; height: 16px; margin: 3px 0 0; flex: 0 0 16px; accent-color: var(--navy-800); }
.consent-row label { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
.consent-row a { color: var(--navy-700); font-weight: 600; text-decoration: underline; }

.toggle-link { display: block; text-align: center; margin-top: 20px; color: var(--navy-600); font-weight: 600; font-size: .88rem; cursor: pointer; }
.toggle-link:hover { color: var(--navy-800); text-decoration: underline; }
.hidden { display: none; }
.error-msg { color: var(--danger); font-size: .85rem; text-align: center; margin: 0 0 6px; min-height: 1em; }

/* ==========================================================================
   ESPACE CLIENT — dashboard.html
   ========================================================================== */
.app-body { background: var(--bg-soft); min-height: 100vh; }
.app-shell { max-width: 960px; margin: 0 auto; padding: 26px 20px 60px; }

.header-dashboard {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--navy-800); color: var(--white);
  padding: 20px 26px; border-radius: var(--radius-lg); margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.header-dashboard h2 { color: var(--white); margin: 0; font-size: 1.2rem; font-weight: 600; }
.header-dashboard .hd-left { display: flex; align-items: center; gap: 14px; }
.header-dashboard .hd-logo { width: 38px; height: 38px; border-radius: 10px; }
.btn-logout {
  background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.25);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .85rem;
  transition: background-color .15s ease;
}
.btn-logout:hover { background: rgba(255,255,255,.2); }

.form-card {
  background: var(--white); padding: 26px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 28px;
}
.form-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.form-card form { display: flex; flex-direction: column; gap: 12px; }
.form-card input, .form-card select, .form-card textarea {
  padding: 12px 14px; font-size: .95rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; background: var(--white);
}
.form-card textarea { resize: vertical; min-height: 70px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(30,38,62,.08); }
.btn-submit {
  background: var(--navy-800); color: var(--white); border: none; cursor: pointer;
  font-weight: 600; padding: 13px; border-radius: 999px; font-size: .95rem; transition: background-color .15s ease;
}
.btn-submit:hover { background: var(--navy-700); }

.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title-row h3 { margin: 0; }

.card-dossier {
  background: var(--white); padding: 22px 24px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 16px;
  border-left: 4px solid var(--navy-800);
}
.card-dossier h4 { margin-bottom: 8px; font-size: 1.05rem; }
.card-dossier p { font-size: .92rem; margin-bottom: 6px; }

.statut-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--navy-100); color: var(--navy-700); }
.statut-attente { background: var(--warning-bg); color: var(--warning); }
.statut-cours { background: var(--info-bg); color: var(--info); }
.statut-termine { background: var(--success-bg); color: var(--success); }
.statut-refuse { background: var(--danger-bg); color: var(--danger); }

.badge-alerte { display: inline-block; margin-left: 8px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--info-bg); color: var(--info); }
.badge-alerte.devis { background: var(--warning-bg); color: var(--warning); }

.actions-dossier { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-action { text-decoration: none; padding: 11px 15px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; text-align: center; display: block; }

/* ==========================================================================
   DOSSIER (dossier.html)
   ========================================================================== */
.dossier-body { background: var(--bg-soft); height: 100vh; margin: 0; padding: 20px; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }

.header-dossier {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--navy-800); color: var(--white);
  padding: 16px 24px; border-radius: var(--radius-lg); margin-bottom: 18px;
  box-shadow: var(--shadow); flex-shrink: 0;
}
.header-dossier h2 { color: var(--white); margin: 0; font-size: 1.1rem; font-weight: 600; }
.btn-retour { color: var(--white); text-decoration: none; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 9px 16px; border-radius: 999px; font-size: .85rem; }
.btn-retour:hover { background: rgba(255,255,255,.22); }

.layout-split { display: flex; gap: 20px; flex: 1; min-height: 0; }
.col-gauche { flex: 1; background: var(--white); padding: 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow-y: auto; }

.timeline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); position: relative; }
.timeline::before { content: ''; position: absolute; top: 17px; left: 0; right: 0; height: 3px; background: var(--border); z-index: 1; }
.step { position: relative; z-index: 2; text-align: center; flex: 1; color: #b4b9c8; font-size: .8rem; }
.step .circle { width: 34px; height: 34px; background: var(--white); border: 3px solid var(--border); border-radius: 50%; margin: 0 auto 10px auto; line-height: 28px; font-weight: 700; color: #b4b9c8; transition: .25s ease; font-family: 'Poppins', sans-serif; }
.step.active .circle { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); box-shadow: 0 0 0 5px rgba(30,38,62,.12); }
.step.done .circle { background: var(--success); border-color: var(--success); color: var(--white); }
.step.active { color: var(--navy-800); font-weight: 700; }
.step.done { color: var(--success); font-weight: 600; }

.section-titre { border-left: 4px solid var(--navy-800); padding-left: 12px; margin-top: 28px; font-size: 1rem; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.check-item { background: var(--success-bg); color: var(--success); padding: 9px 13px; border-radius: var(--radius-sm); font-size: .87rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.check-icon { font-weight: 800; }

.galerie-photos { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.photo-card { flex: 1; min-width: 150px; border: 1px solid var(--border); padding: 8px; border-radius: var(--radius); text-align: center; background: var(--white); }
.photo-card img { max-width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); display: block; margin: 0 auto 10px auto; }
.photo-card span { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }

.documents-zone { display: flex; flex-direction: column; gap: 10px; }
.btn-doc { text-align: center; padding: 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--white); font-weight: 600; font-size: .9rem; transition: filter .15s ease; }
.btn-doc:hover { filter: brightness(1.08); }
.btn-paiement { background: var(--info); }
.btn-devis { background: var(--warning); }
.btn-etiquette { background: #c9750f; }
.btn-facture { background: #16879a; }
.btn-3utools { background: #6a4bc9; }

.col-droite { flex: 1; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.chat-header { background: var(--navy-800); color: var(--white); padding: 16px; margin: 0; font-size: 1rem; font-weight: 600; }
.chat-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }

.msg { max-width: 75%; padding: 10px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.4; }
.msg-admin { background: var(--white); border: 1px solid var(--border); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg-client { background: var(--navy-800); color: var(--white); align-self: flex-end; border-bottom-right-radius: 3px; }
.msg-date { font-size: .7em; opacity: .6; margin-top: 5px; display: block; text-align: right; }

.chat-input-zone { display: flex; padding: 14px; border-top: 1px solid var(--border); background: var(--white); flex-shrink: 0; }
.chat-input-zone input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 999px; margin-right: 10px; font-family: inherit; font-size: .92rem; }
.chat-input-zone input:focus { outline: none; border-color: var(--navy-600); }
.chat-input-zone button { padding: 11px 22px; background: var(--navy-800); color: var(--white); border: none; border-radius: 999px; cursor: pointer; font-weight: 600; }
.chat-input-zone button:hover { background: var(--navy-700); }

@media (max-width: 860px) {
  .dossier-body { height: auto; overflow: visible; }
  .layout-split { flex-direction: column; }
  .col-droite { min-height: 460px; }
}

/* ---------- Acceptation du devis & rétractation ---------- */
.devis-box { background: var(--navy-050); border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.devis-box h4 { margin: 0 0 8px; font-size: .98rem; }
.devis-box p { font-size: .88rem; margin-bottom: 10px; }
.devis-box .legal-text { font-size: .78rem; color: var(--ink-soft); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; line-height: 1.5; }
.devis-box .consent-row { margin-top: 0; margin-bottom: 14px; }
.devis-actions { display: flex; gap: 10px; }
.devis-statut-ok { background: var(--success-bg); color: var(--success); border-radius: var(--radius); padding: 12px 16px; font-size: .88rem; font-weight: 600; margin: 16px 0; }
.devis-statut-refuse { background: var(--danger-bg); color: var(--danger); border-radius: var(--radius); padding: 12px 16px; font-size: .88rem; font-weight: 600; margin: 16px 0; }

/* ---------- Suivi de colis ---------- */
.suivi-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--info-bg); color: var(--info); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; font-size: .88rem; flex-wrap: wrap; }
.suivi-box strong { font-family: 'Poppins', sans-serif; letter-spacing: .02em; }

/* ---------- Avis client ---------- */
.avis-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-top: 20px; }
.avis-box h4 { margin: 0 0 10px; font-size: .98rem; }
.star-rating { display: flex; gap: 6px; margin-bottom: 14px; }
.star-rating .star { font-size: 1.6rem; cursor: pointer; color: var(--border); transition: color .1s ease; user-select: none; }
.star-rating .star.filled { color: #e0a324; }
.avis-box textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: .88rem; resize: vertical; min-height: 60px; box-sizing: border-box; margin-bottom: 12px; }
.avis-confirme { color: var(--success); font-weight: 600; font-size: .9rem; }

/* ---------- Estimation indicative (nouvelle demande) ---------- */
.estimation-hint {
  margin-top: -2px;
  background: var(--navy-050);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .85rem;
  color: var(--navy-700);
  line-height: 1.5;
}
.estimation-hint strong { color: var(--navy-800); }

/* ---------- Fenêtre "Comment ça marche" ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(16, 21, 36, .55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal-card {
  background: var(--white); border-radius: var(--radius-lg); max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-header {
  background: var(--navy-800); color: var(--white); padding: 22px 28px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.modal-header h3 { color: var(--white); margin: 0; font-size: 1.15rem; }
.modal-close { background: rgba(255,255,255,.12); border: none; color: var(--white); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; flex-shrink: 0; }
.modal-close:hover { background: rgba(255,255,255,.22); }
.modal-body { padding: 26px 28px; }
.process-step { display: flex; gap: 14px; margin-bottom: 20px; }
.process-step:last-child { margin-bottom: 0; }
.process-step .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Poppins', sans-serif;
  flex-shrink: 0; font-size: .9rem;
}
.process-step h4 { margin: 0 0 4px; font-size: .95rem; color: var(--navy-800); }
.process-step p { margin: 0; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; }
.modal-footer { padding: 18px 28px 26px; text-align: center; }
.btn-comment-ca-marche {
  background: none; border: none; color: var(--navy-600); font-weight: 600; font-size: .85rem;
  cursor: pointer; text-decoration: underline; padding: 0; margin-bottom: 4px;
}
