﻿:root {
  color-scheme: light;
  --primary: #af9177;
  --secondary: #fcf9f6;
  --bg: #fcf9f6;
  --surface: #ffffff;
  --stroke: rgba(148, 163, 184, 0.25);
  --text: #111827;
  --muted: #6b7280;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  /* Fond global plein ecran (plus de carte au centre) */
  background: radial-gradient(circle at 0 140px, #f0e1cc 0, #fcf9f6 45%, #fbf5ea 80%);
  color: var(--text);
min-height: 100vh;
  padding: 0 24px 0;
  position: relative;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(175, 145, 119, 0.18), rgba(252, 249, 246, 0.16));
  filter: blur(110px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  display: none;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* Contenu directement pose sur le fond, sans grosse carte */
  background: transparent;
  border-radius: 0;
  padding: 8px 0 72px;
  box-shadow: none;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: 20px;
}

.topbar {
  position: relative;
  max-width: 1120px;
  /* Appbar presque collee au hero */
  margin: 12px auto -4px;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: transparent;
}

.brand-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #af9177;
  box-shadow: 0 18px 45px rgba(96, 72, 52, 0.35);
  color: #ffffff;
}

.brand-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fdf7ef;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-card__icon img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.brand-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-card__title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}

.brand-card__subtitle {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.nav a {
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav a.active {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
}

.nav .pill {
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(175, 145, 119, 0.25);
}

.nav a[data-notif-count]:not([data-notif-count="0"])::after {
  content: attr(data-notif-count);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f97373;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hero {
  padding: 10px 0 48px;    /* encore moins d'espace au-dessus */
  max-width: 1080px;
  margin: 0 auto 40px;
  text-align: center;
}

.hero__content {
  max-width: 880px;
  margin: 0 auto;
}

/* Variante pour le hero "Etats des lieux" : layout en deux colonnes */
.hero--etats .hero__content--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero--etats .hero__text {
  text-align: left;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__visual-image {
  max-width: 360px;
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 26px 60px rgba(12, 10, 9, 0.35);
}

@media (max-width: 768px) {
  .hero--etats .hero__content--split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero--etats .hero__text {
    text-align: left;
  }

  .hero__visual-image {
    max-width: 280px;
  }
}

.hero__bot,
.hero__bot-circle,
.hero__bot-inner,
.hero::after {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 28px rgba(175, 145, 119, 0.35);
}

.btn.ghost {
  border-color: var(--stroke);
  color: var(--text);
  background: #ffffff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.btn-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
}

/* -------------------------------------------------------------------------- */
  /* Chatbot UI                                                                 */
  /* -------------------------------------------------------------------------- */
  
  #chatbot {
    display: none !important;
  }
  
  .chatui-shell {
  max-width: 1120px;
  margin: 20px auto 0;
  border-radius: 24px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
}

  .chatui-messages {
  padding: 16px 16px 8px;
  overflow-y: auto;
  flex: 1;
  background: #fcf9f6;
}

.chatui-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  max-width: 80%;
}

.chatui-message--assistant {
  margin-right: auto;
}

  .chatui-message--user {
    margin-left: auto;
    flex-direction: row-reverse;
  }

.chatui-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 16px;
}

.chatui-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.chatui-message--user .chatui-bubble {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
}

.chatui-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.chatui-suggestion {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}

.chatui-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
}

.chatui-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.chatui-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(175, 145, 119, 0.4);
}

.chatui-send {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(175, 145, 119, 0.45);
}

.chatui-send:disabled {
  opacity: 0.6;
  box-shadow: none;
  cursor: default;
}

.chip {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat {
  padding: 14px;
  text-align: left;
}

.stat__value {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

.stat__label {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.hero__panel {
  padding: 20px;
  align-self: stretch;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.badge,
.tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 10px;
}

.panel__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.timeline__time {
  font-weight: 700;
  color: var(--muted);
}

.timeline__content p {
  margin: 0;
  font-weight: 700;
}

.timeline__content span {
  color: var(--muted);
  font-size: 14px;
}

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

.pill {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 600;
}

.pill--accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.28);
}

.section {
  /* Même largeur et alignement horizontal que les blocs hero */
  max-width: 1120px;
  margin: 24px auto 60px;
  padding: 0 40px;
}
@media (max-width: 540px) {
  .section {
    margin: 24px auto 36px;
    padding: 0 16px;
  }
}

.section__header {
  max-width: 700px;
  margin-bottom: 24px;
  text-align: left;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 6px;
  font-size: 12px;
}

.section__header h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 500;
  color: #241910;
}

