/* ==========================================================================
   Bridge Finance — landing page
   Couleurs relevées directement sur la plaquette A4 :
   fond #0a141c · bleu logo #496881 · turquoise #4ebdbe
   ========================================================================== */

:root {
  --ink: #0a141c;
  --ink-2: #10202c;
  --ink-3: #17303f;
  --blue: #496881;
  --blue-deep: #2f4a5f;
  --teal: #4ebdbe;
  --teal-bright: #74d4d5;
  --teal-deep: #2b8e8f;
  --brand: #1e6275;   /* bleu de la pastille */

  --paper: #ffffff;
  --paper-2: #f2f5f6;
  --paper-3: #e6ecee;

  --text: #14232d;
  --text-2: #4d5f6b;
  --text-3: #7e8d97;
  --rule: #d9e1e4;
  --rule-dark: rgba(255, 255, 255, 0.13);

  --wrap: 1160px;
  --pad: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

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

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.14; letter-spacing: -.022em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -.012em; }

p { margin: 0 0 1.1em; max-width: 66ch; }
ul, ol { max-width: 66ch; }

a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); color: var(--ink); padding: .8rem 1.3rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ------------------------------------------------ barre de navigation */

.bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 20, 28, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-dark);
}
.bar .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }

.mark { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.mark svg { width: 32px; height: 32px; flex: none; }
.mark img { height: 30px; width: auto; }

.bar nav { display: flex; align-items: center; gap: 1.6rem; }
.bar nav a {
  color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .95rem;
  padding: .35rem 0; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.bar nav a:hover { color: #fff; border-bottom-color: var(--teal); }
.bar .btn-sm {
  background: var(--teal); color: var(--ink); border: 0; font-weight: 600;
  padding: .6rem 1.1rem; text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.bar .btn-sm:hover { background: var(--teal-bright); color: var(--ink); border-bottom-color: transparent; }

.burger {
  display: none; background: none; border: 1px solid var(--rule-dark);
  color: #fff; font: inherit; font-size: .9rem; padding: .45rem .8rem; cursor: pointer;
}

@media (max-width: 900px) {
  .burger { display: block; }
  .bar .wrap { flex-wrap: wrap; }
  .bar nav {
    display: none; order: 3; width: 100%; flex-direction: column;
    align-items: stretch; gap: 0; padding-bottom: .75rem;
  }
  .bar nav.open { display: flex; }
  .bar nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule-dark); }
  .bar .btn-sm { text-align: center; margin-top: .75rem; }
}

/* ------------------------------------------------ sections génériques */

section { padding-top: clamp(3.25rem, 7vw, 5.75rem); padding-bottom: clamp(3.25rem, 7vw, 5.75rem); }
.dark { background: var(--ink); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: rgba(255, 255, 255, .82); }
.tint { background: var(--paper-2); }

.lead-in { max-width: 34ch; margin-bottom: 2.75rem; }
.lead-in p { color: var(--text-2); margin-bottom: 0; max-width: 52ch; }
.dark .lead-in p { color: rgba(255, 255, 255, .8); }

.eyebrow {
  color: var(--teal-deep); font-size: .95rem; font-weight: 600;
  margin-bottom: .9rem; max-width: none;
}
.dark .eyebrow { color: var(--teal); }

/* ------------------------------------------------ héros */

.hero {
  background: var(--ink) url("images/hero-poster.jpg") center / cover no-repeat;
  color: #fff; position: relative; overflow: hidden;
}
.hero-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .55; pointer-events: none;
}
.hero-veil {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(10, 20, 28, .96) 0%, rgba(10, 20, 28, .9) 38%,
    rgba(10, 20, 28, .68) 68%, rgba(10, 20, 28, .5) 100%);
}
.hero-mesh {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2; opacity: .55; pointer-events: none;
  transform: scale(1.05);
  animation: bf-derive 34s ease-in-out infinite;
}

/* dérive lente de l'ensemble du réseau */
@keyframes bf-derive {
  0%, 100% { transform: scale(1.05) translate3d(0, 0, 0); }
  33%      { transform: scale(1.05) translate3d(-16px, 9px, 0); }
  66%      { transform: scale(1.05) translate3d(10px, -12px, 0); }
}

