@font-face {
  font-family: 'Myndraine';
  src: url('/assets/fonts/Myndraine.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.vc-form-error-banner,
.vc-form-success-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 10050;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 36px 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  box-shadow: none;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease, box-shadow 0.28s ease;
  pointer-events: none;
}
.vc-form-error-banner {
  border: 2px solid #ef4444;
  background: #2a1215;
  color: #fecaca;
}
.vc-form-success-banner {
  border: 2px solid #22c55e;
  background: #0f2418;
  color: #bbf7d0;
}
.vc-form-error-banner.visible,
.vc-form-success-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}
.vc-form-error-banner.visible {
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.35);
}
.vc-form-success-banner.visible {
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.35);
}
.vc-form-banner-dismiss {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.72;
  font-size: 1.15em;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}
.vc-form-banner-dismiss:hover { opacity: 1; }
.vc-field-error,
.form-group.vc-field-error input,
.form-group.vc-field-error textarea,
.form-group.vc-field-error select,
input.vc-field-error,
textarea.vc-field-error,
select.vc-field-error {
  outline: 2px solid #ef4444 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  animation: vc-field-shake 0.4s ease;
}
label.vc-field-error {
  color: #ef4444 !important;
}
@keyframes vc-field-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

:root {
  --red: #d62828;
  --red-dark: #b91c1c;
  --red-soft: rgba(214, 40, 40, 0.12);
  --bg: #0f1218;
  --bg-elevated: #171b24;
  --bg-card: #1c2130;
  --border: #2a3142;
  --text: #f0f2f5;
  --text-muted: #9aa3b2;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --transition: 0.25s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: #ff4d4d; }

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

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
  text-align: center;
  padding: 28px 20px 24px;
  border-bottom: 3px solid var(--red);
}
.site-header .logo { height: 130px; max-width: min(680px, 94vw); object-fit: contain; }
.site-header--home .logo { height: 165px; max-width: min(760px, 96vw); }
.site-header--home .tagline { margin-top: 10px; }
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--red);
  color: var(--white) !important;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(214, 40, 40, 0.45);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.phone-cta:hover {
  background: var(--red-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(214, 40, 40, 0.55);
}
.contact-phone-highlight {
  margin: 20px 0;
  padding: 20px 24px;
  background: var(--red-soft);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  text-align: center;
}
.contact-phone-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-phone-highlight .phone-cta { width: 100%; justify-content: center; }
.phone-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--red);
  color: var(--white) !important;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(214, 40, 40, 0.3);
  transition: background var(--transition), transform var(--transition);
}
.phone-float:hover {
  background: var(--red-dark);
  color: var(--white) !important;
  transform: scale(1.04);
}
.phone-float .phone-float-num { display: none; }
@media (min-width: 480px) {
  .phone-float .phone-float-num { display: inline; }
}
.site-header h1 {
  font-size: 1.75em;
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-header .tagline { font-size: 1.05em; color: var(--text-muted); margin-top: 6px; }

/* Nav */
nav.main-nav {
  background: var(--bg-elevated);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
}
nav.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: var(--transition);
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--text);
  background: var(--red-soft);
}
nav.main-nav .nav-cta {
  background: var(--red);
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--white) !important;
}
nav.main-nav .nav-cta:hover { background: var(--red-dark); }

nav.main-nav .nav-links-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
}
nav.main-nav .nav-mobile-wrap {
  display: none;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
nav.main-nav .nav-mobile-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
}
nav.main-nav .nav-mobile-select:focus {
  outline: none;
  border-color: var(--red);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 768px) {
  nav.main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px;
  }
  nav.main-nav .nav-mobile-wrap { display: block; }
  nav.main-nav .nav-links-bar { display: none; }
  nav.main-nav .nav-cta,
  nav.main-nav #nav-client,
  nav.main-nav #nav-admin {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Sections */
section { padding: 56px 24px; max-width: 1200px; margin: 0 auto; }
section.section-alt { background: linear-gradient(180deg, transparent, var(--red-soft)); border-radius: var(--radius); }
h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  line-height: 1.7;
}
h3 { color: var(--text); margin-bottom: 10px; font-weight: 600; }