.section__lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.card {
  position: relative;
  padding: 26px 26px 22px;
  border-radius: 26px;
  background: #fdf7ef;
  border: 1px solid rgba(209, 180, 143, 0.35);
  box-shadow: 0 22px 45px rgba(148, 112, 79, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(148, 112, 79, 0.26);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 26px;
  margin-bottom: 10px;
}

.card h3 {
  margin: 4px 0 8px;
  font-size: 22px;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 500;
  color: #241910;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card__badge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.card__badge span {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3e4d1;
  color: #7a6146;
  font-size: 13px;
  font-weight: 500;
}

.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.experience__panel {
  padding: 16px;
}

.experience__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.experience__body {
  display: grid;
  gap: 12px;
}

.map-placeholder {
  border: 1px dashed var(--stroke);
  border-radius: 16px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.glow {
  position: absolute;
  filter: blur(60px);
  opacity: 0.6;
}

.glow--a {
  width: 160px;
  height: 160px;
  background: var(--primary);
  top: -30px;
  left: 20px;
}

.glow--b {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  bottom: -40px;
  right: 10px;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.step {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #ffffff;
}

.step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-weight: 800;
}

.step h3 {
  margin: 12px 0 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.grid--security {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cta {
  padding: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta__highlights {
  display: grid;
  gap: 10px;
}

.footer {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
  padding-bottom: 30px;
  position: relative;
  z-index: 1;
}

.footer__links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

/* ----- Gestion des documents ------------------------------------------------ */

.docs {
  display: grid;
  gap: 18px;
}

.docs-layout {
  padding: 20px;
}

.docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.docs-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-header__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(175, 145, 119, 0.2), rgba(252, 249, 246, 0.2));
  color: #bfdbfe;
}

.docs-header__title h3 {
  margin: 0;
  font-size: 20px;
}

.docs-header__title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.btn-small {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 999px;
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #e5f9ed;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
}

.btn-success:hover {
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4);
}

.docs-form {
  display: grid;
  gap: 18px;
}

.docs-form__grid {
  display: grid;
  gap: 16px;
}

.docs-card {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  padding: 18px;
}

.docs-card--soft-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), #ffffff);
}

.docs-card--soft-pink {
  background: linear-gradient(135deg, rgba(175, 145, 119, 0.08), #ffffff);
}

.docs-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.docs-card__title span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(175, 145, 119, 0.12);
}

.docs-card__title h4 {
  margin: 0;
  font-size: 16px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.field input {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  padding: 8px 10px;
  color: var(--text);
  font-family: inherit;
}

.field input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.docs-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

@media (max-width: 540px) {
  .docs-form__actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .docs-form__actions .btn {
    flex: 0 0 calc(50% - 8px);
    min-width: 0;
    padding: 10px 10px;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .dashboard-panel[data-dashboard-panel="dossier"] {
    overflow-x: hidden;
  }

  .dashboard-panel[data-dashboard-panel="dossier"] .docs-layout {
    margin: 0;
    padding: 16px 12px;
    box-sizing: border-box;
  }

  .dashboard-panel[data-dashboard-panel="dossier"] .docs-card,
  .dashboard-panel[data-dashboard-panel="dossier"] .docs-summary-success,
  .dashboard-panel[data-dashboard-panel="dossier"] .docs-summary-grid,
  .dashboard-panel[data-dashboard-panel="dossier"] .docs-list-item {
    max-width: 100%;
    box-sizing: border-box;
  }
}

.docs-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.docs-summary-card {
  border-radius: 18px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(175, 145, 119, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.docs-summary-card__meta {
  font-size: 13px;
  color: var(--muted);
}

.docs-summary-card__id {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  font-size: 12px;
}

.docs-upload-groups {
  display: grid;
  gap: 14px;
}

.docs-upload-group {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  padding: 14px 16px;
}

.docs-upload-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.docs-upload-group__title {
  margin: 0;
  font-weight: 600;
}

.docs-upload-group__meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.docs-upload-list {
  display: grid;
  gap: 8px;
}

.docs-upload-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.docs-upload-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed rgba(148, 163, 184, 0.8);
    font-size: 13px;
    cursor: pointer;
  }

.docs-upload-item:hover {
    background: #f5eee6;
  }
  
.docs-upload-item__meta {
    color: var(--muted);
  }

.docs-upload-item__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--text);
  font-weight: 500;
  font-size: 11px;
}

.docs-upload-item__status[data-state="idle"] {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.docs-upload-item__status[data-state="ready"],
.docs-upload-item__status[data-state="pending"] {
  background: rgba(175, 145, 119, 0.16);
  color: var(--text);
}

.docs-upload-item__status[data-state="uploading"] {
  background: rgba(14, 165, 233, 0.18);
  color: #bae6fd;
}

.docs-upload-item__status[data-state="missing"],
.docs-upload-item__status[data-state="error"] {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
  }

.docs-upload-status-icon {
    font-size: 12px;
  }
  
.docs-upload-item__actions {
    display: flex;
    gap: 8px;
  }

.docs-upload-delete {
    background: transparent;
    border: none;
    color: #fecaca;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

.docs-upload-delete:hover {
    color: #f87171;
  }

.docs-upload-name {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5e7eb;
  }

.docs-upload-name--link {
    cursor: pointer;
    color: var(--primary);
    text-decoration: underline;
  }

.docs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.docs-stat-card {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  background: #ffffff;
}

.docs-stat-card--blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.96));
}

