/* CoopFinNetwork - site vitrine. Tailwind (CDN) fournit les utilitaires ; ici les composants propres au site. */
:root { --ink: #050506; --panel: #0e0e10; --line: #222226; --muted: #8b8b94; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: #050506; color: #fff; -webkit-font-smoothing: antialiased; }
::selection { background: #fff; color: #000; }
.logo-mark { font-weight: 900; letter-spacing: -.09em; }

/* En-tete */
.nav-link { font-size: .78rem; color: #d4d4d8; transition: color .15s; }
.nav-link:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 10px; padding: .6rem 1.1rem; font-size: .8125rem; font-weight: 600; transition: all .15s; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e4e4e7; }
.btn-black { background: #000; color: #fff; }
.btn-black:hover { background: #1f1f23; }
.btn-ghost { background: rgba(255,255,255,.02); color: #fff; border-color: #3a3a40; }
.btn-ghost:hover { background: #17171a; border-color: #55555d; }
.btn-ghost-light { background: transparent; color: #000; border-color: #d4d4d8; }
.btn-ghost-light:hover { background: #f4f4f5; }
.btn-lg { padding: .8rem 1.4rem; font-size: .88rem; border-radius: 12px; }
.pill { display: inline-block; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .65rem; border-radius: 999px; border: 1px solid #3a3a40; color: #d4d4d8; background: rgba(255,255,255,.04); }
.pill-light { border-color: #d4d4d8; color: #52525b; background: #fff; }

/* Hero */
.hero-bg { background: radial-gradient(ellipse at 75% 35%, #1b1b20 0%, #050506 62%); }
.grid-lines { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 15%, transparent 70%); }
.globe { background: radial-gradient(circle at 35% 30%, #2d2d33, #0b0b0d 62%); border: 1px solid #28282d; border-radius: 50%; }
.globe-dots { background-image: radial-gradient(#45454c 1px, transparent 1.3px); background-size: 13px 13px; -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%); mask-image: radial-gradient(circle, #000 35%, transparent 72%); }
.feature-icon { display: grid; place-items: center; height: 2.5rem; width: 2.5rem; flex: none; border-radius: 10px; border: 1px solid #2c2c32; background: #101013; }

/* Cartes bancaires */
.bcard { position: relative; aspect-ratio: 1.586; border-radius: 18px; padding: 1.1rem 1.3rem; overflow: hidden; border: 1px solid #3a3a40; box-shadow: 0 30px 70px -20px rgba(0,0,0,.9); }
.bcard.dark { background: linear-gradient(135deg, #34343a 0%, #0b0b0d 58%, #1c1c20 100%); color: #fff; }
.bcard.light { background: linear-gradient(135deg, #ffffff, #c7c7cf); color: #111; border-color: #e4e4e7; }
.bcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.1) 46%, transparent 60%); pointer-events: none; }
.chip { width: 38px; height: 29px; border-radius: 6px; background: linear-gradient(135deg, #e6e6ea, #8f8f97); }
.mc { display: inline-flex; } .mc i { width: 24px; height: 24px; border-radius: 50%; display: block; } .mc i:first-child { background: #eb001b; } .mc i:last-child { background: #f79e1b; margin-left: -9px; opacity: .93; }
.contactless { position: absolute; right: 1.1rem; top: 1.1rem; opacity: .7; }

/* Telephone et code (hero) */
.phone { border-radius: 30px; background: #0b0b0d; border: 2px solid #34343a; padding: 14px; box-shadow: 0 40px 90px -20px #000; }
.code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .74rem; line-height: 1.65; background: #0a0a0c; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; color: #cfcfd6; overflow-x: auto; }
.code .k { color: #7dd3fc; } .code .s { color: #86efac; } .code .m { color: #fbbf24; } .code .c { color: #71717a; } .code .g { color: #34d399; }

/* Sections claires */
.light-section { background: #fafafa; color: #09090b; }
.card-light { background: #fff; border: 1px solid #e4e4e7; border-radius: 18px; padding: 1.25rem; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.card-light:hover { box-shadow: 0 18px 40px -18px rgba(0,0,0,.25); transform: translateY(-3px); }
.icon-box { display: grid; place-items: center; height: 2.4rem; width: 2.4rem; border-radius: 10px; background: #09090b; color: #fff; flex: none; }
.checklist li { position: relative; padding-left: 1.1rem; font-size: .72rem; color: #52525b; line-height: 1.9; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 6px; height: 6px; border: 1px solid #a1a1aa; border-radius: 50%; }
.learn { margin-top: auto; padding-top: 1rem; font-size: .75rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.learn:hover { gap: .65rem; }

/* Mini visuels de produits */
.mini-cards { position: relative; height: 130px; }
.mini-cards > div { position: absolute; width: 130px; aspect-ratio: 1.586; border-radius: 10px; border: 1px solid #3a3a40; background: linear-gradient(135deg, #3b3b42, #0b0b0d); box-shadow: 0 14px 28px -10px rgba(0,0,0,.6); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: 1rem; }
.pay-tile { height: 52px; border-radius: 12px; display: grid; place-items: center; background: #f4f4f5; border: 1px solid #e4e4e7; }
.id-visual { height: 130px; border-radius: 12px; background: linear-gradient(135deg, #e4e4e7, #a1a1aa); position: relative; overflow: hidden; }
.sim-visual { height: 130px; border-radius: 12px; background: radial-gradient(circle at 70% 40%, #3f3f46, #09090b 70%); position: relative; overflow: hidden; }

/* Developpeurs */
.tab-btn { font-size: .7rem; font-weight: 600; padding: .45rem .9rem; border-radius: 8px; color: #a1a1aa; transition: all .15s; border: 1px solid transparent; }
.tab-btn.active { background: #fff; color: #000; }
.tab-btn:not(.active):hover { color: #fff; background: #1a1a1e; }
.lang-btn { font-size: .66rem; font-weight: 600; padding: .3rem .8rem; border-radius: 7px; color: #a1a1aa; border: 1px solid #2a2a30; }
.lang-btn.active { background: #26262b; color: #fff; border-color: #45454d; }

/* Solutions */
.sol-visual { margin-top: 1rem; border-radius: 14px; height: 170px; overflow: hidden; position: relative; background: linear-gradient(160deg, #f4f4f5, #d4d4d8); }

/* Statistiques et conformite */
.stat-num { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.cert { border: 1px solid #e4e4e7; border-radius: 16px; background: #fff; text-align: center; padding: 1.4rem 1rem; }

/* Pied de page */
.foot-title { font-size: .72rem; font-weight: 600; margin-bottom: .8rem; }
.foot-link { display: block; font-size: .72rem; color: #8b8b94; padding: .22rem 0; transition: color .15s; }
.foot-link:hover { color: #fff; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90; background: #fff; color: #000; font-size: .8rem; font-weight: 600; padding: .7rem 1rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- Cas d'usage, etapes, tarification, FAQ ---- */
.uc-chip { font-size: .72rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1px solid #2c2c32; color: #a1a1aa; background: transparent; cursor: pointer; transition: all .15s; }
.uc-chip:hover { color: #fff; border-color: #55555d; }
.uc-chip.active { background: #fff; color: #000; border-color: #fff; }
.uc-card { display: flex; flex-direction: column; border: 1px solid #222226; border-radius: 18px; background: linear-gradient(180deg, #0f0f12, #0a0a0c); padding: 1.35rem; transition: border-color .2s, transform .2s; }
.uc-card:hover { border-color: #3d3d44; transform: translateY(-3px); }
.uc-card[hidden] { display: none; }
.uc-flow { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .66rem; color: #a1a1aa; }
.uc-flow span { border: 1px solid #2a2a30; border-radius: 999px; padding: .15rem .55rem; background: #0d0d10; }
.uc-flow i { color: #55555d; font-style: normal; }
.uc-tags { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.uc-tag { font-size: .6rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #d4d4d8; background: #1a1a1e; border: 1px solid #2a2a30; border-radius: 6px; padding: .15rem .45rem; }
.step-card { position: relative; background: #fff; border: 1px solid #e4e4e7; border-radius: 18px; padding: 1.4rem; }
.step-num { display: grid; place-items: center; height: 2.2rem; width: 2.2rem; border-radius: 50%; background: #09090b; color: #fff; font-size: .8rem; font-weight: 800; }
.price-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e4e4e7; border-radius: 18px; padding: 1.5rem; }
.price-card.featured { background: #09090b; color: #fff; border-color: #09090b; }
.price-card.featured .checklist li { color: #a1a1aa; }
.price-card.featured .checklist li::before { border-color: #71717a; }
.faq { border: 1px solid #e4e4e7; border-radius: 14px; background: #fff; padding: 0 1.2rem; }
.faq + .faq { margin-top: .7rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-size: .86rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; color: #71717a; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 0 1.1rem; font-size: .8rem; line-height: 1.7; color: #52525b; }
.glance { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1rem; }

/* ---- Menu deroulant, pages interieures, texte legal ---- */
.dd { position: relative; }
.dd > .nav-link { background: none; border: 0; cursor: pointer; font-family: inherit; font-size: .78rem; font-weight: 400; padding: 0; }
.dd-menu { display: none; position: absolute; left: -1rem; top: 100%; min-width: 280px; padding: .5rem; margin-top: .6rem; background: #0b0b0d; border: 1px solid #26262b; border-radius: 14px; box-shadow: 0 24px 60px -20px #000; }
.dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .7rem; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: .6rem .8rem; border-radius: 10px; }
.dd-menu a:hover { background: #17171a; }
.dd-menu .dm-t { font-size: .8rem; font-weight: 600; color: #fff; }
.dd-menu .dm-d { margin-top: .1rem; font-size: .68rem; color: #8e8e98; }
.nav-link.is-active { color: #fff; }
.prose-legal { max-width: 46rem; }
.prose-legal h2 { margin: 2.2rem 0 .7rem; font-size: 1.1rem; font-weight: 700; color: #09090b; letter-spacing: -.01em; }
.prose-legal h3 { margin: 1.4rem 0 .4rem; font-size: .92rem; font-weight: 700; color: #18181b; }
.prose-legal p, .prose-legal li { font-size: .88rem; line-height: 1.75; color: #3f3f46; }
.prose-legal p { margin: .6rem 0; }
.prose-legal ul { margin: .6rem 0 .6rem 1.1rem; list-style: disc; }
.prose-legal li { margin: .25rem 0; }
.prose-legal a { text-decoration: underline; }
.legal-note { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; border-radius: 12px; padding: .8rem 1rem; font-size: .78rem; line-height: 1.6; }
.toc a { display: block; padding: .3rem 0; font-size: .78rem; color: #52525b; }
.toc a:hover { color: #09090b; }
.spec { border: 1px solid #222226; border-radius: 16px; background: #0b0b0d; overflow: hidden; }
.spec table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.spec th { text-align: left; padding: .7rem 1rem; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: #8e8e98; font-weight: 600; }
.spec td { padding: .75rem 1rem; border-top: 1px solid #1c1c20; color: #d4d4d8; vertical-align: top; }
.spec code, .code-inline { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: #e4e4e7; }
.role { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid #e4e4e7; background: #fff; border-radius: 16px; padding: 1.2rem 1.4rem; }
.role + .role { margin-top: .8rem; }
.flow-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.flow-line .node { border: 1px solid #2c2c32; background: #0f0f12; border-radius: 12px; padding: .55rem .9rem; font-size: .74rem; font-weight: 600; }
.flow-line .arrow { color: #55555d; }
.light-section .code-inline, .step-card .code-inline, .card-light .code-inline { color: #18181b; background: #f4f4f5; padding: .05rem .35rem; border-radius: 5px; }
.code-inline { font-family: 'JetBrains Mono', monospace; font-size: .72rem; }
.uc-card.text-center { align-items: center; }
#siteHeader.scrolled { background: rgba(5,5,6,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lang-btn-top { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid #2c2c32; border-radius: 10px; padding: .45rem .7rem; color: #d4d4d8; font: 600 .72rem/1 Inter, sans-serif; cursor: pointer; }
.lang-btn-top:hover { color: #fff; border-color: #55555d; }
.lang-menu { left: auto; right: 0; min-width: 170px; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: #e4e4e7; }
.lang-menu a span { margin: 0; font-size: .65rem; color: #71717a; font-weight: 600; }
.lang-menu a.is-current { background: #17171a; }
