/* ===== Design tokens (thème clair permanent) ===== */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --surface: #ffffff;
  --text: #1b2733;
  --text-soft: #5c6b7a;
  --border: #e6ecf2;
  --border-strong: #d5dfe8;
  --primary: #1f82d3;
  --primary-dark: #135e9c;
  --primary-light: #34a4df;
  --primary-soft: #eaf4fc;
  --ring: rgba(31, 130, 211, .22);
  --hero-grad: linear-gradient(135deg, #3aa9e4 0%, #1f82d3 52%, #145e9c 100%);
  --shadow-sm: 0 1px 2px rgba(27, 39, 51, .06);
  --shadow: 0 10px 34px -14px rgba(20, 52, 84, .28);
  --shadow-lg: 0 30px 70px -30px rgba(20, 52, 84, .45);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1160px;
  --ease: cubic-bezier(.22, .68, .18, 1);
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Onest', system-ui, sans-serif;
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name, .intro-title { font-family: var(--font-display); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em;
  background: var(--primary-soft); color: var(--primary-dark);
  padding: 1px 6px; border-radius: 5px;
}

/* ===== Scroll reveal (activé seulement si JS) ===== */
.js-reveal .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ===== Écran d'intro ===== */
body.intro-open { overflow: hidden; }
.intro {
  --intro-ease: cubic-bezier(.5, 0, .2, 1);
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; background: var(--bg);
  transition: opacity 1.4s var(--intro-ease), transform 1.4s var(--intro-ease);
}
.intro::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 55% at 50% 42%, var(--primary-soft), transparent 72%);
  pointer-events: none;
}
.intro.hide { opacity: 0; transform: scale(1.03); pointer-events: none; }
.intro-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 24px; }
.intro-logo {
  position: relative; background: none; border: none; cursor: pointer;
  padding: 28px; border-radius: 50%; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.intro-logo img {
  width: clamp(120px, 22vw, 168px); height: auto; position: relative; z-index: 1;
  transition: transform 1s var(--intro-ease);
}
.intro-logo:hover img { transform: scale(1.02); }
.intro-title { font-size: clamp(2.4rem, 7vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.intro-hint { font-size: 14px; color: var(--text-soft); letter-spacing: .01em; }
/* Onde en vaguelettes au clic : anneaux concentriques qui s'écartent (gris doux, sans couleur) */
.intro-ripple { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.intro-ripple i {
  position: absolute; left: 0; top: 0; width: 130px; height: 130px; margin: -65px 0 0 -65px;
  border-radius: 50%; border: 2px solid rgba(90, 107, 125, .18);
  box-shadow: 0 0 10px rgba(90, 107, 125, .06);
  opacity: 0; transform: scale(.32); filter: blur(.6px);
}
.intro-ripple.go i { animation: introWave 3s var(--intro-ease) forwards; }
.intro-ripple.go i:nth-child(2) { animation-delay: .55s; }
.intro-ripple.go i:nth-child(3) { animation-delay: 1.1s; }
@keyframes introWave {
  0%   { transform: scale(.32); opacity: 0; }
  16%  { opacity: .5; }
  100% { transform: scale(4.4); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Entrée + flottement continu du logo pendant l'intro */
  .intro-logo { animation: introFloat 6s ease-in-out 1.6s infinite; }
  .intro-logo img { animation: introLogoIn 1.8s var(--intro-ease) both; }
  .intro-title { animation: introFadeUp 1.5s var(--intro-ease) .55s both; }
  .intro-hint { animation: introFadeUp 1.5s var(--intro-ease) 1.05s both, hintPulse 4.2s ease-in-out 2.4s infinite; }
  /* Animation au clic : enfoncement puis retour tout en douceur */
  .intro-logo.press img { animation: introClickPop 1.1s var(--intro-ease) both; }

  @keyframes introFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  @keyframes introLogoIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
  @keyframes introFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes hintPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
  @keyframes introClickPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(.96); }
    100% { transform: scale(1); }
  }
}
/* Repli sans animation : léger enfoncement au clic */
.intro-logo.press img { transform: scale(.97); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  cursor: pointer; border: 1.5px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-white { background: #fff; color: var(--primary-dark); box-shadow: 0 6px 20px -10px rgba(0,0,0,.35); }
.btn-white:hover { background: #f1f7fd; transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0,0,0,.4); }
.btn-outline-white { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.18); border-color: #fff; transform: translateY(-2px); }
.btn-nav { background: #fff; color: var(--primary-dark); padding: 9px 18px; font-size: 14px; }
.btn-nav:hover { background: #f1f7fd; }

/* ===== Header (fixe, apparaît au scroll) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--primary) 96%, #000);
  box-shadow: 0 8px 26px -12px rgba(15, 40, 66, .5);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: #fff; }
.brand-chip { width: 34px; height: 34px; border-radius: 9px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.brand-chip img { width: 22px; height: 22px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.88); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-links .btn-nav { color: var(--primary-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  background: var(--hero-grad); color: #fff;
  padding: 160px 0 170px; position: relative; overflow: hidden;
}
.hero::after { /* texture subtile en lignes concentriques */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 85% -10%, rgba(255,255,255,.16), transparent 45%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-block; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.hero-text h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; }
.hero-version { font-weight: 600; opacity: .92; }
.hero-lead { font-size: 1.2rem; color: rgba(255,255,255,.92); margin: 22px 0 34px; max-width: 40ch; line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.hero-wave svg { width: 100%; height: 110px; display: block; }
.hero-wave path { fill: var(--bg); }

/* Window mockup */
.hero-visual { display: flex; justify-content: center; }
.window-mock {
  width: 100%; max-width: 480px; background: var(--surface);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .window-mock { animation: float 6.5s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-title { margin-left: 10px; font-size: 12px; color: var(--text-soft); font-weight: 500; }
.window-body { display: flex; min-height: 300px; }
.mock-sidebar { width: 62px; background: var(--bg-alt); padding: 16px 12px; display: flex; flex-direction: column; gap: 11px; align-items: center; border-right: 1px solid var(--border); }
.mock-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color:#fff; display:grid; place-items:center; font-weight:700; font-size: 15px; margin-bottom: 6px; }
.mock-nav-item { width: 30px; height: 9px; border-radius: 5px; background: var(--border-strong); }
.mock-nav-item.active { background: var(--primary); }
.mock-content { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.mock-line { height: 11px; border-radius: 6px; background: var(--border-strong); }
.mock-line.w40 { width: 42%; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.k-col { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.k-head { font-size: 9.5px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; }
.k-card { height: 30px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.k-card.accent { border-left: 3px solid var(--primary); }
.k-card.done { border-left: 3px solid var(--border-strong); opacity: .65; }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 14px; letter-spacing: .01em; }
.section-head h2, .about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; margin: 10px 0 14px; letter-spacing: -0.03em; }
.section-head p { color: var(--text-soft); font-size: 1.08rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--primary); background: var(--primary-soft); border-radius: 11px; margin-bottom: 20px;
  transition: transform .25s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-soft); font-size: 15px; line-height: 1.6; }
/* carte mise en avant en dégradé (façon Linux Mint) */
.feature-card--highlight { background: var(--hero-grad); border-color: transparent; color: #fff; box-shadow: var(--shadow); }
.feature-card--highlight .feature-icon { background: rgba(255,255,255,.18); color: #fff; }
.feature-card--highlight h3 { color: #fff; }
.feature-card--highlight p { color: rgba(255,255,255,.9); }
.feature-card--highlight:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* About */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.about-text p { color: var(--text-soft); margin-bottom: 16px; font-size: 1.05rem; }
.check-list { list-style: none; margin: 22px 0 30px; display: flex; flex-direction: column; gap: 13px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.check-list li::after {
  content: ""; position: absolute; left: 6.5px; top: 11px; width: 5px; height: 9px;
  border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.about-visual { display: flex; justify-content: center; }
.glass-card {
  width: 100%; max-width: 370px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 28px; box-shadow: var(--shadow);
}
.gc-row { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.gc-row:last-child { border-bottom: none; }
.gc-icon { width: 26px; height: 26px; background: var(--primary-soft); color: var(--primary); border-radius: 7px; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }

/* Download — bandeau dégradé */
.download-card {
  background: var(--hero-grad); color: #fff;
  border-radius: 22px; padding: 64px 44px; text-align: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.download-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 130% at 15% -20%, rgba(255,255,255,.18), transparent 45%);
  pointer-events: none;
}
.download-card > * { position: relative; z-index: 1; }
.download-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; }
.download-card p { color: rgba(255,255,255,.92); font-size: 1.08rem; max-width: 48ch; margin: 0 auto 30px; }
.download-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.download-sub { margin: 28px auto 0 !important; font-size: 13.5px !important; max-width: 56ch; color: rgba(255,255,255,.82) !important; }
.download-card code { background: rgba(255,255,255,.2); color: #fff; }

/* FAQ */
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 2px 24px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-soft); padding: 0 0 20px; font-size: 15px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 50px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 38px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand-chip, .footer-brand .brand-name { display: inline-flex; vertical-align: middle; }
.footer-brand .brand-chip { margin-right: 9px; }
.footer-brand .brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.footer-brand p { color: var(--text-soft); margin-top: 14px; font-size: 14.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: flex-start; }
.footer-links a { color: var(--text-soft); font-size: 14.5px; transition: color .15s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 24px; text-align: center; color: var(--text-soft); font-size: 13.5px; }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  border-radius: 11px; background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; z-index: 50;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { padding: 130px 0 140px; }
  .hero-inner, .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-visual { display: none; }
}
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: color-mix(in srgb, var(--primary) 96%, #000);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); align-items: stretch;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { border-top: 1px solid rgba(255,255,255,.15); }
  .nav-links a { display: block; padding: 15px 24px; }
  .nav-links .btn-nav { margin: 12px 24px; text-align: center; justify-content: center; border-radius: var(--radius-sm); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 116px 0 120px; }
  .section { padding: 66px 0; }
  .download-card { padding: 46px 24px; }
  .hero-wave svg { height: 64px; }
}