.docs-stat-card--green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.96));
}

.docs-stat-card--purple {
  background: linear-gradient(135deg, rgba(175, 145, 119, 0.12), rgba(15, 23, 42, 0.96));
}

.docs-stat-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--muted);
}

.docs-stat-card strong {
  font-size: 22px;
}

.docs-list {
  display: grid;
  gap: 12px;
}

.docs-list-item {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  background: #ffffff;
}

.docs-list-item__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.docs-list-item__meta {
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}

.docs-list-item__status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5f3e9;
  color: #111827;
  font-size: 11px;
  font-weight: 500;
}

.docs-summary-success {
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: #ecfdf5;
  margin-bottom: 18px;
}

.docs-summary-success h3 {
  margin: 0 0 8px;
}

.docs-summary-success p {
  margin: 0;
  color: var(--muted);
}

.docs-summary-grid {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  margin-top: 14px;
  font-size: 13px;
}

.docs-summary-grid-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.docs-summary-grid-row strong {
  font-weight: 600;
}

/* Mes biens - liste et cartes */

.properties-layout {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.properties-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.properties-header h3 {
  margin: 0 0 4px;
}

.properties-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.properties-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-card {
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.property-card__banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-card__emoji {
  font-size: 40px;
}

.property-card__body {
  padding: 18px 20px 16px;
}

.property-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.property-card__title {
  margin: 0 0 4px;
}

.property-card__address {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.property-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(175, 145, 119, 0.18);
  color: #3730a3;
}

.property-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.property-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fcf9f6;
  color: #4b5563;
  font-size: 12px;
}

.property-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.property-card__delete {
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 720px) {
  .properties-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Floating chatbot launcher + panel */
  .chatbot-floating-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    cursor: pointer;
    z-index: 40;
    border: none;
  }

  .chatbot-floating-button span {
    font-size: 30px;
    color: #f9fafb;
  }

  .chatbot-floating-panel {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: min(360px, 90vw);
    max-height: 480px;
    border-radius: 24px;
    background: #f9fafb;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 39;
  }

  .chatbot-floating-panel.is-open {
    display: flex;
  }

  .chatbot-floating-header {
    display: none;
  }

  .chatbot-floating-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
  }

  .chatbot-floating-close {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    border: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: #f9fafb;
    cursor: pointer;
    font-size: 14px;
  }

  .chatbot-floating-body {
    padding: 12px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .chatbot-floating-body .chatui-shell {
    margin: 0;
    max-width: none;
    box-shadow: none;
  }

  /* Desactivation complete du chatbot sur la landing web */
  .chatbot-floating-button,
  .chatbot-floating-panel {
    display: none !important;
  }

  .nav a[href="#chatbot"][data-scroll] {
    display: none !important;
  }
}

