/* Sinova — landing. Palette validée : #59AEF3 · #030C2B · #010A27 · #B8C4D4 · #49B0FD
   Teintes dérivées pour le clair : fond #F3F7FC, texte secondaire #4A5878, bleu texte #1667B5 (contraste AA sur blanc). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --background: #010a27;
  --surface: #030c2b;
  --foreground: #ffffff;
  --muted-foreground: #b8c4d4;
  --accent: #59aef3;
  --action: #49b0fd;
  --action-foreground: #ffffff;
  --border: rgba(184, 196, 212, 0.14);
  --border-strong: rgba(89, 174, 243, 0.45);
  --glow: rgba(73, 176, 253, 0.35);
  --light-background: #f3f7fc;
  --light-surface: #ffffff;
  --light-foreground: #030c2b;
  --light-muted: #4a5878;
  --light-accent: #1667b5;
  --light-border: rgba(3, 12, 43, 0.09);
  --radius: 24px;
  --radius-sm: 14px;
  --measure: 76rem;
  --font-sans: "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; background: var(--background); color: var(--muted-foreground);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; word-spacing: 0.05em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--foreground); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { color: var(--foreground); line-height: 1.1; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--action); color: var(--action-foreground); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip-link:focus { left: 16px; }
.container { position: relative; width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.pill-label { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(73, 176, 253, 0.08); color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.lede { font-size: 1.15rem; max-width: 40rem; }
.accent { color: var(--accent); }
.underline { position: relative; white-space: nowrap; }
.underline svg { position: absolute; left: -2%; width: 104%; bottom: -0.32em; height: 0.35em; color: var(--action); overflow: visible; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 700 1rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--action); color: var(--action-foreground); box-shadow: 0 10px 40px -10px var(--glow); }
.btn-primary:hover { color: var(--action-foreground); transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(73, 176, 253, 0.7); }
.btn-ghost { border: 1px solid var(--border); color: var(--foreground); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: var(--accent); color: var(--foreground); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(1, 10, 39, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 22px; width: auto; }
.nav { display: none; gap: 32px; }
.nav a { color: var(--muted-foreground); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--foreground); }
@media (min-width: 960px) { .nav { display: flex; } }
.site-header .btn { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }

/* Sections */
section { position: relative; padding: 88px 0; }
@media (min-width: 768px) { section { padding: 104px 0; } }
.section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 46rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }

/* Thème clair */
.light { background: var(--light-background); color: var(--light-muted); }
.light.white { background: var(--light-surface); }
.light h2, .light h3, .light strong { color: var(--light-foreground); }
.light .accent { color: var(--light-accent); }
.light .pill-label { color: var(--light-accent); background: rgba(22, 103, 181, 0.07); border-color: rgba(22, 103, 181, 0.25); }
.light a { color: var(--light-accent); }

/* Hero */
.hero { padding: 72px 0 0; background: radial-gradient(ellipse 60% 70% at 85% 10%, rgba(73, 176, 253, 0.25), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(89, 174, 243, 0.12), transparent 70%), var(--background); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; opacity: 0.35; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 1020px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; } }
.hero-copy { display: grid; gap: 26px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); letter-spacing: -0.035em; line-height: 1.06; padding-bottom: 0.25em; }
.hero h1 .soft { display: block; color: var(--muted-foreground); font-weight: 600; font-size: 0.72em; margin-bottom: 0.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Mots qui défilent */
.rotator { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; color: var(--foreground); }
.rotator-window { display: inline-block; height: 1.65em; overflow: hidden; vertical-align: bottom; }
.rotator-list { display: block; margin: 0; padding: 0; list-style: none; color: var(--accent); }
.rotator-list > span { display: block; height: 1.65em; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Comparatif */
.compare { display: grid; gap: 14px; }
.panel { border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); background: rgba(3, 12, 43, 0.7); }
.panel h2 { font-size: 1.05rem; margin-bottom: 18px; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; }
.panel li svg { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.panel-generic { opacity: 0.85; }
.panel-generic li svg, .panel-generic h2 { color: var(--muted-foreground); }
.panel-custom { position: relative; background: linear-gradient(160deg, rgba(73, 176, 253, 0.18), rgba(3, 12, 43, 0.9) 60%); border-color: var(--border-strong); box-shadow: 0 30px 80px -30px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.panel-custom li { color: var(--foreground); }
.panel-custom li svg { color: var(--action); }
.badge { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--action); color: var(--action-foreground); font-size: 0.85rem; }
.badge-muted { background: transparent; border: 1px solid var(--border); color: var(--muted-foreground); }
.target { position: absolute; right: 20px; bottom: 20px; width: 64px; height: 64px; color: var(--action); filter: drop-shadow(0 0 12px var(--glow)); }
@media (max-width: 480px) { .target { display: none; } }

/* Bandeau bénéfices */
.benefits-row { position: relative; z-index: 1; margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: rgba(3, 12, 43, 0.85); }
@media (min-width: 760px) { .benefits-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.benefit { display: flex; align-items: center; gap: 18px; padding: 28px; }
.benefit + .benefit { border-top: 1px solid var(--border); }
@media (min-width: 760px) { .benefit + .benefit { border-top: 0; border-left: 1px solid var(--border); } }
.benefit svg { flex: none; width: 40px; height: 40px; color: var(--action); }
.benefit strong { display: block; color: var(--foreground); font-size: 1.08rem; }
.benefit span { font-size: 0.92rem; }

/* Bandeau défilant */
.marquee { background: var(--action); color: var(--action-foreground); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.marquee li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); opacity: 0.6; }

/* Bloc photo + texte */
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 940px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } .feature.reverse > :first-child { order: 2; } }
.feature .section-head { margin-bottom: 0; }
.photo { position: relative; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 40px 80px -40px rgba(3, 12, 43, 0.45); }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--light-surface); color: var(--light-foreground); font-weight: 600; font-size: 0.9rem; box-shadow: 0 18px 40px -16px rgba(3, 12, 43, 0.35); }
.chip svg { width: 22px; height: 22px; color: var(--action); flex: none; }
.chip small { display: block; font-weight: 500; color: var(--light-muted); font-size: 0.78rem; }
.chip-a { top: 8%; left: -12px; }
.chip-b { bottom: 10%; right: -12px; }
@media (min-width: 1100px) { .chip-a { left: -36px; } .chip-b { right: -36px; } }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--light-foreground); font-weight: 500; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--action); margin-top: 2px; }

