/* ============================================================
   BrickVault — feuille de style du design
   ------------------------------------------------------------
   Palette et typo pilotées par des variables CSS (voir :root).
   Pour changer la couleur d'accent : modifie --bv-accent,
   ou ajoute data-accent="vermillon|vert|violet" sur <html>.
   ============================================================ */

:root {
  --bv-accent: #2B4CE0;        /* Cobalt (défaut) */
  --bv-accent-text: #F4F0E6;   /* texte lisible SUR l'accent */
  --bv-ink: #17150E;           /* encre / presque noir chaud */
  --bv-bone: #EEE9DD;          /* fond papier */
  --bv-paper: #FAF7EF;         /* cartes claires */
  --bv-muted: #5C574B;         /* texte secondaire */
  --bv-border: #D8D0BF;        /* filet clair */
  --bv-radius: 12px;
}

/* Variantes d'accent optionnelles */
html[data-accent="vermillon"] { --bv-accent: #E5402A; }
html[data-accent="vert"]      { --bv-accent: #1E7A4C; }
html[data-accent="violet"]    { --bv-accent: #6A2BD9; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bv-bone);
  color: var(--bv-ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--bv-accent); color: var(--bv-accent-text); }

.bv-display { font-family: 'Bricolage Grotesque', sans-serif; }
.bv-mono { font-family: 'JetBrains Mono', monospace; }

.bv-container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
.bv-accent-text { color: var(--bv-accent); }

.bv-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bv-accent);
}

/* ---------- Boutons ---------- */
.bv-btn {
  display: inline-block; font-weight: 600; font-size: 16px;
  padding: 16px 30px; border-radius: 10px; cursor: pointer;
  transition: transform .25s ease, filter .25s ease, background .25s ease, color .25s ease;
  border: 1.5px solid transparent;
}
.bv-btn--accent { background: var(--bv-accent); color: var(--bv-accent-text); }
.bv-btn--accent:hover { transform: translateY(-2px); filter: brightness(1.08); }
.bv-btn--outline { border-color: var(--bv-ink); color: var(--bv-ink); }
.bv-btn--outline:hover { background: var(--bv-ink); color: var(--bv-bone); }
.bv-btn--ink { background: var(--bv-ink); color: var(--bv-bone); }
.bv-btn--ink:hover { transform: translateY(-2px); }
.bv-btn--sm { padding: 11px 22px; font-size: 15px; border-radius: 9px; }

/* ---------- Nav ---------- */
.bv-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0; border-bottom: 1px solid transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease, border-color .35s ease;
}
.bv-nav.is-scrolled {
  background: rgba(238, 233, 221, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-color: var(--bv-ink); padding: 13px 0;
}
.bv-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.bv-logo { display: flex; align-items: center; gap: 11px; }
.bv-logo__mark {
  width: 34px; height: 34px; background: var(--bv-accent); color: var(--bv-accent-text);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; line-height: 1;
}
.bv-logo__name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.bv-navlinks { display: flex; gap: clamp(18px, 2.4vw, 34px); font-size: 15px; font-weight: 500; align-items: center; }
.bv-nav__actions { display: flex; align-items: center; gap: 18px; }
.bv-nav__login { font-weight: 500; font-size: 15px; }

/* ---------- Hero ---------- */
.bv-hero { position: relative; padding: clamp(150px, 18vh, 200px) 0 clamp(60px, 8vh, 90px); }
.bv-hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(40px, 6vw, 72px); align-items: center;
}
.bv-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bv-muted); border: 1px solid var(--bv-border); border-radius: 999px; padding: 7px 14px; margin-bottom: 30px;
}
.bv-h1 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: clamp(44px, 6.2vw, 92px); line-height: 0.98; letter-spacing: -0.025em; margin: 0 0 26px;
}
.bv-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--bv-muted); max-width: 500px; margin: 0 0 36px; }
.bv-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.bv-chips { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bv-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  background: var(--bv-paper); border: 1.5px solid var(--bv-ink); border-radius: 999px; padding: 9px 16px;
}
.bv-chip__dot { color: var(--bv-accent); }

.bv-hero__media { position: relative; padding: 0 18px 18px 0; }
.bv-hero__block { position: absolute; right: 0; bottom: 0; width: 78%; height: 78%; background: var(--bv-accent); border-radius: 16px; }
.bv-frame {
  position: relative; min-height: clamp(360px, 42vw, 520px);
  border-radius: 16px; overflow: hidden; border: 2px solid var(--bv-ink);
}
.bv-hero__badge {
  position: absolute; left: -8px; bottom: 34px; background: var(--bv-bone);
  border: 2px solid var(--bv-ink); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 11px; max-width: 250px;
}
.bv-hero__badge-icon {
  width: 34px; height: 34px; flex: none; background: var(--bv-accent); color: var(--bv-accent-text);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px;
}
.bv-hero__badge-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 15px; }
.bv-hero__badge-sub { font-size: 12px; color: var(--bv-muted); }