/* Etats des lieux - liste et cartes */

.inspections-layout {
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inspections-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.inspections-header h3 {
  margin: 0 0 4px;
}

.inspections-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.inspections-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspection-card {
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  padding: 18px 20px 16px;
}

.inspection-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.inspection-card__title {
  margin: 0 0 4px;
}

.inspection-card__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.inspection-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(129, 140, 248, 0.16);
  color: #111827;
}

.inspection-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.inspection-card__meters {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9fafb;
  font-size: 13px;
}

.inspection-card__meters p {
  margin: 2px 0;
}

.inspection-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inspection-card__delete {
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 720px) {
  .inspections-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================== Cles remises (dialog etat des lieux) ================== */
.inspection-keys-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.inspection-keys-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.inspection-keys-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.inspection-keys-picker {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.inspection-keys-picker .key-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #f9fafb;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.inspection-keys-picker .key-picker-item:hover {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.12), rgba(244, 114, 182, 0.12));
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.25);
  transform: translateY(-1px);
}

.key-type-icon {
  font-size: 18px;
}

.inspection-keys-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inspection-keys-empty {
  font-size: 13px;
  color: var(--muted);
}

.key-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(129, 140, 248, 0.35);
}

.key-chip-icon {
  font-size: 16px;
}

.inspection-key-editor {
  padding: 12px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px dashed var(--stroke);
}

.inspection-key-editor-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}

.keys-photos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.keys-photo-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
}

.keys-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.keys-photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.12);
  font-size: 12px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.keys-photo-chip-name {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.keys-photo-chip-delete {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #b91c1c;
}

/* ================= Modal : fond fixe, contenu scrollable ================= */

body.modal-open {
  overflow: hidden; /* bloque le scroll de la page derriere */
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start; /* en haut + marge */
  justify-content: center;
  z-index: 40;
  padding: 80px 16px 24px; /* espace sous la barre LocApp */
  overflow: hidden; /* le fond NE scrolle pas */
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal__dialog {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: calc(100vh - 120px); /* dialog un peu plus petit que l'ecran */
  overflow-y: auto; /* SEUL le contenu du dialog scrolle */
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  padding: 22px 24px 20px;
  z-index: 1;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal__header h3 {
  margin: 0;
}

.modal__close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 960px) {
  body {
    padding: 0 16px 48px;
  }

  .topbar {
    position: relative;
  max-width: 1120px;
  margin: 16px auto 4px;   /* tres peu d'espace sous l'appbar */
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  background: transparent;
  }

  .hero,
  .section--split,
  .cta {
    grid-template-columns: 1fr;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ========================================================================== */
/* Modal simple : dans le flux de la page                                    */
/* ========================================================================== */

body.modal-open {
  overflow: auto; /* ne bloque plus le scroll de la page */
}

.modal {
  position: static;
  inset: auto;
  display: none;
  align-items: stretch;
  justify-content: center;
  z-index: auto;
  padding: 0;
  background: transparent; /* plus de voile gris derriere */
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  display: none;
}

.modal__dialog {
  position: relative;
  max-width: 640px;
  width: 100%;
  max-height: none;
  overflow: visible;           /* pas de scroll interne force */
  margin: 40px auto;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  padding: 22px 24px 20px;
}

/* ========================================================================== */
/* Footer                                                                     */
/* ========================================================================== */

.site-footer {
  margin-top: 40px;
  background: #211712;
  color: rgba(243, 244, 246, 0.8);
  padding: 18px 32px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.site-footer__brand {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 20px;
  color: #fdf7ef;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex: 1;
}

.site-footer__nav a {
  color: rgba(209, 213, 219, 0.78);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: #f9fafb;
}

.site-footer__copy {
  white-space: nowrap;
  color: rgba(209, 213, 219, 0.85);
}

@media (max-width: 780px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

.site-footer__copy {
  white-space: normal;
}
}

/* -------------------------------------------------------------------------- */
/* Carte "Lien de candidature"                                               */
/* -------------------------------------------------------------------------- */

.application-link-card {
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 28px 24px 24px;
  border-radius: 28px;
  background: #fdf7ef;
  border: 1px solid rgba(209, 180, 143, 0.35);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.application-link-card__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.application-link-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #16a34a;
  color: #f9fafb;
  font-weight: 700;
  font-size: 18px;
}

.application-link-card__header h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
}

.application-link-card__header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.application-link-card__body h4 {
  margin: 12px 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.application-link-card__qr-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.application-link-card__qr {
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.7);
  display: grid;
  place-items: center;
}

.application-link-card__qr-img {
  width: 120px;
  height: 120px;
  border-radius: 18px;
}

.application-link-card__qr-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  border: 2px dashed rgba(156, 163, 175, 0.7);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: rgba(107, 114, 128, 0.9);
}

.application-link-card__steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 6px;
}

.application-link-card__share {
  margin-top: 8px;
}

.application-link-card__url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.application-link-card__url-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 8px 12px;
  font-size: 13px;
  background: #ffffff;
}

.application-link-card__copy-btn {
  padding-inline: 12px;
}

.application-link-card__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.application-link-card__share-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.application-link-card__share-btn {
  padding-inline: 18px;
}

.application-link-card__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 768px) {
  .application-link-card__qr-row {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }
}
@media (max-width: 540px) {

  .application-link-card {
    max-width: 100%;
    padding: 22px 16px 18px;
  }
}   /* <= cette accolade ferme le media-query mobile */

