/* ================================================================
   Aruzen Digital Group — Style Principal
   Inspiré de monpetitplacement.fr — Thème Orange & Blanc
   ================================================================ */

/* ---- Variables ---- */
:root {
  --orange: #FF0000;
  --orange-light: #FF3A00;
  --orange-xlight: #FFF0F0;
  --orange-dark: #CC0000;
  --orange-grad: linear-gradient(135deg, #FF0000 0%, #FF3A00 100%);
  --black: #0D0D0D;
  --dark: #1A1A2E;
  --text: #2D2D2D;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --bg-orange: #FFF5F5;
  --white: #FFFFFF;
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-orange: 0 8px 32px rgba(255, 0, 0, 0.25);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'DM Sans', sans-serif;
  --nav-h: 72px;
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  /* ← corrige le décalage horizontal */
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t);
}

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

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  line-height: 1.15;
}

/* ---- Loader ---- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s, visibility .5s;
}

#loader.out {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--orange-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse .8s ease-in-out infinite alternate;
}

.loader-logo-img {
  width: 80px;
  height: 80px;
  animation: pulse .8s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    opacity: .6;
    transform: scale(.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---- Layout ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 60px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media(max-width:900px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media(min-width:600px) and (max-width:900px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Typography ---- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-orange);
  color: var(--orange);
  border: 1px solid rgba(255, 0, 0, .2);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title span,
.highlight {
  color: var(--orange);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

.btn-sm {
  padding: 9px 20px;
  font-size: .85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 18px 44px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-primary {
  background: var(--orange-grad);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 0, 0, .35);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.btn-dark:hover {
  background: #2d2d4e;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-full {
  width: 100%;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--t);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* logo ←─────────── burger → */
  gap: 12px;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-box {
  width: 38px;
  height: 38px;
  background: var(--orange-grad);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  color: var(--white);
  letter-spacing: -1px;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
}

.logo-name span {
  color: var(--orange);
}

/* Logo SVG images */
.nav-logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.nav-logo-dark {
  display: none;
}

.nav-logo-light {
  display: block;
}

[data-theme="dark"] .nav-logo-dark {
  display: block;
}

[data-theme="dark"] .nav-logo-light {
  display: none;
}

footer .nav-logo-img {
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta .user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--t);
}

.nav-cta .user-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hamburger menu : tablette & mobile (≤ 1024px) ── */
@media(max-width: 1024px) {

  /* Nav-links : invisible ET non-cliquable par défaut */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    padding: 12px 16px 24px;
    gap: 4px;
    /* Cache COMPLÈTEMENT le menu — ni ombre ni trace visible */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
    z-index: 899;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }

  /* Menu ouvert — visible, animé depuis le haut */
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    width: 100%;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--bg-orange);
    color: var(--orange);
  }

  /* Cacher les boutons CTA — seul le burger gère la nav */
  .nav-cta {
    display: none !important;
  }

  /* Burger visible + poussé à droite grâce à space-between sur nav-inner */
  .burger {
    display: flex;
  }

  /* Sur tablette, garder le flex-1 pour que logo reste à gauche */
  .nav-links[style] {
    display: flex;
  }

  /* reset inline style si besoin */
}

/* overlay sombre derrière le menu */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 898;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#nav-overlay.show {
  display: block;
}

/* ── Items visibles uniquement dans le menu mobile ── */
.nav-mobile-only {
  display: none;
}

.nav-mobile-sep {
  display: none;
}

@media(max-width:1024px) {
  .nav-mobile-only {
    display: block;
    width: 100%;
  }

  .nav-mobile-sep {
    display: block;
    height: 1px;
    background: var(--border);
    margin: 8px 16px;
  }

  /* Connexion & Inscription : style discret */
  .nav-mobile-only a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    width: 100%;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--t);
  }

  .nav-mobile-only a:hover {
    background: var(--bg-soft);
    color: var(--orange);
  }

  /* Devis gratuit : bouton orange plein */
  .nav-mobile-only a.nav-mobile-devis {
    background: var(--orange-grad);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    justify-content: center;
    margin-top: 4px;
    box-shadow: var(--shadow-orange);
  }

  .nav-mobile-only a.nav-mobile-devis:hover {
    filter: brightness(1.08);
    color: #fff;
    background: var(--orange-grad);
  }

  /* Dark mode */
  [data-theme="dark"] .nav-mobile-only a {
    color: rgba(255, 255, 255, .85);
  }

  [data-theme="dark"] .nav-mobile-sep {
    background: rgba(255, 255, 255, .1);
  }
}

/* Dark mode mobile menu */
[data-theme="dark"] .nav-links {
  border-color: rgba(255, 255, 255, .08);
}

@media(max-width:1024px) {
  [data-theme="dark"] .nav-links {
    background: #1A1A2E;
  }
}

[data-theme="dark"] .nav-links a {
  color: rgba(255, 255, 255, .85);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--orange);
}


/* ================================================================
   HERO SECTION — Redesign grotesque responsive
   ================================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 96px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 0, 0, .08) 0%, transparent 70%);
}

.hero-bg-blob:first-child {
  width: 760px;
  height: 760px;
  top: -300px;
  right: -200px;
}

.hero-bg-blob--2 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 0, 0, .05) 0%, transparent 70%);
}

/* Two-column layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ---- Left column ---- */
.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-orange);
  border: 1px solid rgba(255, 0, 0, .22);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  width: fit-content;
}

.hero-label-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: heroPulse 1.6s ease-in-out infinite;
}

@keyframes heroPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, .5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(255, 0, 0, 0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.07;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}

.hero-accent {
  font-style: normal;
  color: var(--orange);
  position: relative;
  display: inline-block;
}

.hero-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 5px;
  background: var(--orange-grad);
  border-radius: 3px;
  opacity: .35;
}

.hero-sub {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 38px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.btn-ghost-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
  font-weight: 600;
}

.btn-ghost-dark:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* Social proof row */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.proof-avatars {
  display: flex;
}

.proof-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: var(--white);
  margin-left: -8px;
}

.proof-avatars .proof-av:first-child {
  margin-left: 0;
}

.proof-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-stars {
  color: #FFB800;
  font-size: .8rem;
  letter-spacing: 1px;
}

.proof-text span {
  font-size: .8rem;
  color: var(--text-muted);
}

.proof-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--bg-orange);
  border-radius: 99px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 0, 0, .2);
}

/* ---- Right column ---- */
.hero-right {
  position: relative;
  padding: 24px 28px 28px 8px;
}

/* macOS-style dashboard card */
.hcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .1), 0 4px 16px rgba(0, 0, 0, .06);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.hcard-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hcard-dots {
  display: flex;
  gap: 6px;
}

.hcd {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.hcd--red {
  background: #FF5F57;
}

.hcd--yellow {
  background: #FEBC2E;
}

.hcd--green {
  background: #28C840;
}

.hcard-title-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hcard-title-bar i {
  color: var(--orange);
}

.hcard-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(16, 185, 129, .1);
  border-radius: 99px;
  padding: 3px 10px;
}

.hcard-live-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: heroPulse 1.6s ease-in-out infinite;
}

.hcard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.hm-box {
  background: var(--white);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hm-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.hm-val span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
}

.hm-lbl {
  font-size: .7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .67rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 8px;
  margin-top: 2px;
}

.hm-chip.up {
  background: rgba(16, 185, 129, .12);
  color: var(--success);
}

.hcard-progress {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}

.hcp-row {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.hcp-row strong {
  color: var(--dark);
}

.hcp-track {
  height: 7px;
  background: var(--border-light);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hcp-fill {
  height: 100%;
  background: var(--orange-grad);
  border-radius: 99px;
  transition: width 1.2s ease;
}

.hcp-phases {
  display: flex;
  gap: 6px;
}

.hcp-phase {
  flex: 1;
  text-align: center;
  font-size: .67rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text-light);
  border: 1px solid var(--border);
}

.hcp-phase.done {
  background: rgba(16, 185, 129, .1);
  color: var(--success);
  border-color: rgba(16, 185, 129, .2);
}

.hcp-phase.active {
  background: var(--bg-orange);
  color: var(--orange);
  border-color: rgba(255, 0, 0, .25);
}

.hcard-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}

.hct-label {
  font-size: .72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hct-members {
  display: flex;
}

.hct-m {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--orange-grad);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  margin-left: -6px;
}

.hct-members .hct-m:first-child {
  margin-left: 0;
}

.hct-due {
  margin-left: auto;
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hct-due i {
  color: var(--orange);
}

/* Floating notification chips */
.hchip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
  animation: floatY 3.5s ease-in-out infinite;
  min-width: 210px;
}

.hchip--tl {
  top: 0;
  left: -24px;
  animation-delay: 0s;
}

.hchip--br {
  bottom: 4px;
  right: -16px;
  animation-delay: 1.6s;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

.hchip-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}

.hchip-icon.green {
  background: rgba(16, 185, 129, .15);
  color: var(--success);
}

.hchip-icon.orange {
  background: var(--bg-orange);
  color: var(--orange);
}

.hchip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hchip-text strong {
  font-size: .78rem;
  color: var(--dark);
  font-weight: 700;
}

.hchip-text span {
  font-size: .7rem;
  color: var(--text-muted);
}

/* Responsive hero */
@media(max-width:1100px) {
  .hero-inner {
    gap: 40px;
  }

  .hero-right {
    padding: 20px 12px 20px 4px;
  }

  .hchip--tl {
    left: -10px;
  }

  .hchip--br {
    right: -8px;
  }
}

@media(max-width:900px) {
  .hero {
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-right {
    padding: 0 0 40px;
  }

  .hchip--tl {
    top: -10px;
    left: 0;
  }

  .hchip--br {
    bottom: 0;
    right: 0;
  }
}

@media(max-width:640px) {
  .hero {
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-proof {
    gap: 12px;
  }

  .hchip {
    min-width: 180px;
  }

  .hchip--tl {
    display: none;
  }
}

@media(max-width:420px) {
  .hcard-metrics {
    grid-template-columns: 1fr;
  }

  .hcp-phases {
    flex-wrap: wrap;
  }

  .hchip--br {
    display: none;
  }
}

/* ================================================================
   STATS BAR  — legacy block (kept minimal, superseded below)
   ================================================================ */

/* ================================================================
   HOW IT WORKS (style MPP "En 3 étapes")
   ================================================================ */
.steps-section {
  background: var(--bg-soft);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.5% + 24px);
  right: calc(16.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  z-index: 0;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-light);
  transition: all var(--t);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 0, 0, .2);
}

.step-num {
  width: 64px;
  height: 64px;
  background: var(--orange-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-orange);
}

.step-title {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.step-desc {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.7;
}

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

  .steps-grid::before {
    display: none;
  }
}

/* ================================================================
   SERVICES
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--t);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 0, 0, .2);
  transform: translateY(-4px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-orange);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--orange);
  margin-bottom: 20px;
}

.service-name {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.service-desc {
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-from {
  font-size: .82rem;
  color: var(--orange);
  font-weight: 700;
}

.service-arrow {
  color: var(--orange);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .88rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--t);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

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

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

/* ================================================================
   PORTFOLIO
   ================================================================ */
.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.port-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--t);
}

.port-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.port-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--orange);
  opacity: .5;
  position: relative;
  overflow: hidden;
}

.port-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 0, 0, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity var(--t);
}

.port-card:hover .port-overlay {
  opacity: 1;
}

.port-overlay a {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: .9rem;
  transition: transform var(--t);
}

.port-overlay a:hover {
  transform: scale(1.1);
}

.port-body {
  padding: 22px;
}

.port-cat {
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}

.port-title {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 7px;
}

.port-client {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.port-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.port-tag {
  background: var(--bg-soft);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .73rem;
  font-weight: 500;
}

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

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

/* ================================================================
   TESTIMONIALS (style MPP carousel)
   ================================================================ */
.testimonials-section {
  background: var(--bg-soft);
}

.testimonials-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}

.testi-stars {
  display: flex;
  gap: 3px;
  color: #FFB800;
  margin-bottom: 14px;
  font-size: .85rem;
}

.testi-quote {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 3.5rem;
  color: var(--orange);
  opacity: .1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testi-text {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  background: var(--orange-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}

.testi-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--dark);
}

.testi-role {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@media(max-width:900px) {
  .testimonials-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   FAQ (accordion style MPP)
   ================================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t);
}

.faq-item.open {
  border-color: var(--orange);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform var(--t);
  font-size: .85rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--orange);
  color: var(--white);
}

.faq-a {
  display: none;
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  display: block;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background: var(--orange-grad);
  border-radius: var(--radius-xl);
  padding: 72px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255, 255, 255, .12) 0%, transparent 60%);
}

.cta-banner-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
  position: relative;
}

.cta-banner-sub {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  margin-bottom: 40px;
  position: relative;
}

.cta-banner-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

@media(max-width:600px) {
  .cta-banner {
    padding: 48px 24px;
  }
}

/* ================================================================
   FORMS (général)
   ================================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, .12);
  background: var(--white);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-error {
  color: var(--error);
  font-size: .78rem;
  margin-top: 5px;
}

.form-hint {
  color: var(--text-muted);
  font-size: .78rem;
  margin-top: 5px;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: .9rem;
}

.input-icon .form-control {
  padding-left: 40px;
}

@media(max-width:600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   DEVIS MULTI-STEP
   ================================================================ */
