/* Vitrine BRA — mêmes couleurs que l'app (lib/theme/app_theme.dart). */
:root {
  --charbon: #262622;
  --charbon-clair: #3d3d37;
  --creme: #e7eac6;
  --creme-fonce: #d7dca0;
  --fond: #f6f5ef;
  --surface: #ffffff;
  --bordure: #e6e2d3;
  --texte: #262622;
  --texte-secondaire: #716c5e;
  --vert: #3f7d4a;
  --ocre: #d9a521;
  --rouge: #c0392b;
  --rayon: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.conteneur { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.conteneur-etroit { max-width: 800px; }
.section { margin-top: 56px; }
.titre-section { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.titre-petit { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 12px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 12px 20px; transition: filter .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.bouton:active { filter: brightness(.92); }
.bouton-principal { background: var(--ocre); color: #fff; }
.bouton-sombre { background: var(--charbon); color: #fff; }
.bouton-creme { background: var(--creme); color: var(--charbon); padding: 14px 28px; }
.bouton-contour { background: transparent; color: var(--charbon); border: 1.5px solid var(--charbon); padding: 8px 18px; font-size: 14px; }
.bouton-texte { background: transparent; color: var(--charbon); padding: 12px 8px; }
.bouton-large { width: 100%; padding: 15px; }
.bouton[disabled] { opacity: .6; cursor: default; }

/* ---------- En-tête ---------- */
.entete { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 8px; }
.logo { height: 40px; width: auto; }

/* ---------- Accroche ---------- */
.hero { display: grid; gap: 32px; padding-top: 24px; align-items: start; }
.hero-texte { padding-top: 12px; }
h1 { font-size: clamp(28px, 7vw, 40px); font-weight: 900; line-height: 1.2; }
.surligne { color: var(--ocre); background: rgba(217, 165, 33, .16); border-radius: 8px; padding: 0 8px; white-space: nowrap; }
.chapo { margin-top: 20px; font-size: 16px; color: var(--texte-secondaire); max-width: 520px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 460px; gap: 48px; }
  .hero-texte { padding-top: 40px; }
}

/* ---------- Carte formulaire ---------- */
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: 20px; }
.carte-formulaire { padding: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, .05); }
.titre-carte { font-size: 18px; font-weight: 700; }
.aide { font-size: 12.5px; color: var(--texte-secondaire); margin-top: 4px; }

fieldset.puces { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.puce input { position: absolute; opacity: 0; pointer-events: none; }
.puce span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--bordure); border-radius: 8px;
  font-size: 13.5px; background: var(--surface); cursor: pointer; user-select: none;
}
.puce input:checked + span { background: var(--creme); border-color: var(--creme-fonce); font-weight: 500; }
.puce input:checked + span::before { content: '✓'; font-weight: 700; }
.puces-sombres .puce input:checked + span { background: var(--charbon); border-color: var(--charbon); color: #fff; }
.puce input:focus-visible + span { outline: 2px solid var(--ocre); outline-offset: 2px; }

/* Champs à étiquette flottante */
.champ { position: relative; margin-top: 12px; }
.champ input, .champ textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--texte);
  padding: 20px 12px 8px; border: 1px solid #b9b5a8; border-radius: 6px; background: var(--surface);
  outline: none; -webkit-appearance: none; appearance: none;
}
.champ textarea { resize: vertical; min-height: 92px; }
.champ label {
  position: absolute; left: 13px; top: 15px; font-size: 15px; color: var(--texte-secondaire);
  pointer-events: none; transition: all .12s ease;
}
.champ input:focus, .champ textarea:focus { border-color: var(--charbon); box-shadow: 0 0 0 1px var(--charbon); }
.champ input:focus + label, .champ input:not(:placeholder-shown) + label,
.champ textarea:focus + label, .champ textarea:not(:placeholder-shown) + label { top: 5px; font-size: 11.5px; }
.champ.invalide input, .champ.invalide textarea { border-color: var(--rouge); }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deux-colonnes .champ { margin-top: 12px; }

.suggestions {
  position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0;
  list-style: none; background: var(--surface); border: 1px solid var(--bordure); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.suggestions li { padding: 10px 12px; font-size: 14px; cursor: pointer; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--fond); }

.erreur { color: var(--rouge); font-size: 13px; margin-top: 10px; }
.succes { color: var(--vert); font-weight: 500; text-align: center; }
.carte-formulaire .bouton-large { margin-top: 18px; }

.merci { text-align: left; }
.merci-icone { width: 44px; height: 44px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.merci h2 { margin-top: 14px; font-size: 18px; }
.merci p { margin-top: 6px; font-size: 14px; color: var(--texte-secondaire); }

/* ---------- Avis (défilement horizontal natif, magnétique) ---------- */
.avis-rangee {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.avis-rangee::-webkit-scrollbar { display: none; }
.avis {
  flex: 0 0 min(300px, 82vw); scroll-snap-align: start;
  display: flex; flex-direction: column; min-height: 200px;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: 16px; padding: 18px;
}
.etoiles { color: var(--ocre); font-size: 15px; letter-spacing: 1px; }
.avis-texte {
  margin-top: 8px; flex: 1; font-size: 13.5px; font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.avis-nom { margin-top: 10px; font-weight: 700; }
.avis-source { font-size: 11.5px; color: var(--texte-secondaire); }

/* ---------- Étapes ---------- */
.etapes { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.etape { width: 300px; max-width: 100%; text-align: center; }
.pastille-icone { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; background: rgba(38, 38, 34, .08); display: grid; place-items: center; }
.pastille-icone svg { width: 26px; height: 26px; fill: var(--charbon); }
.etape h3 { margin-top: 14px; font-size: 16px; }
.etape p { margin-top: 6px; font-size: 13.5px; color: var(--texte-secondaire); }

/* ---------- Encarts ---------- */
.encart-chiffre {
  max-width: 700px; margin: 0 auto; text-align: center; padding: 28px 24px;
  background: var(--creme); border: 1px solid var(--creme-fonce); border-radius: 24px;
}
.chiffre { font-size: 56px; line-height: 1; font-weight: 900; }
.chiffre-titre { margin-top: 8px; font-size: 18px; font-weight: 700; }
.chiffre-texte { margin-top: 10px; color: var(--texte-secondaire); }

.encart-sombre { background: var(--charbon); color: #fff; border-radius: 24px; padding: 32px 24px; text-align: center; }
.encart-sombre h2 { font-size: 22px; }
.encart-sombre p { margin: 12px auto 22px; max-width: 700px; color: rgba(255, 255, 255, .72); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 44px 16px 16px; font-weight: 500; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--texte-secondaire); border-bottom: 2px solid var(--texte-secondaire);
  transform: rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { padding: 0 16px 16px; font-size: 14px; color: var(--texte-secondaire); }

/* ---------- Newsletter ---------- */
.newsletter { max-width: 560px; }
.ligne-newsletter { display: flex; gap: 10px; }
.ligne-newsletter input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px; border: 1px solid #b9b5a8; border-radius: 6px; background: var(--surface);
}
.ligne-newsletter input:focus { outline: none; border-color: var(--charbon); box-shadow: 0 0 0 1px var(--charbon); }
.ligne-newsletter .bouton { background: var(--charbon); }

.pied { text-align: center; font-size: 12px; color: var(--texte-secondaire); padding: 40px 0 28px; }

/* ---------- Fenêtre de connexion ---------- */
.voile { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .45); display: grid; place-items: center; padding: 20px; }
.voile[hidden] { display: none; }
.fenetre { position: relative; background: var(--surface); border-radius: 16px; padding: 24px; max-width: 420px; width: 100%; }
.fenetre h2 { font-size: 19px; padding-right: 24px; }
.fenetre p { margin-top: 12px; color: var(--texte-secondaire); font-size: 14.5px; }
.fenetre-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.fermer { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--texte-secondaire); cursor: pointer; }

@media (max-width: 330px) {
  .deux-colonnes { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