/* Hero */
.hero {
  text-align: center;
  padding: 56px 20px;
  background: linear-gradient(180deg, var(--red-soft), transparent);
}
.hero h2 { font-size: 2.2em; }
.hero p { font-size: 1.1em; max-width: 780px; margin: 18px auto; color: var(--text-muted); }
.sim-picker-wrap { flex-direction: column; align-items: stretch; gap: 8px; max-width: 520px; margin: 0 auto; }
.sim-picker-label { font-size: 0.95em; color: #ccc; text-align: left; }
.sim-picker-row { display: flex; gap: 10px; width: 100%; }
.sim-picker-row select {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #444;
  background: var(--bg-elevated, #1e1e1e);
  color: #f0f2f5;
  font-size: 1em;
  cursor: pointer;
}
.sim-picker-row select:focus { outline: none; border-color: var(--red); }
.sim-picker-row .btn { flex-shrink: 0; white-space: nowrap; }
.sim-picker-row .btn:disabled { opacity: 0.45; cursor: not-allowed; }

.hero-search {
  display: flex;
  max-width: 480px;
  margin: 28px auto;
  gap: 10px;
}
.hero-search input {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1em;
}
.hero-search input:focus { outline: none; border-color: var(--red); }
.hero-search button {
  padding: 13px 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.hero-search button:hover { background: var(--red-dark); }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 36px 0;
}
.stats-grid.stats-grid--3 {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  justify-items: stretch;
}
@media (max-width: 720px) {
  .stats-grid.stats-grid--3 {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}
.rdv-change-date-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.stat-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat-card .number {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--red);
}
.stat-card .label { font-size: 0.9em; color: var(--text-muted); margin-top: 6px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Équipe — photo à gauche, texte à droite */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}
.team-member {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
}
.team-member-photo-wrap {
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
}
.team-member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-member-body {
  flex: 1;
  min-width: 0;
}
.team-member-body h3 {
  margin: 0 0 6px;
}
.team-member-role {
  color: var(--red);
  font-weight: 700;
  margin-bottom: 12px;
}
.team-member-bio {
  line-height: 1.7;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .team-member-photo-wrap {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
  }
}
.zone-map-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.zone-map-visual img.sat {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zone-map-visual img.outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  border-bottom: 1px solid var(--border);
}
.product-img { padding: 12px; overflow: hidden; }
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-parked { border-color: var(--red); box-shadow: 0 0 0 1px var(--red-soft); }
.product-parked .card-body .btn-outline { border-color: var(--red); color: var(--red); }

.park-floater { position: fixed; bottom: 24px; right: 24px; z-index: 900; }
.park-toggle { display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-hover); }
.park-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--white);
  color: var(--red);
  font-size: 0.8em;
  font-weight: 700;
}
.park-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 32px));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.park-panel-head, .park-panel-foot { padding: 14px 16px; }
.park-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.park-panel-foot { border-top: 1px solid var(--border); }
.park-items { max-height: 280px; overflow-y: auto; padding: 8px 12px; }
.park-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
}
.park-item:last-child { border-bottom: none; }
.park-item img, .park-item-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg-elevated);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.park-item-info { flex: 1; min-width: 0; }
.park-item-name { display: block; font-size: 0.85em; line-height: 1.3; }
.park-item-price { font-size: 0.8em; color: var(--text-muted); }
.park-total { margin-bottom: 10px; font-size: 0.95em; }
.park-total strong { color: var(--red); }

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--red);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 950;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.product-img img { cursor: zoom-in; }
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.img-lightbox img {
  max-width: min(92vw, 900px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.img-lightbox-caption {
  color: #fff;
  margin-top: 16px;
  text-align: center;
  max-width: 700px;
  font-size: 0.95em;
  line-height: 1.4;
}
.img-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2em;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
}
.img-lightbox-close:hover { color: var(--red); }

.parrainage-hero {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(180deg, rgba(255, 0, 0, 0.12), transparent);
}
.parrainage-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 2.5em;
  padding: 12px 28px;
  border-radius: 12px;
  margin: 20px 0;
}
.parrainage-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
}
.parrainage-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.parrainage-step .num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 12px;
}
.parrainage-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* Accompagnement DIY */
.diy-hero {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(180deg, rgba(255, 0, 0, 0.12), transparent);
}
.diy-hero h1 { margin-bottom: 20px; max-width: 900px; margin-left: auto; margin-right: auto; }
.diy-intro {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.diy-intro p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.diy-intro a { color: var(--red); text-decoration: underline; }
.diy-intro-keywords {
  font-size: 0.88em;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 8px !important;
}
.actualites-intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
}
.actualites-intro a { color: var(--red); }
.actualites-section {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.actualites-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.actualites-search {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95em;
}
.actualites-count {
  font-size: 0.88em;
  color: var(--text-muted);
  white-space: nowrap;
}
.actualites-view-toggle {
  display: flex;
  gap: 6px;
}
.actualites-filters {
  margin-bottom: 20px;
}
.actualites-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.actualites-filter-row--cats {
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.actualites-filter.active,
.actualites-cat-filter.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.actualites-cat-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.actualites-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.actualites-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 720px) {
  .actualites-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .actualites-row-link { justify-self: start; }
}
.actualites-row-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.actualites-row-date {
  font-size: 0.8em;
  color: var(--text-muted);
}
.actualites-row-main h2 {
  margin: 0 0 6px;
  font-size: 1.05em;
  line-height: 1.35;
}
.actualites-row-main h2 a {
  color: var(--text);
  text-decoration: none;
}
.actualites-row-main h2 a:hover { color: var(--red); }
.actualites-row-excerpt {
  margin: 0;
  font-size: 0.88em;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actualites-row-link { white-space: nowrap; }
.actualites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.actualites-grid--empty {
  display: block;
}
.actualites-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.actualites-card-cover {
  display: block;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.actualites-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.actualites-card-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  opacity: 0.5;
}
.actualites-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.actualites-badge {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 8px;
}
.actualites-card-body h2 {
  margin: 0 0 10px;
  font-size: 1.1em;
  line-height: 1.35;
}
.actualites-card-body h2 a { color: var(--text); text-decoration: none; }
.actualites-card-body h2 a:hover { color: var(--red); }
.actualites-card-body p {
  color: var(--text-muted);
  font-size: 0.92em;
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
}
.actualites-date {
  font-size: 0.82em;
  color: var(--text-muted);
  opacity: 0.8;
  margin: 0 0 10px !important;
}
.actualites-read {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.actualites-read:hover { text-decoration: underline; }
.actualites-loading, .actualites-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 32px 16px;
}
/* Page Actualités — bandeaux colorés (thème site) */
.actu-page-blocks {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.actu-page-block {
  padding: 28px 24px 24px;
}
.actu-page-block__title {
  margin: 0 0 8px;
  font-size: 1.35em;
  color: var(--text);
  border-bottom: 2px solid var(--red);
  padding-bottom: 10px;
  display: inline-block;
}
.actu-page-block__lead {
  margin: 12px 0 22px;
  color: var(--text-muted);
  font-size: 0.95em;
  line-height: 1.6;
}
/* Page Actualités — cartes bandeau horizontal (5:2), grille 2–3 articles */
.actu-scards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.actu-scard {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.actu-scard:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.actu-scard__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.actu-scard__banner {
  aspect-ratio: 5 / 2;
  min-height: 88px;
  max-height: 120px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.actu-scard__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.actu-scard__icon .vc-icon { display: flex; }
.actu-scard__banner-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
  text-align: right;
}
.actu-scard__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, transparent 45%, rgba(0,0,0,.2) 100%);
  pointer-events: none;
}
.actu-scard__cat,
.actu-scard__date {
  position: relative;
  z-index: 1;
}
.actu-scard__cat {
  font-size: 0.72em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.actu-scard__date {
  font-size: 0.78em;
  opacity: 0.9;
}
.actu-scard__body {
  flex: 1;
  padding: 16px 18px 18px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.actu-scard__title {
  margin: 0;
  font-size: 1.02em;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actu-scard:hover .actu-scard__title { color: var(--red); }
.actu-scard__excerpt {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.88em;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actu-scard__cta {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--red);
}
.actu-scard:hover .actu-scard__cta { color: #ff4d4d; }
@media (max-width: 600px) {
  .actu-scards { grid-template-columns: 1fr; }
  .actu-page-block { padding: 20px 16px 18px; }
}
.section-title-center {
  text-align: center;
  margin-bottom: 28px;
}
.diy-blog-sections {
  display: grid;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
}
.diy-blog-block-title {
  margin: 0 0 6px;
  font-size: 1.15em;
  color: var(--text);
}
.diy-blog-block-lead {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.92em;
}
.diy-blog-home-link {
  text-align: center;
  margin-top: 28px;
}
.diy-guides-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 20px 12px;
  margin: 0;
}
.diy-guide-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.diy-guides-grid .card-body h3,
.diy-guides-grid .card-body h4 {
  margin: 0 0 10px;
  font-size: 1.05em;
}
.diy-guides-grid .card-body h3 a,
.diy-guides-grid .card-body h4 a { color: var(--text); }
.diy-guides-grid .card-body h3 a:hover,
.diy-guides-grid .card-body h4 a:hover { color: var(--red); }
.diy-guides-grid .card-body p {
  color: var(--text-muted);
  font-size: 0.92em;
  line-height: 1.55;
  margin: 0;
}
.guide-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
  line-height: 1.8;
  color: var(--text-muted);
}
.guide-article h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.2em;
}
.guide-article ul { padding-left: 1.2em; margin: 12px 0; }
.guide-article li { margin-bottom: 8px; }
.guide-cta-box {
  text-align: center;
  margin-top: 36px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.diy-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.diy-pack-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.diy-pack-card--featured {
  border-color: var(--red);
  box-shadow: var(--shadow-hover);
}
.diy-pack-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.diy-pack-header h2 {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 1.35em;
  padding-right: 0;
}
.diy-pack-subtitle {
  color: var(--text-muted);
  font-size: 0.95em;
  margin-bottom: 20px;
  line-height: 1.5;
}
.diy-pack-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.diy-pack-features li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
  font-size: 0.95em;
}
.diy-pack-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.diy-pack-features li:last-child { border-bottom: none; }
.diy-pack-price {
  text-align: center;
  padding-top: 16px;
  border-top: 2px solid var(--border);
}
.diy-pack-amount {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--red);
}
.diy-pack-ttc {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-left: 4px;
}
.diy-pack-note {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 8px;
}
.diy-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 24px auto 0;
  padding: 0 20px;
}
.diy-option-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.diy-option-card h3 {
  margin: 0 0 10px;
  font-size: 1.05em;
}
.diy-option-detail {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-bottom: 12px;
  line-height: 1.5;
}
.diy-option-price {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--red);
  margin: 0;
}
.diy-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 24px auto 0;
  padding: 0 20px;
}
.diy-why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.diy-why-icon {
  color: var(--red);
  margin-bottom: 12px;
}
.diy-why-card h3 { margin: 0 0 10px; }
.diy-why-card p {
  color: var(--text-muted);
  font-size: 0.92em;
  line-height: 1.6;
  margin: 0;
}
.diy-rdv-section .section-lead { max-width: 720px; }
.diy-rdv-free-badge {
  display: inline-block;
  margin: 0 auto 28px;
  padding: 8px 18px;
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid var(--red);
  border-radius: 24px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.95em;
  text-align: center;
}
.diy-rdv-section { text-align: center; }
#diy-rdv-calendar-wrap,
.client-rdv-calendar-wrap {
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 8px;
  width: 100%;
}
#diy-rdv-calendar-wrap .plan-legend,
#diy-rdv-calendar-wrap .plan-month-nav,
.client-rdv-calendar-wrap .plan-legend,
.client-rdv-calendar-wrap .plan-month-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
#diy-rdv-calendar-wrap .plan-cal-wrap,
.client-rdv-calendar-wrap .plan-cal-wrap {
  margin-top: 8px;
  width: 100%;
}
#diy-rdv-calendar-wrap .plan-cal-compact,
.client-rdv-calendar-wrap .plan-cal-compact {
  width: 100%;
  min-width: 0;
}
#diy-rdv-calendar-wrap .plan-day-panel-wrap,
.client-rdv-calendar-wrap .plan-day-panel-wrap {
  text-align: left;
  max-width: 100%;
}
#diy-rdv-form {
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.diy-cta-section {
  text-align: center;
  padding: 50px 24px 60px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  margin: 0 auto 40px;
  max-width: 1160px;
}
.diy-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.diy-home-teaser {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.08), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.diy-home-teaser h2 { margin-bottom: 12px; }
.diy-home-teaser p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.diy-home-prices {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.diy-home-price-tag {
  background: var(--bg-card);
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 220px;
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.2), var(--shadow);
}
.diy-home-price-tag span {
  display: block;
  font-weight: 600;
  font-size: 0.95em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}
