/* =========================================================
   QUALICONNECT — Pages "pôle"
   Design cohérent avec la visite (OLED dark, cyan/indigo, Space Grotesk)
   Pattern Bento Showcase : hero centré + grille de features + CTA.
   ========================================================= */
:root {
  --bg:        #04060c;
  --accent:    #38d6f5;
  --accent-2:  #7c8cff;
  --ink:       #042029;
  --text:      #f6f9ff;
  --text-dim:  rgba(233, 240, 255, .74);
  --text-faint:rgba(233, 240, 255, .5);
  --surface:   linear-gradient(160deg, #151e34 0%, #0c1322 100%);
  --brd:       rgba(255, 255, 255, .12);
  --radius:    20px;
  --shadow:    0 28px 70px -24px rgba(0, 0, 0, .72);
  --ease:      cubic-bezier(.16, 1, .3, 1);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --pole: var(--accent);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body); color: var(--text); background: var(--bg);
  min-height: 100vh; -webkit-font-smoothing: antialiased; line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* Halo lumineux à la couleur du pôle, derrière le hero */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -8%, color-mix(in srgb, var(--pole) 26%, transparent), transparent 70%),
    radial-gradient(60% 50% at 100% 0%, rgba(124, 140, 255, .1), transparent 60%);
}

/* ---- En-tête ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 6, 12, .55); border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; mix-blend-mode: screen; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.brand b { color: var(--accent); font-weight: 600; }
.back {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: .9rem; color: var(--text-dim); padding: 8px 14px; border-radius: 99px;
  border: 1px solid var(--brd); transition: color .2s, border-color .2s, background .2s;
}
.back:hover, .back:focus-visible { color: #fff; border-color: var(--pole); background: rgba(255, 255, 255, .05); outline: none; }
/* Le menu burger flotte en haut à gauche : on décale l'en-tête quand elle touche le bord */
@media (max-width: 1040px) { .site-header__in { padding-left: 74px; } }
@media (max-width: 560px) { .brand span { display: none; } }

/* ---- Hero (centré) ---- */
.hero { text-align: center; padding: clamp(54px, 10vw, 110px) 0 clamp(30px, 5vw, 54px); }
.hero__icon {
  width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  margin: 0 auto 24px; background: var(--surface); border: 1px solid var(--brd);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--pole) 40%, transparent);
}
.hero__icon svg { width: 36px; height: 36px; stroke: var(--pole); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__eyebrow {
  display: inline-block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  color: var(--pole); padding: 7px 16px; border-radius: 99px; margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--pole) 45%, transparent);
  background: color-mix(in srgb, var(--pole) 10%, transparent);
}
.hero__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2.3rem, 6vw, 4.1rem); line-height: 1.03;
}
.hero__tagline { margin: 18px auto 0; font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--text-dim); font-weight: 300; max-width: 640px; }
.hero__intro { margin: 22px auto 0; font-size: 1.05rem; color: var(--text-dim); max-width: 660px; }

/* ---- Features (bento) ---- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 16px 0 44px; counter-reset: feat; }
.feature {
  position: relative; overflow: hidden; padding: 28px 26px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--brd);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.feature::before {
  content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pole), transparent);
}
.feature::after {
  counter-increment: feat; content: counter(feat, decimal-leading-zero);
  position: absolute; top: 18px; right: 22px; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; color: color-mix(in srgb, var(--pole) 32%, transparent);
}
.feature:hover, .feature:focus-within {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--pole) 55%, transparent);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--pole) 45%, transparent);
}
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin-bottom: 8px; color: #fff; padding-right: 36px; }
.feature p { font-size: .95rem; color: var(--text-dim); font-weight: 300; }
/* Retours à la ligne soignés (titres équilibrés, paragraphes sans orphelins) */
.hero__title, .hero__tagline, .feature h3, .endcta h2 { text-wrap: balance; }
.hero__intro, .feature p, .endcta p { text-wrap: pretty; }

/* ---- Autres pôles (centré) ---- */
.others { padding: 8px 0 52px; text-align: center; }
.others__title { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-weight: 600; }
.others__grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  --cc: var(--c, var(--accent));
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 11px 18px; border-radius: 99px; font-size: .94rem; font-weight: 600; color: #fff;
  background: color-mix(in srgb, var(--cc) 28%, transparent);
  border: 1px solid color-mix(in srgb, var(--cc) 60%, transparent);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.chip__emoji { font-size: 1.1rem; line-height: 1; }
.chip:hover, .chip:focus-visible {
  transform: translateY(-2px); outline: none;
  background: color-mix(in srgb, var(--cc) 42%, transparent);
  border-color: color-mix(in srgb, var(--cc) 92%, transparent);
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--cc) 90%, transparent);
}

/* ---- CTA bas de page ---- */
.endcta {
  text-align: center; padding: clamp(44px, 7vw, 76px) 0 clamp(64px, 9vw, 104px);
  border-top: 1px solid rgba(255, 255, 255, .07); margin-top: 4px;
}
.endcta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.02em; }
.endcta p { color: var(--text-dim); margin: 12px 0 26px; }
.endcta__row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 16px 30px; border-radius: 99px; font-weight: 600; color: var(--ink);
  background: linear-gradient(95deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 42px -10px rgba(56, 214, 245, .55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cta:hover, .cta:focus-visible { transform: translateY(-3px); box-shadow: 0 20px 54px -10px rgba(56, 214, 245, .8); outline: none; }
.cta--ghost { background: none; color: var(--text); border: 1px solid var(--brd); box-shadow: none; }
.cta--ghost:hover, .cta--ghost:focus-visible { border-color: var(--pole); background: rgba(255, 255, 255, .05); }

/* ---- Apparition en cascade ---- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__icon    { animation: rise .6s var(--ease) both; }
.hero__eyebrow { animation: rise .6s .06s var(--ease) both; }
.hero__title   { animation: rise .6s .12s var(--ease) both; }
.hero__tagline { animation: rise .6s .18s var(--ease) both; }
.hero__intro   { animation: rise .6s .24s var(--ease) both; }
.feature       { animation: rise .6s var(--ease) both; }
.feature:nth-child(1) { animation-delay: .28s; }
.feature:nth-child(2) { animation-delay: .34s; }
.feature:nth-child(3) { animation-delay: .40s; }
.feature:nth-child(4) { animation-delay: .46s; }

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__icon, .hero__eyebrow, .hero__title, .hero__tagline, .hero__intro, .feature { animation: none; }
}
