/* ==========================================================================
   Faisable — feuille de style globale
   Charte officielle : "05 - Communication & Marketing/Identité de marque/
   Première charte.png". Rose retenu : #FF2DB8 (RGB 255 45 184), la plus
   fluo des deux valeurs en circulation — choix d'Axelle du 11/09/2026.
   ========================================================================== */

:root {
  --lime: #C6FF00;
  --rose: #FF2DB8;
  --orange: #FF7A00;
  --violet: #7A5CFF;
  --indigo: #0B0F3B;
  --ecru: #F8F7F2;
  --white: #FFFFFF;
  --line: #E4E2D8;
  --line-soft: #EFEDE4;
  --text-main: #0B0F3B;
  --text-muted: #4A4A5A;
  --text-on-dark-muted: #B7BAD6;
  --text-on-dark-faint: #6C709A;
  --placeholder: #9A9AAB;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--ecru);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* ---------- layout helpers ---------- */
.row { display: flex; }
.col { display: flex; flex-direction: column; }

.container {
  width: 100%;
  overflow-x: hidden;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-lime { background: var(--lime); color: var(--indigo); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-indigo { background: var(--indigo); color: var(--white); }

/* ---------- pill input ---------- */
.pill-input {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 14px 8px 14px 20px;
  gap: 10px;
}
.pill-input input {
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-sans);
  flex: 1;
  color: var(--text-main);
  background: transparent;
}
.pill-input input::placeholder { color: var(--placeholder); }

/* ---------- champ description projet ---------- */
.hero-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 -2px 0;
}
.hero-textarea {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  padding: 14px 20px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-main);
  resize: vertical;
  min-height: 76px;
}
.hero-textarea::placeholder { color: var(--placeholder); }
.hero-textarea:focus, .pill-input:focus-within { outline: none; border-color: var(--text-muted); }

/* ---------- état "analyse en cours" (validé 21/09/2026) ---------- */
.projet-field-group { display: flex; flex-direction: column; gap: 10px; }
.hero-field-label.muted { color: #9c9a8c; font-weight: 500; margin: 0; }
.filled-answer { font-size: 14px; color: var(--text-main); line-height: 1.5; margin: 0; }

/* le CTA reste lime/indigo pendant le chargement, jamais grisé */
#analyse-btn:disabled { opacity: 1; background: var(--lime); color: var(--indigo); }
.dots { display: inline-flex; gap: 3px; }
.dots span {
  width: 5px;
  height: 5px;
  border-radius: 100px;
  background: var(--indigo);
  opacity: 0.35;
  animation: pulse-dot 1.1s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: 0.15s; }
.dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse-dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: #6c6c7a;
}
.status-line[hidden] { display: none; }
.pulse-dot-lead {
  width: 7px;
  height: 7px;
  border-radius: 100px;
  background: var(--lime);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.6);
  animation: pulse-ring 1.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(198, 255, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0); }
}

/* ---------- nav ---------- */
.nav {
  justify-content: space-between;
  align-items: center;
  padding: 22px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.nav-logo { height: 76px; width: auto; display: block; }
.nav-links { gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-main); text-decoration: none; font-weight: 500; }

/* ---------- hero ---------- */
.hero-split { align-items: stretch; padding: 0; }
.hero-form {
  flex: 1 1 48%;
  padding: 76px 56px 64px 56px;
  justify-content: center;
  background: var(--ecru);
}
.hero-title {
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.18;
  margin: 0 0 20px 0;
  color: var(--text-main);
}
.hero-title mark {
  background: linear-gradient(transparent 62%, var(--lime) 0%);
  color: inherit;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 0 30px 0;
}
.hero-form-fields { gap: 12px; max-width: 460px; }
.hero-note {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 26px 0 0 0;
}
.hero-panel {
  flex: 1 1 52%;
  background: var(--indigo);
  padding: 44px;
  position: relative;
  justify-content: center;
  gap: 18px;
}
.hero-plan-frame {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.hero-plan-frame img { width: 100%; display: block; }
.hero-plan-target {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 100px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hero-plan-target img { width: 20px; height: 20px; display: block; }
.hero-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--lime);
  margin: 0;
  text-align: right;
}