.devis-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #fff 0%, #FFF5F5 100%);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}

.devis-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.devis-progress {
  margin-bottom: 40px;
}

.devis-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}

.dstep {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.dstep:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.dstep.done:not(:last-child)::after {
  background: var(--orange);
}

.dstep-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: all var(--t);
}

.dstep.done .dstep-dot {
  background: var(--orange);
  color: var(--white);
}

.dstep.active .dstep-dot {
  background: var(--orange-grad);
  color: var(--white);
  box-shadow: var(--shadow-orange);
  transform: scale(1.1);
}

.dstep-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
}

.dstep.active .dstep-label {
  color: var(--orange);
  font-weight: 600;
}

.devis-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.devis-step-panel {
  display: none;
}

.devis-step-panel.active {
  display: block;
  animation: fadeInUp .3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.devis-step-title {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 800;
}

.devis-step-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: .95rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.choice-btn {
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--bg-soft);
  cursor: pointer;
  text-align: center;
  transition: all var(--t);
}

.choice-btn:hover {
  border-color: var(--orange);
  background: var(--bg-orange);
}

.choice-btn.selected {
  border-color: var(--orange);
  background: var(--bg-orange);
  box-shadow: var(--shadow-orange);
}

.choice-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.choice-label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--dark);
}

.choice-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.devis-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.devis-summary {
  background: var(--bg-orange);
  border: 1px solid rgba(255, 0, 0, .2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.devis-summary-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 0, 0, .1);
  font-size: .88rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-key {
  color: var(--text-muted);
}

.summary-val {
  font-weight: 600;
  color: var(--dark);
}

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #fff 0%, #FFF5F5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-box {
  width: 100%;
  max-width: 440px;
}

.auth-logo-wrap {
  text-align: center;
  margin-bottom: 36px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.auth-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
  font-size: .9rem;
}

.auth-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-light);
  font-size: .82rem;
  margin: 20px 0;
}

.auth-sep::before,
.auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer-link {
  text-align: center;
  margin-top: 22px;
  font-size: .88rem;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: var(--orange);
  font-weight: 600;
}

.pw-wrap {
  position: relative;
}

.pw-wrap input {
  padding-right: 46px;
}

.pw-eye {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .95rem;
  padding: 4px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input[type=checkbox] {
  margin-top: 2px;
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.check-row label {
  font-size: .85rem;
  color: var(--text-muted);
}

.check-row a {
  color: var(--orange);
}

.strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .3s, background .3s;
}

/* ================================================================
   DASHBOARD
   ================================================================ */
.dash-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
}

.dash-sidebar {
  background: var(--dark);
  padding: 28px 0;
  border-right: 1px solid rgba(255, 255, 255, .06);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.dash-user-block {
  padding: 20px 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 14px;
}

.dash-avatar {
  width: 50px;
  height: 50px;
  background: var(--orange-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.dash-uname {
  font-weight: 700;
  color: var(--white);
  font-size: .9rem;
}

.dash-uemail {
  font-size: .76rem;
  color: rgba(255, 255, 255, .4);
  margin-top: 2px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: rgba(255, 255, 255, .5);
  font-size: .87rem;
  font-weight: 500;
  transition: all var(--t);
}

.dash-nav-link:hover,
.dash-nav-link.active {
  color: var(--white);
  background: rgba(255, 0, 0, .12);
}

.dash-nav-link.active {
  color: var(--orange);
}

.dash-nav-link i {
  width: 18px;
  text-align: center;
}

.dash-section-lbl {
  padding: 16px 22px 6px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .2);
  font-weight: 700;
}

.dash-main {
  padding: 36px 40px;
  background: var(--bg-soft);
}

.dash-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-page-title {
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 800;
}

.dash-page-sub {
  color: var(--text-muted);
  font-size: .88rem;
  margin-top: 4px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: box-shadow var(--t);
}

.kpi:hover {
  box-shadow: var(--shadow);
}

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 14px;
}

.kpi-icon.o {
  background: var(--bg-orange);
  color: var(--orange);
}

.kpi-icon.g {
  background: rgba(16, 185, 129, .1);
  color: var(--success);
}

.kpi-icon.b {
  background: rgba(59, 130, 246, .1);
  color: var(--info);
}

.kpi-icon.y {
  background: rgba(245, 158, 11, .1);
  color: var(--warning);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.kpi-label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.dash-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
}

table.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

.dash-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: .88rem;
  color: var(--text);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.dash-table tr:hover td {
  background: var(--bg-soft);
}

.proj-progress {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  min-width: 80px;
}

.proj-fill {
  height: 100%;
  background: var(--orange-grad);
  border-radius: 99px;
}

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 99px;
  font-size: .73rem;
  font-weight: 700;
}

.badge-green {
  background: rgba(16, 185, 129, .1);
  color: var(--success);
}

.badge-orange {
  background: var(--bg-orange);
  color: var(--orange);
}

.badge-blue {
  background: rgba(59, 130, 246, .1);
  color: var(--info);
}

.badge-gray {
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

@media(max-width:900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
    height: auto;
  }

  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .dash-main {
    padding: 20px;
  }
}

/* ================================================================
   BLOG
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 0, 0, .2);
}

.blog-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--orange);
  opacity: .45;
  position: relative;
  overflow: hidden;
}

.blog-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}

.blog-body {
  padding: 22px;
}

.blog-meta {
  display: flex;
  gap: 14px;
  font-size: .77rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-meta i {
  color: var(--orange);
  margin-right: 3px;
}

.blog-title {
  font-size: .98rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.45;
  transition: color var(--t);
}

.blog-card:hover .blog-title {
  color: var(--orange);
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: .83rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-read {
  font-size: .83rem;
  font-weight: 700;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 5px;
}

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

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

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  background: linear-gradient(160deg, #fff 0%, #FFF5F5 60%, #fff 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--dark);
  margin-bottom: 14px;
  font-weight: 800;
}

.page-hero-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 18px;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--orange);
}

.breadcrumb-sep {
  opacity: .4;
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cinfo-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.cinfo-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.cinfo-title {
  font-weight: 700;
  color: var(--dark);
  font-size: .88rem;
  margin-bottom: 2px;
}

.cinfo-val {
  color: var(--text-muted);
  font-size: .85rem;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow);
}

.type-switch {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
  margin-bottom: 28px;
}

.type-btn {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t);
}

.type-btn.active {
  background: var(--white);
  color: var(--orange);
  box-shadow: var(--shadow-sm);
}

@media(max-width:800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .7);
}

.footer-top {
  padding: 72px 0 52px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
}

.footer-brand p {
  font-size: .87rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  opacity: .7;
  max-width: 290px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  transition: all var(--t);
}

.footer-socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h5 {
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: .85rem;
  opacity: .6;
  transition: opacity var(--t);
}

.footer-col ul a:hover {
  opacity: 1;
  color: var(--orange);
}

.footer-contact-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .84rem;
  opacity: .7;
  align-items: flex-start;
}

.footer-contact-list i {
  color: var(--orange);
  margin-top: 2px;
  width: 14px;
}

.footer-newsletter p {
  font-size: .82rem;
  opacity: .6;
  margin-bottom: 12px;
}

.nl-form {
  display: flex;
}

.nl-form input {
  flex: 1;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 14px;
  color: var(--white);
  font-size: .85rem;
  outline: none;
}

.nl-form input::placeholder {
  color: rgba(255, 255, 255, .3);
}

.nl-form input:focus {
  border-color: var(--orange);
}

.nl-form button {
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background var(--t);
}

.nl-form button:hover {
  background: var(--orange-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  opacity: .5;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a:hover {
  color: var(--orange);
  opacity: 1;
}

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

  .footer-brand {
    grid-column: 1/-1;
  }
}

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

  .footer-brand {
    grid-column: auto;
  }
}

/* ================================================================
   ALERTS & FLASH
   ================================================================ */
.flash {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  right: 18px;
  z-index: 1100;
  max-width: 360px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideInR .3s ease;
}

.flash.success {
  border-color: var(--success);
}

.flash.success i {
  color: var(--success);
}

.flash.error {
  border-color: var(--error);
}

.flash.error i {
  color: var(--error);
}

.flash-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.1rem;
}

@keyframes slideInR {
  from {
    transform: translateX(110%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alert {
  padding: 13px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
}

.alert-success {
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .3);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: var(--error);
}

.alert-info {
  background: rgba(59, 130, 246, .1);
  border: 1px solid rgba(59, 130, 246, .3);
  color: var(--info);
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.btt {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 800;
  width: 44px;
  height: 44px;
  background: var(--orange-grad);
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-orange);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t);
}

.btt.show {
  opacity: 1;
  pointer-events: all;
}

.btt:hover {
  transform: translateY(-3px);
}

/* ================================================================
   UTILS
   ================================================================ */
.text-center {
  text-align: center;
}

.text-orange {
  color: var(--orange);
}

.text-muted {
  color: var(--text-muted);
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mt-6 {
  margin-top: 48px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.gap-2 {
  gap: 16px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.hidden {
  display: none !important;
}

[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   FOOTER GRID (4-col layout used in new pages)
   ================================================================ */
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}


.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-about {
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
  transition: color var(--t);
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
}

.footer-contact li i {
  color: var(--orange);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: .88rem;
  transition: all var(--t);
}

.social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .83rem;
  color: rgba(255, 255, 255, .4);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, .4);
  transition: color var(--t);
}

.footer-legal a:hover {
  color: var(--orange);
}

@media(max-width:960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:580px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ================================================================
   PAGE HERO (breadcrumb + title — inner pages)
   ================================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  text-align: center;
}

.page-hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 14px;
}

.page-hero-inner p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .83rem;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--orange);
}

.breadcrumb i {
  font-size: .65rem;
}

/* ================================================================
   DEVIS HERO
   ================================================================ */
.devis-hero {
  padding: calc(var(--nav-h) + 56px) 0 40px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.devis-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.devis-hero-text h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 14px 0;
}

.devis-hero-text p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 20px;
}

.devis-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.dtrust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  color: var(--text-muted);
}

.dtrust i {
  color: var(--orange);
}

.devis-hero-stats {
  display: flex;
  gap: 24px;
}

.dstat {
  text-align: center;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 80px;
}

.dstat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
}

.dstat-lbl {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@media(max-width:768px) {
  .devis-hero-inner {
    grid-template-columns: 1fr;
  }

  .devis-hero-stats {
    justify-content: center;
  }
}

/* ================================================================
   DEVIS MULTI-STEP FORM
   ================================================================ */
.devis-section {
  padding: 56px 0 80px;
  background: var(--bg-soft);
}

.devis-section .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.devis-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow);
}

/* Progress — connector line BEHIND dots */
.devis-progress {
  margin-bottom: 36px;
}

/* The orange fill bar sits completely behind everything */
.devis-bar-track {
  display: none;
  /* hidden — progress shown inline via ::before on steps-dots */
}

.devis-bar-fill {
  display: none;
}

/* Steps dots row with inline connector */
.devis-steps-dots {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

/* Single track line — from center of dot-1 to center of dot-5, behind all dots */
.devis-steps-dots::before {
  content: '';
  position: absolute;
  top: 17px;
  /* center of 34px dot */
  left: 10%;
  /* center of first flex-1/5 item */
  right: 10%;
  /* center of last  flex-1/5 item */
  height: 2px;
  background: var(--border);
  z-index: 0;
}

/* Orange progress fill — same origin, width driven by JS --progress-pct */
.devis-steps-dots::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 10%;
  height: 2px;
  background: var(--orange-grad);
  z-index: 0;
  width: var(--progress-pct, 0%);
  transition: width .4s ease;
  border-radius: 99px;
}

.dstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
  position: relative;
  z-index: 1;
  /* dots ABOVE the line */
  flex: 1;
}

.dstep-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--t);
  position: relative;
  z-index: 2;
}

.dstep-lbl {
  font-size: .72rem;
  color: var(--text-light);
  white-space: nowrap;
}

.dstep.active .dstep-num {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 0 0 5px rgba(255, 0, 0, .14);
  transform: scale(1.08);
}

.dstep.active .dstep-lbl {
  color: var(--orange);
  font-weight: 700;
}

.dstep.done .dstep-num {
  border-color: var(--success);
  background: var(--success);
  color: var(--white);
}

/* Step panels */
.devis-step-panel {
  display: none;
  animation: fadeUp .35s ease;
}

.devis-step-panel.active {
  display: block;
}

.step-header {
  text-align: center;
  margin-bottom: 32px;
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--orange-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--orange);
  margin: 0 auto 16px;
}

.check-icon {
  background: rgba(16, 185, 129, .1);
  color: var(--success);
}

.step-header h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.step-header p {
  color: var(--text-muted);
  font-size: .95rem;
}

/* Choice cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* 11-item grid: 4 columns for better density */
.choice-grid--11 {
  grid-template-columns: repeat(4, 1fr);
}

@media(max-width:760px) {
  .choice-grid--11 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:520px) {
  .choice-grid--11 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choice-btn {
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  cursor: pointer;
  transition: all var(--t);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.choice-btn:hover {
  border-color: var(--orange);
  background: var(--bg-orange);
}

.choice-btn.selected {
  border-color: var(--orange);
  background: var(--bg-orange);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, .1);
}

.choice-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange-xlight);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.choice-label {
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
}