/* ---------- Marquee ---------- */
.bv-marquee {
  margin-top: clamp(50px, 7vh, 84px); border-top: 1.5px solid var(--bv-ink); border-bottom: 1.5px solid var(--bv-ink);
  padding: 16px 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.bv-marquee__track {
  display: flex; width: max-content; animation: bv-marquee 32s linear infinite;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
}
.bv-marquee__group { display: flex; gap: 40px; padding-right: 40px; }
.bv-marquee__group span[aria-hidden] { color: var(--bv-accent); }
@keyframes bv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections génériques ---------- */
.bv-section { padding: clamp(70px, 10vh, 120px) 0; }
.bv-section--tight { padding: clamp(60px, 8vh, 100px) 0; }
.bv-section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(36px, 5vh, 56px);
}
.bv-h2 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.0; letter-spacing: -0.02em; margin: 0; max-width: 640px;
}
.bv-link { font-weight: 600; border-bottom: 2px solid var(--bv-accent); padding-bottom: 3px; }

/* ---------- Cartes catégories ---------- */
.bv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.bv-card {
  background: var(--bv-paper); border: 1.5px solid var(--bv-ink); border-radius: 14px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bv-card:hover { transform: translate(-5px, -5px); box-shadow: 9px 9px 0 var(--bv-accent); }
.bv-card__media { height: 230px; position: relative; border-bottom: 1.5px solid var(--bv-ink); }
.bv-card__body { padding: 24px 24px 28px; }
.bv-card__meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bv-muted); }
.bv-card__title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 27px; margin: 8px 0; }
.bv-card__desc { font-size: 15px; color: var(--bv-muted); line-height: 1.55; margin: 0; }

/* ---------- Filtres ---------- */
.bv-filters { display: flex; gap: 9px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; flex-wrap: wrap; }
.bv-filter { padding: 9px 15px; border-radius: 8px; border: 1.5px solid var(--bv-border); color: var(--bv-muted); }
.bv-filter.is-active { background: var(--bv-ink); color: var(--bv-bone); border-color: var(--bv-ink); }

/* ---------- Annonces ---------- */
.bv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.bv-listing {
  background: var(--bv-paper); border: 1.5px solid var(--bv-ink); border-radius: 12px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bv-listing:hover { transform: translate(-4px, -4px); box-shadow: 7px 7px 0 var(--bv-accent); }
.bv-listing__media { height: 250px; position: relative; border-bottom: 1.5px solid var(--bv-ink); }
.bv-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 7px;
}
.bv-tag--ink { background: var(--bv-ink); color: var(--bv-bone); }
.bv-tag--accent { background: var(--bv-accent); color: var(--bv-accent-text); }
.bv-listing__body { padding: 18px; }
.bv-listing__cat { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bv-accent); margin-bottom: 7px; }
.bv-listing__title { font-size: 16px; font-weight: 600; margin: 0 0 14px; line-height: 1.35; }
.bv-listing__row { display: flex; align-items: center; justify-content: space-between; }
.bv-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; }
.bv-listing__see { font-size: 13px; color: var(--bv-muted); }

/* ---------- Bande valeurs (accent) ---------- */
.bv-band { background: var(--bv-accent); color: var(--bv-accent-text); padding: clamp(56px, 8vh, 96px) 0; }
.bv-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(30px, 4vw, 52px); }
.bv-band__title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 26px; margin-bottom: 12px; }
.bv-band__text { font-size: 15px; line-height: 1.6; opacity: 0.85; margin: 0; }

/* ---------- Étapes ---------- */
.bv-lead-block { max-width: 680px; margin-bottom: clamp(40px, 5.5vh, 64px); }
.bv-lead-block .bv-eyebrow { display: block; margin-bottom: 16px; }
.bv-lead-block .bv-h2 { margin-bottom: 18px; }
.bv-lead-block p { font-size: 17px; color: var(--bv-muted); line-height: 1.6; margin: 0; }
.bv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border: 1.5px solid var(--bv-ink); border-radius: 16px; overflow: hidden; }
.bv-step { padding: 34px 28px; border-right: 1.5px solid var(--bv-ink); border-bottom: 1.5px solid var(--bv-ink); }
.bv-step__num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 38px; color: var(--bv-accent); line-height: 1; margin-bottom: 18px; }
.bv-step h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.bv-step p { font-size: 14.5px; color: var(--bv-muted); line-height: 1.6; margin: 0; }

/* ---------- Section encre (Protection) ---------- */
.bv-ink-section { background: var(--bv-ink); color: var(--bv-bone); padding: clamp(70px, 10vh, 120px) 0; }
.bv-ink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.bv-ink-media { position: relative; padding: 0 0 18px 18px; }
.bv-ink-media__block { position: absolute; left: 0; bottom: 0; width: 78%; height: 78%; background: var(--bv-accent); border-radius: 16px; }
.bv-ink-media .bv-frame { border-color: var(--bv-bone); min-height: clamp(330px, 38vw, 460px); }
.bv-features { display: flex; flex-direction: column; gap: 20px; }
.bv-feature { display: flex; gap: 16px; align-items: flex-start; }
.bv-feature__icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bv-accent); color: var(--bv-accent-text);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px;
}
.bv-feature h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.bv-feature p { font-size: 15px; color: rgba(238, 233, 221, 0.62); line-height: 1.6; margin: 0; }