/* ---------- steps ---------- */
.steps-section { background: var(--indigo); padding: 80px 56px; }
.steps-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 48px 0;
}
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.step-icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step-icon-chip img { width: 20px; height: 20px; filter: brightness(0) invert(1); display: block; }
.step-num { font-family: var(--font-serif); font-size: 44px; line-height: 1; }
.step-title { font-size: 18px; font-weight: 600; color: var(--white); margin: 10px 0 8px 0; }
.step-desc { font-size: 14px; line-height: 1.5; color: var(--text-on-dark-muted); margin: 0; }

/* ---------- results ---------- */
.results-section { align-items: center; padding: 76px 56px; gap: 56px; background: var(--ecru); }
.results-visual { flex: 1 1 44%; display: flex; justify-content: center; }
.results-chart-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1/1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.results-copy { flex: 1 1 56%; }
.results-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}
.check-list { gap: 18px; }
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row span { font-size: 16px; color: var(--text-main); }

/* ---------- footer ---------- */
.footer {
  justify-content: space-between;
  align-items: flex-end;
  padding: 48px 56px;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--indigo);
}
.footer-logo { height: 52px; width: auto; display: block; }
.footer-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 10px 0 0 0;
}
.footer-copy { font-size: 13px; margin: 14px 0 0 0; color: var(--text-on-dark-faint); }

/* ---------- analyse result panel (nouveau, pas dans la maquette) ---------- */
.analyse-panel {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  display: none;
}
.analyse-panel.is-visible { display: block; }
.analyse-panel.is-error { border-color: var(--rose); color: var(--indigo); }
.analyse-panel strong { font-weight: 600; }
.analyse-panel .terrain-cta { display: inline-flex; margin-top: 14px; padding: 10px 22px; font-size: 14px; }

/* ---------- bandeau IA (garde-fou juridique, art. 50 AI Act) ---------- */
.ai-banner {
  background: var(--indigo);
  color: var(--text-on-dark-muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  padding: 10px 24px;
}

/* ---------- unité foncière : liste de parcelles dans le résultat ---------- */
.parcelle-check-list { gap: 6px; margin: 8px 0; }
.parcelle-check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.parcelle-check-row input[type="checkbox"] { accent-color: var(--lime); }
.parcelle-check-note {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

/* ---------- unité foncière : retrait d'une parcelle -> avertissement ---------- */
.parcelle-check-item { display: flex; flex-direction: column; }
.parcelle-check-item.is-excluded .parcelle-check-row { opacity: 0.5; text-decoration: line-through; }
.parcelle-warning {
  margin: 4px 0 6px 26px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 45, 184, 0.06);
  border: 1px solid rgba(255, 45, 184, 0.3);
}
.parcelle-warning p {
  margin: 0 0 8px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-main);
}
.parcelle-warning-btn {
  border: none;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-right: 8px;
}
.parcelle-cancel { background: var(--lime); color: var(--indigo); }
.parcelle-confirm-remove { background: transparent; color: var(--rose); border: 1.5px solid var(--rose); }

/* ---------- pied de résultat, mention légale obligatoire ---------- */
.result-legal-footer {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- lien mentions légales / vos données en pied de page ---------- */
.footer-legal-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-link:hover { color: var(--lime); }

/* ---------- pages légales minimales (mentions-legales.html, vos-donnees.html) ---------- */
.legal-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px;
}
.legal-page h1 { font-size: 32px; margin: 0 0 24px 0; }
.legal-page p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0 0 16px 0; }
.legal-page a { text-decoration: underline; }

.hero-form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 0 0 0;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--line);
}