.choice-desc {
  font-size: .78rem;
  color: var(--text-muted);
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-list .choice-btn {
  flex-direction: row;
  padding: 16px 20px;
  text-align: left;
  align-items: center;
  gap: 14px;
}

.choice-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--orange-xlight);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.choice-icon-sm.urgence {
  background: rgba(239, 68, 68, .1);
  color: var(--error);
}

.choice-content {
  flex: 1;
}

.choice-arrow {
  color: var(--text-light);
  font-size: .85rem;
}

.choice-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.urgent-tag {
  background: rgba(239, 68, 68, .1);
  color: var(--error);
}

.pop-tag {
  background: rgba(255, 0, 0, .1);
  color: var(--orange);
}

/* Step 4 form */
.devis-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-col {
  grid-column: 1 / -1;
}

.req {
  color: var(--error);
}

/* Summary */
.summary-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-key {
  font-size: .85rem;
  color: var(--text-muted);
}

.summary-val {
  font-weight: 600;
  font-size: .9rem;
  text-align: right;
  max-width: 60%;
}

.summary-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .82rem;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.summary-note i {
  color: var(--orange);
  flex-shrink: 0;
}

/* ── Summary responsive mobile ── */
@media(max-width: 520px) {
  .summary-box {
    padding: 16px 14px;
  }

  .summary-row {
    flex-direction: column;
    gap: 3px;
    padding: 11px 0;
  }

  .summary-key {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .summary-val {
    text-align: left;
    max-width: 100%;
    font-size: .92rem;
    word-break: break-word;
  }
}

/* Navigation buttons */
.devis-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Side panel */
.devis-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.dside-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dside-card h3 i {
  color: var(--orange);
}

.dside-card p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.dside-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color var(--t);
}

.dside-link:hover {
  color: var(--orange);
}

.dside-link i {
  color: var(--orange);
  width: 16px;
}

.dside-testimonial {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 10px;
}

.dside-testimonial p {
  font-size: .82rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
}

.dside-author {
  font-size: .75rem;
  color: var(--text-muted);
}

@media(max-width:1040px) {
  .devis-section .container {
    grid-template-columns: 1fr;
  }

  .devis-side {
    display: none;
  }
}

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

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

  .devis-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   SERVICES DETAIL PAGE
   ================================================================ */
