/* Bailobail — site vitrine
   Couleurs et polices : voir Bailobail-identite / CLAUDE.md §6 */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --brique: #C2410C;
  --brique-fonce: #9A3412;
  --abricot: #F2A65A;
  --creme: #FBEBDD;
  --fond: #FFFBF7;
  --encre: #14201C;
  --encre-2: #4A524F;
  --fonce: #2A1A12;
  --ligne: #F0DFD0;
  --vert: #15803D;
  --rouge: #B91C1C;

  --titre: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --texte: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 14px;
  --r-lg: 22px;
  --ombre: 0 1px 2px rgba(42, 26, 18, .06), 0 8px 24px rgba(42, 26, 18, .08);
  --ombre-forte: 0 2px 6px rgba(42, 26, 18, .08), 0 24px 60px rgba(42, 26, 18, .18);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 17px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brique); }
h1, h2, h3 { font-family: var(--titre); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 820px); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--abricot); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 12px;
  font: 600 1rem/1 var(--texte); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; border-radius: 10px; }
.btn-primary { background: var(--brique); color: #fff; box-shadow: 0 6px 18px rgba(194, 65, 12, .28); }
.btn-primary:hover { background: var(--brique-fonce); box-shadow: 0 10px 24px rgba(194, 65, 12, .32); }
.btn-ghost { color: var(--encre); background: #fff; border: 1.5px solid var(--ligne); }
.btn-ghost:hover { border-color: var(--abricot); }
.btn-light { background: #fff; color: var(--brique); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.btn-light:hover { background: var(--creme); }

/* ---------------------------------------------------------------- En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 247, .95);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--ligne); box-shadow: 0 6px 20px rgba(42, 26, 18, .05); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--encre-2); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--brique); }
.menu-toggle { display: none; }

/* ---------------------------------------------------------------- Héros */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(242, 166, 90, .35), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .82rem/1 var(--texte); letter-spacing: .08em; text-transform: uppercase; color: var(--brique);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--abricot); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brique); box-shadow: 0 0 0 4px rgba(194, 65, 12, .15); }
.accent { color: var(--brique); }
.lead { font-size: 1.15rem; color: var(--encre-2); max-width: 36em; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--encre-2); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--creme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Visuel : maisons de la marque + téléphone */
.hero-visual { position: relative; height: 600px; }
.house { position: absolute; bottom: 30px; clip-path: polygon(0 40%, 50% 0, 100% 40%, 100% 100%, 0 100%); }
.house-back { left: 4%; width: 52%; height: 64%; background: var(--brique); opacity: .92; }
.house-front { right: 0; width: 60%; height: 80%; background: var(--abricot); }

