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

: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); }

/* 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;
}
.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;
}

.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);
}
.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;
}
.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-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; }
}