.services-detail {
  padding: 80px 0;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row.reverse {
  direction: rtl;
}

.service-row.reverse>* {
  direction: ltr;
}

.service-row-visual {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.s-web {
  background: linear-gradient(135deg, #EBF5FF, #BFDBFE);
  color: #3B82F6;
}

.s-ecom {
  background: linear-gradient(135deg, #FFF0E6, #FFDAB8);
  color: var(--orange);
}

.s-mkt {
  background: linear-gradient(135deg, #F0FDF4, #BBF7D0);
  color: #10B981;
}

.s-design {
  background: linear-gradient(135deg, #FDF4FF, #E9D5FF);
  color: #A855F7;
}

.s-app {
  background: linear-gradient(135deg, #F0F9FF, #BAE6FD);
  color: #0EA5E9;
}

.s-saas {
  background: linear-gradient(135deg, #FFF7ED, #FED7AA);
  color: #EA580C;
}

.s-elearning {
  background: linear-gradient(135deg, #ECFDF5, #A7F3D0);
  color: #059669;
}

.s-motion {
  background: linear-gradient(135deg, #FFF1F2, #FECDD3);
  color: #E11D48;
}

.s-maint {
  background: linear-gradient(135deg, #F8FAFC, #CBD5E1);
  color: #475569;
}

.s-consult {
  background: linear-gradient(135deg, #FFF9E6, #FDE68A);
  color: #D97706;
}

.s-graphique {
  background: linear-gradient(135deg, #FDF4FF, #DDD6FE);
  color: #7C3AED;
}

.s-gmb {
  background: linear-gradient(135deg, #F0FDF4, #BBF7D0);
  color: #16A34A;
}

.s-print {
  background: linear-gradient(135deg, #EFF6FF, #BFDBFE);
  color: #2563EB;
}

.service-tag {
  display: inline-flex;
  font-size: .8rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-xlight);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.service-row-content h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.service-row-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
}

.service-features li i {
  color: var(--success);
  flex-shrink: 0;
}

.service-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-price {
  font-size: 1rem;
  color: var(--text-muted);
}

.service-price strong {
  font-size: 1.5rem;
  color: var(--orange);
  font-family: var(--font-display);
}

@media(max-width:860px) {

  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-row-img {
    display: none;
  }
}

/* ================================================================
   PORTFOLIO FULL PAGE
   ================================================================ */
.portfolio-stats {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  transition: background .3s, border-color .3s;
}

.pstats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.pstat span {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  text-shadow: 0 0 20px rgba(255, 0, 0, .18);
}

.pstat>span:last-child {
  font-size: .85rem;
  color: var(--text-muted);
  font-family: var(--font);
  font-weight: 500;
  margin-top: 4px;
  text-shadow: none;
}

[data-theme="dark"] .portfolio-stats {
  background: var(--bg-soft);
  border-color: var(--border);
}

[data-theme="dark"] .pstat span {
  text-shadow: 0 0 24px rgba(255, 0, 0, .35);
}

.portfolio-full {
  padding: 72px 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 30px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--t);
  color: var(--text);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.portfolio-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pf-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--t);
}

.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pf-thumb {
  position: relative;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pf-thumb .pf-icon {
  font-size: 3.5rem;
  opacity: .5;
}

.web-thumb {
  background: linear-gradient(135deg, #EBF5FF, #BFDBFE);
  color: #3B82F6;
}

.ecom-thumb {
  background: linear-gradient(135deg, #FFF0E6, #FFDAB8);
  color: var(--orange);
}

.app-thumb {
  background: linear-gradient(135deg, #F0F9FF, #BAE6FD);
  color: #0EA5E9;
}

.mkt-thumb {
  background: linear-gradient(135deg, #F0FDF4, #BBF7D0);
  color: #10B981;
}

.design-thumb {
  background: linear-gradient(135deg, #FDF4FF, #E9D5FF);
  color: #A855F7;
}

.pf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t);
}

.pf-card:hover .pf-overlay {
  opacity: 1;
}

.pf-overlay-content {
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.pf-cat-tag {
  font-size: .75rem;
  background: var(--orange);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  display: inline-block;
}

.pf-overlay-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #fff;
}

.pf-overlay-content p {
  font-size: .82rem;
  opacity: .8;
  margin-bottom: 14px;
  color: #fff;
}

.pf-overlay-content .btn {
  color: #fff;
}

.pf-info {
  padding: 20px;
}

.pf-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.web-badge {
  background: #EBF5FF;
  color: #3B82F6;
}

.ecom-badge {
  background: var(--orange-xlight);
  color: var(--orange);
}

.app-badge {
  background: #F0F9FF;
  color: #0EA5E9;
}

.mkt-badge {
  background: #F0FDF4;
  color: #10B981;
}

.design-badge {
  background: #FDF4FF;
  color: #A855F7;
}

.pf-info h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.pf-info p {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-tags span {
  font-size: .72rem;
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.portfolio-more {
  text-align: center;
  margin-top: 48px;
}

@media(max-width:860px) {
  .portfolio-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:560px) {
  .portfolio-grid-full {
    grid-template-columns: 1fr;
  }

  .pstats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   BLOG PAGE
   ================================================================ */
.blog-section {
  padding: 72px 0 80px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  transition: all var(--t);
}

.blog-featured:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-featured-thumb {
  position: relative;
  min-height: 220px;
}

.blog-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: .45;
}

.seo-bg {
  background: linear-gradient(135deg, #EBF5FF, #BFDBFE);
  color: #3B82F6;
}

.design-bg {
  background: linear-gradient(135deg, #FDF4FF, #E9D5FF);
  color: #A855F7;
}

.ecom-bg {
  background: linear-gradient(135deg, #FFF0E6, #FFDAB8);
  color: var(--orange);
}

.mkt-bg {
  background: linear-gradient(135deg, #F0FDF4, #BBF7D0);
  color: #10B981;
}

.app-bg {
  background: linear-gradient(135deg, #F0F9FF, #BAE6FD);
  color: #0EA5E9;
}

.blog-cat-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.blog-featured-content {
  padding: 28px 32px 28px 0;
}

.blog-featured-content h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-featured-content h2 a:hover {
  color: var(--orange);
}

.blog-featured-content p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.blog-meta span {
  font-size: .78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-read-more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more:hover {
  gap: 10px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--t);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-thumb .blog-thumb-placeholder {
  height: 100%;
}

.blog-card-content {
  padding: 20px;
}

.blog-card-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card-content h3 a:hover {
  color: var(--orange);
}

.blog-card-content p {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.65;
}

.blog-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  font-size: .88rem;
  transition: all var(--t);
}

.page-btn:hover,
.page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.page-next {
  width: auto;
  padding: 0 16px;
  font-size: .83rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sidebar */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 28px;
}

.widget-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.search-box {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-box input {
  flex: 1;
  padding: 9px 14px;
  border: none;
  outline: none;
  font-size: .88rem;
}

.search-box button {
  padding: 9px 14px;
  background: var(--orange);
  border: none;
  color: var(--white);
  cursor: pointer;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  transition: color var(--t);
}

.cat-list a:hover {
  color: var(--orange);
}

.cat-list a span {
  font-size: .75rem;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--text-muted);
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-post {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.rp-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: .5;
}

.rp-info p {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 3px;
  font-weight: 500;
}

.rp-info span {
  font-size: .75rem;
  color: var(--text-light);
}

.recent-post:hover .rp-info p {
  color: var(--orange);
}

.sidebar-cta {
  background: var(--orange-xlight);
  border-color: rgba(255, 0, 0, .2);
  text-align: center;
}

.sidebar-cta .cta-icon {
  font-size: 1.8rem;
  color: var(--orange);
  margin-bottom: 10px;
}

.sidebar-cta h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.sidebar-nl {
  display: flex;
  gap: 8px;
}

.sidebar-nl input {
  flex: 1;
  min-width: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  font-size: .78rem;
  padding: 4px 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  transition: all var(--t);
}

.tag-item:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

@media(max-width:900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    display: none;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ================================================================
   BLOG ARTICLE PAGE
   ================================================================ */
.article-hero {
  padding: calc(var(--nav-h) + 56px) 0 40px;
  background: var(--bg-soft);
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 14px 0;
}

.article-cat {
  margin-bottom: 8px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--orange);
}

.author-mini strong {
  display: block;
  font-size: .95rem;
}

.author-mini span {
  font-size: .8rem;
  color: var(--text-muted);
}

.article-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-info span {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-section {
  padding: 60px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}


.article-thumb {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: .4;
  margin-bottom: 36px;
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 28px 0 12px;
  color: var(--dark);
}

.article-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: .95rem;
}

.article-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-content ul li {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: .95rem;
}

.article-intro {
  font-size: 1.05rem !important;
  color: var(--text) !important;
  font-weight: 500;
  line-height: 1.8 !important;
}

.article-tip {
  display: flex;
  gap: 14px;
  background: var(--bg-orange);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.article-tip i {
  color: var(--orange);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.article-tip p {
  font-size: .9rem;
  color: var(--text);
  margin: 0;
  line-height: 1.7;
}

.article-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
}

.article-box h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-box h3 i {
  color: var(--orange);
}

.article-conclusion {
  background: var(--bg-orange);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 40px;
}

.article-conclusion h2 {
  margin-top: 0;
}

.article-conclusion p {
  margin-bottom: 20px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-share span {
  font-size: .88rem;
  color: var(--text-muted);
}

.share-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  border: none;
  cursor: pointer;
}

.share-btn.twitter {
  background: #1DA1F2;
}

.share-btn.linkedin {
  background: #0A66C2;
}

.share-btn.facebook {
  background: #1877F2;
}

.article-author {
  display: flex;
  gap: 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-top: 16px;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--orange);
  flex-shrink: 0;
}

.author-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.author-role {
  font-size: .82rem;
  color: var(--orange);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.author-info p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.toc-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.toc-list a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color var(--t);
}

.toc-list a:hover {
  color: var(--orange);
}

.link-placeholder {
  color: var(--orange);
  font-style: italic;
}

/* ── Article body alignment ───────────────────────────── */
.article-body {
  min-width: 0;
  /* évite le débordement grid */
}

.article-content {
  max-width: 100%;
}

/* ── Article sidebar ──────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
  max-width: 100%;
  min-width: 0;
}

/* TOC widget */
/* TOC widget — styles inherit from .sidebar-widget */

/* Share buttons column */
.share-btns-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-btns-col .share-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
}

/* Audit / CTA widget */
.audit-widget {
  background: var(--audit-bg, var(--bg-soft));
  text-align: center;
}

[data-theme="dark"] .audit-widget {
  background: var(--audit-bg-dark, #1E1A16);
}

.audit-icon {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 10px;
}

.audit-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.audit-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.audit-cta {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Listes d'actions (📌 Ce que vous pouvez faire) */
.article-action-list {
  padding-left: 0;
  list-style: none;
  margin: 12px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-action-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: .95rem;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-action-list li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Citations statistiques */
.article-quote {
  border-left: 4px solid var(--orange);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
}

.article-quote cite {
  display: block;
  font-style: normal;
  font-size: .82rem;
  color: var(--orange);
  font-weight: 600;
  margin-top: 8px;
}

/* CTA finale (→ Contactez…) */
.article-cta {
  background: var(--orange-xlight);
  border: 1.5px solid rgba(255, 0, 0, .25);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-cta::before {
  content: "→";
  color: var(--orange);
  font-size: 1.1rem;
}

.article-cta-link {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-cta-link:hover {
  color: var(--orange-dark, #cc4e00);
}

@media(max-width:900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-story {
  padding: 80px 0;
}

.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.story-visual-box {
  background: var(--orange-grad);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: var(--white);
  text-align: center;
}

.story-big-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}

.story-big-lbl {
  font-size: 1rem;
  opacity: .8;
  margin-bottom: 28px;
}

.story-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sm-item {
  background: rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  padding: 14px 8px;
  text-align: center;
}

.sm-item span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
}

.sm-item small {
  font-size: .75rem;
  opacity: .8;
}


.about-story-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-values {
  padding: 80px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
  transition: all var(--t);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--orange-xlight);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-team {
  padding: 80px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
  transition: all var(--t);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange-xlight);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 14px;
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: .78rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.team-social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .8rem;
  transition: all var(--t);
}

.team-social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.about-stats {
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.astat span {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  text-shadow: 0 0 20px rgba(255, 0, 0, .18);
}

.astat p {
  color: var(--text-muted);
  font-size: .88rem;
  margin-top: 6px;
  font-weight: 500;
}

[data-theme="dark"] .about-stats {
  background: var(--bg-soft);
  border-color: var(--border);
}

[data-theme="dark"] .astat span {
  text-shadow: 0 0 24px rgba(255, 0, 0, .35);
}

.about-partners {
  padding: 72px 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: .75rem;
  color: var(--text-muted);
  transition: all var(--t);
}

.partner-item i {
  font-size: 1.8rem;
  color: var(--text-light);
}

.partner-item:hover {
  border-color: var(--orange);
}

@media(max-width:900px) {
  .about-story-inner {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-stats-grid,
  .pstats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:560px) {

  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-section {
  padding: 72px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.contact-info>p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-xlight);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ci-content strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.ci-content span,
.ci-content a {
  font-size: .88rem;
  color: var(--text-muted);
}

.ci-content a:hover {
  color: var(--orange);
}

.contact-social p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-cta-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--orange-xlight);
  border: 1px solid rgba(255, 0, 0, .2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 24px;
}

.contact-cta-box>i {
  font-size: 1.3rem;
  color: var(--orange);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-cta-box strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 5px;
}

.contact-cta-box p {
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow);
}

.type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.type-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t);
  color: var(--text);
}

.type-btn.active {
  background: var(--orange-xlight);
  border-color: var(--orange);
  color: var(--orange);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-link {
  font-size: .8rem;
  font-weight: 400;
  color: var(--orange);
}

.input-wrap {
  position: relative;
}

.input-wrap>i:first-child {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: .88rem;
  pointer-events: none;
}

.textarea-wrap>i:first-child {
  top: 14px;
  transform: none;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  background: var(--bg-soft);
  transition: all var(--t);
  color: var(--text);
  outline: none;
  resize: vertical;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, .1);
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-light);
  pointer-events: none;
}

.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
}

.form-check {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: nowrap;
}

.checkbox-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
  margin: 0;
}

.check-text {
  flex: 1;
  line-height: 1.5;
}

.checkbox-label a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

@media(max-width:860px) {

  .contact-layout,
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   AUTH PAGES
   ================================================================ */
/* ── AUTH PAGES — fully theme-aware ─────────────────────────── */

/* Layout */
.auth-body {
  background: var(--bg-soft);
  margin: 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  transition: background .3s;
}

/* ── LEFT PANEL ─────────────────────────────────────────────── */
.auth-left {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background .3s, border-color .3s;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 0, 0, .1);
  border-radius: 50%;
  pointer-events: none;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.auth-logo .logo-name {
  color: var(--text);
}

.auth-left-content {
  flex: 1;
}

.auth-left-content h2 {
  font-size: 2rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.auth-left-content p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--text);
}

.auth-feat i {
  color: var(--orange);
  flex-shrink: 0;
}


.auth-testimonial {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 40px;
  transition: background .3s, border-color .3s;
}

.auth-testimonial p {
  color: var(--text-muted);
  font-style: italic;
  font-size: .9rem;
  margin-bottom: 14px;
}

.auth-testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: #fff;
}

.auth-testi-author strong {
  display: block;
  color: var(--text);
  font-size: .88rem;
}

.auth-testi-author span {
  font-size: .78rem;
  color: var(--text-muted);
}

/* Mini stats (register page) */
.auth-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.asm {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: background .3s, border-color .3s;
}

.asm strong {
  display: block;
  font-size: 1.4rem;
  color: var(--orange);
  font-family: var(--font-display);
}

.asm span {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── RIGHT PANEL + CARD ─────────────────────────────────────── */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-soft);
  transition: background .3s;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  transition: background .3s, border-color .3s, box-shadow .3s;
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-card-header h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  color: var(--text);
}

.auth-card-header p {
  color: var(--text-muted);
  font-size: .9rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: .78rem;
  color: var(--text-light);
  white-space: nowrap;
}

.auth-switch {
  text-align: center;
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.auth-switch a {
  color: var(--orange);
  font-weight: 600;
}

.auth-back {
  text-align: center;
  font-size: .82rem;
  color: var(--text-light);
  margin-top: 8px;
}

.auth-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  transition: color var(--t);
}

.auth-back a:hover {
  color: var(--orange);
}

.pw-wrap .pw-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: .88rem;
}

.pw-strength-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .3s ease, background .3s ease;
  width: 0%;
}

/* ── DARK MODE ──────────────────────────────────────────────── */
[data-theme="dark"] .auth-left {
  background: var(--bg-soft);
  /* #17171E */
  border-right-color: var(--border);
}

[data-theme="dark"] .auth-right {
  background: var(--bg);
  /* #0F0F13 */
}

[data-theme="dark"] .auth-card {
  background: #1A1A26;
  border-color: #2A2A38;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

@media(max-width:760px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 32px 20px;
    background: var(--bg-soft);
  }
}

/* ================================================================
   DASHBOARD
   ================================================================ */
.dash-body {
  background: var(--bg-soft);
  overflow-x: hidden;
}

.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.dash-sidebar {
  background: var(--dark);
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  overflow-y: auto;
  z-index: 500;
  display: flex;
  flex-direction: column;
}

.dash-logo {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.dash-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-logo .logo-name {
  color: var(--white);
}

.dash-nav {
  flex: 1;
  padding: 16px 12px;
}

.dash-nav-section {
  margin-bottom: 8px;
}

.dns-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .3);
  padding: 12px 8px 6px;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
  transition: all var(--t);
  margin-bottom: 2px;
}

.dash-nav-item:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--white);
}

.dash-nav-item.active {
  background: var(--orange);
  color: var(--white);
}

.dash-nav-item i {
  width: 18px;
  flex-shrink: 0;
}

.dash-nav-item span:last-child.nav-badge {
  margin-left: auto;
}

.nav-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
}

.nav-badge.new {
  background: var(--orange);
  color: var(--white);
}

.logout-item {
  color: rgba(255, 255, 255, .4);
}

.logout-item:hover {
  background: rgba(239, 68, 68, .15);
  color: #EF4444;
}

.dash-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.dash-user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dum-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--white);
  flex-shrink: 0;
}

.dum-info strong {
  display: block;
  color: var(--white);
  font-size: .85rem;
}

.dum-info span {
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
}

.dash-main {
  margin-left: 260px;
  min-height: 100vh;
  padding: 0 0 60px;
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.dash-topbar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

.dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--t);
  font-size: .9rem;
}

.topbar-icon-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  border: 1.5px solid var(--white);
}

.dash-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
  padding: 4px;
}

.dash-tab {
  display: none;
  padding: 28px;
}

.dash-tab.active {
  display: block;
}

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dash-section-header h2 {
  font-size: 1.5rem;
}

.dash-section-header p {
  color: var(--text-muted);
  font-size: .9rem;
}

/* KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.kpi-blue {
  background: #EBF5FF;
  color: #3B82F6;
}

.kpi-green {
  background: #F0FDF4;
  color: #10B981;
}

.kpi-orange {
  background: var(--orange-xlight);
  color: var(--orange);
}

.kpi-purple {
  background: #FDF4FF;
  color: #A855F7;
}

.kpi-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.kpi-lbl {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Dash cards */
.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.dash-card-header h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-card-header h3 i {
  color: var(--orange);
}

.dash-card-link {
  font-size: .82rem;
  color: var(--orange);
  font-weight: 600;
}

/* Progress */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar-sm {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  min-width: 80px;
}

.progress-fill {
  height: 100%;
  background: var(--orange-grad);
  border-radius: 99px;
}

.done-fill {
  background: linear-gradient(135deg, #10B981, #059669);
}

.progress-wrap span {
  font-size: .8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Status badges */
.status-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

.status-progress {
  background: rgba(59, 130, 246, .1);
  color: #3B82F6;
}

.status-review {
  background: rgba(245, 158, 11, .1);
  color: #F59E0B;
}

.status-done {
  background: rgba(16, 185, 129, .1);
  color: #10B981;
}

.service-tag-sm {
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Projects table */
.projects-table-wrap {
  overflow-x: auto;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.projects-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}

.projects-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.projects-table tr:last-child td {
  border-bottom: none;
}

/* Messages */
.messages-list {
  display: flex;
  flex-direction: column;
}

.msg-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.msg-item:last-child {
  border-bottom: none;
}

.msg-item.unread {
  background: rgba(255, 0, 0, .02);
}

.msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-xlight);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.msg-content {
  flex: 1;
  min-width: 0;
}

.msg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.msg-head strong {
  font-size: .88rem;
}

.msg-time {
  font-size: .75rem;
  color: var(--text-light);
}

.msg-content p {
  font-size: .82rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-unread-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Projects cards */
.projects-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.proj-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  transition: all var(--t);
}

.proj-card:hover {
  box-shadow: var(--shadow-lg);
}

.proj-card-done {
  opacity: .7;
}

.proj-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.proj-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ecom-icon {
  background: var(--orange-xlight);
  color: var(--orange);
}

.mkt-icon {
  background: #F0FDF4;
  color: #10B981;
}

.design-icon {
  background: #FDF4FF;
  color: #A855F7;
}

.web-icon {
  background: #EBF5FF;
  color: #3B82F6;
}

.app-icon {
  background: #F0F9FF;
  color: #0EA5E9;
}

.proj-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.proj-card p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.proj-progress {
  margin-bottom: 14px;
}

.prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.proj-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.proj-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.proj-meta i {
  color: var(--orange);
}

.proj-actions {
  display: flex;
  gap: 10px;
}

/* Messages full */
.messages-full-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.msg-full {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t);
}

.msg-full:last-child {
  border-bottom: none;
}

.msg-full.unread {
  background: rgba(255, 0, 0, .02);
}

.msg-full-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.msg-avatar.lg {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.msg-full-header>div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.msg-full-header strong {
  font-size: .95rem;
}

.msg-tags {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

.msg-proj-tag {
  font-size: .72rem;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.msg-time-full {
  font-size: .78rem;
  color: var(--text-light);
}

.msg-unread-pill {
  font-size: .7rem;
  background: var(--orange);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.msg-subject {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 8px;
}

.msg-body {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.msg-actions {
  display: flex;
  gap: 10px;
}

/* Profile */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-xlight);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.profile-avatar-section h3 {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.profile-role {
  font-size: .8rem;
  color: var(--orange);
  font-weight: 600;
}

.security-card h3 {
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-card h3 i {
  color: var(--orange);
}

.dash-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  background: var(--bg-soft);
  resize: vertical;
  outline: none;
  transition: all var(--t);
  color: var(--text);
  font-family: var(--font);
}

.dash-textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, .1);
}

/* Responsive dashboard */
@media(max-width:900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-main {
    margin-left: 0;
  }

  .dash-sidebar {
    transform: translateX(-100%);
    transition: transform .3s ease;
  }

  .dash-sidebar.open {
    transform: translateX(0);
  }

  .dash-burger {
    display: block;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-cards-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

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

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
  padding: 80px 0;
}

.faq-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}


.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item.open {
  border-color: var(--orange);
}

.faq-q {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--dark);
  font-family: inherit;
}

.faq-q i {
  color: var(--orange);
  transition: transform var(--t);
  flex-shrink: 0;
}

.faq-item.open .faq-q i {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  background: var(--white);
}

.faq-item.open .faq-a {
  display: block;
}

.faq-a p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.75;
}

@media(max-width:760px) {
  .faq-inner {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   CTA BANNER — legacy side-layout helpers (kept for compatibility)
   ================================================================ */
/* .cta-inner, .cta-text, .cta-actions are no longer used — replaced by centered .cta-banner-* */
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .5);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--white);
}


/* ================================================================
   ULTRA-RESPONSIVE — Global Overrides
   Breakpoints: 1200 / 1024 / 960 / 768 / 640 / 480 / 375
   ================================================================ */

/* ---- 1200px: tighten container ---- */
@media(max-width:1200px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 80px 0;
  }
}

/* ---- 1024px: start collapsing wide grids ---- */
@media(max-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    padding: 56px 0;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .cta-actions {
    justify-content: center;
  }
}

/* ---- 960px: mobile-first pivot ---- */
@media(max-width:960px) {
  :root {
    --nav-h: 64px;
  }

  .container {
    padding: 0 24px;
  }

  .section {
    padding: 64px 0;
  }

  .section-sm {
    padding: 44px 0;
  }

  /* Navbar */
  .nav-cta .btn-sm {
    display: none;
  }

  /* Stats bar */
  .stats-bar-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat-cell:nth-child(2) {
    border-right: none;
  }

  .stat-cell:nth-child(3) {
    border-top: 1px solid var(--border);
  }

  .stat-cell:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid::before {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid-full {
    grid-template-columns: 1fr 1fr;
  }

  /* Testimonials */
  .testimonials-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form-card {
    padding: 28px 24px;
  }

  /* Dashboard */
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
    height: auto;
    width: 100%;
    padding: 16px 0;
  }

  .dash-main {
    padding: 24px 20px;
  }

  .kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* Auth */
  .auth-card {
    padding: 32px 28px;
  }

  /* Service rows */
  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-row-visual {
    max-height: 220px;
  }
}

/* ---- 768px: tablet ---- */
@media(max-width:768px) {
  .section-title {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
  }

  .section-desc {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Steps: single column */
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Services → 2col */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  /* Devis page */
  .devis-page {
    padding: calc(var(--nav-h) + 24px) 0 48px;
  }

  .devis-card {
    padding: 28px 22px;
  }

  .devis-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Portfolio stats */
  .pstats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-top {
    padding: 48px 0 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Page hero inner pages */
  .page-hero {
    padding: calc(var(--nav-h) + 40px) 0 40px;
  }

  .page-hero-inner h1 {
    font-size: clamp(1.7rem, 6vw, 2.5rem);
  }

  /* CTA banner */
  .cta-banner {
    border-radius: var(--radius-lg);
    padding: 48px 24px;
  }

  .cta-banner-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* Grid-4 → 2 */
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- 640px: large mobile ---- */
@media(max-width:640px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 52px 0;
  }

  /* Typography */
  .section-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  /* Navbar */
  .nav-links a {
    font-size: .92rem;
    padding: 13px 16px;
  }

  /* Stats bar — single col */
  .stats-bar-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat-cell {
    padding: 26px 16px;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  /* Services → 1 col */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio → 1 col */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid-full {
    grid-template-columns: 1fr;
  }

  /* Testimonials → 1 col */
  .testimonials-wrapper {
    grid-template-columns: 1fr;
  }

  /* Blog → 1 col */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Devis choices */
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .devis-form-grid {
    grid-template-columns: 1fr;
  }

  .devis-wrapper {
    padding: 24px 18px;
  }

  /* Auth */
  .auth-card {
    padding: 28px 20px;
  }

  .auth-box {
    padding: 0 4px;
  }

  /* Dashboard */
  .kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .dash-main {
    padding: 18px 14px;
  }

  .dash-card {
    padding: 18px 16px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .nl-form {
    flex-direction: column;
  }

  .nl-form input {
    border-right: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
  }

  .nl-form button {
    border-radius: var(--radius);
    margin-top: 8px;
    width: 100%;
    padding: 12px;
  }

  /* CTA banner */
  .cta-banner {
    padding: 40px 18px;
  }

  .cta-banner-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Form rows */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Contact info grid */
  .contact-form-card {
    padding: 22px 18px;
  }

  /* Table overflow */
  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .dash-table th,
  .dash-table td {
    padding: 10px 12px;
    font-size: .82rem;
  }

  /* Grid fallbacks */
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- 480px: standard phone ---- */
@media(max-width:480px) {
  :root {
    --nav-h: 60px;
  }

  .container {
    padding: 0 16px;
  }

  .btn-xl {
    padding: 15px 28px;
    font-size: 1rem;
  }

  .btn-lg {
    padding: 13px 26px;
    font-size: .95rem;
  }

  /* Stats bar: 1 col */
  .stats-bar-inner {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-right: none !important;
    border-top: 1px solid var(--border);
  }

  .stat-cell:first-child {
    border-top: none;
  }

  /* Choices */
  .choice-grid {
    grid-template-columns: 1fr;
  }

  /* Dashboard KPI → 1 col */
  .kpi-row {
    grid-template-columns: 1fr;
  }

  .kpi {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .kpi-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .kpi-value {
    font-size: 1.4rem;
  }

  /* Devis progress steps: hide labels */
  .dstep-lbl {
    display: none;
  }

  .dstep-num {
    width: 28px;
    height: 28px;
    font-size: .72rem;
  }

  /* FAQ */
  .faq-q {
    padding: 16px 18px;
    font-size: .9rem;
  }

  .faq-a {
    padding: 0 18px 16px;
  }

  /* Portfolio stats → 1 col */
  .pstats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Blog meta */
  .blog-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Page hero */
  .page-hero-inner h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .breadcrumb {
    gap: 5px;
    font-size: .77rem;
  }

  /* Table: make scrollable, hide less-important cols */
  .dash-table .hide-sm {
    display: none;
  }

  /* Grid 4 → 1 */
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-socials {
    justify-content: flex-start;
  }
}

/* ---- 375px: small phones (iPhone SE, etc.) ---- */
@media(max-width:375px) {
  .container {
    padding: 0 14px;
  }

  .section {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-sub {
    font-size: .9rem;
  }

  .hero-label {
    font-size: .72rem;
  }

  .hero-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .proof-sep {
    display: none;
  }

  .btn {
    padding: 12px 20px;
    font-size: .88rem;
  }

  .btn-xl {
    padding: 13px 22px;
  }

  .logo-name {
    font-size: .95rem;
  }

  .logo-box {
    width: 32px;
    height: 32px;
    font-size: .82rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .auth-card {
    padding: 22px 16px;
  }

  .auth-title {
    font-size: 1.4rem;
  }

  .devis-wrapper {
    padding: 20px 14px;
  }

  .devis-step-title {
    font-size: 1.2rem;
  }

  .testi-card {
    padding: 22px 18px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .step-card {
    padding: 28px 20px;
  }

  .dash-main {
    padding: 14px 12px;
  }

  .dash-page-title {
    font-size: 1.2rem;
  }

  .hcard-metrics {
    grid-template-columns: 1fr;
  }

  .hm-box {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 14px;
  }
}

/* ================================================================
   SAFE TOUCH & ACCESSIBILITY ENHANCEMENTS
   ================================================================ */
@media(hover:none) and (pointer:coarse) {

  /* Remove hover-only transitions on touch */
  .service-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .port-card:hover {
    transform: none;
  }

  .blog-card:hover {
    transform: none;
  }

  .pf-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  /* Show overlay content always on touch */
  .port-overlay,
  .pf-overlay {
    opacity: 0;
  }

  /* tap-to-reveal still works */
  /* Increase tap targets */
  .nav-links a {
    padding: 14px 16px;
  }

  .filter-btn {
    padding: 10px 22px;
  }

  .burger {
    padding: 12px;
  }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {

  .navbar,
  .btt,
  footer,
  .flash {
    display: none !important;
  }

  .hero {
    padding-top: 24px;
  }

  * {
    box-shadow: none !important;
  }
}

/* ================================================================
   DARK MODE — CSS Variables Override
   ================================================================ */
[data-theme="dark"] {
  --bg: #0F0F13;
  --bg-soft: #17171E;
  --bg-orange: rgba(255, 0, 0, .12);
  --white: #17171E;
  --text: #E2E4E9;
  --text-muted: #8A8FA8;
  --text-light: #5A6080;
  --border: #2A2A38;
  --border-light: #222230;
  --dark: #F8F9FA;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow: 0 4px 16px rgba(0, 0, 0, .5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .6);
}

[data-theme="dark"] body {
  background: #0F0F13;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 15, 19, .95);
  border-bottom-color: #2A2A38;
}

@media(max-width:1024px) {
  [data-theme="dark"] .nav-links {
    background: #17171E;
  }
}

[data-theme="dark"] .logo-name {
  color: #F8F9FA;
}

[data-theme="dark"] .hero {
  background: #0F0F13;
}

[data-theme="dark"] .hero-bg-blob {
  opacity: .6;
}

[data-theme="dark"] .hcard {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .hcard-topbar {
  background: #13131A;
  border-color: #2A2A38;
}

[data-theme="dark"] .hm-box {
  background: #1A1A26;
}

[data-theme="dark"] .hcard-progress {
  background: #1A1A26;
}

[data-theme="dark"] .hcard-team {
  background: #1A1A26;
}

[data-theme="dark"] .stats-bar {
  background: var(--bg-soft);
}

/* overridden by full block below */
[data-theme="dark"] .steps-section {
  background: #0F0F13;
}

[data-theme="dark"] .step-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .service-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .testi-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .testimonials-section {
  background: #0F0F13;
}

[data-theme="dark"] .faq-item {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .faq-q {
  color: #E2E4E9;
}

/* auth-card dark mode handled in auth block above */
[data-theme="dark"] .form-control {
  background: #13131A;
  border-color: #2A2A38;
  color: #E2E4E9;
}

[data-theme="dark"] .form-control:focus {
  background: #1A1A26;
}

[data-theme="dark"] .dash-layout {
  background: #0F0F13;
}

[data-theme="dark"] .dash-main {
  background: #0F0F13;
}

[data-theme="dark"] .dash-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .kpi {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .devis-wrapper {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .choice-btn {
  background: #13131A;
  border-color: #2A2A38;
}

[data-theme="dark"] .choice-btn:hover {
  background: rgba(255, 0, 0, .15);
}

[data-theme="dark"] .choice-btn.selected {
  background: rgba(255, 0, 0, .15);
}

[data-theme="dark"] .blog-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .port-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .pf-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .contact-form-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .page-hero {
  background: #0F0F13;
  border-color: #2A2A38;
}

[data-theme="dark"] footer {
  background: #0A0A10;
  color: rgba(255, 255, 255, .7);
}

[data-theme="dark"] .footer-bottom {
  border-color: #1A1A26;
}

/* ── Footer dark mode: forcer les couleurs des éléments qui utilisent var(--white) ── */
[data-theme="dark"] .footer-col h5,
[data-theme="dark"] .footer-title,
[data-theme="dark"] footer .logo-name span,
[data-theme="dark"] footer .logo-name,
[data-theme="dark"] footer .logo-box {
  color: #F0F0F4;
}

[data-theme="dark"] .footer-col ul a,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-about,
[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-contact li,
[data-theme="dark"] .footer-contact-list li,
[data-theme="dark"] .footer-newsletter p {
  color: rgba(255, 255, 255, .6);
}

[data-theme="dark"] .footer-col ul a:hover,
[data-theme="dark"] .footer-links a:hover {
  color: var(--orange);
  opacity: 1;
}

[data-theme="dark"] .footer-bottom-inner,
[data-theme="dark"] .footer-legal a {
  color: rgba(255, 255, 255, .4);
}

[data-theme="dark"] .footer-legal a:hover {
  color: var(--orange);
}

[data-theme="dark"] .nl-form input {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
  color: #E2E4E9;
}

[data-theme="dark"] .nl-form input::placeholder {
  color: rgba(255, 255, 255, .3);
}

[data-theme="dark"] .footer-socials a,
[data-theme="dark"] .social-link {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7);
}

[data-theme="dark"] .footer-socials a:hover,
[data-theme="dark"] .social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

[data-theme="dark"] .footer-bottom {
  opacity: 1;
}

[data-theme="dark"] .proof-av {
  border-color: #0F0F13;
}

[data-theme="dark"] .hchip {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .section-tag {
  background: rgba(255, 0, 0, .15);
}

[data-theme="dark"] .loader-logo,
[data-theme="dark"] #loader {
  background: #0F0F13;
}

[data-theme="dark"] .devis-section {
  background: #0F0F13;
}

[data-theme="dark"] .dside-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .summary-box {
  background: #13131A;
  border-color: #2A2A38;
}

[data-theme="dark"] .type-switch {
  background: #13131A;
  border-color: #2A2A38;
}

[data-theme="dark"] .type-btn.active {
  background: #1A1A26;
}

[data-theme="dark"] .blog-body,
[data-theme="dark"] .port-body,
[data-theme="dark"] .pf-info {
  background: transparent;
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: all var(--t);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--bg-orange);
}

/* ================================================================
   ACCORDION — Smooth Animation
   ================================================================ */
.faq-a {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height .38s cubic-bezier(0.4, 0, 0.2, 1),
    padding .38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 24px 22px;
}

/* + icon: white bg when open, NOT full orange */
.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
  transition: all var(--t);
  font-size: .82rem;
}

.faq-item.open .faq-icon {
  background: var(--white);
  border-color: var(--orange);
  color: var(--orange);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, .1);
}

[data-theme="dark"] .faq-icon {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .faq-item.open .faq-icon {
  background: #22222E;
  border-color: var(--orange);
}

/* ================================================================
   STEPS SECTION — More Breathing Room
   ================================================================ */
.steps-section {
  background: var(--bg-soft);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 32px 36px;
  text-align: center;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-light);
  transition: all var(--t);
}

@media(max-width:960px) {
  .steps-grid {
    gap: 20px;
  }
}

@media(max-width:768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 16px;
  }
}

/* ================================================================
   STATS BAR — theme-adaptive (light = white lumineux / dark = fond sombre)
   ================================================================ */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: background .3s, border-color .3s;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: border-color .3s;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  display: block;
  /* subtle glow on light mode */
  text-shadow: 0 0 20px rgba(255, 0, 0, .18);
}

.stat-lbl {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  margin-top: 6px;
  display: block;
  letter-spacing: .01em;
}

/* ── DARK MODE : stats bar sombre ─────────────────────────────── */
[data-theme="dark"] .stats-bar {
  background: var(--bg-soft);
  /* #17171E — cohérent avec le reste du dark */
  border-color: var(--border);
  /* #2A2A38 */
}

[data-theme="dark"] .stat-cell {
  border-color: var(--border);
}

[data-theme="dark"] .stat-num {
  /* orange vif légèrement plus lumineux en dark */
  text-shadow: 0 0 24px rgba(255, 0, 0, .35);
}

[data-theme="dark"] .stat-lbl {
  color: var(--text-muted);
  /* #8A8FA8 — lisible sur fond sombre */
}

/* ================================================================
   PHONE COUNTRY SELECTOR
   ================================================================ */
.phone-wrap {
  display: flex;
  gap: 0;
}

.country-select {
  flex-shrink: 0;
  padding: 13px 12px 13px 14px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .88rem;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  min-width: 100px;
  max-width: 130px;
  transition: border-color var(--t);
}

.country-select:focus {
  border-color: var(--orange);
}

.phone-wrap .form-control {
  border-radius: 0 var(--radius) var(--radius) 0;
  flex: 1;
}

[data-theme="dark"] .country-select {
  background-color: #13131A;
  border-color: #2A2A38;
  color: #8A8FA8;
}

/* ================================================================
   SOCIAL MEDIA VISIBLE
   ================================================================ */
.social-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-bar a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  transition: all var(--t);
}

.social-bar a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ================================================================
   ANIMATED COUNTER TARGET CLASS
   ================================================================ */
.count-up {
  display: inline-block;
}

/* ================================================================
   V4 GLOBAL FIXES
   ================================================================ */

/* --- Steps section: connector line correctly centred on circles ---
   Cards: padding-top 44px + circle 64px → circle centre at 44+32 = 76px from card top.
   With 3 flex-1 cols, centres are at 1/6 ≈ 16.67% and 5/6 ≈ 83.33%.              */
.steps-grid::before {
  top: 96px;
  left: calc(100% / 6 + 32px);
  right: calc(100% / 6 + 32px);
}

/* --- Dashboard: section-header layout & dark-mode polish --- */
.dash-section-header {
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.dash-section-header .btn {
  align-self: flex-start;
}

[data-theme="dark"] .dash-topbar {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .dash-topbar-title {
  color: #E2E4E9;
}

[data-theme="dark"] .topbar-icon-btn {
  background: #1A1A26;
  border-color: #2A2A38;
  color: rgba(255, 255, 255, .5);
}

[data-theme="dark"] .notif-dot {
  border-color: #1A1A26;
}

[data-theme="dark"] .kpi-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .kpi-num {
  color: #E2E4E9;
}

[data-theme="dark"] .kpi-blue {
  background: rgba(59, 130, 246, .12);
}

[data-theme="dark"] .kpi-green {
  background: rgba(16, 185, 129, .12);
}

[data-theme="dark"] .kpi-orange {
  background: rgba(255, 0, 0, .12);
}

[data-theme="dark"] .kpi-purple {
  background: rgba(168, 85, 247, .12);
}

[data-theme="dark"] .projects-table th {
  color: rgba(255, 255, 255, .4);
  border-color: #2A2A38;
}

[data-theme="dark"] .projects-table td {
  border-color: rgba(255, 255, 255, .06);
  color: #C8CAD8;
}

[data-theme="dark"] .projects-table strong {
  color: #E2E4E9;
}

[data-theme="dark"] .proj-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .proj-card h3 {
  color: #E2E4E9;
}

[data-theme="dark"] .msg-full {
  border-color: #2A2A38;
}

[data-theme="dark"] .msg-full.unread {
  background: rgba(255, 0, 0, .04);
}

[data-theme="dark"] .msg-full-header strong {
  color: #E2E4E9;
}

[data-theme="dark"] .progress-bar-sm {
  background: #2A2A38;
}

[data-theme="dark"] .service-tag-sm {
  background: #13131A;
  border-color: #2A2A38;
  color: rgba(255, 255, 255, .45);
}

[data-theme="dark"] .msg-proj-tag {
  background: #13131A;
  border-color: #2A2A38;
}

[data-theme="dark"] .status-progress {
  background: rgba(59, 130, 246, .15);
}

[data-theme="dark"] .status-review {
  background: rgba(245, 158, 11, .15);
}

[data-theme="dark"] .status-done {
  background: rgba(16, 185, 129, .15);
}

[data-theme="dark"] .profile-avatar-section {
  border-color: #2A2A38;
}

[data-theme="dark"] .dash-textarea {
  background: #13131A;
  border-color: #2A2A38;
  color: #E2E4E9;
}

[data-theme="dark"] .link-placeholder {
  color: var(--orange);
}

[data-theme="dark"] .ecom-icon {
  background: rgba(255, 0, 0, .15);
}

[data-theme="dark"] .mkt-icon {
  background: rgba(16, 185, 129, .15);
}

[data-theme="dark"] .design-icon {
  background: rgba(168, 85, 247, .15);
}

[data-theme="dark"] .web-icon {
  background: rgba(59, 130, 246, .15);
}

[data-theme="dark"] .app-icon {
  background: rgba(14, 165, 233, .15);
}

/* --- Contact social links: theme-aware (they use .social-link which assumes dark bg) --- */
.contact-social .social-link {
  border-color: var(--border);
  color: var(--text-muted);
  background: var(--white);
}

.contact-social .social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

[data-theme="dark"] .contact-social .social-link {
  background: #1A1A26;
  border-color: #2A2A38;
  color: rgba(255, 255, 255, .6);
}

[data-theme="dark"] .contact-social .social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* --- ci-content dark mode --- */
[data-theme="dark"] .ci-content strong {
  color: var(--text);
}

[data-theme="dark"] .ci-content span,
[data-theme="dark"] .ci-content a {
  color: var(--text-muted);
}

[data-theme="dark"] .contact-cta-box {
  background: rgba(255, 0, 0, .07);
  border-color: rgba(255, 0, 0, .2);
}

[data-theme="dark"] .contact-info h2 {
  color: var(--text);
}

[data-theme="dark"] .contact-info>p {
  color: var(--text-muted);
}

/* --- General dark mode polish for hero & section text --- */
[data-theme="dark"] .hero-label span {
  color: rgba(255, 255, 255, .7);
}

[data-theme="dark"] .ci-icon {
  background: rgba(255, 0, 0, .15);
}

[data-theme="dark"] .section-tag {
  background: rgba(255, 0, 0, .12);
}

/* --- Blog / article dark mode --- */
[data-theme="dark"] .blog-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .blog-card h3 {
  color: #E2E4E9;
}

[data-theme="dark"] .article-body {
  color: var(--text);
}

/* --- Portfolio dark mode --- */
[data-theme="dark"] .port-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .port-overlay {
  background: linear-gradient(to top, rgba(15, 15, 19, .92) 0%, transparent 60%);
}

/* --- Service card dark mode --- */
[data-theme="dark"] .service-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .service-card h3 {
  color: #E2E4E9;
}

[data-theme="dark"] .s-price {
  color: var(--text);
}

/* --- Devis wrapper dark mode --- */
[data-theme="dark"] .devis-page {
  background: linear-gradient(160deg, #0F0F13 0%, #13131A 100%);
}

[data-theme="dark"] .devis-wrapper {
  background: #1A1A26;
  border-color: #2A2A38;
}

[data-theme="dark"] .dstep-num {
  background: #13131A;
  border-color: #2A2A38;
  color: rgba(255, 255, 255, .5);
}

[data-theme="dark"] .dstep.active .dstep-num {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

[data-theme="dark"] .dstep.done .dstep-num {
  background: #10B981;
  border-color: #10B981;
  color: var(--white);
}

[data-theme="dark"] .devis-steps-dots::before {
  background: #2A2A38;
}

[data-theme="dark"] .choice-card {
  background: #13131A;
  border-color: #2A2A38;
}

[data-theme="dark"] .choice-card:hover {
  border-color: var(--orange);
  background: rgba(255, 0, 0, .07);
}

[data-theme="dark"] .choice-card.selected {
  border-color: var(--orange);
  background: rgba(255, 0, 0, .12);
}

[data-theme="dark"] .devis-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

/* --- Auth pages dark mode (additional polish) --- */
[data-theme="dark"] .auth-feat i {
  color: var(--orange);
}

[data-theme="dark"] .auth-stats-mini .asm strong {
  color: var(--text);
}

/* --- Testimonials dark --- */
[data-theme="dark"] .testi-text {
  color: var(--text-muted);
}

[data-theme="dark"] .testi-name {
  color: var(--text);
}

/* --- Nav dark extra --- */
[data-theme="dark"] .nav-inner {
  border-color: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .nav-link::after {
  background: var(--orange);
}

[data-theme="dark"] .dropdown-menu {
  background: #1A1A26;
  border-color: #2A2A38;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

[data-theme="dark"] .dropdown-link {
  color: rgba(255, 255, 255, .7);
}

[data-theme="dark"] .dropdown-link:hover {
  background: rgba(255, 0, 0, .08);
  color: var(--orange);
}

/* ================================================================
   PHONE WRAP — Sélecteur code pays + champ téléphone
   ================================================================ */
.phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: border-color .2s;
}

.phone-wrap:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, .1);
}

select.phone-code {
  border: none;
  outline: none;
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  padding: 0 10px;
  cursor: pointer;
  border-right: 1.5px solid var(--border);
  flex-shrink: 0;
  min-width: 90px;
  max-width: 110px;
  appearance: auto;
  -webkit-appearance: auto;
}

select.phone-code:focus {
  outline: none;
}

.phone-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent;
  padding: 12px 14px;
  font-size: .95rem;
  color: var(--text);
  box-shadow: none !important;
  min-width: 0;
}

.phone-input::placeholder {
  color: var(--text-muted);
}

/* Dark mode */
[data-theme="dark"] .phone-wrap {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .1);
}

[data-theme="dark"] select.phone-code {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: var(--text);
}

[data-theme="dark"] .phone-wrap:focus-within {
  border-color: var(--orange);
}

/* Mobile */
@media(max-width:480px) {
  select.phone-code {
    min-width: 80px;
    font-size: .8rem;
  }

  .phone-input {
    font-size: .9rem;
  }
}

/* ==========================================================================
   NOUVELLES FONCTIONNALITÉS — ENGAGEMENT & INTERACTIVITÉ
   WhatsApp, Quiz, Tooltips, Morphing text, Pop-up, etc.
   ========================================================================== */

/* ── 1. EFFET MORPHING TEXTE ── */
#morph-text {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: var(--orange);
  font-style: italic;
}

.morph-out {
  opacity: 0;
  transform: translateY(-10px);
}

.morph-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── 2. CONFETTI ── */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* ── 3. TOOLTIPS CUSTOM ── */
.custom-tooltip {
  position: fixed;
  background: var(--dark);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -100%);
  margin-top: -10px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: tooltipFadeIn 0.2s ease forwards;
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark) transparent transparent transparent;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -80%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
}

[data-theme="dark"] .custom-tooltip {
  background: #333;
}

[data-theme="dark"] .custom-tooltip::after {
  border-color: #333 transparent transparent transparent;
}

/* ── 4. BACK-TO-TOP RING ── */
.btt {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--orange);
  border: none;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.btt.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btt-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.btt-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 2.5;
}

.btt-ring-fill {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.btt-icon {
  font-size: 1.1rem;
  z-index: 2;
}

/* ── 5. POP-UP INTELLIGENT (EXIT INTENT) ── */
.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
}

.exit-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.exit-popup {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 440px;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.exit-popup-overlay.show .exit-popup {
  transform: scale(1) translateY(0);
}

.exit-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.exit-popup-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.exit-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.exit-popup p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.exit-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exit-popup-form input {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
}

.exit-popup-form input:focus {
  border-color: var(--orange);
}

.exit-popup-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

[data-theme="dark"] .exit-popup {
  background: var(--dark-lighter);
  border: 1px solid var(--border);
}

/* ── 6. WHATSAPP CHAT WIDGET ── */
.wa-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  border: none;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: transform 0.3s ease;
  animation: wsPulse 2s infinite;
  pointer-events: auto;
}

@keyframes wsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-btn:hover {
  transform: scale(1.05);
}

.wa-btn-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: white;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.wa-bubble {
  background: var(--white);
  width: 320px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
  transform-origin: bottom left;
  transform: scale(0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  pointer-events: none;
}

.wa-bubble.show {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wa-bubble-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  z-index: 10;
}

.wa-bubble-close:hover {
  opacity: 1;
}

.wa-bubble-header {
  background: #075E54;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.wa-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.wa-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 4px;
}

.wa-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  display: inline-block;
}

.wa-bubble-body {
  background: var(--bg-soft);
  padding: 24px 20px;
  position: relative;
}

.wa-msg {
  background: var(--white);
  padding: 14px 18px;
  border-radius: 0 12px 12px 12px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  margin-bottom: 8px;
}

.wa-msg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border-width: 0 8px 8px 0;
  border-style: solid;
  border-color: transparent var(--white) transparent transparent;
}

.wa-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.wa-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: white !important;
  padding: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.wa-start-btn:hover {
  background: #1da851;
}

[data-theme="dark"] .wa-bubble {
  background: var(--dark-lighter);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wa-msg {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

[data-theme="dark"] .wa-msg::before {
  border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent;
}

/* ── 7. QUIZ MODAL ── */
.quiz-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.quiz-overlay.show {
  opacity: 1;
  visibility: visible;
}

.quiz-modal {
  background: var(--bg);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.quiz-overlay.show .quiz-modal {
  transform: scale(1) translateY(0);
}

.quiz-content {
  padding: 40px;
  text-align: center;
  position: relative;
}

.quiz-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.quiz-progress {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-bar {
  height: 100%;
  background: var(--orange);
  transition: width 0.4s ease;
}

.quiz-step {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.quiz-icon {
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 20px;
}

.quiz-icon.result-icon {
  font-size: 3.5rem;
}

.quiz-content h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.4;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.quiz-opt {
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.quiz-opt:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 0, 0, 0.05);
  transform: translateY(-2px);
}

.quiz-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.quiz-back:hover {
  color: var(--orange);
}

.quiz-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.quiz-results {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
  text-align: left;
}

.quiz-result-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-result-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 0, 0, 0.1);
  color: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.quiz-result-card h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin: 0;
}

.quiz-result-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.quiz-result-price {
  font-weight: 700;
  color: var(--orange);
  margin-top: 4px;
  display: inline-block;
}

.quiz-cta {
  width: 100%;
  justify-content: center;
}

[data-theme="dark"] .quiz-opt {
  background: rgba(255, 255, 255, 0.05);
}

/* ── 8. CALCULATEUR DE PRIX (Devis) ── */
.price-calc-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-group label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.calc-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.calc-radios {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-radio {
  position: relative;
  cursor: pointer;
}

.calc-radio input {
  position: absolute;
  opacity: 0;
}

.calc-radio span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.calc-radio input:checked+span {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.calc-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.calc-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}

.calc-display {
  background: linear-gradient(135deg, var(--orange), #FF3A00);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.calc-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  transform: translate(20%, 20%);
}

.calc-display-inner {
  position: relative;
  z-index: 1;
}

.calc-display h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calc-price {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.calc-price small {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.8;
}

.calc-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 16px;
  line-height: 1.5;
}

@media(max-width: 860px) {
  .price-calc-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .wa-widget {
    bottom: 16px;
    left: 16px;
  }
}

@media(max-width: 520px) {
  .calc-checkboxes {
    grid-template-columns: 1fr;
  }

  .calc-price {
    font-size: 2.2rem;
  }

  .quiz-content {
    padding: 30px 20px;
  }

  .exit-popup {
    padding: 30px 20px;
  }
}

[data-theme="dark"] .price-calc-wrap {
  background: var(--dark-lighter);
  border-color: rgba(255, 255, 255, 0.1);
}


/* ── TESTIMONIALS CAROUSEL ── */
.testi-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testi-track .testi-card {
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 16px;
}

.testi-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.testi-prev,
.testi-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1rem;
}

.testi-prev:hover,
.testi-next:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.testi-dots {
  display: flex;
  gap: 8px;
}

.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.testi-dot.active {
  background: var(--orange);
  transform: scale(1.3);
}

/* ── READING BAR (Blog) ── */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 100000;
  background: transparent;
}

.reading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width 0.05s linear;
}

/* ── READING TIME ── */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 16px;
}

.reading-time i {
  color: var(--orange);
}

/* ── ARTICLE SHARE BAR ── */
.article-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.share-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  margin-right: 4px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.twitter:hover {
  background: #1DA1F2;
  color: white;
  border-color: #1DA1F2;
}

.share-btn.linkedin:hover {
  background: #0A66C2;
  color: white;
  border-color: #0A66C2;
}

.share-btn.whatsapp:hover {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

.share-btn.copy-link:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.share-btn.save-article:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

/* ── STORIES SECTION ── */
.stories-section {
  padding: 60px 0;
}

.stories-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
}

.story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.story-circle:hover {
  transform: translateY(-4px);
}

.story-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(var(--ring-color, var(--orange)), #FF3A00, var(--ring-color, var(--orange)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  border: 3px solid var(--bg);
}

.story-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

/* ── STORY MODAL ── */
.story-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.story-overlay.show {
  opacity: 1;
  visibility: visible;
}

.story-modal {
  background: var(--bg);
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.story-overlay.show .story-modal {
  transform: scale(1);
}

.story-modal-bar {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 12px;
  left: 20px;
  right: 20px;
}

.sm-bar-seg {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.sm-bar-seg.active {
  background: var(--orange);
}

.story-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
}

.story-big-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 16px;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
}

.story-modal h3 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.story-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 16px;
}

.story-bio {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.story-skills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.story-skills span {
  background: rgba(255, 0, 0, 0.1);
  color: var(--orange);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.story-nav-btns {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.story-nav-btns button {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.story-nav-btns button:hover:not(:disabled) {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.story-nav-btns button:disabled {
  opacity: 0.3;
  cursor: default;
}

@media(max-width:520px) {
  .story-ring {
    width: 64px;
    height: 64px;
  }

  .story-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }

  .stories-row {
    gap: 16px;
  }

  .testi-track .testi-card {
    padding: 0 8px;
  }
}

/* ================================================================
   BLOG ARTICLE — SIDEBAR AMÉLIORÉ (Sommaire, Partage, Audit)
   ================================================================ */

/* Layout 2 cols : article + sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Sidebar sticky */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Widget générique */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title i {
  color: var(--orange);
}

/* ── SOMMAIRE ── */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  transition: all var(--t);
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
  color: var(--orange);
  background: var(--bg-orange);
  border-left-color: var(--orange);
  padding-left: 14px;
}

/* ── BOUTONS DE PARTAGE (sidebar vertical) ── */
.share-btns-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-btns-col .share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .87rem;
  font-weight: 600;
  transition: all var(--t);
  text-decoration: none;
}

.share-btns-col .share-btn.twitter {
  background: #000;
  color: #fff;
}

.share-btns-col .share-btn.facebook {
  background: #1877F2;
  color: #fff;
}

.share-btns-col .share-btn.linkedin {
  background: #0A66C2;
  color: #fff;
}

.share-btns-col .share-btn:hover {
  transform: translateX(4px);
  opacity: .9;
}

/* ── WIDGET AUDIT CTA ── */
.audit-widget {
  background: var(--audit-bg, #FFF4EC) !important;
  border-color: rgba(255, 0, 0, 0.15) !important;
  text-align: center;
}

[data-theme="dark"] .audit-widget {
  background: var(--audit-bg-dark, #1E1A16) !important;
  border-color: rgba(255, 0, 0, 0.2) !important;
}

/* Branding widget dark : couleur violette */
.audit-widget[style*="F5F0FF"] {
  border-color: rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] .audit-widget[style*="F5F0FF"] {
  border-color: rgba(139, 92, 246, 0.25) !important;
}

/* Ecommerce widget dark : vert */
.audit-widget[style*="EDFAF4"] {
  border-color: rgba(34, 197, 94, 0.2) !important;
}

[data-theme="dark"] .audit-widget[style*="EDFAF4"] {
  border-color: rgba(34, 197, 94, 0.25) !important;
}

.audit-icon {
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: 12px;
}

.audit-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

[data-theme="dark"] .audit-title {
  color: #E2E4E9;
}

.audit-desc {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.audit-cta {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  padding: 13px 20px;
  transition: transform .2s, box-shadow .2s;
}

.audit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 0, .35);
}

/* ── DARK MODE sidebar widgets ── */
[data-theme="dark"] .sidebar-widget {
  background: #1A1A26;
  border-color: #2A2A38;
}

/* ── RESPONSIVE : sidebar passe sous l'article sur mobile ── */
@media(max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    order: -1;
    /* Sommaire en haut sur mobile */
  }

  .toc-widget {
    display: none;
  }

  /* masqué sur mobile, le partage reste */
}

@media(max-width: 640px) {
  .article-sidebar {
    display: none;
  }

  /* tout masqué sur petit mobile */
}

/* ── SCROLL SMOOTH pour ancres ── */
html {
  scroll-behavior: smooth;
}

/* ================================================================
   BLOG SIDEBAR — CORRECTIONS FINALES
   ================================================================ */

/* ── Sidebar sticky (sans limite de hauteur) ── */
.article-sidebar {
  position: sticky !important;
  top: calc(var(--nav-h, 72px) + 24px) !important;
  /* max-height supprimé : tous les widgets sont visibles intégralement */
}


/* ── Override : sidebar share btns = pills, PAS des cercles ── */
.share-btns-col .share-btn {
  width: auto !important;
  height: auto !important;
  border-radius: 10px !important;
  border: none !important;
  padding: 11px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: .87rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: transform .2s, opacity .2s !important;
}

/* X/Twitter : gris foncé élégant (pas pur noir) */
.share-btns-col .share-btn.twitter {
  background: #1a1a2e !important;
  color: #fff !important;
}

.share-btns-col .share-btn.facebook {
  background: #1877F2 !important;
  color: #fff !important;
}

.share-btns-col .share-btn.linkedin {
  background: #0A66C2 !important;
  color: #fff !important;
}

.share-btns-col .share-btn:hover {
  transform: translateX(5px) !important;
  opacity: .9 !important;
}

/* dark mode share widget bg */
[data-theme="dark"] .share-widget {
  background: #1A1A26 !important;
}

/* ── blog-enrichi floating bar (garder les cercles) ── */
.article-share-bar .share-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  justify-content: center !important;
}

/* ================================================================
   DEVIS.HTML — Layout vertical : calculateur HAUT, parcours BAS
   ================================================================ */
.devis-section .container {
  display: block !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Calculateur : pleine largeur, bien espacé */
.devis-section .price-calc-wrap {
  width: 100% !important;
  margin-bottom: 48px !important;
}

/* Formulaire parcours : pleine largeur */
.devis-section .devis-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

/* Side info panel : passe SOUS le parcours, centré */
.devis-section .devis-side-info {
  margin-top: 40px !important;
  max-width: 100% !important;
}

/* ================================================================
   BLOG SIDEBAR — Sticky sans scrollbar interne
   ================================================================ */
.article-sidebar {
  position: sticky !important;
  top: 90px !important;
  max-height: none !important;
  overflow-y: visible !important;
  overflow: visible !important;
}

.article-sidebar::-webkit-scrollbar {
  display: none !important;
}

/* ================================================================
   RESPONSIVITÉ DEVIS — Améliorations mobile/tablette
   ================================================================ */
@media (max-width: 768px) {
  .devis-section .container {
    padding: 0 16px !important;
  }

  .devis-section .devis-wrapper {
    padding: 24px 16px !important;
  }

  .dstep-lbl {
    display: none;
  }

  /* masquer labels étapes sur mobile */
  .devis-steps-dots {
    gap: 0;
  }

  .devis-form-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .devis-section .price-calc-wrap {
    padding: 20px 16px !important;
  }

  .price-calc-wrap {
    grid-template-columns: 1fr !important;
  }

  .dstep-num {
    width: 28px;
    height: 28px;
    font-size: .75rem;
  }
}

/* ── Sidebar blog responsive : se réaffiche correctement ── */
@media (min-width: 961px) {
  .article-sidebar {
    position: sticky !important;
    top: 90px !important;
    align-self: flex-start;
  }
}

/* ================================================================
   DEVIS — Séparateur + Bottom Row + Carousel témoignages
   ================================================================ */

/* ── Séparateur entre formulaire et panel info ── */
.devis-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 40px;
  color: var(--text-muted);
}

.devis-divider::before,
.devis-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.devis-divider-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-orange);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ── Ligne basse : contact + témoignages côte à côte ── */
.devis-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 640px) {
  .devis-bottom-row {
    grid-template-columns: 1fr;
  }
}

/* ── Cards info ── */
.dside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .dside-card {
  background: #1A1A26;
  border-color: #2A2A38;
}

.dside-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
}

[data-theme="dark"] .dside-card h3 {
  color: #E2E4E9;
}

.dside-card p {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
}

.dside-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.dside-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dside-card-icon.orange {
  background: var(--bg-orange);
  color: var(--orange);
}

.dside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dside-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  transition: background var(--t), color var(--t);
}

.dside-link i {
  color: var(--orange);
  width: 16px;
}

.dside-link:hover {
  background: var(--bg-orange);
  color: var(--orange);
}

[data-theme="dark"] .dside-link {
  background: #22222E;
  color: #CCC;
}

/* ── CAROUSEL Témoignages ── */
.testi-carousel {
  position: relative;
  min-height: 160px;
}

.testi-slide {
  display: none;
  animation: testiIn .4s ease;
}

.testi-slide.active {
  display: block;
}

@keyframes testiIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testi-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.testi-slide blockquote {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin: 0 0 16px;
  border-left: 3px solid var(--orange);
  padding-left: 12px;
}

[data-theme="dark"] .testi-slide blockquote {
  color: #CCC;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: .9rem;
  color: var(--dark);
}

[data-theme="dark"] .testi-author strong {
  color: #E2E4E9;
}

.testi-author span {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Dots ── */
.testi-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all .25s;
  padding: 0;
}

.testi-dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

/* ================================================================
   TESTIMONIALS INDEX — Correction carousel (testimonials.js)
   ================================================================ */

/* Le wrapper doit être overflow:hidden + relative pour le track */
.testimonials-wrapper {
  overflow: hidden !important;
  position: relative !important;
}

/* Track : occupe toute la largeur du wrapper */
.testi-track {
  display: flex !important;
  width: 100% !important;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Chaque carte dans le track : pleine largeur, padding conservé */
.testi-track .testi-card {
  min-width: 100% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  padding: 32px !important;
  /* Restaure le padding correct */
  margin: 0 !important;
}

/* Navigation arrow buttons */
.testi-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  margin-top: 32px !important;
}

.testi-prev,
.testi-next {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--border) !important;
  background: var(--white) !important;
  color: var(--text) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s !important;
  font-size: .9rem !important;
}

.testi-prev:hover,
.testi-next:hover {
  background: var(--orange) !important;
  color: #fff !important;
  border-color: var(--orange) !important;
}

/* Dots index (scoped via .testi-nav) */
.testi-nav .testi-dots {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.testi-nav .testi-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: var(--border) !important;
  cursor: pointer !important;
  border: none !important;
  padding: 0 !important;
  transition: all 0.2s !important;
}

.testi-nav .testi-dot.active {
  background: var(--orange) !important;
  transform: scale(1.3) !important;
  width: 10px !important;
  /* reset width override from devis dots */
  border-radius: 50% !important;
}

/* Dark mode navigation */
[data-theme="dark"] .testi-prev,
[data-theme="dark"] .testi-next {
  background: #1A1A26 !important;
  border-color: #2A2A38 !important;
  color: #CCC !important;
}

/* ================================================================
   TESTIMONIALS CAROUSEL — Nouveau (taille réduite, fade, centré)
   ================================================================ */

/* Wrapper : centré, taille réduite */
.testimonials-wrapper {
  display: block !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  overflow: visible !important;
  position: relative !important;
}

/* Stage : position relative pour superposition slides */
.testi-stage {
  position: relative;
  min-height: 220px;
}

/* Chaque slide : invisible par défaut, visible si .active */
.testi-slide-card {
  display: none;
  animation: testiFadeIn .45s ease;
}

.testi-slide-card.active {
  display: block;
}

@keyframes testiFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carte intérieure */
.testi-card-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

[data-theme="dark"] .testi-card-inner {
  background: #1A1A26;
  border-color: #2A2A38;
}

/* Guillemet décoratif */
.testi-card-inner::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 5rem;
  color: var(--orange);
  opacity: .08;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Étoiles */
.testi-stars-row {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

/* Citation */
.testi-body {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

[data-theme="dark"] .testi-body {
  color: #aaa;
}

/* Auteur */
.testi-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.testi-nm {
  font-weight: 700;
  font-size: .92rem;
  color: var(--dark);
}

[data-theme="dark"] .testi-nm {
  color: #E2E4E9;
}

.testi-rl {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Contrôles navigation ── */
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.testi-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-size: .9rem;
}

.testi-btn:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  transform: scale(1.05);
}

[data-theme="dark"] .testi-btn {
  background: #1A1A26;
  border-color: #2A2A38;
  color: #CCC;
}

/* Pips (dots) */
.testi-pips {
  display: flex;
  gap: 8px;
  align-items: center;
}

.testi-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: all .25s;
}

.testi-pip.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
  transform: none;
  /* reset du scale du vieux styles */
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .testi-card-inner {
    padding: 24px 20px;
  }

  .testi-body {
    font-size: .88rem;
  }
}

/* ================================================================
   BLOG — Filtres catégories + vignettes photo + newsletter
   ================================================================ */

/* Filtre catégorie actif */
.cat-list .cat-filter.active,
.cat-list li a.cat-filter.active {
  color: var(--orange) !important;
  font-weight: 700;
}

.cat-list .cat-filter.active span {
  background: var(--orange);
  color: #fff;
}

/* Vignettes photo (background-image au lieu de placeholder icône) */
.blog-featured-thumb[style],
.blog-card-thumb[style] {
  background-size: cover !important;
  background-position: center !important;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.blog-featured-thumb {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.blog-card-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-thumb .blog-cat-tag,
.blog-featured-thumb .blog-cat-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

/* Aucun résultat */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.no-results h3 {
  color: var(--dark);
  margin-bottom: 8px;
}

[data-theme="dark"] .no-results h3 {
  color: #E2E4E9;
}

/* Articles récents thumbnail image */
.rp-thumb[style] {
  background-size: cover !important;
  background-position: center !important;
  border-radius: 8px;
}

/* Newsletter sidebar form — feedback */
.nl-msg {
  font-size: .82rem;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
}

.nl-msg.success {
  background: #D1FAE5;
  color: #065F46;
}

.nl-msg.error {
  background: #FEE2E2;
  color: #991B1B;
}

[data-theme="dark"] .nl-msg.success {
  background: #064E3B;
  color: #6EE7B7;
}

[data-theme="dark"] .nl-msg.error {
  background: #7F1D1D;
  color: #FCA5A5;
}

/* ================================================================
   ARTICLES — Responsive complet (override des règles conflictuelles)
   ================================================================ */

/* ── Tablette large (≤ 1024px) ── */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr 260px !important;
    gap: 32px !important;
  }

  .article-hero h1,
  .article-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem) !important;
  }

  .article-section {
    padding: 40px 0 60px !important;
  }
}

/* ── Tablette (≤ 900px) ── */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Rétablir la sidebar sous l'article (ne pas cacher) */
  .article-sidebar {
    display: block !important;
    position: static !important;
    overflow: visible !important;
    max-height: none !important;
    width: 100% !important;
  }

  /* Afficher le TOC en accordéon sur mobile */
  .toc-widget {
    display: block !important;
  }

  /* Hero section */
  .article-hero {
    padding: calc(var(--nav-h) + 28px) 0 28px !important;
  }

  .article-hero h1,
  .article-title {
    font-size: clamp(1.4rem, 4.5vw, 2rem) !important;
    line-height: 1.3 !important;
  }

  /* Image hero — réduire hauteur */
  .article-thumb[style] {
    height: 280px !important;
    border-radius: 12px !important;
  }

  .article-thumb {
    height: 240px !important;
  }

  /* Infos auteur & meta */
  .article-meta {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .article-info {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* Sidebar en grille 2 colonnes sur tablette */
  .article-sidebar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .toc-widget {
    grid-column: 1 / -1;
  }

  /* Contenu article */
  .article-section {
    padding: 32px 0 48px !important;
  }

  .article-content h2 {
    font-size: 1.2rem;
  }

  .article-content p,
  .article-content ul li {
    font-size: .9rem;
  }

  .article-intro {
    font-size: .95rem !important;
  }

  /* Conclusion block */
  .article-conclusion {
    padding: 24px !important;
  }

  /* Card auteur */
  .article-author {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 20px !important;
  }

  /* Share buttons sidebar */
  .share-btns-col {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .share-btn {
    flex: 1 1 auto !important;
    justify-content: center !important;
  }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {

  /* Sidebar : revenir à 1 colonne */
  .article-sidebar {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Titre compressé */
  .article-hero h1,
  .article-title {
    font-size: clamp(1.2rem, 5vw, 1.7rem) !important;
  }

  /* Image hero courte */
  .article-thumb[style] {
    height: 200px !important;
  }

  .article-thumb {
    height: 180px !important;
  }

  /* Hero section */
  .article-hero {
    padding: calc(var(--nav-h) + 16px) 0 20px !important;
  }

  .article-section {
    padding: 24px 0 40px !important;
  }

  /* Pilule catégorie */
  .article-cat {
    font-size: .75rem !important;
  }

  /* Avatar auteur */
  .author-avatar {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.2rem !important;
  }

  .author-mini {
    gap: 8px !important;
  }

  .author-avatar-sm {
    width: 36px !important;
    height: 36px !important;
  }

  /* Tip box */
  .article-tip {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 14px !important;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: .75rem !important;
  }

  /* Article intro */
  .article-intro {
    font-size: .9rem !important;
  }

  /* TOC list */
  .toc-list a {
    font-size: .8rem !important;
  }

  /* Share buttons mobile */
  .share-btns-col {
    flex-direction: column !important;
  }

  .share-btn {
    width: 100% !important;
  }
}

/* ── Très petit mobile (≤ 380px) ── */
@media (max-width: 380px) {

  .article-title,
  .article-hero h1 {
    font-size: 1.15rem !important;
  }

  .article-thumb[style] {
    height: 160px !important;
  }

  .article-content h2 {
    font-size: 1.05rem;
  }
}

/* ================================================================
   SIDEBAR ARTICLE — Fix overflow + responsive complet
   ================================================================ */

/* ────────────── PC (> 1024px) ────────────── */
.article-sidebar {
  position: sticky !important;
  top: calc(var(--nav-h, 72px) + 24px) !important;
  max-height: none !important;
  /* ✅ pas de limite de hauteur */
  overflow-y: visible !important;
  /* ✅ tous les widgets visibles */
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 320px !important;
  align-self: start !important;
  /* ✅ s'aligne au début de la grille */
}

.article-sidebar::-webkit-scrollbar {
  display: none !important;
}

/* Widgets conteneur */
.article-sidebar .sidebar-widget {
  overflow: visible !important;
  /* NE PAS couper le contenu en bas */
  word-break: break-word !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  /* gap du flex gère l'espacement */
  flex-shrink: 0 !important;
  /* widgets ne se rétrécissent pas */
}


/* TOC — wrapping des longs titres */
.toc-link {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  display: block !important;
  line-height: 1.4 !important;
  font-size: .82rem !important;
}

/* Boutons de partage — forcer colonnes propres */
.share-btns-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

.share-btns-col a.share-btn,
.share-btns-col .share-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  color: #fff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: none !important;
  cursor: pointer !important;
  transition: opacity .2s, transform .2s !important;
  /* Réinitialise le style circulaire conflictuel */
  height: auto !important;
  border-radius: 10px !important;
}

.share-btns-col a.share-btn.twitter,
.share-btns-col .share-btn.twitter {
  background: #000 !important;
}

.share-btns-col a.share-btn.facebook,
.share-btns-col .share-btn.facebook {
  background: #1877F2 !important;
}

.share-btns-col a.share-btn.linkedin,
.share-btns-col .share-btn.linkedin {
  background: #0A66C2 !important;
}

.share-btns-col a.share-btn:hover,
.share-btns-col .share-btn:hover {
  opacity: .88 !important;
  transform: translateX(3px) !important;
}

/* CTA audit pleine largeur */
.audit-cta {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box !important;
  justify-content: center !important;
  word-break: break-word !important;
}

/* ────────────── Tablette (≤ 900px) ────────────── */
@media (max-width: 900px) {
  .article-sidebar {
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .toc-widget {
    grid-column: 1 / -1 !important;
  }

  .share-btns-col {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .share-btns-col a.share-btn,
  .share-btns-col .share-btn {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 120px !important;
    justify-content: center !important;
  }
}

/* ────────────── Mobile (≤ 600px) ────────────── */
@media (max-width: 600px) {
  .article-sidebar {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .toc-widget {
    display: block !important;
  }

  .share-btns-col {
    flex-direction: column !important;
  }

  .share-btns-col a.share-btn,
  .share-btns-col .share-btn {
    width: 100% !important;
    min-width: unset !important;
  }

  .sidebar-widget {
    padding: 16px !important;
  }

  .audit-icon {
    font-size: 1.6rem !important;
  }

  .audit-title {
    font-size: .95rem !important;
  }

  .audit-desc {
    font-size: .8rem !important;
  }
}

/* ================================================================
   BLOG — Éléments dynamiques générés par blog.js
   ================================================================ */

/* ── Featured card (Toutes catégories) ── */
.blog-featured--dynamic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  transition: box-shadow .3s, transform .3s;
}

.blog-featured--dynamic:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.blog-featured-thumb--dynamic {
  position: relative;
  min-height: 280px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.blog-featured-thumb--dynamic .blog-cat-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 1;
}

.blog-featured--dynamic .blog-featured-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Cartes grille dynamiques avec animation stagger ── */
.blog-card--anim {
  animation: cardFadeIn .45s ease both;
  animation-delay: var(--delay, 0s);
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Card thumb background (Unsplash) ── */
.blog-card-thumb {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.blog-card-thumb .blog-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}

/* ── No results state ── */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.no-results h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.no-results p {
  font-size: .9rem;
}

/* ── Responsive featured dynamique ── */
@media (max-width: 768px) {
  .blog-featured--dynamic {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }

  .blog-featured-thumb--dynamic {
    min-height: 220px;
  }

  .blog-featured--dynamic .blog-featured-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .blog-featured-thumb--dynamic {
    min-height: 180px;
  }

  .blog-featured--dynamic .blog-featured-content {
    padding: 16px;
  }

  .blog-featured--dynamic .blog-featured-content h2 {
    font-size: 1.1rem;
  }
}