/* ---------- terrain (écran "Votre terrain", /api/plan) ---------- */
.terrain-stepper-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 56px;
  overflow-x: auto;
}
.terrain-stepper {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.terrain-stepper li { display: flex; align-items: center; gap: 8px; }
.terrain-stepper-dot {
  width: 22px;
  height: 22px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: var(--line-soft);
  color: var(--text-muted);
}
.terrain-stepper li.is-done .terrain-stepper-dot { background: var(--indigo); color: var(--white); }
.terrain-stepper li.is-done { color: var(--text-main); }
.terrain-stepper li.is-active .terrain-stepper-dot { background: var(--lime); color: var(--indigo); }
.terrain-stepper li.is-active { color: var(--text-main); }

.terrain-section { padding: 44px 56px 72px 56px; background: var(--ecru); min-height: 50vh; }

.terrain-loading, .terrain-error {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
  color: var(--text-muted);
}
.terrain-error h1 { font-size: 28px; margin: 0 0 14px 0; }
.terrain-error p { margin: 0 0 24px 0; }

/* Dépôt manuel d'un règlement PLU depuis l'écran de pause (bloc 4,
   22/09/2026) -- personnalisation.html et projet.html. */
.depot-plu { text-align: left; max-width: 420px; margin: 24px auto 0 auto; padding: 20px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); }
.depot-plu-intro { font-size: 13.5px; color: var(--text-muted); margin: 0 0 16px 0; line-height: 1.5; }
.depot-plu-champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.depot-plu-champ label { font-size: 13px; font-weight: 600; color: var(--text-main); }
.depot-plu-champ input[type="text"], .depot-plu-champ input[type="file"] {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px;
  font-family: var(--font-sans); color: var(--text-main); background: var(--white);
}
.depot-plu-erreur { font-size: 13px; color: var(--rose); margin: 0 0 12px 0; }
.depot-plu-succes { font-size: 13px; color: var(--indigo); margin: 0 0 12px 0; }
.terrain-spinner {
  width: 34px; height: 34px; margin: 0 auto 20px auto;
  border-radius: 100px;
  border: 3px solid var(--line);
  border-top-color: var(--indigo);
  animation: terrain-spin 0.8s linear infinite;
}
@keyframes terrain-spin { to { transform: rotate(360deg); } }

.terrain-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px 0; }
.terrain-chip {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.terrain-chip.is-attention { border-color: var(--rose); color: var(--indigo); }

.terrain-plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  overflow-x: auto;
}
.terrain-plan-card svg { display: block; width: 100%; height: auto; min-width: 640px; }

