/* ════════════════════════════════════════════════════════
   LSVEVO — Site vitrine (thème clair chaleureux)
   ════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────── */
:root {
  --bg:            #F8F4EF;
  --bg-2:          #EFE9DF;
  --bg-card:       rgba(255, 255, 255, 0.65);
  --bg-card-hov:   rgba(255, 255, 255, 0.95);
  --primary:       #7A5230;
  --primary-l:     #9B6A40;
  --primary-glow:  rgba(122, 82, 48, 0.2);
  --gold:          #B88A10;
  --gold-glow:     rgba(184, 138, 16, 0.18);
  --text:          #1E1208;
  --text-muted:    #6B5240;
  --text-subtle:   #9A8470;
  --border:        rgba(122, 82, 48, 0.22);
  --border-subtle: rgba(122, 82, 48, 0.11);
  --radius-sm:     10px;
  --radius:        18px;
  --radius-lg:     26px;
  --font-serif:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card:   0 4px 32px rgba(122, 82, 48, 0.09);
  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:         1100px;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { font-family: inherit; }
input, textarea { font-family: inherit; }

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.3rem); }
em { font-style: italic; color: var(--primary-l); }
p { line-height: 1.78; }

/* ── Utilities ────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 130px 0; }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-l);
  margin-bottom: 20px;
}
.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 88px;
}
.section__title { margin-bottom: 18px; }
.section__sub { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
  border: none;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn--primary:hover {
  background: var(--primary-l);
  box-shadow: 0 6px 32px var(--primary-glow), 0 2px 12px rgba(122,82,48,0.2);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(122, 82, 48, 0.05);
}
.btn--full { width: 100%; justify-content: center; padding: 17px; font-size: 0.95rem; }

/* ── Scroll reveal ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal--right { transform: translateX(28px); }
.reveal.visible  { opacity: 1; transform: none; }

/* ── NAV ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 28px;
}
.nav.scrolled {
  background: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}
.nav__logo:hover { color: var(--primary-l); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav__links a {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 110px 28px 90px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  filter: blur(12px);
  pointer-events: none;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero__orb--1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(122,82,48,0.14), transparent 70%);
  top: -140px; left: -120px;
  animation: orbFloat 9s ease-in-out infinite;
}
.hero__orb--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(184,138,16,0.1), transparent 70%);
  bottom: -60px; right: -90px;
  animation: orbFloat 12s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(122,82,48,0.08), transparent 70%);
  top: 42%; right: 18%;
  animation: orbFloat 14s ease-in-out infinite 3s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(18px, -28px) scale(1.06); }
  66%      { transform: translate(-14px, 18px) scale(0.96); }
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(122, 82, 48, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-l);
  margin-bottom: 36px;
}
.hero__title {
  margin-bottom: 28px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero__title em {
  display: block;
  background: linear-gradient(110deg, var(--primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.hero__desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.8;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%       { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%      { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50.01%   { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100%     { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── APP SECTION ──────────────────────────────────────── */
.app-section { background: var(--bg-2); }
.app__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}
.app__text .section__title { text-align: left; margin-bottom: 22px; }
.app__desc { color: var(--text-muted); margin-bottom: 18px; }
.app__features {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.feature-dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--primary-glow);
}
.app__download { margin-top: 36px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 500;
}
.badge--soon {
  background: rgba(184, 138, 16, 0.09);
  border: 1px solid rgba(184, 138, 16, 0.3);
  color: var(--gold);
}
.app__download-note {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 11px;
}

