/* =========================================================
   DEFI GROUP — Version classique (évolution de l'identité actuelle)
   Blanc · Rouge DEFI · Gris acier · Barlow italique
   ========================================================= */
:root {
  --red: #D3121B;
  --red-dark: #a90e15;
  --ink: #1d232c;
  --grey: #5d6672;
  --grey-light: #f2f3f5;
  --line: #e1e4e8;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --veil: #ffffff;
}
body { background: #fff; color: var(--ink); font-family: 'Barlow', system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
body.nav-open { overflow: hidden; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
h1, h2, h3 { font-weight: 700; line-height: 1.12; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-style: italic; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

.cbtn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 4px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.cbtn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.cbtn:hover svg { transform: translateX(4px); }
.cbtn:active { transform: translateY(1px); }
.cbtn--red { background: var(--red); color: #fff; }
.cbtn--red:hover { background: var(--red-dark); }
.cbtn--line { border-color: var(--ink); color: var(--ink); }
.cbtn--line:hover { background: var(--ink); color: #fff; }
.cbtn--white { background: #fff; color: var(--red); }
.cbtn--white:hover { background: var(--ink); color: #fff; }

.topbar { background: var(--grey-light); font-size: 14px; color: var(--grey); }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar__links { display: flex; gap: 20px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--red); }

.hd { position: sticky; top: 0; z-index: 80; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.hd.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.hd__inner { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 60px; height: 38px; }
.logo__word { font-style: italic; font-weight: 800; font-size: 28px; letter-spacing: -.01em; color: #7c848f; }
.logo__word b { color: var(--red); font-weight: 800; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav ul { display: flex; gap: 4px; margin: 0; }
.nav ul a { display: block; padding: 8px 12px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav ul a:hover { color: var(--red); border-color: var(--red); }
.hd__burger { display: none; }

.hero { padding-block: clamp(40px, 6vw, 80px); background: linear-gradient(180deg, #fff 60%, var(--grey-light) 60%); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 70px); font-style: italic; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
.hero h1 span { color: var(--red); }
.hero__lead { margin-top: 22px; font-size: 19px; color: var(--grey); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.hero__tris { position: absolute; left: -18px; bottom: 26px; display: flex; gap: 6px; }
.hero__tris i { width: 0; height: 0; border-left: 30px solid #9aa1ab; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.hero__tris i:last-child { border-left-color: var(--red); }

.kpis { background: var(--grey-light); padding-bottom: clamp(40px, 5vw, 64px); }
.kpis__list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: #fff; border-top: 4px solid var(--red); box-shadow: 0 12px 40px rgba(0, 0, 0, .06); }
.kpis__list > div { padding: 28px; border-left: 1px solid var(--line); }
.kpis__list > div:first-child { border-left: 0; }
.kpis dd { margin: 0; font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; font-style: italic; line-height: 1; color: var(--red); }
.kpis dt { margin-top: 6px; color: var(--grey); }

.block { padding-block: clamp(64px, 8vw, 110px); }
.block--grey { background: var(--grey-light); }
.block--dark { background: var(--ink); color: #fff; }
.block--dark p { color: #c5cad1; }
.block__head { max-width: 760px; margin-bottom: 44px; }
.block__head > p:last-child:not(.eyebrow) { margin-top: 12px; color: var(--grey); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 4px solid #c3c8cf;
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.card:hover { border-top-color: var(--red); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); }
.card__num { font-style: italic; font-weight: 800; font-size: 15px; color: var(--red); }
.card h3 { margin: 8px 0 10px; font-size: 23px; font-style: italic; font-weight: 800; }
.card p { color: var(--grey); font-size: 16px; }
.card--cta { background: var(--red); border-color: var(--red); color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: center; }
.card--cta p { color: rgba(255, 255, 255, .9); }
.card--cta:hover { border-top-color: var(--ink); }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; }
.card__link svg { width: 18px; height: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split h2 + p { margin-top: 14px; color: var(--grey); }
.block--dark .split h2 + p { color: #c5cad1; }
.split__media { margin: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 2px; }

.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sectors li { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.sectors li:hover { background: var(--grey-light); }
.sectors h3 { font-size: 22px; font-style: italic; font-weight: 800; }
.sectors h3::after { content: ''; display: block; width: 32px; height: 3px; margin-top: 10px; background: var(--red); }
.sectors p { margin-top: 12px; color: var(--grey); }

.badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.badges li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid rgba(255, 255, 255, .2); border-left: 4px solid var(--red); }
.badges strong { font-size: 26px; font-style: italic; font-weight: 800; }
.badges span { color: #c5cad1; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { padding: 22px; background: var(--grey-light); color: var(--grey); }
.facts b { display: block; font-size: 28px; font-style: italic; font-weight: 800; color: var(--ink); }

.careers { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.careers p:last-child { margin-top: 10px; color: var(--grey); max-width: 60ch; }

.contact { background: var(--red); color: #fff; padding-block: clamp(64px, 8vw, 100px); }
.contact__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(34px, 4.4vw, 56px); }
.contact p { margin: 14px 0 28px; font-size: 19px; color: rgba(255, 255, 255, .9); }
.contact address { font-style: normal; padding: 28px; background: rgba(0, 0, 0, .14); line-height: 1.8; }
.contact address strong { display: block; margin-bottom: 6px; font-size: 18px; }
.contact a { color: #fff; }
.contact a:focus-visible, .contact .cbtn:focus-visible { outline-color: #fff; }

.ft { background: var(--ink); color: #aab0b8; padding: 28px 0 100px; font-size: 15px; }
.ft__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.ft__links { display: flex; flex-wrap: wrap; gap: 20px; }
.ft a { color: #fff; text-decoration: none; }
.ft a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .hd__burger { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .hd__burger span, .hd__burger span::before, .hd__burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .3s, background .2s; }
  .hd__burger span::before, .hd__burger span::after { content: ''; position: absolute; left: 0; }
  .hd__burger span::before { top: -6px; } .hd__burger span::after { top: 6px; }
  .hd__burger[aria-expanded='true'] span { background: transparent; }
  .hd__burger[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
  .hd__burger[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch;
    padding: 140px clamp(20px, 4vw, 40px) 110px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s, visibility .3s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 16px 0; font-size: 22px; font-style: italic; font-weight: 800; border-bottom: 1px solid var(--line); }
  .nav .cbtn { align-self: flex-start; }
  .hero__grid, .split, .contact__grid { grid-template-columns: 1fr; }
  .hero { background: #fff; }
  .cards, .sectors { grid-template-columns: 1fr 1fr; }
  .kpis__list { grid-template-columns: 1fr 1fr; }
  .kpis__list > div:nth-child(3) { border-left: 0; }
  .kpis__list > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .topbar p:first-child { display: none; }
  .topbar__inner { justify-content: center; }
  .logo__word { font-size: 23px; }
  .logo__mark { width: 48px; }
  .cards, .sectors, .facts { grid-template-columns: 1fr; }
  .hero__actions .cbtn { flex: 1 1 100%; justify-content: center; }
  .kpis__list > div { padding: 20px; }
}
html, body { overflow-x: clip; }
.contact .cbtn--white { color: var(--red); }
.contact .cbtn--white:hover { background: var(--ink); color: #fff; }
.kpis dd { white-space: nowrap; }
.ft__sign { display: inline-block; margin-top: 6px; color: #8a919a; }
.ft__sign strong { color: #fff; }