/* Cartes */
.cards { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; background: var(--light-surface); border: 1px solid var(--light-border); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; align-content: start; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 0; height: 3px; border-radius: 3px; background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(73, 176, 253, 0.5); box-shadow: 0 30px 60px -30px rgba(22, 103, 181, 0.35); }
.card:hover::after { transform: scaleX(1); }
.card-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--light-accent); background: rgba(73, 176, 253, 0.12); transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease; }
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); background: var(--action); color: var(--action-foreground); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card p { font-size: 0.97rem; }
.card .examples { font-size: 0.9rem; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.card .examples li::before { content: "→ "; color: var(--light-accent); }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--light-border); background: var(--light-surface); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.98rem; }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--light-border); }
.compare-table thead th { color: var(--light-foreground); font-size: 1rem; }
.compare-table thead th:last-child { background: var(--action); color: var(--action-foreground); }
.compare-table tbody th { color: var(--light-foreground); font-weight: 600; width: 22%; }
.compare-table td:last-child { color: var(--light-foreground); font-weight: 500; background: rgba(73, 176, 253, 0.07); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
@media (max-width: 680px) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  .compare-table { min-width: 0; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tr { margin-bottom: 12px; border: 1px solid var(--light-border); border-radius: var(--radius-sm); background: var(--light-surface); overflow: hidden; }
  .compare-table tbody th { width: 100%; padding: 14px 18px 4px; border: 0; font-size: 1.05rem; }
  .compare-table td { padding: 10px 18px; border: 0; }
  .compare-table td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--light-muted); }
  .compare-table td:last-child::before { color: var(--light-accent); }
}

/* Étapes (sombre) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color 0.3s ease, transform 0.3s ease; }
.steps li:hover { border-color: var(--border-strong); transform: translateX(6px); }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--action); color: var(--action-foreground); font-weight: 700; box-shadow: 0 0 24px var(--glow); }
.steps h3 { font-size: 1.12rem; }
.dark-photo img { border-radius: var(--radius); box-shadow: 0 40px 80px -30px var(--glow); }

/* Engagements */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.principles li { padding: 22px 24px; border-radius: var(--radius-sm); background: var(--light-surface); border: 1px solid var(--light-border); display: flex; gap: 16px; }
.principles svg { flex: none; width: 24px; height: 24px; color: var(--light-accent); margin-top: 2px; }
.principles strong { display: block; margin-bottom: 4px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52rem; margin: 0 auto; }
.faq details { background: var(--light-surface); border: 1px solid var(--light-border); border-radius: var(--radius-sm); padding: 0 24px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq details[open] { border-color: rgba(73, 176, 253, 0.5); box-shadow: 0 20px 40px -28px rgba(22, 103, 181, 0.4); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding: 16px 0; color: var(--light-foreground); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(73, 176, 253, 0.14); color: var(--light-accent); font-size: 1.1rem; transition: transform 0.25s ease, background-color 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--action); color: #fff; }
.faq details p { padding: 0 0 22px; }

/* CTA final */
.cta { background: var(--light-background); }
.cta-box { position: relative; overflow: hidden; display: grid; gap: 22px; justify-items: center; text-align: center; padding: 88px 24px; border-radius: 32px; isolation: isolate; }
.cta-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 10, 39, 0.82), rgba(3, 12, 43, 0.92)); }
.cta-box h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Pied de page */
.site-footer { padding: 48px 0 56px; font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted-foreground); }
.footer-links a:hover { color: var(--foreground); }

/* Pages légales */
.doc { padding: 64px 0 96px; }
.doc .container { max-width: 52rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 16px 0; }
.doc h2 { font-size: 1.4rem; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 20px; margin: 0 0 12px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid var(--border); }
.doc th { color: var(--foreground); background: var(--surface); font-weight: 600; }
.doc .table-wrap { border: 0; background: none; border-radius: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }

/* Mouvement : contenu toujours visible sans animation (navigateurs anciens, préférences d'accessibilité). */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .compare { animation: rise 1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .underline svg path { stroke-dasharray: 220; animation: draw 1s 0.7s ease both; }
  .target { animation: bob 4s ease-in-out infinite; }
  .panel-custom { animation: halo 5s ease-in-out infinite; }
  .rotator-list { animation: rotate-words 12s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
  .marquee-track { animation: marquee 32s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .chip-a { animation: bob 5s ease-in-out infinite; }
  .chip-b { animation: bob 5s 1.5s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .photo img, .dark-photo img { animation: zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
}
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { transform: scale(0.92); } to { transform: none; } }
@keyframes draw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes halo { 0%, 100% { box-shadow: 0 30px 80px -30px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.08); } 50% { box-shadow: 0 30px 100px -20px rgba(73, 176, 253, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rotate-words {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-1.65em); }
  40%, 56% { transform: translateY(-3.3em); }
  60%, 76% { transform: translateY(-4.95em); }
  80%, 96% { transform: translateY(-6.6em); }
  100% { transform: translateY(-8.25em); }
}
