/* =============================================================================
   gyromap.fr — feuille de style commune (même système visuel que GyroMap Pro)
   Sobre : fonds neutres, une couleur d'accent, bordures fines, icônes au trait.
   ============================================================================= */
:root {
  --bg: #0B0D12;
  --bg-2: #0E1117;
  --card: #12151C;
  --card-2: #171B23;
  --line: #1F242E;
  --line-strong: #2A303C;
  --text: #E7E9EE;
  --text-dim: #969DAB;
  --text-mute: #636B7A;
  --brand: #5B8DEF;
  --primary: #3D7BF7;
  --primary-hover: #5A8FF8;
  --success: #2FB36B;
  --danger: #E5484D;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-feature-settings: "cv11", "ss01"; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p a, li a, .faq-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
p a:hover, .faq-body a:hover { text-decoration-color: var(--text-dim); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* --- En-tête --- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11,13,18,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; }
.wordmark { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.wordmark span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a:not(.btn), .nav-links > a:not(.btn):visited { font-size: 14px; color: var(--text-dim); padding: 6px 11px; border-radius: 6px; transition: color .12s; }
.nav-links > a:not(.btn):hover, .nav-links > a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line-strong); color: var(--text); width: 38px; height: 38px; border-radius: 8px; align-items: center; justify-content: center; cursor: pointer; }

/* --- Boutons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font-family: var(--font); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background .12s, border-color .12s; white-space: nowrap; }
.btn svg.i { width: 16px; height: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--card-2); }
.store-badge { display: inline-block; border-radius: 8px; transition: opacity .12s; }
.store-badge:hover { opacity: .85; }
.store-badge img { height: 46px; width: auto; }

/* --- Hero --- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .4;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-dim); border: 1px solid var(--line-strong); background: var(--card); padding: 5px 12px; border-radius: 999px; margin-bottom: 24px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(47,179,107,.18); }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 22px; }
h1 .soft { color: var(--text-mute); }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--text-dim); max-width: 560px; margin-bottom: 30px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ctas.center { justify-content: center; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13.5px; color: var(--text-dim); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg.i { width: 15px; height: 15px; color: var(--success); }
.device-wrap { display: flex; justify-content: center; }
.device {
  width: 300px; border-radius: 44px; padding: 10px; background: #050608;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -30px rgba(61,123,247,.35), 0 30px 60px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
}
.device img { width: 100%; height: auto; border-radius: 34px; }

/* --- Sections --- */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 500; color: var(--brand); margin-bottom: 12px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; }

/* --- Présentation --- */
.intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.intro p { color: var(--text-dim); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.intro p strong { color: var(--text); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; margin-top: 24px; overflow: hidden; }
.facts > div { padding: 14px 16px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--text-mute); margin-bottom: 4px; }
.facts dd { font-size: 14px; font-weight: 500; }

/* --- Fonctionnalités --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feature { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .15s; }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n+3) { border-bottom: 0; }
.feature:hover { background: var(--card); }
.feature .ico { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--card-2); border: 1px solid var(--line-strong); margin-bottom: 18px; }
.feature h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* --- Étapes --- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.step .num { font-family: var(--mono); font-size: 12.5px; color: var(--brand); margin-bottom: 14px; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-dim); }

/* --- GyroMap Pro --- */
.pro-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.pro-card > div p { color: var(--text-dim); font-size: 16px; margin-bottom: 26px; }
.pro-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pro-list { list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 8px 0; }
.pro-list li { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 14.5px; }
.pro-list li + li { border-top: 1px solid var(--line); }
.pro-list svg.i { color: var(--success); width: 16px; height: 16px; }

/* --- Téléchargement --- */
.download { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-head strong { display: block; font-size: 15px; font-weight: 600; }
.dl-head span { font-size: 13px; color: var(--text-mute); }
.dl-card .btn { align-self: flex-start; }

/* --- FAQ --- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 15.5px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg.i { color: var(--text-mute); transition: transform .2s; }
.faq-item[open] summary svg.i { transform: rotate(45deg); }
.faq-body { padding: 0 32px 22px 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.75; }
.faq-body strong { color: var(--text); font-weight: 500; }

/* --- Appel final --- */
.cta-card { text-align: center; max-width: 720px; }
.cta-card p { color: var(--text-dim); font-size: 16.5px; margin-bottom: 26px; }
.community { margin-top: 32px; display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--text-mute); }
.community a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); }
.community a:hover { color: var(--text); }
.community svg.i { width: 16px; height: 16px; }

/* --- Pied de page --- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--text-mute); font-size: 13.5px; margin-top: 12px; max-width: 280px; }
.foot h3 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot ul a { color: var(--text-dim); font-size: 13.5px; text-decoration: none; }
.foot ul a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-mute); }

/* --- Pages de contenu (CGU, confidentialité, associations…) --- */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.page .updated { color: var(--text-mute); font-size: 14px; margin-bottom: 40px; }
.page h2 { font-size: 20px; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); letter-spacing: -.015em; }
.page h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.page p, .page li { color: var(--text-dim); font-size: 15px; line-height: 1.75; }
.page p { margin-bottom: 14px; }
.page ul, .page ol { margin: 0 0 14px 22px; }
.page li { margin-bottom: 6px; }
.page strong { color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
  .hero-grid, .intro, .faq-grid, .pro-card { grid-template-columns: 1fr; gap: 40px; }
  .device { width: 260px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature:nth-child(2n) { border-right: 0; }
  .feature:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .feature:nth-last-child(-n+1) { border-bottom: 0; }
  .download { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px 8px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 12px 0 0; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .feature:last-child { border-bottom: 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