/* ---------- choix du type de projet (étape "Votre projet") ---------- */
.projet-types { display: flex; flex-wrap: wrap; gap: 12px; }
.projet-type-btn {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 160px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.projet-type-btn:hover:not(.is-disabled) { border-color: var(--indigo); transform: translateY(-1px); }
.projet-type-btn.is-selected { border-color: var(--indigo); background: var(--ecru); }
.projet-type-btn.is-disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.65; }
.badge-soon {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--line-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

/* ---------- positionnement architecte (décision du 15/09/2026, page
   d'accueil depuis le 18/09/2026 : "après c'est trop tard") ---------- */
.architecte-section { padding: 8px 56px 0; }
.architecte-section .architecte-callout {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.architecte-callout {
  background: var(--ecru);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 28px 0;
}
.architecte-callout-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0 0 16px 0;
}

/* ---------- liste des emplacements proposés ---------- */
.emplacement-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.emplacement-card-title { font-weight: 600; margin: 0 0 6px 0; }
.emplacement-card-detail { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.emplacement-card.is-attention { border-color: var(--rose); }
.emplacement-card.is-selectable { cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.emplacement-card.is-selectable:hover { border-color: var(--indigo); }
.emplacement-card.is-selected { border-color: var(--indigo); border-width: 2px; background: var(--ecru); }

.terrain-callout {
  background: var(--white);
  border: 1.5px solid var(--indigo);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}

.terrain-warnings {
  margin-top: 20px;
  background: var(--white);
  border: 1.5px solid var(--rose);
  border-radius: 12px;
  padding: 18px 22px;
}
.terrain-warnings-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px 0; color: var(--indigo); }
.terrain-warnings ul { margin: 0; padding-left: 18px; }
.terrain-warnings li { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin-bottom: 6px; }

.terrain-sources { font-size: 12px; color: var(--text-on-dark-faint); margin: 18px 0 0 0; }

.terrain-actions {
  margin-top: 32px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.terrain-actions-question { font-size: 16px; font-weight: 600; margin: 0 0 16px 0; }
.terrain-dessin-instructions { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: -8px 0 16px 0; }
.terrain-actions-buttons { gap: 14px; flex-wrap: wrap; }
.terrain-actions-feedback {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.terrain-actions-feedback.is-note { color: var(--text-muted); }

/* ---------- ajout d'une parcelle voisine manquante (18/09/2026) ---------- */
.parcelle-ref-form { display: flex; gap: 8px; margin: 0 0 16px 0; flex-wrap: wrap; }
.parcelle-ref-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
}
.parcelle-selection-liste { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px 0; }
.terrain-chip-remove {
  margin-left: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--text-muted);
  padding: 0;
}
.terrain-chip-remove:hover { color: var(--rose); }

@media (max-width: 900px) {
  .hero-split { flex-direction: column !important; }
  .hero-form, .hero-panel { width: 100% !important; }
  .steps4, .results-section.row { grid-template-columns: 1fr !important; }
  .results-section.row { flex-direction: column !important; }
  .nav-links { display: none !important; }
  .nav { padding: 18px 24px; }
  .hero-form { padding: 48px 24px 40px 24px; }
  .steps-section, .footer { padding: 48px 24px; }
  .terrain-stepper-wrap, .terrain-section { padding-left: 24px; padding-right: 24px; }
}

/* ==========================================================================
   Écran "Personnalisation" (accordéon récapitulatif + finitions piscine)
   Ajouté le 18/09/2026 — noms de classes repris tels quels de la spec
   design ("Parcours piscine — spec pour Code"), alignés aux tokens déjà
   en place ci-dessus (--lime, --rose, --orange, --violet, --indigo, --ecru).
   ========================================================================== */

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

.accordion-layout { display: flex; gap: 28px; align-items: flex-start; }
.accordion-main { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.accordion-side { width: 300px; flex-shrink: 0; }

.accordion-card { transition: border-color 0.15s ease; }
.accordion-card.is-done { padding: 18px 26px; }
.accordion-card.is-active { border-color: var(--indigo); border-width: 1.5px; }

.accordion-card-done-row { display: flex; align-items: center; gap: 14px; }
.accordion-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.accordion-done-summary { flex: 1; font-size: 14.5px; color: var(--text-main); }
.accordion-done-summary strong { color: var(--indigo); }
.accordion-modifier-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.accordion-modifier-link:hover { color: var(--indigo); }

.accordion-active-header { display: flex; align-items: center; gap: 12px; margin: 0 0 6px 0; }
.accordion-badge-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.accordion-active-title { font-size: 22px; margin: 0; }
.accordion-active-subtitle { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0 0 22px 0; }

.field-label { font-size: 13px; font-weight: 600; color: var(--text-main); margin: 0 0 10px 0; display: block; }
.perso-groupe { margin: 0 0 24px 0; }

.pill-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pill-btn:hover:not(.disabled) { border-color: var(--indigo); }
.pill-btn.selected { border-color: var(--indigo); background: var(--ecru); }
.pill-btn.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  background: var(--line-soft);
  border-color: var(--line-soft);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

.swatch-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 3px;
  cursor: pointer;
  background: transparent;
  position: relative;
}
.swatch-btn-fill { display: block; width: 100%; height: 100%; border-radius: 999px; border: 1px solid rgba(11,15,59,0.12); }
.swatch-btn.selected { border-color: var(--indigo); }
.swatch-btn.disabled { cursor: not-allowed; opacity: 0.4; }
.swatch-btn.disabled .swatch-btn-fill { filter: grayscale(70%); }
.swatch-row { display: flex; gap: 12px; }

/* Infobulle (tooltip) : le texte vient toujours d'une vraie donnée (règle
   PLU réelle), jamais statique — voir personnalisation.js. */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: var(--white);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 5;
}
.tooltip-wrap:hover .tooltip, .tooltip-wrap:focus-within .tooltip { opacity: 1; }

.accordion-help-card { position: sticky; top: 24px; }
.accordion-help-title { font-size: 17px; margin: 0 0 10px 0; }
.accordion-help-text { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0 0 18px 0; }

@media (max-width: 900px) {
  .accordion-layout { flex-direction: column; }
  .accordion-side { width: 100%; }
}