/* ========================================================================== */
/* Mobile (petits ecrans)                                                    */
/* ========================================================================== */

@media (max-width: 540px) {
  body {
    padding: 0 12px 24px;
  }

  .hero {
    padding: 16px 0 32px;
    margin: 0 auto 24px;
  }

  .hero__title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .section {
    margin: 40px 0;
  }

  .docs-layout {
    padding: 16px 12px;
  }

  .docs-list-item {
    padding: 12px 12px;
  }

  .dashboard-shell {
    padding: 16px 12px;
  }

  .application-link-card {
    max-width: 100%;
    padding: 22px 16px 18px;
  }
  .hero--etats {
  max-width: 1120px;
  margin: 0 auto 48px;
  text-align: left;
}

.hero--etats .hero__content--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero--etats .hero__text {
  text-align: left;
}

.hero--etats .hero__visual {
  justify-content: flex-end;
}

.hero__visual-image {
  max-width: 380px;
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 26px 60px rgba(12, 10, 9, 0.35);
}

/* boutons + ticks */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
  color: #6b6660;
}

.hero-benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-benefit-icon {
  color: #16a34a;
}
/* Hero Etats des lieux : layout comme la maquette (desktop) */
.hero--etats {
  max-width: 1120px;
  margin: 0 auto 48px;
  text-align: left;
}

.hero--etats .hero__content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero--etats .hero__text {
  flex: 1.2;
}

.hero--etats .hero__visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero--etats .hero__visual-image {
  max-width: 380px;
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 26px 60px rgba(12, 10, 9, 0.35);
}

/* boutons + ticks sous le texte */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
  color: #6b6660;
}

.hero-benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-benefit-icon {
  color: #16a34a;
}

@media (max-width: 768px) {
  .hero--etats .hero__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero--etats .hero__visual {
    justify-content: center;
  }

  .hero--etats .hero__visual-image {
    max-width: 280px;
  }
}


}
/* ===== Hero Etats des Lieux - version landing pro ===== */
.hero.hero--etats {
  max-width: 1200px;
  margin: 24px auto 32px;
  text-align: left;
}

.hero.hero--etats .hero__content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;              /* padding gauche/droite pour ne pas coller les bords */
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  column-gap: 56px;
  align-items: flex-start;
}

.hero.hero--etats .hero__text {
  max-width: 1120px;
}

.hero.hero--etats .hero__title {
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1.08;
}

.hero.hero--etats .hero__visual {
  display: flex;
  justify-content: flex-end;
}

/* Carte "telephone" propre a droite */
.hero.hero--etats .hero__visual-image {
  display: block;
  background: #ffffff;
  padding: 12px 12px 18px;
  border-radius: 32px;
  box-shadow: 0 26px 60px rgba(12, 10, 9, 0.35);
}

/* Boutons + ticks */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
  color: #6b6660;
}

.hero-benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-benefit-icon {
  color: #16a34a;
}