.phone {
  position: absolute; left: 50%; top: 10px; transform: translateX(-46%) rotate(-2deg);
  width: 300px; height: 590px; padding: 12px; border-radius: 46px;
  background: #16110E; box-shadow: var(--ombre-forte), inset 0 0 0 2px #3A2E27;
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #16110E; z-index: 2; }
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; background: var(--fond);
  padding: 50px 14px 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; position: relative;
}
.screen-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--creme); color: var(--brique); display: grid; place-items: center; font-weight: 600; font-size: 11px; }
.card { background: #fff; border: 1px solid var(--ligne); border-radius: 14px; padding: 10px 12px; }
.card.big { padding: 14px; }
.amount { font: 700 1.6rem/1.15 var(--titre); letter-spacing: -0.02em; margin: 2px 0; }
.muted { color: var(--encre-2); }
.small { font-size: .78em; }
.strong { font-weight: 600; }
.bar { height: 7px; border-radius: 4px; background: var(--creme); margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brique), var(--abricot)); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { font: 700 1.25rem/1.2 var(--titre); }
.stat.warn { color: var(--rouge); }
.rows { background: #fff; border: 1px solid var(--ligne); border-radius: 14px; padding: 2px 12px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ligne); }
.row:last-child { border-bottom: 0; }
.chip { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.chip.paid { background: #DCFCE7; color: #166534; }
.chip.late { background: #FEE2E2; color: #991B1B; }
.tabbar { margin-top: auto; margin-inline: -14px; display: flex; justify-content: space-around; padding: 14px 0 22px; background: #fff; border-top: 1px solid var(--ligne); }
.tabbar span { width: 20px; height: 20px; border-radius: 6px; background: var(--ligne); }
.tabbar span.on { background: var(--brique); }

.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 16px; font-size: 14px;
  box-shadow: var(--ombre-forte); border: 1px solid rgba(240, 223, 208, .7);
  animation: flotte 6s ease-in-out infinite;
}
.float-1 { left: -16%; top: 44%; }
.float-2 { right: -8%; bottom: 0; animation-delay: -3s; }
.ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ico-green { background: var(--vert); }
.ico-brick { background: var(--brique); }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- Bandeau */
.ribbon { background: var(--encre); color: #F4E9DF; }
.ribbon-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; padding: 22px 0; font: 600 .98rem/1.2 var(--titre); letter-spacing: .01em; }
.ribbon i { width: 6px; height: 6px; border-radius: 50%; background: var(--abricot); }

/* ---------------------------------------------------------------- Sections */
.section { padding: 112px 0; }
.section-cream { background: var(--creme); }
.section-dark { background: var(--fonce); color: #F7EDE4; }
.section-dark .lead, .section-dark p { color: #D9C8BB; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: #EBCDB4; }
.feature h3 { margin: 20px 0 10px; }
.feature p { color: var(--encre-2); font-size: .98rem; }
.f-ico { width: 52px; height: 52px; border-radius: 15px; background: var(--creme); display: grid; place-items: center; }
.f-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--brique); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Espace locataire */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-reverse { align-items: start; }
.split-reverse .split-copy { position: sticky; top: 120px; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 38px; color: var(--encre-2); }
.checks li strong { color: var(--encre); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--brique) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tenant-visual { display: flex; justify-content: center; }
.panel {
  width: min(100%, 440px); background: #fff; border-radius: 26px; padding: 26px;
  box-shadow: var(--ombre-forte); font-size: 14.5px; transform: rotate(1.2deg);
}
.panel-head { padding-bottom: 14px; border-bottom: 1px solid var(--ligne); }
.panel-head .strong { font: 700 1.25rem/1.2 var(--titre); }
.panel-label { margin: 18px 0 8px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brique); }
.doc { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.doc-ico { width: 40px; height: 46px; border-radius: 8px; background: var(--creme); color: var(--brique); font: 700 10px/1 var(--texte); display: grid; place-items: center; flex: none; }
.doc-ico-alt { background: #FDF2E6; color: #B45309; }
.notice { background: var(--fond); border: 1px solid var(--ligne); border-left: 4px solid var(--abricot); border-radius: 12px; padding: 12px 14px; }
.notice .muted { margin-top: 4px; }
.read { margin-top: 8px; font-size: .8em; font-weight: 600; color: var(--vert); }
.bubble-row { display: grid; gap: 8px; margin-top: 16px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .92em; }
.bubble.me { justify-self: end; background: var(--brique); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { background: var(--creme); border-bottom-left-radius: 4px; }

/* Rôles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role { padding: 28px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ligne); }
.role p { color: var(--encre-2); font-size: .97rem; margin-top: 14px; }
.role-tag { display: inline-block; font: 600 .95rem/1 var(--titre); padding: 9px 13px; border-radius: 999px; background: var(--creme); color: var(--brique-fonce); }

/* Québec */
.qc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--r-lg); overflow: hidden; }
.qc { background: var(--fonce); padding: 34px 28px; }
.qc h3 { color: #fff; margin-bottom: 12px; }
.qc h3::before { content: ""; display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--abricot); margin-bottom: 18px; }
.qc p { font-size: .97rem; }

/* Sécurité */
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sec-list li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 20px 22px; }
.sec-list p { color: var(--encre-2); font-size: .96rem; margin-top: 4px; }
.sec-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--encre); display: grid; place-items: center; flex: none; }
.sec-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--abricot); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--r-lg); padding: 30px; position: relative; }
.steps p { color: var(--encre-2); margin-top: 10px; font-size: .98rem; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brique); color: #fff; font: 700 1.1rem/1 var(--titre); margin-bottom: 20px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 0 24px; transition: border-color .2s ease; }
.faq details[open] { border-color: #EBCDB4; box-shadow: var(--ombre); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 32px 22px 0; position: relative;
  font: 600 1.08rem/1.35 var(--titre);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--brique); border-bottom: 2.5px solid var(--brique);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--encre-2); padding-bottom: 22px; }

/* Appel à l'action */
.cta { padding: 0 0 112px; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--brique) 0%, #D4581B 55%, var(--abricot) 140%);
  color: #fff; border-radius: 32px; padding: 80px 32px;
}
.cta-inner::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px;
  background: rgba(255, 255, 255, .08); clip-path: polygon(0 40%, 50% 0, 100% 40%, 100% 100%, 0 100%);
}
.cta-mark { margin: 0 auto 26px; width: 84px; height: auto; filter: brightness(0) invert(1); opacity: .95; }
.cta h2 { max-width: 18em; margin: 0 auto; }
.cta .lead { color: rgba(255, 255, 255, .9); margin: 18px auto 34px; }
.cta-note { margin-top: 18px; font-size: .92rem; color: rgba(255, 255, 255, .8); }

/* Pied de page */
.site-footer { background: var(--fonce); color: #D9C8BB; padding: 56px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner img { height: 30px; width: auto; }
.fine { font-size: .9rem; color: #A8968A; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .roles, .qc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 46px; height: 46px; border: 1.5px solid var(--ligne); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .menu-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--encre); transition: transform .2s ease; }
  .site-header.open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--fond); border-bottom: 1px solid var(--ligne); padding: 8px 20px 20px;
  }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--ligne); font-size: 1.05rem; }

  .hero { padding: 40px 0 64px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { height: 560px; max-width: 520px; margin-inline: auto; width: 100%; }
  .section { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .ribbon i { display: none; }
  .ribbon-inner { gap: 10px 20px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 520px; }
  .phone { width: 260px; height: 520px; }
  .float { font-size: 12.5px; padding: 10px 12px; }
  .float-1 { left: 0; top: 46%; }
  .float-2 { right: 0; bottom: 0; }
  .features, .roles, .qc-grid { grid-template-columns: 1fr; }
  .feature, .role, .steps li { padding: 24px; }
  .panel { transform: none; padding: 20px; }
  .cta-inner { padding: 56px 22px; border-radius: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