/* Phone mockup */
.app__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 230px;
  height: 460px;
  z-index: 1;
}
.phone__frame {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.8),
    0 8px 40px rgba(122,82,48,0.12),
    var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  width: 76px; height: 22px;
  background: #F0EAE0;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  flex-shrink: 0;
}
.phone__screen {
  flex: 1;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__screenshot {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone__halo {
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--primary-glow), transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* ── SERVICES ─────────────────────────────────────────── */
.services-section { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(122,82,48,0.05);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  background: var(--bg-card-hov);
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card:hover::after { opacity: 1; }
.card--accent {
  border-color: rgba(184, 138, 16, 0.2);
  background: rgba(255, 253, 242, 0.65);
}
.card--accent:hover {
  border-color: rgba(184, 138, 16, 0.42);
  background: rgba(255, 253, 242, 0.95);
}
.card--accent::after {
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
}
.card__badge-label {
  position: absolute;
  top: 22px; right: 22px;
  padding: 4px 13px;
  background: rgba(184, 138, 16, 0.1);
  border: 1px solid rgba(184, 138, 16, 0.28);
  border-radius: 50px;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.card__icon {
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 82, 48, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
  color: var(--primary-l);
}
.card--accent .card__icon {
  background: rgba(184, 138, 16, 0.09);
  color: var(--gold);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title { margin-bottom: 13px; }
.card__text {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
  line-height: 1.75;
}
.card__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.card__list li {
  font-size: 0.8rem;
  color: var(--text-subtle);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 300;
}
.card--accent .card__list li::before { color: var(--gold); }

/* ── ECOSYSTEM ────────────────────────────────────────── */
.ecosystem-section { background: var(--bg-2); overflow: hidden; }
.tree-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px 20px;
}
.tree-svg { width: 100%; height: auto; display: block; }

/* ── SUPPORT ──────────────────────────────────────────── */
.support-section { background: var(--bg); }
.support__inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 80px;
  align-items: center;
}
.support__text .section__title { text-align: left; margin-bottom: 22px; }
.support__desc { color: var(--text-muted); margin-bottom: 18px; }
.support__quote {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 2px solid var(--primary);
  font-size: 0.95rem;
  color: var(--text-muted);
  background: rgba(122, 82, 48, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.support__quote em { color: var(--text); font-style: italic; }

.support__card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 2px 12px rgba(122,82,48,0.05);
}
.support__choose {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.support__amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.amount-btn {
  padding: 13px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.8);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.amount-btn:hover { border-color: var(--border); color: var(--text); background: #fff; }
.amount-btn.active {
  border-color: var(--primary);
  background: rgba(122, 82, 48, 0.08);
  color: var(--text);
}
.support__custom { margin-bottom: 24px; }
.support__custom label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.support__input-wrap { position: relative; }
.support__input-wrap input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.support__input-wrap input:focus { border-color: var(--primary); }
.support__input-wrap input::placeholder { color: var(--text-subtle); }
.support__input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.88rem;
  pointer-events: none;
}
.support__note {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  background: #E5DDD0;
  border-top: 1px solid var(--border-subtle);
  padding: 90px 0 44px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
}
.footer__logo {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 13px;
  letter-spacing: 0.04em;
}
.footer__tagline { font-size: 0.84rem; color: var(--text-muted); }
.footer__nav { display: flex; gap: 64px; }
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 0.86rem; color: var(--text-subtle); }
.footer__col a:hover { color: var(--text-muted); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__bottom p { font-size: 0.77rem; color: var(--text-subtle); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { font-size: 0.77rem; color: var(--text-subtle); }
.footer__legal a:hover { color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .section { padding: 90px 0; }
  .app__inner { grid-template-columns: 1fr; gap: 64px; }
  .app__visual { order: -1; }
  .support__inner { grid-template-columns: 1fr; gap: 56px; }
  .support__card { max-width: 480px; }
  .reveal--right { transform: translateY(28px); }
}

@media (max-width: 760px) {
  .services__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 44px; }
  .footer__nav { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
  .support__amounts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(248, 244, 239, 0.97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    flex-direction: column;
    padding: 8px 28px 20px;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav__links.open { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--border-subtle); }
  .nav__links a { display: block; padding: 15px 0; font-size: 0.92rem; color: var(--text-muted); }
  .nav__burger { display: flex; }
  .hero__title { font-size: 2.4rem; }
  .hero__desc { font-size: 0.98rem; }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__orb, .hero__scroll-line { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════════════════════════════════
   EXTENSIONS — cartes, contact, pages services
   ════════════════════════════════════════════════════════ */

/* ── Prix sur les cartes ──────────────────────────────── */
.card__price {
  margin: 16px 0 10px;
  padding: 12px 14px;
  background: rgba(122, 82, 48, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.card--accent .card__price {
  background: rgba(184, 138, 16, 0.04);
  border-color: rgba(184, 138, 16, 0.14);
}
.card__price-main {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.card__price-main strong { color: var(--primary); font-weight: 600; }
.card--accent .card__price-main strong { color: var(--gold); }
.card__price-avg {
  font-size: 0.8rem;
  color: var(--text-subtle);
}
.card__price--tiers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.price-tier {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(184, 138, 16, 0.08);
  border: 1px solid rgba(184, 138, 16, 0.2);
  padding: 3px 10px;
  border-radius: 50px;
}
.price-unit {
  font-size: 0.76rem;
  color: var(--text-subtle);
}
.card__price-note {
  font-size: 0.73rem;
  color: var(--text-subtle);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.55;
}

/* ── Positionnement services ──────────────────────────── */
.services__positioning {
  max-width: 700px;
  margin: 48px auto 0;
  padding: 22px 26px;
  border-left: 2px solid var(--primary);
  background: rgba(122, 82, 48, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.78;
  font-style: italic;
}

/* ── Feedback formulaire (succès / erreur) ────────────── */
.form-feedback {
  display: none;
  margin-top: 18px;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.65;
  text-align: center;
}
.form-feedback.visible { display: block; }
.form-feedback--success {
  background: rgba(122, 82, 48, 0.06);
  border: 1px solid rgba(122, 82, 48, 0.22);
  color: var(--primary);
}
.form-feedback--error {
  background: rgba(160, 50, 50, 0.05);
  border: 1px solid rgba(160, 50, 50, 0.2);
  color: #8B3A3A;
}
.form-feedback--error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Formulaire projet ────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group select {
  width: 100%;
  padding: 13px 38px 13px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239A8470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color var(--transition);
}
.form-group select:focus { border-color: var(--primary); }
.form-group select option { background: #fff; color: var(--text); }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Prix sur les pages services ────────────────────────── */
.service-pricing {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}
.service-pricing__main {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.service-pricing__main strong { color: var(--primary); font-weight: 600; }
.service-pricing__note {
  font-size: 0.76rem;
  color: var(--text-subtle);
  font-style: italic;
}
.service-pricing--tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  align-items: center;
}
.service-pricing--tiers .price-tier {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(184, 138, 16, 0.08);
  border: 1px solid rgba(184, 138, 16, 0.2);
  padding: 5px 13px;
  border-radius: 50px;
}
.service-pricing--tiers .price-unit {
  font-size: 0.78rem;
  color: var(--text-subtle);
}
.service-pricing__study {
  width: 100%;
  font-size: 0.73rem;
  color: var(--text-subtle);
  font-style: italic;
  margin-top: 6px;
}

/* ── Pricing tiers (pages service) ───────────────────── */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.pricing-tier {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-tier:hover {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(122,82,48,0.08);
}
.pricing-tier--featured {
  border-color: rgba(122,82,48,0.35);
  background: rgba(122,82,48,0.03);
}
.pricing-tier__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-tier__name {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}
.pricing-tier__price {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
  margin: 8px 0 10px;
}
.pricing-tier__desc {
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.pricing-tier__deposit {
  font-size: 0.78rem;
  color: var(--text-subtle);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  line-height: 1.5;
}
.pricing-tier__deposit strong { color: var(--primary); font-weight: 600; }
.pricing-tier__deposit span { font-size: 0.72rem; }
.pricing-tier__cta {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  margin-top: auto;
}
.pricing-tier__cta:hover {
  background: var(--primary-l);
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .pricing-tiers { grid-template-columns: 1fr; }
}

/* ── Hero logo vidéo (cercle) ─────────────────────────── */
.hero__logo-video {
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1A1008;
  box-shadow: 0 0 40px var(--primary-glow);
}
.hero__logo-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 680px) {
  .hero__logo-video { width: 110px; height: 110px; margin-bottom: 20px; }
}

/* ── Card — lien "En savoir plus" ─────────────────────── */
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary-l);
  transition: gap var(--transition), color var(--transition);
}
.card__link svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.card__link:hover { color: var(--text); gap: 11px; }
.card__link:hover svg { transform: translateX(3px); }
.card--accent .card__link { color: var(--gold); }
.card--accent .card__link:hover { color: var(--text); }

/* ── Section contact ──────────────────────────────────── */
.contact-section { background: var(--bg-2); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact__text .section__title { text-align: left; margin-bottom: 20px; }
.contact__desc { color: var(--text-muted); margin-bottom: 28px; line-height: 1.75; }
.contact__email a {
  font-size: 1rem;
  color: var(--primary-l);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color var(--transition), border-color var(--transition);
}
.contact__email a:hover { color: var(--text); border-color: var(--text-muted); }

.contact-form {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 2px 16px rgba(122,82,48,0.06);
}
.form-honeypot { display: none; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-subtle); }
.form-group textarea { min-height: 120px; }
.form-group input[type="file"] {
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
  background: rgba(255,255,255,0.7);
}

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; gap: 52px; }
  .contact-form { max-width: 520px; }
}

/* ── Pages services — structure partagée ─────────────── */
.page-hero {
  padding: 150px 0 88px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(122,82,48,0.12), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 44px;
  transition: color var(--transition), gap var(--transition);
}
.page-hero__back:hover { color: var(--text-muted); gap: 12px; }
.page-hero__back svg { width: 14px; height: 14px; }
.page-hero__title { margin-bottom: 20px; }
.page-hero__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.78;
}

.page-content { background: var(--bg); padding: 100px 0; }
.page-content__intro {
  max-width: 700px;
  margin: 0 auto 70px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.page-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 70px;
}
.page-feature {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 2px 10px rgba(122,82,48,0.04);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.page-feature:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border);
  transform: translateY(-2px);
}
.page-feature__icon {
  width: 42px; height: 42px;
  background: rgba(122, 82, 48, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-l);
  margin-bottom: 16px;
}
.page-feature__icon svg { width: 18px; height: 18px; }
.page-feature h4 { font-size: 1rem; margin-bottom: 8px; }
.page-feature p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

.page-cta {
  background: var(--bg-2);
  padding: 100px 0;
  text-align: center;
}
.page-cta h2 { margin-bottom: 16px; }
.page-cta p {
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 480px;
}
.page-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 680px) {
  .page-features { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 70px; }
}

/* ── Pages légales ────────────────────────────────────── */
.legal-doc {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.8;
}
.legal-doc h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 32px 0 10px;
}
.legal-doc p { margin-bottom: 14px; font-size: 0.95rem; }
.legal-doc ul {
  margin: 0 0 18px 0;
  padding-left: 22px;
  list-style: disc;
}
.legal-doc ul li { margin-bottom: 7px; font-size: 0.95rem; }
.legal-doc strong { color: var(--text-main); font-weight: 600; }
.legal-doc .legal-warn {
  background: rgba(122,82,48,0.07);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 24px 0;
  font-size: 0.92rem;
}
.legal-doc .legal-warn strong { color: var(--primary); }

/* ── Devis overlay (client) ───────────────────────────── */
.devis-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(40,30,20,0.72);
  z-index: 2000;
  overflow-y: auto;
  padding: 32px 16px 48px;
}
.devis-overlay.open { display: block; }

/* Bandeau retour Stripe */
.payment-banner {
  padding: 14px 20px;
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.5;
}
.payment-banner--success {
  background: #edf7ed;
  color: #2d6a2d;
  border-bottom: 1px solid #c8e0c8;
}
.payment-banner--warn {
  background: #fdf6e8;
  color: #7a5a10;
  border-bottom: 1px solid #f0dda0;
}

.devis-sheet {
  background: #fff;
  max-width: 780px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  padding: 56px 60px 48px;
  position: relative;
  font-family: var(--font-sans);
  color: #1a1a1a;
}

/* Header */
.devis-sheet__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid #1a1a1a;
}
.devis-sheet__brand-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.devis-sheet__brand-sub {
  font-size: 0.78rem;
  color: #666;
}
.devis-sheet__meta { text-align: right; }
.devis-sheet__meta-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.devis-sheet__meta-row {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 3px;
}
.devis-sheet__meta-row strong { color: #1a1a1a; }

/* Admin message */
.devis-msg-block {
  background: #fdf6ee;
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.devis-msg-block__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 7px;
}
.devis-msg-block__text {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* Client + project sections */
.devis-sheet__section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.devis-sheet__section--full { grid-template-columns: 1fr; }
.devis-section-block__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.devis-section-block__row {
  font-size: 0.84rem;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.5;
}
.devis-section-block__row strong { color: #1a1a1a; font-weight: 600; }

/* Table */
.devis-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
.devis-table thead tr {
  background: #1a1a1a;
  color: #fff;
}
.devis-table thead th {
  padding: 11px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
}
.devis-table thead th:last-child { text-align: right; }
.devis-table tbody tr { border-bottom: 1px solid #eee; }
.devis-table tbody tr:last-child { border-bottom: none; }
.devis-table tbody td {
  padding: 14px 14px;
  font-size: 0.86rem;
  color: #333;
  vertical-align: top;
}
.devis-table tbody td:last-child { text-align: right; font-weight: 600; color: #1a1a1a; }
.devis-table tfoot tr { border-top: 2px solid #1a1a1a; }
.devis-table tfoot td {
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
}
.devis-table tfoot td:last-child { text-align: right; }
.devis-table__total { font-size: 1rem !important; color: #1a1a1a; }
.devis-table__tva {
  font-size: 0.74rem !important;
  font-weight: 400 !important;
  color: #888 !important;
  font-style: italic;
}

/* Financial recap */
.devis-recap {
  background: #f8f4ef;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.devis-recap__item {}
.devis-recap__item-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 5px;
}
.devis-recap__item-val {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}
.devis-recap__item--accent .devis-recap__item-val { color: var(--primary); }

/* Conditions */
.devis-conditions {
  border: 1px solid #e8e0d8;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 32px;
}
.devis-conditions__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 10px;
}
.devis-conditions ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.devis-conditions ul li {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 5px;
  line-height: 1.5;
}

/* Action bar */
.devis-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid #eee;
}
.devis-actions .btn--pdf {
  margin-left: auto;
  background: none;
  border: 1px solid #ccc;
  color: #666;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.18s, color 0.18s;
}
.devis-actions .btn--pdf:hover { border-color: #999; color: #333; }

.devis-overlay__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.18s;
}
.devis-overlay__close:hover { color: #333; }

/* Print */
@media print {
  body > *:not(.devis-overlay) { display: none !important; }
  .devis-overlay { display: block !important; background: none; padding: 0; position: static; overflow: visible; }
  .devis-overlay__close,
  .devis-actions { display: none !important; }
  .devis-sheet { box-shadow: none; padding: 0; max-width: 100%; }
}

/* ── Badges onglet Messages non lus ──────────────────── */
.tab-unread-badge {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #e53e3e;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.chat-proj-item--unread {
  font-weight: 600;
  position: relative;
}
.chat-proj-item--unread::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: #e53e3e;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .devis-sheet { padding: 28px 22px 32px; }
  .devis-sheet__header { flex-direction: column; gap: 16px; }
  .devis-sheet__meta { text-align: left; }
  .devis-sheet__section { grid-template-columns: 1fr; gap: 20px; }
  .devis-recap { grid-template-columns: 1fr; gap: 12px; }
}

/* ══════════════════════════════════════════════════════════
   AUTH — Connexion / Inscription
   ══════════════════════════════════════════════════════════ */
.auth-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 2px 16px rgba(122,82,48,0.06);
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 16px 12px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-subtle);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.auth-tab--active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-tab:hover:not(.auth-tab--active) { color: var(--text-muted); }
.auth-form .form-group { margin-bottom: 18px; }
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  cursor: pointer;
}
.auth-remember input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); cursor: pointer; }
.auth-feedback {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 14px;
}
.auth-feedback--success { background: rgba(60,140,60,0.08); border: 1px solid rgba(60,140,60,0.2); color: #2d6a2d; }
.auth-feedback--error   { background: rgba(180,40,40,0.07); border: 1px solid rgba(180,40,40,0.18); color: #a02020; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD HERO
   ══════════════════════════════════════════════════════════ */
.dashboard-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-subtle);
  padding: 100px 0 36px;
}
.dashboard-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.dashboard-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--text);
  margin-top: 8px;
}
.dashboard-hero__title em { font-style: italic; color: var(--primary); }
.dashboard-hero__sub { font-size: 0.82rem; color: var(--text-subtle); margin-top: 4px; }
.dashboard-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD TABS
   ══════════════════════════════════════════════════════════ */
.dashboard-tabs {
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 64px;
  z-index: 10;
}
.dashboard-tabs__inner {
  display: flex;
  gap: 4px;
  padding: 0 4px;
}
.dashboard-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 18px 12px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-subtle);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}
.dashboard-tab--active { color: var(--primary); border-bottom-color: var(--primary); }
.dashboard-tab:hover:not(.dashboard-tab--active) { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   LOADING / EMPTY STATES
   ══════════════════════════════════════════════════════════ */
.dashboard-loading {
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.88rem;
  padding: 60px 0;
}
.dashboard-empty {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  gap: 12px;
}
.dashboard-empty svg { width: 48px; height: 48px; color: var(--border); }
.dashboard-empty h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; color: var(--text-muted); }
.dashboard-empty p  { font-size: 0.88rem; color: var(--text-subtle); max-width: 300px; }

/* ══════════════════════════════════════════════════════════
   PROJECT CARDS (espace client)
   ══════════════════════════════════════════════════════════ */
.project-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 20px;
  max-width: 800px;
}
.project-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.project-card__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.project-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--bg-2);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.project-badge--service { background: rgba(122,82,48,0.07); color: var(--primary); border-color: rgba(122,82,48,0.18); }
.project-card__date    { font-size: 0.78rem; color: var(--text-subtle); margin-bottom: 10px; }
.project-card__message { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.project-card__prix {
  display: flex;
  gap: 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 10px 14px;
  background: rgba(122,82,48,0.04);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.project-card__prix strong { color: var(--primary); }
.project-card__note {
  font-size: 0.84rem;
  color: var(--text-muted);
  border-left: 3px solid var(--primary);
  padding: 8px 14px;
  background: rgba(122,82,48,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  line-height: 1.65;
}
.project-card__note-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}
.project-card__action { margin-top: 16px; }

/* Status badges */
.project-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.project-status--soumis         { background: rgba(100,120,200,0.1); color: #3a4aaa; border: 1px solid rgba(100,120,200,0.25); }
.project-status--en_etude       { background: rgba(180,138,16,0.1);  color: var(--gold); border: 1px solid rgba(180,138,16,0.25); }
.project-status--valide         { background: rgba(60,140,60,0.1);   color: #2d6a2d;  border: 1px solid rgba(60,140,60,0.25); }
.project-status--acompte_paye   { background: rgba(60,140,60,0.15);  color: #226022;  border: 1px solid rgba(60,140,60,0.3); }
.project-status--en_cours       { background: rgba(122,82,48,0.1);   color: var(--primary); border: 1px solid rgba(122,82,48,0.22); }
.project-status--paiement_solde { background: rgba(180,60,60,0.1);   color: #a02020;  border: 1px solid rgba(180,60,60,0.25); }
.project-status--termine        { background: rgba(40,160,100,0.1);  color: #1a6840;  border: 1px solid rgba(40,160,100,0.25); }

/* ══════════════════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════════════════ */
.timeline {
  display: flex;
  align-items: flex-start;
  margin: 20px 0 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 60px;
  position: relative;
}
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}
.timeline-step--done:not(:last-child)::after { background: var(--primary); }
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: all var(--transition);
}
.timeline-step--done .timeline-dot   { background: var(--primary); border-color: var(--primary); }
.timeline-step--active .timeline-dot { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(122,82,48,0.15); }
.timeline-label {
  font-size: 0.64rem;
  color: var(--text-subtle);
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}
.timeline-step--done .timeline-label,
.timeline-step--active .timeline-label { color: var(--text-muted); font-weight: 500; }

/* ══════════════════════════════════════════════════════════
   PROFILE CARD
   ══════════════════════════════════════════════════════════ */
.profile-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 600px;
}

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════ */
.admin-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-stat {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  text-align: center;
  min-width: 70px;
}
.admin-stat strong { display: block; font-size: 1.6rem; font-weight: 600; font-family: var(--font-serif); color: var(--primary); }
.admin-stat span   { font-size: 0.72rem; color: var(--text-subtle); }
.admin-stat--alert { border-color: rgba(180,60,60,0.3); background: rgba(180,60,60,0.06); }
.admin-stat--alert strong { color: #a02020; }

.admin-filters { background: var(--bg); border-bottom: 1px solid var(--border-subtle); }
.admin-filters__inner { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; }
.admin-filter-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.admin-filter-btn:hover { border-color: var(--border); }
.admin-filter-btn--active { background: var(--primary); color: #fff; border-color: var(--primary); }

.admin-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.admin-card:hover { border-color: rgba(99,102,241,0.25); box-shadow: 0 4px 16px rgba(99,102,241,0.09); }
.admin-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-card__client { display: block; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.admin-card__email  { display: block; font-size: 0.78rem; color: var(--text-subtle); margin-top: 2px; }
.admin-card__meta   { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-card__date   { font-size: 0.75rem; color: var(--text-subtle); }
.admin-card__message { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.admin-card__info   { font-size: 0.8rem; color: var(--text-subtle); margin-bottom: 16px; }
.admin-card__info strong { color: var(--text-muted); }
.admin-card__controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.admin-control-group { display: flex; flex-direction: column; gap: 4px; }
.admin-control-group label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); }
.admin-select, .admin-input {
  padding: 7px 10px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.admin-select:focus, .admin-input:focus { border-color: var(--primary); }
.admin-select { min-width: 150px; }
.admin-input  { width: 110px; }
.admin-textarea {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}
.admin-textarea:focus { border-color: var(--primary); }
.admin-feedback { margin-top: 10px; font-size: 0.8rem; }
.btn--sm { padding: 7px 16px; font-size: 0.8rem; }

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(30,18,8,0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal__box {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(30,18,8,0.18);
}
.admin-modal__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 1.6rem;
  color: var(--text-subtle);
  cursor: pointer;
  line-height: 1;
}
.admin-modal__close:hover { color: var(--text); }
.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-detail-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 2px;
}

@media (max-width: 600px) {
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-card__controls { flex-direction: column; align-items: stretch; }
  .auth-card { padding: 32px 24px; }
  .dashboard-hero__inner { flex-direction: column; align-items: flex-start; }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PHASE 2B â€” Admin sidebar layout
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.admin-body { background: #dde3ea; }
.admin-layout {
  display: flex;
  padding-top: 70px;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  height: calc(100vh - 70px);
  position: fixed;
  top: 70px; left: 0;
  background: #1e2535;
  overflow-y: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.admin-sidebar__head {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.admin-sidebar__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}
.admin-sidebar__subtitle {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}
.admin-sidebar__section {
  padding: 16px 0 4px;
}
.admin-sidebar__section-label {
  padding: 0 20px 6px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
}
.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  color: rgba(255,255,255,0.55);
  font-size: 0.83rem;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.18s;
  background: none;
  border-top: none; border-right: none; border-bottom: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  text-decoration: none;
}
.admin-nav-item__inner { display: flex; align-items: center; gap: 9px; }
.admin-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.admin-nav-item:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.05); }
.admin-nav-item--active { color: #fff; border-left-color: #6366f1; background: rgba(99,102,241,0.12); }
.admin-nav-badge {
  background: rgba(200,40,40,0.75);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 50px;
  min-width: 18px;
  text-align: center;
}
.admin-nav-badge--amber { background: rgba(180,130,0,0.75); }
.admin-nav-badge--chat  { background: rgba(37,99,235,0.8); }
.admin-sidebar__footer {
  margin-top: auto;
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-sidebar__footer a, .admin-sidebar__footer button {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  padding: 0;
  transition: color 0.18s;
}
.admin-sidebar__footer a:hover,
.admin-sidebar__footer button:hover { color: rgba(255,255,255,0.75); }
.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 36px 40px;
  min-height: calc(100vh - 70px);
  background: var(--bg);
}
.admin-section-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
}
.admin-section-header h2 em { font-style: italic; color: #6366f1; }
.admin-section-header p { font-size: 0.84rem; color: var(--text-subtle); margin-top: 4px; }

/* â”€â”€ Priority badges â”€â”€ */
.priority-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.priority-badge--urgent    { background: rgba(200,40,40,0.1);  color: #b02020; border: 1px solid rgba(200,40,40,0.22); }
.priority-badge--important { background: rgba(180,130,0,0.1);  color: #8a6500; border: 1px solid rgba(180,130,0,0.22); }
.priority-badge--normal    { background: rgba(120,120,120,0.07); color: #888; border: 1px solid rgba(120,120,120,0.15); }

/* â”€â”€ Admin compact project card â”€â”€ */
.admin-pcard {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.admin-pcard:hover { border-color: rgba(99,102,241,0.3); box-shadow: 0 4px 16px rgba(99,102,241,0.1); }
.admin-pcard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.admin-pcard__client-info { display: flex; flex-direction: column; gap: 1px; }
.admin-pcard__name  { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.admin-pcard__email { font-size: 0.75rem; color: var(--text-subtle); }
.admin-pcard__badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-pcard__date  { font-size: 0.72rem; color: var(--text-subtle); }
.admin-pcard__summary { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.admin-pcard__meta  { font-size: 0.78rem; color: var(--text-subtle); margin-bottom: 12px; }
.admin-pcard__meta strong { color: var(--text-muted); }
.admin-pcard__controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.admin-pcard__note-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
}

/* â”€â”€ Dashboard stats grid â”€â”€ */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.dash-stat {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
}
.dash-stat__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: #6366f1;
  line-height: 1;
  display: block;
}
.dash-stat__label { font-size: 0.72rem; color: #64748b; margin-top: 5px; display: block; }
.dash-stat--alert { border-color: rgba(200,40,40,0.2); background: rgba(254,242,242,0.6); }
.dash-stat--alert .dash-stat__number { color: #dc2626; }
.dash-stat--gold  { border-color: rgba(99,102,241,0.2); }
.dash-stat--gold  .dash-stat__number { color: #6366f1; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   COMPTE â€” 5 onglets client (remplacement)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.client-tabs-bar {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.client-tabs-bar .container {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  padding: 0 20px;
}
.client-tabs-bar .container::-webkit-scrollbar { display: none; }
.client-tabs-bar__inner {
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.client-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 13px 16px 11px;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-subtle);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
  white-space: nowrap;
}
.client-tab svg { width: 14px; height: 14px; }
.client-tab:hover { color: var(--text-muted); }
.client-tab--active { color: var(--primary); border-bottom-color: var(--primary); }

/* â”€â”€ Compact project card (compte.html) â”€â”€ */
.client-pcard {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 14px;
  max-width: 760px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.client-pcard:hover { border-color: var(--border); box-shadow: 0 2px 12px rgba(122,82,48,0.06); }
.client-pcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.client-pcard__date  { font-size: 0.76rem; color: var(--text-subtle); margin-bottom: 6px; }
.client-pcard__msg   { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.client-pcard__note  {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 2px solid var(--primary);
  padding: 6px 12px;
  background: rgba(122,82,48,0.04);
  border-radius: 0 6px 6px 0;
  margin-bottom: 12px;
  line-height: 1.6;
}
.client-pcard__note-lbl {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  margin-bottom: 2px;
}
.client-pcard__mini-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mini-bar {
  flex: 1;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
}
.mini-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.mini-bar__label { font-size: 0.72rem; color: var(--text-subtle); white-space: nowrap; }
.client-pcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.client-pcard__prix {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.client-pcard__prix strong { color: var(--primary); font-weight: 600; }

/* â”€â”€ Billing table â”€â”€ */
.billing-section { max-width: 800px; }
.billing-group { margin-bottom: 28px; }
.billing-group__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}
.billing-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.billing-line__desc { flex: 1; min-width: 160px; font-size: 0.85rem; color: var(--text); }
.billing-line__date { font-size: 0.76rem; color: var(--text-subtle); white-space: nowrap; }
.billing-line__amount { font-weight: 600; font-size: 0.9rem; color: var(--primary); white-space: nowrap; }
.billing-status {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.billing-status--paye    { background: rgba(60,140,60,0.1); color: #2d6a2d; border: 1px solid rgba(60,140,60,0.25); }
.billing-status--attente { background: rgba(180,130,0,0.1); color: #8a6500; border: 1px solid rgba(180,130,0,0.25); }
.billing-status--restant { background: rgba(200,40,40,0.1); color: #b02020; border: 1px solid rgba(200,40,40,0.25); }
.billing-status--rembourse { background: rgba(100,100,200,0.1); color: #3a3aaa; border: 1px solid rgba(100,100,200,0.25); }
.billing-line__action a {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
  border-bottom: 1px solid rgba(122,82,48,0.25);
  padding-bottom: 1px;
  white-space: nowrap;
}

/* â”€â”€ ParamÃ¨tres â”€â”€ */
.settings-section { max-width: 500px; }
.settings-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  margin-bottom: 20px;
}
.settings-card h4 { font-size: 0.95rem; margin-bottom: 18px; font-weight: 500; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PROJET DETAIL â€” Fresco / Timeline premium
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.detail-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-subtle);
  padding: 100px 0 36px;
}
.detail-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.detail-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 20px;
  transition: color var(--transition);
}
.detail-hero__back:hover { color: var(--primary); }
.detail-hero__back svg { width: 16px; height: 16px; }
.detail-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--text);
  margin-top: 8px;
}
.detail-hero__title em { font-style: italic; color: var(--primary); }
.detail-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* â”€â”€ Progress bar â”€â”€ */
.detail-progress-section {
  background: rgba(255,255,255,0.65);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
}
.detail-progress-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.detail-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.detail-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
}
.detail-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-l));
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.detail-progress-pct {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.detail-progress-lbl {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* â”€â”€ Fresco â”€â”€ */
.detail-fresco-section {
  padding: 48px 0 56px;
  overflow: hidden;
}
.detail-fresco {
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.detail-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 90px;
  max-width: 120px;
  position: relative;
  opacity: 1;
  transition: opacity 0.3s;
}
.detail-step--future { opacity: 0.45; }
.detail-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}
.detail-step--done:not(:last-child)::after { background: var(--primary); }
.detail-step__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: all 0.35s;
  color: var(--text-subtle);
}
.detail-step__icon-wrap svg { width: 20px; height: 20px; }
.detail-step--done .detail-step__icon-wrap {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.detail-step--active .detail-step__icon-wrap {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 6px rgba(122,82,48,0.1);
  animation: frescoGlow 2.2s ease-in-out infinite;
}
@keyframes frescoGlow {
  0%, 100% { box-shadow: 0 0 0 5px rgba(122,82,48,0.1); }
  50%       { box-shadow: 0 0 0 10px rgba(122,82,48,0.04); }
}
.detail-step__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 10px;
  line-height: 1.3;
  padding: 0 4px;
}
.detail-step--done .detail-step__label,
.detail-step--active .detail-step__label { color: var(--text-muted); }
.detail-step--active .detail-step__label { color: var(--primary); font-weight: 700; }
.detail-step__desc {
  font-size: 0.66rem;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 5px;
  line-height: 1.45;
  padding: 0 4px;
  max-width: 110px;
}
.detail-step--active .detail-step__desc { color: var(--text-muted); }

/* Refused overlay */
.detail-refused {
  text-align: center;
  padding: 48px 28px;
  max-width: 480px;
  margin: 0 auto;
}
.detail-refused__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(200,40,40,0.08);
  border: 2px solid rgba(200,40,40,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #b02020;
}
.detail-refused__title { font-family: var(--font-serif); font-size: 1.4rem; color: #b02020; }
.detail-refused__msg { font-size: 0.88rem; color: var(--text-muted); margin-top: 10px; line-height: 1.7; }

/* â”€â”€ Project info card (detail page) â”€â”€ */
.detail-info-section { padding: 0 0 60px; }
.detail-info-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.detail-info-card, .detail-price-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}
.detail-info-card h3, .detail-price-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 14px;
}
.detail-info-list { display: flex; flex-direction: column; gap: 8px; }
.detail-info-row { display: flex; gap: 10px; font-size: 0.84rem; }
.detail-info-row dt { color: var(--text-subtle); min-width: 100px; flex-shrink: 0; }
.detail-info-row dd { color: var(--text-muted); font-weight: 500; }
.detail-price-card__amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.detail-price-card__breakdown { font-size: 0.8rem; color: var(--text-subtle); line-height: 1.8; }
.detail-price-card__action { margin-top: 16px; }

/* Mobile responsive */
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.28s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 20px; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .detail-fresco { padding: 0 16px 8px; }
  .detail-step { min-width: 76px; }
  .admin-sidebar-toggle {
    display: flex;
    position: fixed;
    bottom: 20px; left: 20px;
    z-index: 100;
    background: #1A1008;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px; height: 48px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }
}
@media (min-width: 769px) {
  .admin-sidebar-toggle { display: none; }
}

/* ══════════════════════════════════════════════════════════
   PHASE 2B — Supplemental (reconcile HTML class names)
   ══════════════════════════════════════════════════════════ */

/* btn small */
.btn--sm { padding: 8px 16px; font-size: 0.78rem; }

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeSlideIn 0.22s ease; }
.client-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -1px; }
.client-tabs-bar.nav-hidden { transform: translateY(-100%); box-shadow: none; }
.client-tabs-bar.nav-scrolled { box-shadow: 0 2px 12px rgba(122,82,48,0.08); }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Admin body/layout */
.admin-sidebar {
  position: fixed; top: 0; left: 0;
  width: 240px; height: 100vh;
  background: #1A1008;
  overflow-y: auto; z-index: 200;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.admin-sidebar__brand {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: baseline; gap: 10px;
}
.admin-sidebar__brand a {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500;
  color: rgba(255,255,255,0.9); letter-spacing: 0.04em; text-decoration: none;
}
.admin-sidebar__brand span {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.3);
}
.admin-sidebar__nav { padding: 12px 0; flex: 1; }
.admin-sidebar__item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 20px; color: rgba(255,255,255,0.52);
  font-size: 0.83rem; font-family: var(--font-sans);
  text-decoration: none; border-left: 2px solid transparent;
  transition: all 0.18s; cursor: pointer; white-space: nowrap;
}
.admin-sidebar__item:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.admin-sidebar__item.active { color: #fff; border-left-color: var(--primary); background: rgba(122,82,48,0.18); }
.admin-sidebar__badge {
  margin-left: auto; background: rgba(200,40,40,0.75); color: #fff;
  font-size: 0.6rem; font-weight: 700; padding: 1px 6px;
  border-radius: 50px; min-width: 18px; text-align: center; display: none;
}
.admin-sidebar__footer { margin-top: auto; padding: 14px 20px 20px; border-top: 1px solid rgba(255,255,255,0.07); }
.admin-sidebar__footer button {
  font-size: 0.78rem; color: rgba(255,255,255,0.38); cursor: pointer;
  background: none; border: none; font-family: var(--font-sans); padding: 0; transition: color 0.18s;
}
.admin-sidebar__footer button:hover { color: rgba(255,255,255,0.7); }
.admin-sidebar__toggle {
  display: none; position: fixed; bottom: 22px; left: 16px; z-index: 300;
  background: #1A1008; color: rgba(255,255,255,0.8); border: none;
  border-radius: 50%; width: 46px; height: 46px; font-size: 1.2rem;
  align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.admin-main { margin-left: 240px; padding: 36px 40px; min-height: 100vh; background: var(--bg); }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section__header { margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.admin-section__header h1 { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 400; color: var(--text); }
.admin-section__sub { font-size: 0.83rem; color: var(--text-subtle); margin-top: 4px; }
.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.77rem;
  color: var(--text-subtle);
}
.admin-breadcrumb__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  color: #c8a34a;
  font-size: 0.77rem;
  cursor: pointer;
  transition: background 0.12s;
}
.admin-breadcrumb__back:hover { background: rgba(255,255,255,0.1); }
.admin-breadcrumb__sep { opacity: 0.4; }

/* Admin stats */
.admin-stats { margin-bottom: 32px; }
.admin-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 12px; }
.admin-stat { background: rgba(255,255,255,0.75); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 14px; text-align: center; }
.admin-stat__val { font-family: var(--font-serif); font-size: 1.85rem; font-weight: 600; color: var(--primary); line-height: 1; display: block; }
.admin-stat__label { font-size: 0.7rem; color: var(--text-subtle); margin-top: 4px; display: block; }
.admin-stat--clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.admin-stat--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(122,82,48,0.12);
  border-color: rgba(122,82,48,0.25);
}

/* Admin pcard controls */
.admin-pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-pcard__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-pcard__body { margin-bottom: 8px; }
.admin-pcard__title { font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.admin-pcard__client { font-size: 0.78rem; color: var(--text-subtle); margin-top: 2px; }
.admin-pcard__detail-btn {
  font-size: 0.73rem; padding: 4px 10px;
  background: rgba(122,82,48,0.1); color: var(--primary);
  border: 1px solid rgba(122,82,48,0.2); border-radius: 5px;
  cursor: pointer; font-family: var(--font-sans); transition: background 0.18s;
}
.admin-pcard__detail-btn:hover { background: rgba(122,82,48,0.18); }
.admin-pcard__controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border-subtle); margin-top: 8px; }

/* Admin dark table */
.admin-table { color: #e8d5b7; }
.admin-table thead th { color: rgba(232,213,183,0.5); border-bottom-color: rgba(255,255,255,0.08); }
.admin-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.admin-table tbody td { color: #c8b090; }

/* Billing table */
.billing-table-wrap { overflow-x: auto; border-radius: var(--radius-md); }
.billing-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.billing-table thead th { padding: 10px 14px; text-align: left; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-subtle); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.billing-table tbody td { padding: 10px 14px; vertical-align: middle; }
.billing-table tbody tr { border-bottom: 1px solid var(--border-subtle); }
.billing-table tbody tr:last-child { border-bottom: none; }

/* Settings section */
.settings-section { max-width: 500px; margin-bottom: 28px; }
.settings-section__title { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 18px; }

/* Status badge — base + modifiers */
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-badge--lg { font-size: 0.78rem; padding: 6px 16px; }

.status--soumis           { background: rgba(100,120,200,0.1); color: #3a4aaa; border-color: rgba(100,120,200,0.25); }
.status--en_etude         { background: rgba(180,138,16,0.1);  color: #8a6500; border-color: rgba(180,138,16,0.25); }
.status--devis_envoye     { background: rgba(122,82,48,0.1);   color: var(--primary); border-color: rgba(122,82,48,0.25); }
.status--devis_accepte    { background: rgba(60,140,60,0.1);   color: #2d6a2d; border-color: rgba(60,140,60,0.25); }
.status--devis_refuse     { background: rgba(185,74,72,0.1);   color: #b94a48; border-color: rgba(185,74,72,0.25); }
.status--acompte_paye     { background: rgba(60,140,60,0.15);  color: #226022; border-color: rgba(60,140,60,0.3); }
.status--en_cours         { background: rgba(122,82,48,0.12);  color: var(--primary); border-color: rgba(122,82,48,0.28); }
.status--paiement_final   { background: rgba(200,100,0,0.1);   color: #a05000; border-color: rgba(200,100,0,0.25); }
.status--solde_paye       { background: rgba(40,160,100,0.1);  color: #1a6840; border-color: rgba(40,160,100,0.25); }
.status--livre            { background: rgba(40,160,100,0.15); color: #145a30; border-color: rgba(40,160,100,0.3); }

/* Client pcard reconciled */
.client-pcard__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.client-pcard__service { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.client-pcard__date { font-size: 0.74rem; color: var(--text-subtle); margin-top: 2px; }
.client-pcard__progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.client-pcard__progress-bar { flex: 1; height: 4px; background: var(--border-subtle); border-radius: 2px; overflow: hidden; }
.client-pcard__progress-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.6s ease; }
.client-pcard__progress-pct { font-size: 0.72rem; color: var(--text-subtle); white-space: nowrap; min-width: 32px; }
.client-pcard__budget { font-size: 0.8rem; color: var(--text-subtle); }
.client-pcard.refused { border-color: rgba(185,74,72,0.2); background: rgba(255,245,245,0.6); }

/* Detail page reconciled */
.detail-hero { padding: 96px 0 36px; background: var(--bg-2); border-bottom: 1px solid var(--border-subtle); }
.detail-hero__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.detail-hero__title { font-family: var(--font-serif); font-size: clamp(1.5rem,3.5vw,2.2rem); font-weight: 300; margin-top: 6px; }
.detail-hero__date { font-size: 0.8rem; color: var(--text-subtle); margin-top: 6px; }
.detail-progress-section { background: rgba(255,255,255,0.65); border-bottom: 1px solid var(--border-subtle); padding: 20px 0; }
.detail-progress-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.detail-progress-pct { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--primary); }
.detail-progress-etape { font-size: 0.82rem; color: var(--text-subtle); }
.detail-progress-bar-wrap { height: 6px; background: var(--border-subtle); border-radius: 3px; overflow: hidden; }
.detail-progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #a0703a); border-radius: 3px; transition: width 1s cubic-bezier(.4,0,.2,1); }
.detail-fresco-section { padding: 40px 0 52px; }
.detail-fresco-scroll { overflow-x: auto; padding-bottom: 8px; }
.detail-fresco { display: flex; align-items: flex-start; min-width: max-content; padding: 0 28px; }
.detail-step { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 96px; position: relative; }
.detail-step:not(:last-child)::after { content:''; position:absolute; top:28px; left:calc(50% + 24px); right:calc(-50% + 24px); height:2px; background:var(--border-subtle); z-index:0; }
.detail-step--done:not(:last-child)::after { background: var(--primary); }
.detail-step__dot { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; flex-shrink: 0; transition: all 0.35s; }
.detail-step--done .detail-step__dot { background: var(--primary); border-color: var(--primary); }
.detail-step--active .detail-step__dot { border-color: var(--primary); animation: frescoGlow 2.2s ease-in-out infinite; }
@keyframes frescoGlow { 0%,100% { box-shadow: 0 0 0 5px rgba(122,82,48,0.12); } 50% { box-shadow: 0 0 0 11px rgba(122,82,48,0.04); } }
.detail-step__icon { font-size: 1.05rem; color: var(--text-subtle); line-height: 1; }
.detail-step--done .detail-step__icon { color: #fff; }
.detail-step--active .detail-step__icon { color: var(--primary); }
.detail-step__label { font-size: 0.68rem; font-weight: 600; color: var(--text-subtle); text-align: center; margin-top: 9px; line-height: 1.3; }
.detail-step--done .detail-step__label { color: var(--text-muted); }
.detail-step--active .detail-step__label { color: var(--primary); font-weight: 700; }
.detail-step__desc { font-size: 0.63rem; color: var(--text-subtle); text-align: center; margin-top: 4px; line-height: 1.4; max-width: 90px; }
.detail-step--future { opacity: 0.42; }
.detail-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin-bottom: 8px; }
.detail-info-item { display: flex; flex-direction: column; gap: 3px; }
.detail-info-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); }
.detail-info-item span:last-child { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }

@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.26s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 20px 16px; }
  .admin-sidebar__toggle { display: flex; }
  .detail-fresco { padding: 0 16px 8px; }
  .client-tabs-bar .container { padding: 0 12px; }
}

/* ══════════════════════════════════════════════════════════
   Feature price block (intégré dans les cartes page-feature)
   ══════════════════════════════════════════════════════════ */
.feature-price {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.feature-price__amount {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.feature-price__deposit {
  display: block;
  font-size: 0.74rem;
  color: var(--text-subtle);
  margin-bottom: 12px;
  line-height: 1.5;
}
.feature-price__cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(122,82,48,0.28);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.feature-price__cta:hover {
  color: #5a3318;
  border-color: var(--primary);
}

/* Variante dorée pour maintenance */
.feature-price--gold .feature-price__amount { color: var(--gold); }
.feature-price__cta--gold {
  color: var(--gold);
  border-bottom-color: rgba(200,163,74,0.28);
}
/* ══════════════════════════════════════════════════════════
   Admin — topnav horizontale (remplace la sidebar)
   ══════════════════════════════════════════════════════════ */
.admin-topnav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  height: 50px;
  background: #2d3748;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.admin-topnav.nav-hidden { transform: translateY(-100%); }
.admin-topnav.nav-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.22); }

.admin-topnav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 100%;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.admin-topnav__brand-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  font-family: var(--font-serif);
}
.admin-topnav__brand-role {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a5b4fc;
  padding: 1px 6px;
  border: 1px solid rgba(165,180,252,0.35);
  border-radius: 3px;
}

.admin-topnav__scroll {
  flex: 1;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}
.admin-topnav__scroll::-webkit-scrollbar { display: none; }

.admin-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  height: 100%;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s, border-color 0.18s;
  font-family: var(--font-sans);
}
.admin-nav-item:hover { color: rgba(255,255,255,0.88); }
.admin-nav-item.active { color: #ffffff; border-bottom-color: #818cf8; font-weight: 600; }

.admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: #6366f1;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

.admin-topnav__logout {
  padding: 0 16px;
  height: 100%;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s;
  font-family: var(--font-sans);
}
.admin-topnav__logout:hover { color: rgba(255,255,255,0.85); }

/* Override admin-main sans sidebar */
.admin-main { margin-left: 0 !important; padding: 32px 36px; min-height: 100vh; background: #dde3ea; }

/* Section animation */
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeSlideIn 0.22s ease; }

@media (max-width: 768px) {
  .admin-topnav__brand-name { display: none; }
  .admin-main { padding: 20px 16px; }
}

.feature-price__cta--gold:hover {
  color: #a07a20;
  border-color: var(--gold);
}

/* ══════════════════════════════════════════════════════════
   Badge premium (client abonné)
   ══════════════════════════════════════════════════════════ */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(200, 163, 74, 0.15);
  color: #a07a20;
  border: 1px solid rgba(200, 163, 74, 0.35);
  white-space: nowrap;
}
.admin-body .badge-premium { color: #c8a34a; background: rgba(200,163,74,0.12); border-color: rgba(200,163,74,0.3); }

/* ══════════════════════════════════════════════════════════
   Fresque timeline horizontale (compte.html)
   ══════════════════════════════════════════════════════════ */
.fresque-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 14px 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(122,82,48,0.18) transparent;
}
.fresque {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  padding: 4px 4px 8px;
}
.fresque__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 76px;
  position: relative;
}
.fresque__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10px;
  left: calc(50% + 11px);
  width: calc(100% - 22px);
  height: 2px;
  background: var(--border-subtle);
  z-index: 0;
}
.fresque__step--done:not(:last-child)::after { background: rgba(122,82,48,0.3); }
.fresque__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.fresque__step--done .fresque__dot { background: var(--primary); border-color: var(--primary); }
.fresque__step--active .fresque__dot {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(122,82,48,0.18), 0 0 0 8px rgba(122,82,48,0.07);
  transform: scale(1.25);
}
.fresque__dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.fresque__step--done .fresque__dot-inner { background: #fff; }
.fresque__step--active .fresque__dot-inner { background: var(--primary); }
.fresque__label {
  font-size: 0.6rem;
  color: var(--text-subtle);
  text-align: center;
  line-height: 1.3;
  max-width: 68px;
  white-space: normal;
}
.fresque__step--active .fresque__label { color: var(--primary); font-weight: 600; }
.fresque__step--done .fresque__label { color: var(--text-muted); }
.fresque__date {
  font-size: 0.55rem;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 1px;
  display: block;
  white-space: nowrap;
}
.fresque__delay {
  font-size: 0.52rem;
  background: rgba(122,82,48,0.1);
  color: var(--primary);
  border-radius: 10px;
  padding: 1px 5px;
  margin-top: 2px;
  display: block;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   Carte abonnement (compte.html)
   ══════════════════════════════════════════════════════════ */
.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  max-width: 560px;
  margin-bottom: 16px;
}
.sub-card__plan {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 3px;
}
.sub-card__price { font-size: 0.82rem; color: var(--text-subtle); margin-bottom: 12px; }
.sub-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.sub-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.sub-status-badge--active   { background: rgba(60,160,60,0.1);  color: #2a8a2a; border: 1px solid rgba(60,160,60,0.22); }
.sub-status-badge--cancelled { background: rgba(180,50,50,0.1);  color: #a02020; border: 1px solid rgba(180,50,50,0.22); }
.sub-status-badge--past_due  { background: rgba(180,130,0,0.1);  color: #8a6500; border: 1px solid rgba(180,130,0,0.22); }

/* ══════════════════════════════════════════════════════════
   Chat — espace client
   ══════════════════════════════════════════════════════════ */
.chat-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 14px;
  height: 500px;
}
.chat-projects {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow-y: auto;
  padding: 8px 0;
}
.chat-proj-item {
  padding: 10px 15px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition);
  line-height: 1.4;
}
.chat-proj-item:hover { background: var(--bg-2); color: var(--text); }
.chat-proj-item.active { background: rgba(122,82,48,0.07); color: var(--primary); border-left-color: var(--primary); font-weight: 500; }
.chat-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 72%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.83rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg--me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg--them { align-self: flex-start; background: var(--bg-2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg__time { font-size: 0.63rem; opacity: 0.6; margin-top: 4px; display: block; }
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.5);
}
.chat-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  background: #fff;
  outline: none;
}
.chat-input-row input:focus { border-color: var(--primary); }
.chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-subtle);
  padding: 20px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   Chat — espace admin (thème sombre)
   ══════════════════════════════════════════════════════════ */
.admin-chat-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0;
  height: 540px;
  border: 1px solid #3a2a1a;
  border-radius: 12px;
  overflow: hidden;
}
.admin-chat-projects {
  background: #170d06;
  border-right: 1px solid #3a2a1a;
  overflow-y: auto;
  padding: 8px 0;
}
.admin-chat-proj-item {
  padding: 11px 16px;
  cursor: pointer;
  font-size: 0.79rem;
  color: #a89070;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s;
  line-height: 1.4;
}
.admin-chat-proj-item:hover { background: rgba(255,255,255,0.04); color: #e8d5b7; }
.admin-chat-proj-item--unread { font-weight: 600; position: relative; }
.admin-chat-proj-item--unread::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: #2563eb;
  border-radius: 50%;
}
.admin-chat-proj-item.active { background: rgba(200,163,74,0.08); color: #c8a34a; border-left-color: #c8a34a; font-weight: 500; }
.admin-chat-proj-item__premium {
  display: inline-block;
  font-size: 0.54rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(200,163,74,0.18);
  color: #c8a34a;
  border: 1px solid rgba(200,163,74,0.3);
  margin-left: 5px;
  vertical-align: middle;
}
.admin-chat-panel { display: flex; flex-direction: column; background: #1e100a; }
.admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-chat-msg {
  max-width: 72%;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}
.admin-chat-msg--admin { align-self: flex-end; background: #7A5230; color: #f8f2ea; border-bottom-right-radius: 4px; }
.admin-chat-msg--client { align-self: flex-start; background: #2a1a0a; color: #e8d5b7; border: 1px solid #3a2a1a; border-bottom-left-radius: 4px; }
.admin-chat-msg__time { font-size: 0.62rem; opacity: 0.55; margin-top: 3px; display: block; }
.admin-chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #3a2a1a;
  background: rgba(0,0,0,0.2);
}
.admin-chat-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #3a2a1a;
  border-radius: 8px;
  font-size: 0.82rem;
  background: #2a1a0a;
  color: #e8d5b7;
  outline: none;
}
.admin-chat-input-row input:focus { border-color: #7A5230; }
.admin-chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #6a5040;
  padding: 20px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   Tableau abonnements admin
   ══════════════════════════════════════════════════════════ */
.admin-sub-grid { display: flex; flex-direction: column; gap: 10px; }
.admin-sub-row {
  background: rgba(255,255,255,0.05);
  border: 1px solid #3a2a1a;
  border-radius: 10px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 100px 130px 120px;
  gap: 12px;
  align-items: center;
  font-size: 0.81rem;
  color: #e8d5b7;
}
.admin-sub-row__label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: #7a6050; margin-bottom: 3px; }
.admin-sub-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
}
.admin-sub-status--active   { background: rgba(60,160,60,0.14); color: #60c060; border: 1px solid rgba(60,160,60,0.25); }
.admin-sub-status--cancelled { background: rgba(180,50,50,0.14); color: #e07060; border: 1px solid rgba(180,50,50,0.25); }
.admin-sub-status--past_due  { background: rgba(200,160,0,0.14); color: #d4a820; border: 1px solid rgba(200,160,0,0.25); }

/* ══════════════════════════════════════════════════════════
   Actions client — abandonner / demander arrêt
   ══════════════════════════════════════════════════════════ */
.client-action-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.client-action-btn--danger {
  background: none;
  border: 1px solid rgba(185,74,72,0.4);
  color: #b94a48;
  border-radius: var(--radius);
  padding: 5px 13px;
  font-size: 0.76rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.client-action-btn--danger:hover { background: rgba(185,74,72,0.07); border-color: #b94a48; }

/* ══════════════════════════════════════════════════════════
   Chat — pièces jointes
   ══════════════════════════════════════════════════════════ */
.chat-file-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
  line-height: 1;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-file-btn:hover { border-color: var(--primary); color: var(--primary); }
.chat-file-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.chat-msg-img {
  max-width: 200px;
  border-radius: 8px;
  margin-top: 5px;
  display: block;
  cursor: pointer;
}
.chat-msg-file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  margin-top: 4px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.18);
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
}
.chat-msg-file:hover { text-decoration: underline; }

/* ── Notifications ──────────────────────────────────────── */
.notif-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 12px;
  border: 1px solid rgba(122,82,48,0.2);
  border-radius: 20px;
  background: #fff;
  transition: background 0.15s;
}
.notif-trigger:hover { background: rgba(122,82,48,0.05); }
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #b94a48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9px;
}
.notif-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 340px;
  max-height: 440px;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}
.notif-panel__mark-all {
  font-size: 0.72rem;
  font-weight: 400;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
}
.notif-panel__mark-all:hover { color: var(--primary); }
.notif-panel__body { overflow-y: auto; flex: 1; }
.notif-item {
  display: flex;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #f2ede8;
  cursor: pointer;
  transition: background 0.12s;
}
.notif-item:hover { background: #fdf9f5; }
.notif-item--unread { background: #fdf5ef; }
.notif-item--unread:hover { background: #fbede0; }
.notif-item__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 5px;
  opacity: 0;
}
.notif-item--unread .notif-item__dot { opacity: 1; }
.notif-item__content { flex: 1; min-width: 0; }
.notif-item__title { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 2px; }
.notif-item__body  { font-size: 0.74rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 3px; }
.notif-item__time  { font-size: 0.68rem; color: #bbb; }
.notif-empty { padding: 28px 16px; text-align: center; font-size: 0.8rem; color: #aaa; }

@media (max-width: 768px) {
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-projects { height: 110px; }
  .chat-panel { height: 360px; }
  .admin-chat-layout { grid-template-columns: 1fr; height: auto; }
  .admin-chat-projects { height: 110px; }
  .admin-chat-panel { height: 360px; }
  .admin-sub-row { grid-template-columns: 1fr 1fr; }
  .notif-panel { right: 10px; left: 10px; width: auto; }
}