@media (max-width: 900px) {
  .hero.hero--etats .hero__content {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 0 20px;
  }

  .hero.hero--etats .hero__visual {
    justify-content: center;
  }

  .hero.hero--etats .hero__visual-image {
    max-width: 280px;
  }
}
/* Hero Etats des Lieux - meme disposition que la maquette */
.hero.hero--etats {
    max-width: 1120px;
    margin: 24px auto 40px;
    text-align: left;
  }

.hero.hero--etats .hero__content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  column-gap: 56px;
  align-items: flex-start;
}

.hero.hero--etats .hero__text {
  max-width: 1120px;
}

.hero.hero--etats .hero__title {
  font-size: clamp(42px, 4.6vw, 56px);
  line-height: 1.08;
}

/* carte telephone a droite, plus petite pour eviter le flou */
.hero.hero--etats .hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero.hero--etats .hero__visual-image {
  display: block;
  background: #ffffff;
  padding: 12px 12px 18px;
  border-radius: 32px;
  box-shadow: 0 26px 60px rgba(12, 10, 9, 0.35);
  max-width: 260px;      /* cle pour reduire le flou */
  width: 100%;
}

/* boutons + ticks sous le texte */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 14px;
  color: #6b6660;
}

.hero-benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-benefit-icon {
  color: #16a34a;
}

@media (max-width: 900px) {
  .hero.hero--etats .hero__content {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 0 20px;
  }

  .hero.hero--etats .hero__visual {
    justify-content: center;
  }

  .hero.hero--etats .hero__visual-image {
    max-width: 260px;
  }
}


.hero.hero--locataires {
  /* Bloc "Gestion immobilière" calé sous le premier hero, aligné à gauche */
  max-width: 1120px;
  margin: 16px auto 24px;
  padding-top: 0;
  text-align: left;
}

.hero.hero--locataires .hero__content {
  /* Même largeur visuelle que le texte du hero du haut */
  max-width: 640px;
  margin: 0;
  padding: 0 40px;
}

.hero.hero--locataires .hero__title {
  /* Largeur suffisante pour 2 lignes seulement */
  max-width: 760px;
}

/* Pour le hero \"Gestion immobilière\" :
   on fusionne visuellement \"avec élégance\" + \"et simplicité\" sur une seule ligne
   et on empêche la coupure à l'intérieur de chaque ligne */
.hero.hero--locataires .hero__line {
  white-space: nowrap;
}

.hero.hero--locataires .hero__line--accent::after {
  content: " et simplicité";
}

.hero.hero--locataires .hero__line--soft {
  display: none;
}

@media (max-width: 540px) {
  .hero.hero--locataires {
    margin: 24px auto 20px;
    padding-top: 0;
  }

  .hero.hero--locataires .hero__content {
    max-width: 100%;
    padding: 0 16px;
  }

  .hero.hero--locataires .hero__title {
    font-size: 22px;
    line-height: 1.3;
  }

  .hero.hero--locataires .hero__line {
    white-space: normal;
  }

  .hero.hero--locataires .hero__line--accent::after {
    content: "";
  }

  .hero.hero--locataires .hero__line--soft {
    display: inline;
  }
}

/* Harmonise les titres/paragraphes des sections avec le hero du haut */
.section__header h2 {
  margin: 0 0 10px;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 34px);
  color: #241910;
}

.section__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #7c7a72;
}

/* =============================
   CTA Téléchargement applications
   ============================= */
.cta-download {
  padding: 64px 24px 56px;
  max-width: 1120px;
  margin: 52px auto 72px;
  background: #fdf7ef;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cta-download__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.cta-download__title {
  margin: 0 0 16px;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 42px);
  color: #241910;
}

.cta-download__subtitle {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.8;
  color: #6f6a63;
}

.cta-download__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cta-download__stores a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  min-width: 210px;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.cta-download__stores a:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
  background: #000000;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  min-width: 210px;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
  background: #000000;
}

.store-button__icon {
  font-size: 26px;
}

.store-button__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-button__overline {
  font-size: 11px;
  opacity: 0.8;
}

.store-button__label {
  font-size: 16px;
  font-weight: 600;
}

.cta-download__compat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: #6b6660;
}

.cta-download__compat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
}

@media (max-width: 640px) {
  .cta-download {
    padding: 48px 16px 40px;
  }

  .cta-download__title {
    font-size: 28px;
  }

  .store-button {
    width: 100%;
  }
}

