/* ============================================================
   pl-ux.css — correctifs d'ergonomie (bureau + mobile)
   Chargé après les styles de index.html : il les ajuste sans les réécrire.
   ============================================================ */

/* 1. Bandeau géographique retiré (demande de Patrick, 21 sept. 2026) */
.geo-bar, .geo-bar.show { display: none !important; }
.nav.with-geo { top: 0 !important; }

/* 2. Aucun débordement horizontal */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }

/* 3. Grilles : une colonne ne doit jamais dépasser l'écran
      (le formulaire de contact débordait de ~45 px sur mobile) */
.ct-g, .fnl-row, .fr, .search-grid, .ftr-g { min-width: 0; }
.ct-g > *, .fnl-row > *, .fr > *, .search-grid > *, .ftr-g > * { min-width: 0; }
.ct-mi, .ct-mi > *, .ct-vl, .ct-lb { min-width: 0; overflow-wrap: anywhere; }

/* 4. Focus clavier visible (accessibilité) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold, #c9a45c);
  outline-offset: 2px;
}

/* 5. Bureau : la bulle de clavardage à droite, empilée avec WhatsApp,
      pour ne jamais couvrir le bandeau des témoins (cookies) */
@media (min-width: 769px) {
  html body .bot-tg { left: auto !important; right: 32px !important; bottom: 188px !important; width: 60px !important; height: 60px !important; }
  html body .bot-pn { left: auto !important; right: 32px !important; bottom: 264px !important; max-height: min(560px, calc(100vh - 300px)) !important; }
  .bot-msgs { max-height: none !important; }
  html body .consent { left: 32px !important; right: auto !important; bottom: 32px !important; margin: 0 !important; max-width: 560px !important; }
  /* Les boutons ne sautent plus quand le bandeau des témoins s'affiche */
  html body.pl-consent-visible .sticky-cta { bottom: 32px !important; }
  html body.pl-consent-visible .wa-btn { bottom: 108px !important; }
  html body.pl-consent-visible .bot-tg { bottom: 188px !important; }
}

/* 6. Mobile : une barre d'actions unique en bas de l'écran
      [ Opinion de valeur ][ WhatsApp ][ Clavardage ] */
@media (max-width: 768px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  html body .sticky-cta {
    left: 12px !important; right: 132px !important; top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important; height: 54px !important; min-height: 54px !important;
    padding: 0 14px !important; justify-content: center !important;
    font-size: 11px !important; letter-spacing: .14em !important; gap: 10px !important;
    border-radius: 6px !important; transform: none !important;
  }
  .sticky-cta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body .wa-btn {
    right: 72px !important; left: auto !important; top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    width: 54px !important; height: 54px !important; border-radius: 6px !important;
  }
  .wa-btn .icon { width: 26px !important; height: 26px !important; }
  html body .bot-tg {
    right: 12px !important; left: auto !important; top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    width: 54px !important; height: 54px !important; border-radius: 6px !important;
  }
  .bot-tg .icon { width: 24px !important; height: 24px !important; }
  html body.pl-consent-visible .sticky-cta,
  html body.pl-consent-visible .wa-btn,
  html body.pl-consent-visible .bot-tg { bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important; }

  /* Bandeau des témoins : au-dessus de la barre, jamais dessous */
  html body .consent {
    left: 8px !important; right: 8px !important; margin: 0 !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 14px !important;
  }
  .consent p { min-width: 0 !important; font-size: 13px !important; }
  .consent button { min-height: 44px; }

  /* Clavardage : panneau pleine largeur, champ à 16 px (évite le zoom iOS) */
  html body .bot-pn {
    left: 8px !important; right: 8px !important; width: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 170px) !important;
  }
  .bot-msgs { max-height: none !important; padding: 16px !important; }
  .bot-in input { font-size: 16px !important; min-height: 44px; }
  .bot-qb { min-height: 40px; }

  /* Formulaires : 16 px partout (iOS ne zoome plus), cibles de 44 px */
  input, select, textarea { font-size: 16px !important; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select { min-height: 44px; }
  .form { padding: 22px !important; }

  /* Héros : lettres moins espacées, le texte ne s'étire plus sur 6 lignes */
  .hero { padding: 112px 0 72px !important; }
  .hero-eb { font-size: 10px !important; letter-spacing: .16em !important; gap: 12px !important; margin-bottom: 28px !important; line-height: 1.7; }
  .hero-eb::before { width: 28px !important; flex-shrink: 0; }
  .hero-tagline { font-size: 13px !important; letter-spacing: .18em !important; line-height: 1.6; }
  .hero-loc { display: flex !important; flex-wrap: wrap; gap: 10px 14px !important; padding: 14px 16px !important; }
  .hero-loc span { letter-spacing: .08em !important; line-height: 1.5; }
  .pl-geo-btn { letter-spacing: .1em !important; min-height: 44px; }

  /* Sections : moins de vide entre les blocs */
  .about, .vision, .fnl, .tools, .testi, .ct, .search-bar, .faq, .commit, .intl,
  .philosophy, .props-coming, .news, .calendly { padding: 72px 0 !important; }
  .container, .container-narrow { padding: 0 20px !important; }
  .h2-display { font-size: clamp(32px, 9vw, 42px) !important; line-height: 1.12; }
  .eyebrow { letter-spacing: .24em !important; }

  /* Menu : liens plus grands et plus faciles à toucher */
  .nav.menu-open .nav-link { padding: 6px 12px; }
}