/* les nœuds respirent, en décalé */
@keyframes bf-noeud { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.hero-mesh circle { animation: bf-noeud 7s ease-in-out infinite; }
.hero-mesh circle:nth-of-type(2n)  { animation-duration: 9s;  animation-delay: -1.5s; }
.hero-mesh circle:nth-of-type(3n)  { animation-duration: 11s; animation-delay: -4s; }
.hero-mesh circle:nth-of-type(5n)  { animation-duration: 6s;  animation-delay: -2.8s; }

/* les liaisons se tendent puis se relâchent */
@keyframes bf-liaison { 0%, 100% { opacity: .2; } 50% { opacity: .42; } }
.hero-mesh path { animation: bf-liaison 13s ease-in-out infinite; }
.hero .wrap {
  position: relative; z-index: 3;
  padding-top: clamp(3.75rem, 9vw, 7rem); padding-bottom: clamp(3.75rem, 9vw, 7rem);
}

/* animation coupée si la personne a demandé de réduire les animations,
   ou sur petit écran où la vidéo coûte cher en données */
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
@media (max-width: 700px) { .hero-video { display: none; } }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .sub { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: rgba(255, 255, 255, .87); max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.25rem; }

.trust {
  margin: 2.5rem 0 0; padding-top: 1.4rem; max-width: 52ch;
  border-top: 1px solid var(--rule-dark);
  color: rgba(255, 255, 255, .82); font-size: .98rem;
}
.trust span {
  display: block; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); margin-bottom: .45rem;
}

.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem;
  padding: .9rem 1.7rem; border: 2px solid var(--teal); background: var(--teal);
  color: var(--ink); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--ink); }
.btn.hollow { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn.hollow:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.solid:hover { background: var(--ink-3); border-color: var(--ink-3); color: #fff; }

/* ------------------------------------------------ bandeau de preuves */

.proof { background: var(--ink-2); border-top: 1px solid var(--rule-dark); color: #fff; }
.proof ul {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.proof li { padding: clamp(1.75rem, 3.6vw, 2.75rem) 1.75rem; border-left: 1px solid var(--rule-dark); }
.proof li:first-child { border-left: 0; padding-left: 0; }
.proof b {
  display: block; font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 600;
  letter-spacing: -.03em; color: var(--teal); line-height: 1; margin-bottom: .6rem;
}
.proof span { display: block; font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .78); max-width: 30ch; }
@media (max-width: 780px) {
  .proof ul { grid-template-columns: 1fr; }
  .proof li { border-left: 0; border-top: 1px solid var(--rule-dark); padding-left: 0; padding-right: 0; }
  .proof li:first-child { border-top: 0; }
}

/* ------------------------------------------------ situations d'appel */

.triggers { display: grid; gap: 0; }
.triggers > li { list-style: none; }
.triggers { max-width: none; margin: 0; padding: 0; }
.trigger {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem 3rem; padding: 1.75rem 0; border-top: 1px solid var(--rule);
  align-items: start;
}
.trigger:last-child { border-bottom: 1px solid var(--rule); }
.trigger h3 { margin-bottom: 0; }
.trigger p { margin-bottom: 0; color: var(--text-2); }
@media (max-width: 780px) { .trigger { grid-template-columns: 1fr; gap: .5rem; } }

/* ------------------------------------------------ domaines */

.cards { display: grid; gap: 1px; background: var(--rule); grid-template-columns: repeat(3, 1fr); }
.cards > article { background: var(--paper); padding: 2.25rem 1.75rem; }
.tint .cards { background: var(--rule); }
.tint .cards > article { background: var(--paper-2); }
.cards .ico { color: var(--teal-deep); display: block; margin-bottom: 1.15rem; }
.cards .ico svg { width: 34px; height: 34px; }
.cards p { color: var(--text-2); font-size: 1rem; margin-bottom: 0; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------ secteurs */

.sectors { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); max-width: none; margin: 0; padding: 0; list-style: none; }
.sectors li { border-top: 3px solid var(--teal); padding-top: 1.1rem; }
.sectors h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.sectors p { font-size: .98rem; margin-bottom: 0; color: rgba(255, 255, 255, .78); }
@media (max-width: 880px) { .sectors { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ------------------------------------------------ cas clients */

.cases { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; } .case.full { grid-column: 1 / -1; } }

.case { border-top: 3px solid var(--ink); padding-top: 0; }
.case-visuel {
  display: block; width: 100%; height: auto; aspect-ratio: 320 / 120;
  margin-bottom: 1.5rem;
}
.case .tag {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; margin-bottom: 1rem;
}
.case .tag h3 { margin-bottom: 0; }
.case .tag span { color: var(--teal-deep); font-weight: 600; font-size: .95rem; }
.case blockquote { margin: 0 0 1.2rem; padding: 0; color: var(--text-2); }
.case blockquote p:last-child { margin-bottom: 0; }
.case blockquote strong { color: var(--text); font-weight: 600; }
.case .who { font-size: .95rem; color: var(--text); margin-bottom: 0; }
.case .who em { display: block; font-style: normal; color: var(--text-3); font-size: .9rem; }

.pull {
  background: var(--ink); color: #fff; padding: 1rem 1.25rem; margin: 0 0 1.2rem;
  border-left: 4px solid var(--teal); max-width: 66ch;
}
.pull p { margin: 0; color: rgba(255, 255, 255, .9); }
.pull b { color: var(--teal); font-weight: 600; }

/* ------------------------------------------------ méthode */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; max-width: none; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-top: 1px solid var(--rule-dark); align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--rule-dark); }
.steps li::before {
  content: counter(s); font-size: 1.5rem; font-weight: 600; color: var(--teal); line-height: 1.25;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin-bottom: 0; }

/* ------------------------------------------------ portrait */

.who-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .who-grid { grid-template-columns: 1fr 1.25fr; gap: 4rem; } }
.portrait {
  background: var(--paper-3); aspect-ratio: 4 / 5; display: grid; place-items: center;
  color: var(--text-3); font-size: .95rem; text-align: center; padding: 1.5rem;
}
.facts { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.facts li { padding: .8rem 0 .8rem 1.6rem; border-top: 1px solid var(--rule); position: relative; }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: 8px; height: 8px; background: var(--teal); }
.facts b { display: block; }
.facts span { color: var(--text-2); font-size: .98rem; }

/* ------------------------------------------------ contact */

.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }

form .f { margin-bottom: 1.3rem; }
form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; color: #fff; }
form input, form select, form textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06); color: #fff; border-radius: 0;
}
form input::placeholder, form textarea::placeholder { color: rgba(255, 255, 255, .45); }
form select option { color: #14232d; }
form textarea { min-height: 145px; resize: vertical; }
form .hint { font-size: .9rem; color: rgba(255, 255, 255, .6); margin: .4rem 0 0; }
form .agree { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.5rem; }
form .agree input { width: auto; margin-top: .35rem; }
form .agree label { font-weight: 400; font-size: .93rem; color: rgba(255, 255, 255, .8); }
form .agree a { color: var(--teal); }

.coords { list-style: none; margin: 0; padding: 0; }
.coords li { padding: 1.1rem 0; border-top: 1px solid var(--rule-dark); }
.coords li:last-child { border-bottom: 1px solid var(--rule-dark); }
.coords .k { display: block; font-size: .85rem; color: rgba(255, 255, 255, .55); margin-bottom: .2rem; }
.coords .v { font-size: 1.2rem; color: #fff; }
.coords .v a { color: #fff; text-decoration: none; }
.coords .v a:hover { color: var(--teal); text-decoration: underline; }

/* ------------------------------------------------ pied de page */

.foot { background: var(--ink-2); color: rgba(255, 255, 255, .7); padding-top: 2.5rem 1.75rem; padding-bottom: 2.5rem 1.75rem; font-size: .93rem; }
.foot a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.foot a:hover { color: var(--teal); text-decoration: underline; }
.foot .row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot img { height: 26px; width: auto; }

/* ------------------------------------------------ pages annexes ---- */

.legal { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.4rem; }

/* ------------------------------------------------ blocs à compléter */

.todo {
  border: 2px dashed #b47500; background: #fff8e9; color: #66430b;
  padding: .95rem 1.15rem; margin: 0 0 1.6rem; max-width: 66ch; font-size: .94rem; line-height: 1.55;
}
.dark .todo { background: #2a2110; border-color: #b47500; color: #f0d9a8; }
.todo b { display: block; margin-bottom: .2rem; }
.todo p { margin: 0; max-width: none; color: inherit; }
.dark .todo p { color: inherit; }


/* ------------------------------------------------ bandeau clients */

.client-groupe { margin-bottom: 2.75rem; text-align: center; }
.client-groupe:last-child { margin-bottom: 0; }
.client-groupe h3 {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600; margin: 0 0 1rem;
}

.clients {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
}
.clients li {
  flex: 0 0 auto; width: 186px; min-height: 112px;
  background: var(--paper); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem 1.1rem;
}
.tint .clients li { background: var(--paper-2); }
.clients img {
  max-height: 56px; width: auto; max-width: 100%;
  filter: grayscale(1); opacity: .62; transition: filter .2s ease, opacity .2s ease;
}
.clients li:hover img { filter: grayscale(0); opacity: 1; }
.clients .slot {
  color: var(--text-3); font-size: .82rem; text-align: center; line-height: 1.4;
}
@media (max-width: 460px) { .clients li { width: calc(50% - .35rem); } }