.diy-home-price-tag strong {
  display: block;
  color: var(--red);
  font-size: 1.45em;
  font-weight: 700;
}
.appt-badge {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  margin-bottom: 8px;
}
.appt-badge--diy {
  background: rgba(255, 0, 0, 0.15);
  color: var(--red);
  border: 1px solid var(--red);
}
.appt-badge--visite {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.client-diy-promo {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.client-diy-promo p {
  margin: 0;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.55;
}
.client-diy-promo strong { color: var(--text); }

.selection-grid { display: grid; gap: 12px; max-width: 720px; }
.selection-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.selection-row img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: var(--bg-elevated); }
.selection-row-info { flex: 1; min-width: 0; }
.selection-qty { display: flex; align-items: center; gap: 6px; }
.selection-qty input { width: 56px; padding: 6px; text-align: center; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text); }
.product-price {
  color: var(--red) !important;
  font-weight: 700;
  font-size: 1.15em !important;
  margin: 12px 0 !important;
}
.product-unit { font-size: 0.72em; color: var(--text-muted); font-weight: 400; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1em; }
.card-body p { color: var(--text-muted); font-size: 0.9em; margin: 10px 0; }
.card-body .meta { font-size: 0.85em; color: var(--text-muted); }

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.92em;
}
.btn:hover { background: var(--red-dark); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.btn-sm { padding: 6px 14px; font-size: 0.85em; }

/* Feature blocks */
.feature-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.feature-block {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
}
.feature-block .icon { margin-bottom: 14px; color: var(--red); }
.vc-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; }
.vc-icon svg { display: block; }