/* Bloc Pourquoi choisir LocApp */
.why-locapp {
  max-width: 540px;
  margin: 32px auto 48px;
  padding: 32px 32px 36px;
  border-radius: 36px;
  background: linear-gradient(135deg, #af9177, #8a6b4a);
  color: #fdf7ef;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.why-locapp__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.why-locapp__title {
  margin: 0 0 6px;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 600;
  font-size: 24px;
}

.why-locapp__subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(249, 250, 251, 0.85);
}

.why-locapp__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-locapp__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.why-locapp__icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.why-locapp__item-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.why-locapp__item-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(249, 250, 251, 0.9);
}

@media (max-width: 640px) {
  .why-locapp {
    max-width: 100%;
    margin: 24px auto 32px;
    border-radius: 28px;
    padding: 24px 20px 28px;
  }
}
/* Bloc Pourquoi choisir LocApp */
.why-locapp {
  max-width: 100%;
  margin: 32px 0 40px;          /* plus de marge latérale, fond sur tout le bloc */
  padding: 32px 40px 36px;
  border-radius: 0;              /* PAS de coins arrondis */
  background: #8a6b4a;           /* marron plein sur tout le bloc */
  color: #fdf7ef;
  box-shadow: none;
  text-align: left;              /* force l’alignement à gauche */
}

.why-locapp__inner {
  max-width: 900px;              /* contenu centré mais texte à gauche */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Harmonisation mobile globale */
@media (max-width: 480px) {
  body {
    padding: 0 12px 0;
  }

  main {
    padding-bottom: 56px;
  }

  .topbar {
    margin: 8px auto 0;
    padding: 0 4px;
  }

  .brand-card {
    padding: 8px 10px;
  }

  .hero {
    padding: 16px 0 28px;
    margin: 0 auto 24px;
  }

  .hero__content {
    padding: 0 8px;
  }

  .hero__title {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero__lede {
    font-size: 14px;
  }

  .hero__visual-image {
    max-width: 240px;
  }

  .why-locapp {
    margin: 20px -4px 28px;
    padding: 20px 16px 24px;
    border-radius: 0;
  }

  .cta-download {
    margin: 24px -4px 40px;
    padding: 32px 16px 32px;
  }

  .cta-download__stores {
    flex-direction: column;
  }

  .section {
    margin: 24px auto 40px;
    padding: 0 16px;
  }

  .hero.hero--etats .hero__title {
    font-size: 24px;
    line-height: 1.25;
  }

  .section__header h2 {
    font-size: 22px;
  }

  .section__lede {
    font-size: 14px;
  }

  .dashboard-shell {
    padding: 16px 12px;
  }

  .grid--features {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px 16px;
  }

  .docs-layout {
    padding: 16px 10px;
  }

  .docs-form__grid {
    grid-template-columns: 1fr;
  }

  .field-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-shell {
    padding: 16px 0;
  }

  .dashboard-shell .docs {
    width: 100%;
  }

  .dashboard-shell .docs-layout {
    margin: 0;
    width: 100%;
  }
}

/* Spécifique mobile : onglet "Dossier de Location" */
@media (max-width: 540px) {
  .dashboard-panel[data-dashboard-panel="dossier"] {
    overflow-x: hidden;
  }

  .dashboard-panel[data-dashboard-panel="dossier"] .docs-layout {
    margin: 0;
    padding: 16px 12px 20px;
    box-sizing: border-box;
    width: 100%;
  }

  .dashboard-panel[data-dashboard-panel="dossier"] .docs {
    width: 100%;
  }

  .dashboard-panel[data-dashboard-panel="dossier"] .docs-form__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
  }

  .dashboard-panel[data-dashboard-panel="dossier"] .docs-form__actions .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}
.docs-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

/* MOBILE – boutons sur une ligne à l'intérieur de la carte */
@media (max-width: 540px) {
  .docs-form__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
  }

  .docs-form__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }
}
@media (max-width: 540px) {
  .dashboard-panel[data-dashboard-panel="dossier"] {
    overflow-x: hidden;
  }

  .dashboard-panel[data-dashboard-panel="dossier"] .docs-layout {
    margin: 0 auto;
    padding: 16px 16px 20px;
    max-width: 420px;
    box-sizing: border-box;
  }
}

