/* Bains Albi — habillage de la façade (fausse boutique).
   Thème clair volontairement banal, pour ne rien laisser deviner de l'app. */

:root {
  --ba-bg: #f6f8fa;
  --ba-ink: #1f2a37;
  --ba-muted: #667085;
  --ba-blue: #2c7da0;
  --ba-blue-d: #21607a;
  --ba-line: #e3e8ee;
  --ba-card: #ffffff;
}

* { box-sizing: border-box; }

body.shop-mode {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ba-ink);
  background: var(--ba-bg);
  -webkit-font-smoothing: antialiased;
}

.shop { min-height: 100vh; display: flex; flex-direction: column; }

/* En-tête */
.ba-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ba-line);
}
.ba-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.ba-brand .drop { color: var(--ba-blue); }
.ba-nav { display: flex; gap: 22px; }
.ba-nav a { color: var(--ba-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.ba-nav a:hover { color: var(--ba-ink); }
@media (max-width: 640px) { .ba-nav { display: none; } }

/* Hero */
.ba-hero {
  padding: 56px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, #eaf3f7 0%, var(--ba-bg) 100%);
}
.ba-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 6vw, 44px); letter-spacing: -.03em; }
.ba-hero p { margin: 0 auto; max-width: 560px; color: var(--ba-muted); font-size: 17px; line-height: 1.5; }
/* Hero avec photo de fond */
.ba-hero.photo { background-size: cover; background-position: center; color: #fff; padding: 90px 20px 80px; }
.ba-hero.photo h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.ba-hero.photo p { color: rgba(255,255,255,.92); }
.ba-cta {
  display: inline-block; margin-top: 24px; padding: 13px 26px;
  background: var(--ba-blue); color: #fff; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 15px;
}
.ba-cta:hover { background: var(--ba-blue-d); }

/* Bandeau arguments */
.ba-usps { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 8px 20px 8px; }
.ba-usp { color: var(--ba-muted); font-size: 13.5px; font-weight: 600; }
.ba-usp b { color: var(--ba-ink); }

/* Catalogue */
.ba-section { padding: 40px 20px 12px; max-width: 1080px; margin: 0 auto; width: 100%; }
.ba-section h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; }
.ba-section .sub { color: var(--ba-muted); margin: 0 0 24px; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.ba-prod {
  background: var(--ba-card); border: 1px solid var(--ba-line);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
}
.ba-thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.ba-media { width: 100%; height: 100%; display: grid; place-items: center; }
.ba-media svg { width: 66%; height: 66%; }
.ba-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-prod-body { padding: 14px 16px 16px; }
.ba-prod h3 { margin: 0 0 4px; font-size: 16px; }
.ba-prod .desc { margin: 0 0 12px; color: var(--ba-muted); font-size: 13.5px; line-height: 1.45; min-height: 38px; }
.ba-prod .row { display: flex; align-items: center; justify-content: space-between; }
.ba-price { font-weight: 800; font-size: 18px; }
.ba-buy { border: 1px solid var(--ba-line); background: #fff; color: var(--ba-blue); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.ba-buy:hover { background: #f0f6f9; }

.ba-cta.solid { border: none; cursor: pointer; font: inherit; }

/* ---- Fiche produit ---- */
.ba-back { background: none; border: none; color: var(--ba-blue); font: inherit; font-weight: 600; cursor: pointer; padding: 0 0 18px; }
.ba-back:hover { text-decoration: underline; }
.ba-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 720px) { .ba-detail-grid { grid-template-columns: 1fr; gap: 20px; } }
.ba-gallery { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.ba-gallery .ba-media svg { width: 60%; height: 60%; }
.ba-badge { display: inline-block; background: #eaf3f7; color: var(--ba-blue-d); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.ba-detail-info h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 8px; }
.ba-detail-price { font-size: 24px; font-weight: 800; color: var(--ba-ink); margin-bottom: 14px; }
.ba-detail-price span { font-size: 14px; font-weight: 500; color: var(--ba-muted); }
.ba-detail-long { color: #445; line-height: 1.6; margin-bottom: 18px; }
.ba-specs { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.ba-specs th, .ba-specs td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--ba-line); vertical-align: top; }
.ba-specs th { color: var(--ba-muted); font-weight: 600; width: 42%; }

/* ---- Contact / devis ---- */
.ba-contact h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 4px; }
.ba-form { display: flex; flex-direction: column; gap: 14px; max-width: 620px; margin-top: 20px; }
.ba-form .frow { display: flex; gap: 14px; }
.ba-form .frow label { flex: 1; }
@media (max-width: 560px) { .ba-form .frow { flex-direction: column; } }
.ba-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ba-ink); }
.ba-form input, .ba-form textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--ba-line);
  border-radius: 11px; background: #fff; color: var(--ba-ink);
}
.ba-form input:focus, .ba-form textarea:focus { outline: 2px solid var(--ba-blue); border-color: transparent; }
.ba-form textarea { resize: vertical; }
.ba-form .check { flex-direction: row; align-items: center; gap: 9px; font-weight: 500; color: var(--ba-muted); }
.ba-form .check input { width: auto; }
.ba-form .ba-cta { align-self: flex-start; margin-top: 4px; }
.ba-sent { text-align: center; padding: 40px 10px; }
.ba-sent-ic { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #e6f4ea; color: #1f9d55; font-size: 30px; display: grid; place-items: center; }
.ba-sent h2 { font-size: 22px; margin: 0 0 8px; }
.ba-sent p { color: var(--ba-muted); margin: 0 0 20px; }

/* Pied de page + accès discret */
.ba-footer {
  margin-top: auto; padding: 32px 20px 40px;
  border-top: 1px solid var(--ba-line); background: #fff;
  color: var(--ba-muted); font-size: 13px;
}
.ba-footer .cols { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.ba-footer a { color: var(--ba-muted); text-decoration: none; }
.ba-footer a:hover { color: var(--ba-ink); text-decoration: underline; }
.ba-footer .legal { max-width: 1080px; margin: 22px auto 0; padding-top: 16px; border-top: 1px solid var(--ba-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.ba-footer .credits { max-width: 1080px; margin: 10px auto 0; font-size: 11.5px; color: #98a2b3; }
.ba-reseller { background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.ba-reseller:hover { color: var(--ba-ink); text-decoration: underline; }

/* Sas mot de passe (modale) */
.gate-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15,23,32,.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.gate-overlay.show { opacity: 1; pointer-events: auto; }
.gate {
  width: 100%; max-width: 360px; background: #fff; color: var(--ba-ink);
  border-radius: 18px; padding: 24px 22px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.gate h3 { margin: 0 0 4px; font-size: 18px; }
.gate p { margin: 0 0 16px; color: var(--ba-muted); font-size: 13.5px; }
.gate label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.gate input {
  width: 100%; padding: 12px 14px; font-size: 16px;
  border: 1px solid var(--ba-line); border-radius: 12px; background: #f9fafb;
}
.gate input:focus { outline: 2px solid var(--ba-blue); border-color: transparent; }
.gate-err { color: #c0392b; font-size: 13px; margin: 8px 0 0; min-height: 18px; }
.gate-actions { display: flex; gap: 10px; margin-top: 16px; }
.gate-btn { flex: 1; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid var(--ba-line); background: #fff; color: var(--ba-ink); }
.gate-btn.primary { background: var(--ba-blue); border-color: var(--ba-blue); color: #fff; }
.gate-btn.primary:hover { background: var(--ba-blue-d); }
.gate-btn:disabled { opacity: .6; cursor: default; }
.gate-hint { margin-top: 14px; font-size: 12px; color: var(--ba-muted); text-align: center; }