/* Hero CTA & confiance */
.hero-cta-block { margin-top: 28px; }
.btn-hero {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(214, 40, 40, 0.45);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(214, 40, 40, 0.55); }
.hero-cta-note {
  margin-top: 14px;
  font-size: 0.92em;
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text);
}
.social-proof-line {
  display: none;
  text-align: center;
  font-size: 0.9em;
  color: var(--text-muted);
  margin-top: 20px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

/* Témoignages & valeurs */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.testimonial-stars { color: var(--red); margin-bottom: 12px; }
.testimonial-text { font-style: italic; line-height: 1.65; color: var(--text); margin-bottom: 16px; }
.testimonial-author { font-size: 0.9em; color: var(--text-muted); }
.values-grid, .price-ranges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.value-card, .price-range-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.value-icon { margin-bottom: 12px; }
.price-range-value { font-size: 1.25em; font-weight: 700; color: var(--red); margin: 8px 0; }
.price-range-note { font-size: 0.85em; color: var(--text-muted); }
.process-steps { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; }
.process-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.process-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h4 { margin-bottom: 6px; }
.process-step p { color: var(--text-muted); font-size: 0.95em; margin: 0; }
.cert-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cert-badge {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88em;
}
.cert-badge strong { color: var(--red); }

/* Réalisations — meta pills */
.real-meta-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.real-pill {
  font-size: 0.78em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.real-pill.accent { border-color: var(--red); color: var(--red); }
.real-testimonial {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 4px solid var(--red);
  background: var(--bg-card);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Simulateur — réassurance */
.sim-reassurance {
  margin: 24px auto;
  max-width: 640px;
  padding: 18px 22px;
  background: var(--red-soft);
  border: 1px solid rgba(214, 40, 40, 0.35);
  border-radius: var(--radius);
  text-align: center;
  line-height: 1.6;
  font-size: 0.95em;
}
.sim-reassurance strong { color: var(--text); }

/* Villes compactes */
.zone-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.zone-chip {
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85em;
  color: var(--text-muted);
  transition: var(--transition);
}
.zone-chip:hover { border-color: var(--red); color: var(--red); }

/* RDV accueil */
.section-rdv {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}
.plan-mobile-tip {
  display: none;
  text-align: center;
  font-size: 0.82em;
  color: var(--text-muted);
  margin: -6px 0 12px;
}
@media (max-width: 768px) {
  .plan-mobile-tip { display: block; }
}

/* Sections repliables accueil */
.home-collapsible-section { max-width: 1100px; margin: 0 auto; }
.home-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px 4px;
  margin-bottom: 8px;
}
.home-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 700;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.home-details summary::-webkit-details-marker { display: none; }
.home-details-chevron {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.2em;
  transition: transform 0.2s;
}
.home-details[open] .home-details-chevron { transform: rotate(45deg); }
.home-compact-grid { margin-top: 8px; }
@media (min-width: 769px) {
  .home-details { padding-bottom: 20px; }
  .home-details summary { pointer-events: none; cursor: default; }
  .home-details-chevron { display: none; }
}

/* Sticky mobile CTA */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15, 18, 24, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  gap: 8px;
}
.sticky-mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88em;
}
.sticky-mobile-cta .cta-primary { background: var(--red); color: var(--white) !important; }
.sticky-mobile-cta .cta-secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text) !important; }
@media (max-width: 768px) {
  .sticky-mobile-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 72px; }
  .phone-float { bottom: 80px; }
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 28px 0;
}
.carousel-inner { display: flex; transition: transform 0.5s ease; }
.carousel-item { min-width: 100%; position: relative; }
.carousel-item img { width: 100%; height: 380px; object-fit: cover; }
.carousel-legend {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(15, 18, 24, 0.92));
  padding: 36px 20px 18px;
  text-align: center;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 18, 24, 0.75);
  color: var(--white);
  border: 1px solid var(--border);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6em;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn:hover { background: var(--red); border-color: var(--red); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

/* FAQ — accordéon natif <details>/<summary> */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 44px 16px 18px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--red);
}
.faq-item summary:hover { color: var(--red); }
.faq-answer {
  padding: 0 18px 16px;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-answer a { color: var(--red); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.88em; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95em;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88em; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-elevated); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.78em; letter-spacing: 0.04em; }
