/* Hub2Dev — couche design (chargée après style.css) :
   typographie de caractère, formes arrondies, rythme de sections, couleurs porteuses de sens. */
:root {
  --navy: #0a1f3f;
  --navy-2: #0f2c57;
  --cyan: #0ea5c6;
  --tint: #eef5fc;
  --violet: #6d5efc;
  --violet-soft: #f3f1ff;
  --amber: #f59e0b;
  --green: #10b981;
  --pink: #e0457b;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --grad: linear-gradient(90deg, #7dd3fc, #a5f3fc, #c4b5fd, #7dd3fc);
}

html, body { overflow-x: clip; }

/* ---------- Typographie ---------- */
h1, h2, h3, .logo, .stats b { font-family: var(--display); }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
h3 { font-weight: 700; letter-spacing: -.015em; }
h2 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; z-index: 0; }
h2 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .42em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 4, 120 4, 197 10' fill='none' stroke='%237dd3fc' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.section-head { margin-bottom: 40px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center p { margin-inline: auto; }

/* Étiquette de section en pastille */
.label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 99px; background: var(--tint); color: var(--accent); font-size: 12px; letter-spacing: .08em; }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.section-head h2 { margin-top: 14px; }

/* ---------- Navigation ---------- */
.logo-mark { background: linear-gradient(135deg, var(--accent), var(--cyan)); border-radius: 9px; box-shadow: 0 6px 14px -6px rgba(11,111,179,.7); }
.nav-links a.active { color: var(--accent); background: var(--tint); }