/* ---------- Avis ---------- */
.bv-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.bv-quote { background: var(--bv-paper); border: 1.5px solid var(--bv-ink); border-radius: 14px; padding: 30px 28px; }
.bv-stars { color: var(--bv-accent); font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; }
.bv-quote__text { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 500; font-size: 20px; line-height: 1.4; margin: 0 0 22px; }
.bv-quote__author { display: flex; align-items: center; gap: 12px; }
.bv-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bv-accent); flex: none; }
.bv-quote__name { font-weight: 700; font-size: 15px; }
.bv-quote__role { font-size: 13px; color: var(--bv-muted); }

/* ---------- Frais ---------- */
.bv-fees {
  background: var(--bv-ink); color: var(--bv-bone); border-radius: 20px; padding: clamp(40px, 6vw, 60px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(32px, 5vw, 56px); align-items: center;
}
.bv-fees h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 16px; }
.bv-fees p { font-size: 16px; color: rgba(238, 233, 221, 0.62); line-height: 1.6; margin: 0; }
.bv-fees__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 22px; }
.bv-stat { border-left: 3px solid var(--bv-accent); padding-left: 16px; }
.bv-stat__num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(36px, 4vw, 50px); line-height: 1; }
.bv-stat__label { font-size: 13px; color: rgba(238, 233, 221, 0.55); margin-top: 8px; }

/* ---------- Journal ---------- */
.bv-articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.bv-article__media { height: 210px; border-radius: 12px; overflow: hidden; position: relative; margin-bottom: 18px; border: 1.5px solid var(--bv-ink); }
.bv-article__meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bv-accent); margin-bottom: 8px; }
.bv-article__title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.2; margin: 0; }

/* ---------- CTA (accent) ---------- */
.bv-cta { background: var(--bv-accent); color: var(--bv-accent-text); padding: clamp(70px, 11vh, 130px) 0; text-align: center; }
.bv-cta__inner { max-width: 720px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
.bv-cta h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(36px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.025em; margin: 0 0 22px; }
.bv-cta p { font-size: 18px; opacity: 0.85; line-height: 1.55; margin: 0 0 36px; }
.bv-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 520px; margin: 0 auto; }
.bv-input {
  flex: 1; min-width: 220px; background: rgba(244, 240, 230, 0.14); border: 1.5px solid rgba(244, 240, 230, 0.5);
  color: var(--bv-accent-text); padding: 16px 20px; border-radius: 10px; font-size: 16px; font-family: inherit; outline: none;
}
.bv-input::placeholder { color: rgba(244, 240, 230, 0.7); }
.bv-cta__note { font-size: 13px; opacity: 0.7; margin-top: 18px; }

/* ---------- Footer ---------- */
.bv-footer { background: var(--bv-ink); color: var(--bv-bone); padding: clamp(56px, 8vh, 84px) 0 38px; }
.bv-footer__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(238, 233, 221, 0.14); }
.bv-footer__brand { grid-column: 1 / -1; max-width: 320px; }
.bv-footer__brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.bv-footer__brand p { font-size: 14.5px; color: rgba(238, 233, 221, 0.55); line-height: 1.6; margin: 0; }
.bv-footer__col-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(238, 233, 221, 0.4); margin-bottom: 16px; }
.bv-footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.bv-footer__links a { color: rgba(238, 233, 221, 0.75); }
.bv-footer__links a:hover { color: var(--bv-bone); }
.bv-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 13px; color: rgba(238, 233, 221, 0.4); }
.bv-footer__legal { display: flex; gap: 24px; }
.bv-footer__legal a { color: rgba(238, 233, 221, 0.4); }
.bv-footer__legal a:hover { color: var(--bv-bone); }

/* ---------- Emplacements image (à remplacer par tes <img>) ---------- */
.bv-ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(23,21,14,0.04) 0 10px, rgba(23,21,14,0.07) 10px 20px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .06em;
  color: var(--bv-muted); text-align: center; padding: 12px;
}
.bv-ph img, .bv-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Animations reveal ---------- */
.bv-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.bv-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bv-reveal { opacity: 1; transform: none; transition: none; }
  .bv-marquee__track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .bv-navlinks { display: none; }              /* remplace par un menu burger sur mobile */
  .bv-hero__badge { position: static; margin-top: 16px; max-width: none; }
  .bv-hero__media { padding: 0; }
  .bv-hero__block { display: none; }
}
@media (max-width: 560px) {
  .bv-nav__login { display: none; }
}