tr:hover td { background: var(--red-soft); }
.total-row td { font-weight: 700; color: var(--red); font-size: 1.05em; }

/* Dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
}
.sidebar {
  background: var(--bg-elevated);
  padding: 20px 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  position: sticky;
  top: 60px;
  align-self: start;
}
.admin-build-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.admin-build-info--sidebar {
  margin-top: auto;
  padding: 14px 14px 4px;
  border-top: 1px solid var(--border);
}
.admin-build-info--sidebar .admin-build-version {
  display: block;
  font-weight: 700;
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.admin-build-info--sidebar .admin-build-date {
  display: block;
  margin-top: 2px;
}
.admin-build-info--auth {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.admin-build-info--auth .admin-build-version {
  font-weight: 700;
  color: var(--red);
}
.admin-build-info--auth .admin-build-date::before {
  content: ' · ';
}
.admin-build-info--nav {
  margin-left: 12px;
  font-size: 0.8rem;
  color: #9aa3b2;
  font-weight: normal;
}
.sidebar a {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  border-radius: 8px;
  margin-bottom: 2px;
  font-size: 0.88em;
  font-weight: 500;
}
.sidebar a:hover, .sidebar a.active {
  background: var(--red-soft);
  color: var(--text);
}
.dashboard-main { padding: 28px; }
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.dashboard-cards--top {
  margin-top: 0;
  margin-bottom: 22px;
}
.dash-card-click {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-card-click:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(214, 40, 40, 0.15);
  cursor: pointer;
}

.dash-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.dash-card .value { font-size: 1.8em; color: var(--red); font-weight: 700; }
.dash-card .label { font-size: 0.82em; color: var(--text-muted); }
.dash-card .dash-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72em;
  font-weight: 600;
  background: var(--red);
  color: #fff;
}
.dash-card .dash-hint { font-size: 0.75em; color: var(--text-muted); margin-top: 6px; }

.client-nav-badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 10px;
  font-size: 0.75em;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  text-align: center;
}
.client-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.client-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(214, 40, 40, 0.08);
  font-size: 0.92em;
}
.client-alert-item button { flex-shrink: 0; }

.client-project-card {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.client-project-card.has-news { border-color: rgba(214, 40, 40, 0.45); }
.client-project-card--cancelled { opacity: 0.72; border-color: rgba(239, 68, 68, 0.35); }
.badge-annule { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.client-project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.client-project-head:hover { background: rgba(255,255,255,0.03); }
.client-project-head h3 { margin: 0 0 6px; font-size: 1.05em; }
.client-project-head-side { text-align: right; flex-shrink: 0; }
.client-project-progress { font-weight: 700; color: var(--red); margin: 0 0 4px; }
.client-project-chevron { display: block; margin-top: 8px; color: var(--text-muted); font-size: 0.85em; }
.client-project-body { padding: 0 18px 18px; border-top: 1px solid var(--border); }
.client-news-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.72em;
  font-weight: 600;
  background: var(--red);
  color: #fff;
  vertical-align: middle;
}

/* Progress */
.progress-bar {
  background: var(--border);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
  margin: 10px 0;
}
.progress-fill {
  background: var(--red);
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s;
}