/* ---------- Boutons ---------- */
.btn { border-radius: 99px; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #0b6fb3, #0a8fd0); box-shadow: 0 10px 22px -10px rgba(11,111,179,.75); position: relative; overflow: hidden; }
.btn-primary:hover { background: linear-gradient(135deg, #095a92, #0b6fb3); }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn-primary:hover::after { left: 120%; }
.link svg { transition: transform .2s; }
.link:hover svg, a:hover .link svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; border: 0; padding: 76px 0 150px;
  background: radial-gradient(ellipse 60% 80% at 85% 10%, rgba(14,165,198,.55), transparent 60%),
              radial-gradient(ellipse 50% 70% at 0% 100%, rgba(109,94,252,.45), transparent 60%),
              linear-gradient(135deg, #071a36 0%, #0a3d78 50%, #0b6fb3 100%); }
.hero .container { position: relative; z-index: 2; }
.hero .label { background: rgba(255,255,255,.12); color: #a5e9ff; border: 1px solid rgba(255,255,255,.18); }
.nw { white-space: nowrap; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.06; color: #fff; }
.grad { background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.hero .lead { color: #d3e3f5; font-size: 18px; }
.hero .search { border: 0; border-radius: 99px; padding-left: 6px; box-shadow: 0 26px 50px -20px rgba(2,12,30,.7), 0 0 0 6px rgba(255,255,255,.12); transition: box-shadow .2s; }
.hero .search:focus-within { box-shadow: 0 26px 50px -20px rgba(2,12,30,.7), 0 0 0 6px rgba(125,211,252,.5); }
.hero .search .btn { margin: 6px; }
.hero .filters { color: #b4cbe4; }
.hero .filters a { border-radius: 99px; padding: 5px 13px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; transition: background .2s, color .2s; }
.hero .filters a:hover { background: #fff; color: var(--accent); border-color: #fff; }
.hero .trust { color: #e2eefa; }
.hero .trust svg { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }

/* Formes décoratives du hero */
.shapes span { position: absolute; pointer-events: none; z-index: 1; }
.shapes .ring { width: 420px; height: 420px; right: -110px; top: -140px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); animation: spin 60s linear infinite; }
.shapes .ring::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #7dd3fc; top: 50%; left: -9px; box-shadow: 0 0 20px #7dd3fc; }
.shapes .ring.sm { width: 180px; height: 180px; left: 40%; bottom: 40px; top: auto; right: auto; border-style: dashed; border-color: rgba(255,255,255,.14); animation-duration: 40s; animation-direction: reverse; }
.shapes .ring.sm::after { display: none; }
.shapes .sq { width: 90px; height: 90px; left: 3%; top: 90px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.16); transform: rotate(18deg); animation: bob 9s ease-in-out infinite; }
.shapes .dots { width: 120px; height: 90px; right: 42%; top: 40px; background-image: radial-gradient(rgba(255,255,255,.35) 2px, transparent 2px); background-size: 18px 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: rotate(10deg) translateY(-14px); } }

/* Fil d'Ariane (pages internes) */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #b4cbe4; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs b { color: #fff; font-weight: 600; }
.crumbs span { opacity: .5; }

/* Vague de transition */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; fill: var(--bg); }

/* Entrée du hero */
.hero-grid > div:first-child > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: .24s; }
.hero-grid > div:first-child > *:nth-child(5) { animation-delay: .32s; }
.hero-grid > div:first-child > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Fiche en vitrine */
.stage { position: relative; padding: 66px 0 10px; animation: rise .9s .25s cubic-bezier(.2,.7,.2,1) both; color: var(--text); }
.preview { position: relative; z-index: 2; border: 0; border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(2,12,30,.75); animation: float 6s ease-in-out infinite; }
.preview::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--accent), var(--cyan), var(--violet)); }
.preview-head { padding-top: 26px; }
.preview .avatar { background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; border: 0; border-radius: 14px; }
.preview-foot { background: var(--tint); }
.preview-back { position: absolute; inset: 84px -18px -6px 18px; border-radius: 22px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); transform: rotate(4deg); z-index: 1; }
@keyframes float { 50% { transform: translateY(-10px); } }
.toast { position: absolute; z-index: 3; top: 0; left: -34px; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 16px 10px 10px; box-shadow: 0 20px 40px -14px rgba(2,12,30,.6); font-size: 13px; max-width: 330px; transition: opacity .4s, transform .4s; }
.toast b { display: block; font-size: 12.5px; color: var(--accent); }
.toast > span:last-child > span { color: var(--text-2); }
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast-ic { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #fff4dc, #ffe6b0); color: #b45309; display: grid; place-items: center; flex: none; position: relative; }
.toast-ic::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }

/* ---------- Deux publics ---------- */
.audiences { margin-top: -96px; z-index: 3; gap: 24px; }
.audience { border: 0; border-radius: 24px; padding: 30px; position: relative; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(10,31,63,.45); }
.audience:first-child { background: linear-gradient(135deg, #ffffff 40%, #e7f3fd); }
.audience:nth-child(2) { background: linear-gradient(135deg, #ffffff 40%, #e6f8f1); }
.audience::after { content: ""; position: absolute; width: 150px; height: 150px; right: -50px; bottom: -60px; border-radius: 40px; transform: rotate(25deg); background: color-mix(in srgb, var(--c, var(--accent)) 10%, transparent); transition: transform .5s; }
.audience:nth-child(2) { --c: var(--green); }
.audience:hover::after { transform: rotate(45deg) scale(1.1); }
.audience .ic { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; box-shadow: 0 10px 20px -10px rgba(11,111,179,.8); }
.audience:nth-child(2) .ic { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 10px 20px -10px rgba(5,150,105,.8); }
.audience:nth-child(2) .link { color: #047857; }
.audience h3 { font-size: 20px; }

/* ---------- Compteurs ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; gap: 0; }
.stats > div { padding: 6px 28px; text-align: center; }
.stats > div + div { border-left: 2px dashed var(--line); }
.stats b { display: block; font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.stats > div:nth-child(1) b { color: var(--accent); }
.stats > div:nth-child(2) b { color: var(--pink); }
.stats > div:nth-child(3) b { color: var(--violet); }
.stats > div:nth-child(4) b { color: #0d9488; }
.stats span { font-size: 14.5px; color: var(--text-3); }

/* ---------- Plateformes ---------- */
#annuaire { position: relative; }
.platforms { gap: 14px; }
.platform { --c: var(--accent); border-radius: 18px; padding: 18px 20px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.platform::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); transform: scaleY(0); transition: transform .3s; }
.platform .mono { width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); font-family: var(--display); font-weight: 800; transition: background .25s, color .25s, transform .25s; }
.platform b { font-family: var(--display); font-size: 16px; }
.platform .count { padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--c); font-weight: 600; font-size: 12.5px; }
.platform:hover { border-color: color-mix(in srgb, var(--c) 40%, #fff); box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--c) 70%, transparent); }
.platform:hover::before { transform: scaleY(1); }
.platform:hover .mono { background: var(--c); color: #fff; transform: rotate(-8deg); }

.expertises { gap: 12px; margin-top: 30px; }
.expertise { border-radius: 99px; padding: 10px 18px 10px 10px; gap: 10px; font-weight: 500; color: var(--text); }
.expertise svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--tint); color: var(--accent); }
.expertise:nth-child(2) svg { background: #fdeef4; color: var(--pink); }
.expertise:nth-child(3) svg { background: #e8f8f1; color: #059669; }
.expertise:nth-child(4) svg { background: #fdecec; color: #dc2626; }
.expertise:nth-child(5) svg { background: var(--violet-soft); color: var(--violet); }
.expertise:nth-child(6) svg { background: #fff5e1; color: #d97706; }
.expertise:hover { border-color: var(--accent); background: #fff; box-shadow: 0 10px 22px -14px rgba(11,111,179,.6); }

/* ---------- Profils (section teintée aux coins arrondis) ---------- */
.section.tint { background: var(--tint); border-radius: 56px 56px 0 0; position: relative; }
.section.tint::before { content: ""; position: absolute; width: 260px; height: 260px; right: 4%; top: -60px; border-radius: 60px; transform: rotate(20deg); background: linear-gradient(135deg, rgba(14,165,198,.16), rgba(109,94,252,.1)); z-index: 0; }
.section.tint .container { position: relative; z-index: 1; }
.pcard { border: 0; border-radius: 22px; padding: 0 0 20px; overflow: hidden; gap: 12px; box-shadow: 0 14px 34px -24px rgba(10,31,63,.4); }
.pcard > *:not(.cover) { margin-inline: 22px; }
.cover { height: 70px; position: relative; overflow: hidden;
  /* Bandeau unique bleu nuit Hub2Dev (même dégradé que le bandeau d'accueil), les logos ressortent dessus */
  background: radial-gradient(ellipse 60% 140% at 100% 0%, rgba(14,165,198,.45), transparent 70%), linear-gradient(120deg, #071a36 0%, #0a3d78 60%, #0b5a99 100%); }
.cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(125,211,252,.35) 1.5px, transparent 1.5px); background-size: 14px 14px; mask-image: linear-gradient(90deg, transparent 35%, #000); }
.pcard-top { position: relative; z-index: 1; margin-top: -38px; flex-direction: column; align-items: flex-start; gap: 10px; }
.pcard-top h3 { font-size: 18px; }
.pcard .avatar { width: 62px; height: 62px; border-radius: 18px; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 18px -8px rgba(10,31,63,.45); color: var(--accent); font-family: var(--display); font-size: 19px; }
.pcard .tag { border-radius: 99px; background: var(--bg-2); }
.pcard-foot { border-top-style: dashed; }
.pcard:hover { box-shadow: 0 26px 46px -24px rgba(10,31,63,.5); }

/* ---------- Écosystème (panneau sombre) ---------- */
.dark-panel { background: radial-gradient(ellipse 50% 70% at 100% 0%, rgba(14,165,198,.3), transparent 60%), radial-gradient(ellipse 40% 60% at 0% 100%, rgba(109,94,252,.3), transparent 60%), var(--navy); color: #fff; border-radius: 36px; padding: 60px; position: relative; overflow: hidden; }
.dark-panel::after { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; bottom: -120px; border-radius: 50%; border: 40px solid rgba(255,255,255,.04); }
.dark-panel .label { background: rgba(255,255,255,.1); color: #a5e9ff; }
.dark-panel h2 em { color: #7dd3fc; }
.dark-panel .section-head p { color: #a9bdd6; }
.eco { position: relative; z-index: 1; }
.eco-card { --c: var(--accent); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; color: #fff; backdrop-filter: blur(4px); transition: transform .25s, background .25s, border-color .25s; }
.eco-card:nth-child(1) { --c: #38bdf8; } .eco-card:nth-child(2) { --c: #fbbf24; } .eco-card:nth-child(3) { --c: #34d399; } .eco-card:nth-child(4) { --c: #a78bfa; }
.eco-card p { color: #a9bdd6; }
.eco-card .tag { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: #d6e2f0; border-radius: 99px; }
.eco-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); margin-bottom: 6px; transition: transform .3s; }
.eco-card:hover { background: rgba(255,255,255,.09); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.eco-card:hover .eco-ic { transform: rotate(-10deg) scale(1.08); }

/* ---------- Appels d'offres ---------- */
.steps { position: relative; gap: 26px; }
.steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; border-left: 2px dashed #bfd6ec; }
.steps li { position: relative; }
.steps .n { width: 40px; height: 40px; font-size: 16px; font-family: var(--display); font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: #fff; border: 4px solid #fff; box-shadow: 0 6px 14px -6px rgba(11,111,179,.7); }
.steps li:nth-child(2) .n { background: linear-gradient(135deg, var(--violet), #a78bfa); box-shadow: 0 6px 14px -6px rgba(109,94,252,.7); }
.steps li:nth-child(3) .n { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 6px 14px -6px rgba(5,150,105,.7); }
.steps b { font-family: var(--display); font-size: 17px; }
#projets .list { border: 0; border-radius: 24px; box-shadow: 0 30px 60px -34px rgba(10,31,63,.45); position: relative; }
#projets .split > div:last-child { position: relative; }
#projets .split > div:last-child::before { content: ""; position: absolute; inset: -18px 30px auto -18px; height: 70%; border-radius: 30px; background: linear-gradient(135deg, #fff1d6, #ffe0ea); transform: rotate(-3deg); z-index: -1; }
#projets .split { position: relative; z-index: 0; }
.list-head { background: #fff; padding: 18px 22px; font-family: var(--display); font-size: 15px; }
.item { padding: 20px 22px; transition: background .2s; }
.item:hover { background: #f6faff; }
.item h3 { font-size: 16.5px; }
.item .price { color: #047857; background: #e8f8f1; padding: 4px 11px; border-radius: 99px; font-size: 14px; }
.item .date { margin-top: 6px; }
.item .tag { border-radius: 99px; }

/* ---------- Marketplace ---------- */
.module { --c: var(--accent); border: 0; border-radius: 22px; box-shadow: 0 14px 34px -24px rgba(10,31,63,.4); transition: transform .25s, box-shadow .25s; }
.module .thumb { border: 0; position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 55%, #0a1f3f)); color: #fff; }
.module .thumb::before { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -40px; top: -50px; background: rgba(255,255,255,.14); }
.module .thumb::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 18px; left: -18px; bottom: -22px; background: rgba(255,255,255,.12); transform: rotate(25deg); }
.module .thumb svg { position: relative; z-index: 1; width: 44px; height: 44px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.18); transition: transform .4s; }
.module:hover { box-shadow: 0 26px 46px -24px rgba(10,31,63,.5); }
.module:hover .thumb svg { transform: scale(1.12) rotate(-8deg); }
.module .cat { color: var(--c); font-weight: 600; }
.module .foot b { font-family: var(--display); font-size: 16px; }

/* ---------- Communauté (panneau violet doux) ---------- */
.soft-panel { background: linear-gradient(135deg, var(--violet-soft), #eaf4ff); border-radius: 36px; padding: 56px; position: relative; overflow: hidden; }
.soft-panel::before { content: ""; position: absolute; width: 220px; height: 220px; left: -70px; bottom: -90px; border-radius: 50%; background: rgba(109,94,252,.12); }
.soft-panel > * { position: relative; }
.soft-panel .label { background: #fff; color: var(--violet); }
.soft-panel h2 em { color: var(--violet); }
.soft-panel h2 em::after { filter: hue-rotate(70deg); }
.community li svg { color: #fff; background: var(--violet); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 2px; }
.community .btn-outline { border-color: transparent; background: #fff; box-shadow: 0 10px 22px -14px rgba(109,94,252,.7); }
.channels { border: 0; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(60,40,160,.4); transform: rotate(1.5deg); transition: transform .4s; }
.channels:hover { transform: rotate(0); }
.channels .list-head { gap: 12px; justify-content: flex-start; background: #fbfaff; }
.channels .list-head > span:last-child { margin-left: auto; }
.win { display: inline-flex; gap: 5px; }
.win i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.win i:nth-child(2) { background: #fbbf24; } .win i:nth-child(3) { background: #34d399; }
.channel { padding: 13px 22px; transition: background .2s, padding-left .2s; }
.channel:hover { background: var(--violet-soft); padding-left: 28px; }
.channel span:first-child::before { color: var(--violet); font-weight: 700; }

/* ---------- Pourquoi ---------- */
.why { gap: 22px; }
.why > div { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; text-align: center; transition: transform .25s, box-shadow .25s; }
.why > div:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(10,31,63,.45); }
.why .ic { width: 64px; height: 64px; margin: 0 auto 18px; border: 0; border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%; background: var(--tint); color: var(--accent); transition: transform .4s, border-radius .6s; }
.why .ic svg { width: 26px; height: 26px; }
.why > div:hover .ic { transform: rotate(-10deg) scale(1.06); border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%; }
.why > div:nth-child(2) .ic { background: #fff5e1; color: #d97706; }
.why > div:nth-child(3) .ic { background: #e8f8f1; color: #059669; }
.why > div:nth-child(4) .ic { background: var(--violet-soft); color: var(--violet); }

/* ---------- Appel final ---------- */
.cta { position: relative; overflow: hidden; border-radius: 36px; padding: 60px; background: radial-gradient(ellipse 60% 90% at 100% 100%, rgba(14,165,198,.6), transparent 60%), linear-gradient(135deg, #0a3d78, #0b6fb3); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); }
.cta p { color: #cfe2f5; }
.cta .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 12px 26px -12px rgba(2,12,30,.6); }
.cta .btn-primary::after { background: linear-gradient(100deg, transparent, rgba(11,111,179,.15), transparent); }
.cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-ring { position: absolute !important; z-index: 0 !important; width: 260px; height: 260px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.2); left: -80px; top: -120px; animation: spin 50s linear infinite; }
.cta-ring.two { width: 160px; height: 160px; left: auto; right: 22%; top: auto; bottom: -90px; border: 26px solid rgba(255,255,255,.07); }

/* ---------- Pied de page ---------- */
footer { background: var(--navy); color: #c3d2e6; border: 0; border-radius: 48px 48px 0 0; }
footer .foot h4 { color: #fff; }
footer .foot a, footer .foot p { color: #9fb3cc; }
footer .foot a:hover { color: #7dd3fc; }
footer .logo { color: #fff; }
footer .legal { border-color: rgba(255,255,255,.1); color: #7f95b1; }

/* ---------- Logos de marques (Simple Icons, teintés en CSS) ---------- */
.brand { display: inline-block; flex: none; background: currentColor; vertical-align: middle;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.brand-none { -webkit-mask: none; mask: none; display: inline-grid; place-items: center; }
/* Le logo reste un simple masque, même dans les pastilles qui stylent tous leurs <span> */
span.brand { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: currentColor !important; }
span.brand-none { background: none !important; }
.platform .mono { width: 50px; height: 50px; border-radius: 16px; }
.platform:hover .mono { transform: rotate(-8deg) scale(1.06); }

/* Logos en couleurs : posés sur un fond clair, qui reste clair au survol et quand un filtre est coché */
.brand-img { display: block; flex: none; object-fit: contain; }
.platform .mono { background: #fff; border: 1px solid color-mix(in srgb, var(--c) 18%, #fff); box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--c) 80%, transparent); }
.platform:hover .mono { background: #fff; border-color: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: 0 10px 20px -10px var(--c); }
.opt.cms b, .opt.cms input:checked + span b { background: #fff; }

/* ---------- Accueil : sections branchées sur les autres pages ---------- */
.home-modules { margin-top: 0; }
.home-chat { display: grid; gap: 16px; position: relative; }
.home-chat .chat-body { min-height: 240px; }
.home-salons { display: flex; flex-wrap: wrap; gap: 8px; }
.home-salons a { padding: 6px 13px; border-radius: 99px; background: #fff; color: var(--violet); font-weight: 600; font-size: 13.5px; box-shadow: 0 8px 18px -12px rgba(60,40,160,.5); transition: transform .2s, background .2s, color .2s; }
.home-salons a:hover { transform: translateY(-2px); background: var(--violet); color: #fff; }
.item .pj-top { margin-bottom: 0; }

/* ---------- Statut des appels d'offres (partagé) ---------- */
.pj-top { display: flex; align-items: center; gap: 10px; }
.pj-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.pj-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-ouvert .pj-status::before, .pjv-card .pj-status::before { animation: ping-dot 1.8s infinite; }
@keyframes ping-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 6px transparent; } }
.pj-date { font-size: 13px; color: var(--text-3); }

/* ---------- Apparition au défilement ---------- */
.platform, .expertise, .module, .pcard, .eco-card, .audience, .why > div { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .25s, box-shadow .25s, border-color .25s, background .25s; }
.platform:hover, .expertise:hover { transform: translateY(-2px); }
.pcard:hover, .module:hover, .eco-card:hover, .audience:hover { transform: translateY(-4px); }
.reveal:not(.in) { opacity: 0; transform: translateY(14px); }
.reveal { transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s, background .25s; }
.reveal.in:hover { transition-delay: 0s !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .toast { left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats > div:nth-child(3) { border-left: 0; }
  .shapes .dots, .shapes .ring.sm { display: none; }
  .soft-panel, .dark-panel { padding: 44px 32px; }
}
@media (max-width: 680px) {
  .hero { padding: 44px 0 130px; }
  .hero .search { border-radius: 22px; padding-left: 0; }
  .hero .search .btn { margin: 0 8px 8px; }
  .preview-back, .shapes .sq { display: none; }
  .audiences { margin-top: -80px; }
  .stats b { font-size: 36px; }
  .stats > div { padding: 6px 12px; }
  .section.tint { border-radius: 32px 32px 0 0; }
  .section.tint::before { display: none; }
  .dark-panel, .soft-panel, .cta { padding: 34px 20px; border-radius: 26px; }
  #projets .split > div:last-child::before { display: none; }
  .channels { transform: none; }
  footer { border-radius: 28px 28px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal:not(.in) { opacity: 1; transform: none; }
}

/* ---------- Données réelles : logos des membres et descriptions saisies ---------- */
.has-logo { background: #fff !important; padding: 6px; overflow: hidden; }
.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.r-avatar-wrap, .id-avatar-wrap { position: relative; flex: none; align-self: start; }
.rich { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.rich > * + * { margin-top: 12px; }
.rich h2, .rich h3, .rich h4 { font-family: var(--display); color: var(--text); font-size: 18px; letter-spacing: -.02em; margin-top: 22px; }
.rich ul, .rich ol { padding-left: 22px; display: grid; gap: 6px; }
.rich li::marker { color: var(--accent); }
.rich strong, .rich b { color: var(--text); }
.chip-soft.violet { background: var(--violet-soft); color: var(--violet); }

/* Bandeau d'aperçu d'un contenu non publié (admin ou auteur) */
.apercu-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 16px; border-radius: 16px; background: #fff5e1; color: #92400e; font-weight: 500; position: relative; z-index: 5; }
.apercu-banner a { margin-left: auto; font-weight: 700; color: #92400e; text-decoration: underline; }

/* Logos de sociétés : l'image remplit le cadre et en épouse les coins arrondis (plus de marge blanche ni de halo coloré) */
.has-logo { padding: 0 !important; border: 1px solid var(--line); }
.has-logo img { border-radius: inherit; }
.r-avatar.has-logo { box-shadow: 0 10px 22px -14px rgba(10,31,63,.45); }
.r-card:hover .r-avatar.has-logo { border-radius: 22px; transform: rotate(-4deg) scale(1.04); }

/* Cadrage du logo choisi par le membre : zoom (--ls) autour d'un point (--lx, --ly) */
.has-logo { position: relative; }
.logo-cadre { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #fff; }
.logo-cadre img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0 !important; padding: 0 !important;
  object-position: var(--lx, 50%) var(--ly, 50%); transform: scale(var(--ls, 1)); transform-origin: var(--lx, 50%) var(--ly, 50%); }

/* Accueil : pas d'anneau animé autour des logos (rendu jugé peu esthétique et sujet au scintillement) ; logo bien arrondi dans son cadre */
.pcard .avatar.has-logo .logo-cadre { border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .id-avatar::before { animation: none; } }

/* Message de confirmation affiché sur l'accueil (ex. compte supprimé) */
.flash-site { background: #dcfce7; color: #166534; }

/* ---------- Avis clients (fiches et modules) ---------- */
.av-etoiles { color: #f59e0b; letter-spacing: 1px; font-size: 16px; white-space: nowrap; }
.av-etoiles i { font-style: normal; color: #e2e8f0; }
.av-moyenne { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--text-2); }
.av-liste { display: grid; gap: 12px; margin-top: 22px; }
.av-item { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.av-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.av-tete b { font-family: var(--display); font-size: 15.5px; }
.av-item p { margin: 8px 0 6px; color: var(--text-2); line-height: 1.6; }
.av-item small { color: var(--text-3); font-size: 13px; }
.av-msg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--bg-2, #f6f9fc); color: var(--text-2); }
.av-msg .btn { margin-left: auto; }
.av-msg.ok { background: #dcfce7; color: #166534; }
.av-msg.ko { background: #fee2e2; color: #991b1b; margin: 0 0 12px; }
.av-form { margin-top: 22px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: #fff; display: grid; gap: 12px; }
.av-form h3 { font: 800 18px var(--display); margin: 0; }
.av-form .f { display: grid; gap: 6px; }
.av-form .f span { font-weight: 600; font-size: 14px; }
.av-form input[type=text], .av-form input:not([type]), .av-form textarea { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); font: inherit; background: #fff; }
.av-form .f-help { margin: 0; font-size: 13px; color: var(--text-3); }
.av-form .f-err { color: #b91c1c; font-size: 13px; }
.av-form .btn { justify-self: start; }
.av-notes { border: 0; padding: 0; margin: 0; }
.av-notes legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.av-choix { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.av-notes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-notes label { font-size: 30px; line-height: 1; color: #e2e8f0; cursor: pointer; transition: color .15s, transform .15s; }
.av-notes label:hover, .av-notes label:hover ~ label, .av-notes input:checked ~ label { color: #f59e0b; }
.av-notes label:hover { transform: scale(1.12); }
.av-notes input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