@media (max-width: 380px) {
  html body .sticky-cta { font-size: 10px !important; letter-spacing: .08em !important; }
  .sticky-cta .icon { display: none; }
}

/* 7. Moins d'animations pour qui le demande */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 8. Refonte accueil (25 sept. 2026) : thème Classic lisible, chiffres aérés,
      module « Je vends / Je recherche », emblèmes, paliers, international */

/* 8a. Thème Classic (blanc/rouge) : signature en noir, textes lisibles sur le héros */
html[data-theme="proprio"] body .logo-n { color: #16181d !important; }
html[data-theme="proprio"] body .logo-s { color: #16181d !important; opacity: .7; }
html[data-theme="proprio"] body .hero-eb { color: rgba(255,255,255,.85) !important; }
html[data-theme="proprio"] body .hero-eb::before { background: rgba(255,255,255,.7) !important; }
html[data-theme="proprio"] body .hero-tagline { color: #fff !important; }
html[data-theme="proprio"] body .hero-loc { color: #fff !important; border-color: rgba(255,255,255,.55) !important; background: rgba(0,0,0,.35) !important; }
html[data-theme="proprio"] body .hero-display em { background: none !important; -webkit-text-fill-color: #fff !important; color: #fff !important; }
html[data-theme="proprio"] body .hero-stats { border-top-color: rgba(255,255,255,.25) !important; }
html[data-theme="proprio"] body .stat-n span { background: none !important; -webkit-text-fill-color: #fff !important; }
html[data-theme="proprio"] body .stat-l { color: rgba(255,255,255,.7) !important; }
html[data-theme="proprio"] body .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.55) !important; }
html[data-theme="proprio"] body .about-sig { color: #fff !important; }
html[data-theme="proprio"] body .insp-tag { color: #ffb3b3 !important; }

/* 8b. Chiffres du héros : de l'air entre le nombre et son suffixe */
.stat-n span { margin-left: .12em; }
.stat-n { letter-spacing: 0 !important; }
.hero-stats .stat { min-width: 120px; }

/* 8c. Module de départ « Je vends / Je recherche » (dans le héros) */
.pl-start { margin: 0 0 56px; padding: 26px 26px 20px; background: rgba(var(--glass-rgb, 10,10,10), .55); border: 1px solid rgba(var(--brand-rgb, 201,168,76), .35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); max-width: 980px; opacity: 0; animation: fadeUp 1s 1.3s forwards; }
.pl-start-modes { display: inline-flex; border: 1px solid rgba(var(--brand-rgb, 201,168,76), .4); margin-bottom: 18px; }
.pl-start-modes button { padding: 12px 22px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.7); min-height: 44px; }
.pl-start-modes button.active { background: var(--gold-grad); color: var(--black); }
.pl-start-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 14px; align-items: end; }
.pl-start-fld { display: flex; flex-direction: column; min-width: 0; }
.pl-start-fld label { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.pl-start-fld input, .pl-start-fld select { padding: 14px 16px; background: rgba(0,0,0,.55); border: 1px solid rgba(var(--brand-rgb, 201,168,76), .3); color: #fff; font-size: 15px; min-height: 48px; }
.pl-start-fld input::placeholder { color: rgba(255,255,255,.45); }
.pl-start-fld input:focus, .pl-start-fld select:focus { border-color: var(--gold); }
.pl-start-fld select option { color: #111; background: #fff; }
.pl-start-go { padding: 0 30px; min-height: 48px; background: var(--gold-grad); color: var(--black); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.pl-start-go .icon { width: 14px; height: 14px; }
.pl-start-note { margin: 14px 0 0; font-size: 12px; color: rgba(255,255,255,.6); }
html[data-theme="proprio"] body .pl-start { background: rgba(255,255,255,.92); border-color: rgba(226,0,26,.3); }
html[data-theme="proprio"] body .pl-start-modes button { color: #16181d; }
html[data-theme="proprio"] body .pl-start-modes button.active { color: #fff; }
html[data-theme="proprio"] body .pl-start-fld input, html[data-theme="proprio"] body .pl-start-fld select { background: #fff; color: #16181d; border-color: rgba(0,0,0,.2); }
html[data-theme="proprio"] body .pl-start-fld input::placeholder { color: rgba(0,0,0,.45); }
html[data-theme="proprio"] body .pl-start-note { color: rgba(0,0,0,.6); }
html[data-theme="proprio"] body .pl-start-go { color: #fff; }
@media (max-width: 900px) { .pl-start-grid { grid-template-columns: 1fr 1fr; } .pl-start-go { grid-column: span 2; justify-content: center; } }
@media (max-width: 560px) { .pl-start { padding: 18px 16px 14px; margin-bottom: 40px; } .pl-start-grid { grid-template-columns: 1fr; } .pl-start-go { grid-column: span 1; } .pl-start-modes { display: flex; } .pl-start-modes button { flex: 1; padding: 12px 8px; letter-spacing: .14em; } }

/* 8d. Emblèmes vérifiables (À propos) */
.about-cr.pl-cr6 { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
.pl-cr6 > div { padding-left: 14px; border-left: 1px solid rgba(var(--brand-rgb, 201,168,76), .35); }
.pl-cr6 .cr-s { font-size: 11px; color: var(--white-dim); margin-top: 6px; line-height: 1.5; }
.pl-cr6 a { color: inherit; }
@media (max-width: 768px) { .about-cr.pl-cr6 { grid-template-columns: 1fr 1fr !important; } }

/* 8e. International : cartes sobres, sans drapeaux */
.pl-intl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(var(--brand-rgb, 201,168,76), .15); border: 1px solid rgba(var(--brand-rgb, 201,168,76), .15); margin-top: 64px; }
.pl-intl > div { background: var(--black); padding: 40px 32px; transition: background .5s var(--ease-luxe); }
.pl-intl > div:hover { background: rgba(var(--brand-rgb, 201,168,76), .05); }
.pl-intl .k { display: block; font-size: 10px; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.pl-intl h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 10px; line-height: 1.15; }
.pl-intl p { font-size: 14px; color: var(--white-mute); line-height: 1.75; font-weight: 300; margin: 0; }
.pl-intl-note { max-width: 920px; margin: 28px auto 0; text-align: center; font-size: 13px; color: var(--white-dim); line-height: 1.7; }
.pl-intl-note a { color: var(--gold); text-decoration: underline; }
@media (max-width: 900px) { .pl-intl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pl-intl { grid-template-columns: 1fr; margin-top: 40px; } .pl-intl > div { padding: 28px 22px; } }