/* Timeline */
.timeline-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 18px 0;
}
.timeline { flex: 1; min-width: 0; margin: 0; }
.timeline-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72em;
  color: var(--text-muted);
  padding-top: 4px;
  flex-shrink: 0;
}
.timeline-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.timeline-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.timeline-legend-dot.done { background: #22c55e; }
.timeline-legend-dot.in_progress { background: #f59e0b; }
.timeline-step {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-left: 2px solid var(--border);
  margin-left: 12px;
  padding-left: 22px;
  position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 18px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border);
}
.timeline-step.done::before { background: #22c55e; }
.timeline-step.in_progress::before { background: #f59e0b; }
.timeline-step.done { border-left-color: #22c55e; }
.timeline-step.in_progress { border-left-color: #f59e0b; }

/* Wizard */
.wizard { max-width: 700px; margin: 0 auto; }
.wizard-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.wizard-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.wizard-dot.active, .wizard-dot.done { background: var(--red); }
.wizard-panel {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.wizard-nav { display: flex; justify-content: space-between; margin-top: 22px; }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78em;
  font-weight: 600;
}
.badge-en_cours { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-termine { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge-archive { background: rgba(100, 116, 139, 0.18); color: #94a3b8; }
.badge-brouillon { background: rgba(154, 163, 178, 0.15); color: var(--text-muted); }
.badge-valide { background: var(--red-soft); color: var(--red); }
.badge-en_attente { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.badge-envoye { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-signe { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge-refuse, .badge-annule { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-facture { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.badge-emise { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.badge-payee { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge-retractation { background: rgba(234, 179, 8, 0.2); color: #eab308; }

/* Footer */
footer {
  background: var(--bg-elevated);
  text-align: center;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
footer p { color: var(--text-muted); font-size: 0.88em; margin: 4px 0; }

/* Login */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.auth-box {
  background: var(--bg-card);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 400px;
}
.auth-box h2 { margin-bottom: 22px; }
.auth-box .logo { display: block; margin: 0 auto 18px; height: 72px; }

/* Alerts */
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 0.88em; }
.alert-error { background: var(--red-soft); border: 1px solid var(--red); }
.alert-success { background: rgba(34, 197, 94, 0.12); border: 1px solid #22c55e; }

/* Simulateurs — catégories */
.sim-category {
  margin-bottom: 48px;
  padding-top: 8px;
}
.sim-category:first-child {
  margin-top: 8px;
}
.sim-category-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px 20px;
  background: linear-gradient(90deg, var(--red-soft) 0%, transparent 72%);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 1px 0 var(--border);
}
.sim-category-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  font-size: 2.75rem;
  line-height: 1;
  background: transparent;
  border: none;
  border-radius: 14px;
}
.sim-category-icon .sim-icon-color {
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px;
}
.sim-category-text {
  min-width: 0;
}
.group-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.sim-category-meta {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sim-category + .sim-category {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.sim-group {
  padding-left: 4px;
}
.sim-card .card-img {
  height: 200px;
  font-size: 5.5rem;
  line-height: 1;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, rgba(0, 0, 0, 0.15) 100%);
}
.sim-icon-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 24%;
  background: linear-gradient(145deg, var(--sim-c1) 0%, var(--sim-c2) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: var(--sim-fg, #fff);
  position: relative;
  overflow: hidden;
}
.sim-icon-color::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.42), transparent 52%);
  pointer-events: none;
}
.sim-icon-color::after {
  content: '';
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.sim-icon-color .vc-icon {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}
.sim-card .card-img .sim-icon-color {
  width: 104px !important;
  height: 104px !important;
  border-radius: 26px;
}

/* Settings grid (admin) */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: flex; flex-wrap: wrap; gap: 4px; border-right: none; border-bottom: 1px solid var(--border); }
  h2 { font-size: 1.5em; }
  .carousel-item img { height: 240px; }
  .site-header .logo { height: 80px; }
  .site-header--home .logo { height: 96px; }
}

@media print {
  nav, footer, .no-print { display: none !important; }
  body { background: white; color: black; }
  .card, .wizard-panel { box-shadow: none; border: 1px solid #ccc; }
}