/* Prime Crew — site public. Thème « nuit », signature dégradé or → corail → violet → bleu. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #05071a; --bg-2: #0a0e2a; --card: rgba(16, 20, 52, .72); --line: rgba(255, 255, 255, .1);
  --text: #eef0ff; --soft: #c3c8ea; --mute: #8f96c2;
  --gold: #ffc857; --coral: #ff8a5c; --violet: #b65cff; --blue: #5b6cff; --cyan: #4fd8ff;
  --grad: linear-gradient(120deg, var(--gold) 0%, var(--coral) 32%, var(--violet) 68%, var(--blue) 100%);
  --radius: 18px; --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(182, 92, 255, .22), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(79, 216, 255, .12), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(255, 138, 92, .12), transparent 60%);
  background-attachment: fixed;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%); }
img { max-width: 100%; height: auto; display: block; }
a { color: #cbbeff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 40px); }
.text-center { text-align: center; }
.center { justify-content: center; }
.muted { color: var(--mute); }
.small { font-size: .88rem; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--soft); }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.glass { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #0b0820; box-shadow: 0 10px 30px rgba(182, 92, 255, .35); }
.btn-primary:hover { color: #0b0820; box-shadow: 0 14px 36px rgba(255, 138, 92, .4); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 7, 26, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: block; padding: 8px 12px; border-radius: 10px; color: var(--soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
html[data-section="fonctionnalites"] [data-section="fonctionnalites"] .nav-link,
html[data-section="agents"] [data-section="agents"] .nav-link,
html[data-section="securite"] [data-section="securite"] .nav-link,
html[data-section="blog"] [data-section="blog"] .nav-link,
html[data-section="faq"] [data-section="faq"] .nav-link { color: #fff; background: rgba(182, 92, 255, .18); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 20px 26px; background: rgba(5, 7, 26, .97); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; }
  .nav.open { transform: none; }
  .nav-list { flex-direction: column; }
  .nav-link { padding: 12px; font-size: 1.05rem; }
  .nav-cta { justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Fil d'Ariane */
.breadcrumb { padding-top: 22px; font-size: .88rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--mute); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .6; }

/* Sections */
.section { padding: 84px 0; }
.section-sm { padding: 48px 0; }
.section-tint { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.04)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 1.6rem; color: var(--mute); font-size: .92rem; list-style: none; padding: 0; }
.hero-proof li { display: flex; align-items: center; gap: 6px; }
.hero-proof .icon { color: var(--cyan); }
.hero-simple { padding: 56px 0 36px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

/* Maquette de téléphone */
.phone { position: relative; width: min(340px, 100%); margin-inline: auto; padding: 14px; border-radius: 44px; background: linear-gradient(160deg, #1b1f48, #0a0d26); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow), 0 0 120px rgba(182, 92, 255, .25); }
.phone-screen { border-radius: 32px; background: #070a20; padding: 22px 16px 18px; min-height: 560px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--mute); }
.phone-title { font-weight: 800; font-size: 1.35rem; margin: 6px 0 2px; }
.phone-sub { color: var(--soft); font-size: .86rem; margin-bottom: 4px; }
.task { display: flex; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: .84rem; line-height: 1.4; }
.task strong { display: block; font-size: .88rem; }
.task .meta { color: var(--mute); font-size: .76rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #0b0820; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring, var(--gold)); }
.task-actions { display: flex; gap: 6px; margin-top: 8px; }
.chip-btn { white-space: nowrap; font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); }
.chip-btn.ok { background: var(--grad); color: #0b0820; }
.orb { margin: auto auto 0; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #ffd38a 12%, var(--coral) 35%, var(--violet) 65%, var(--blue) 100%); box-shadow: 0 0 40px rgba(182,92,255,.7), 0 0 90px rgba(255,138,92,.35); animation: pulse 3.2s ease-in-out infinite; }
.orb-label { text-align: center; color: var(--mute); font-size: .76rem; }
@keyframes pulse { 50% { transform: scale(1.07); box-shadow: 0 0 56px rgba(182,92,255,.9), 0 0 120px rgba(255,138,92,.45); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } html { scroll-behavior: auto; } }

/* Grilles et cartes */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--soft); }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(182, 92, 255, .16); color: #e0d6ff; margin-bottom: 16px; }
.card-icon .icon { width: 24px; height: 24px; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 26px; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #0b0820; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: .7em; color: var(--soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 5px); width: 8px; height: 5px; border-left: 2px solid #0b0820; border-bottom: 2px solid #0b0820; transform: rotate(-45deg); }
.agent-card { display: flex; gap: 16px; align-items: flex-start; }
.agent-card img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring, var(--violet)); }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.quote { font-size: 1.15rem; color: var(--soft); border-left: 3px solid var(--violet); padding-left: 18px; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--soft); }

/* Appel final */
.cta-card { text-align: center; padding: 56px 32px; background: radial-gradient(600px 260px at 50% 0, rgba(182,92,255,.28), transparent 70%), var(--card); }
.cta-card .lead { max-width: 680px; margin-inline: auto; }

/* Formulaire de contact */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .form select { font: inherit; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.form textarea { min-height: 140px; resize: vertical; }

/* Blog */
.blog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--soft); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--grad); color: #0b0820; border-color: transparent; }
.blog-search { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--mute); min-width: 260px; }
.blog-search input { background: none; border: 0; color: var(--text); font: inherit; width: 100%; outline: none; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); border-color: rgba(182, 92, 255, .5); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-card img { aspect-ratio: 1200 / 630; object-fit: cover; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h2, .post-card-body h3 { font-size: 1.15rem; margin: .5em 0; }
.post-card-body p { color: var(--soft); font-size: .95rem; flex: 1; }
.post-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--mute); font-size: .85rem; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-empty { text-align: center; color: var(--mute); }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 60; }
.post-header-inner { max-width: 820px; }
.post-header h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-top: .4em; }
.post-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.post-toc { position: sticky; top: 92px; font-size: .9rem; }
.post-toc-title { font-weight: 800; cursor: pointer; margin-bottom: 8px; }
.post-toc ol { padding-left: 18px; margin: 0 0 16px; color: var(--mute); }
.post-toc li { margin-bottom: 6px; }
.post-toc a { color: var(--soft); text-decoration: none; }
.post-toc a:hover { color: #fff; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; gap: 24px; } .post-toc { position: static; } }
.prose { max-width: 740px; }
.prose h2 { margin-top: 2em; font-size: clamp(1.4rem, 2.8vw, 1.85rem); scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #dde0f7; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: #fff; }
.prose blockquote { margin: 1.6em 0; padding: 14px 20px; border-left: 3px solid var(--violet); background: rgba(182, 92, 255, .08); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: rgba(255,255,255,.06); }
.post-faq { margin-top: 2.4em; }
.post-cta { margin-top: 2.6em; padding: 28px; border-radius: var(--radius); background: radial-gradient(400px 200px at 0 0, rgba(255,200,87,.16), transparent 70%), var(--card); border: 1px solid var(--line); }
.post-cta h2 { margin-top: 0; }
.a-completer { color: var(--gold); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; background: rgba(0,0,0,.2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--soft); text-decoration: none; font-size: .95rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: var(--mute); margin-top: 12px; max-width: 320px; font-size: .95rem; }
.footer-title { font-weight: 800; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--mute); font-size: .88rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.reveal.visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
