/* Hardpipe landing — dark theme moderne, contraste UE */

/* Fonts auto-hébergées (RGPD : aucune requête tierce) */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Inter-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Inter-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Inter-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Inter-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/Inter-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/Inter-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/JetBrainsMono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette dark moderne — bleu profond + cyan + jaune UE */
  --bg:           #07080c;
  --bg-elev-1:    #0e1018;
  --bg-elev-2:    #161924;
  --bg-card:      rgba(255,255,255,0.03);
  --bg-card-h:    rgba(255,255,255,0.06);

  --fg:           #e8eaf0;
  --fg-strong:    #ffffff;
  --fg-muted:     #9aa0b0;
  --fg-dim:       #5b6075;

  --accent:       #4d8eff;       /* bleu UE moderne */
  --accent-bright:#6da7ff;
  --accent-cyan:  #46d8e8;       /* point d'attention secondaire */
  --yellow:       #ffd02b;       /* étoiles UE */

  --border:       rgba(255,255,255,0.08);
  --border-h:     rgba(255,255,255,0.18);

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fond global : mesh subtil + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(77,142,255,0.20), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(70,216,232,0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255,208,43,0.06), transparent 60%);
  pointer-events: none;
}

/* Grille fine en overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.020) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.020) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}

a { color: var(--accent-bright); }
a:hover { color: var(--accent-cyan); }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-elev-2);
  color: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Header / nav — glassmorphism */
header {
  position: sticky;
  top: 0;
  background: rgba(7,8,12,0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg-strong);
  justify-self: start;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 1.3rem;
}
.brand::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 4px var(--accent-bright);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateY(-50%) scale(1.15); }
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  justify-self: center;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links a:hover { color: var(--fg-strong); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Sélecteur de langue */
.lang-select { justify-self: end; }
.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-elev-1) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3e%3cpath fill='%239aa0b0' d='M0 0l5 6 5-6z'/%3e%3c/svg%3e") no-repeat right 0.7rem center / 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 2rem 0.4rem 0.8rem;
  font-size: 0.88rem;
  color: var(--fg);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-select select:hover,
.lang-select select:focus {
  border-color: var(--accent);
  background-color: var(--bg-elev-2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(77,142,255,0.15);
}
.lang-select select option { background: var(--bg-elev-2); color: var(--fg); }

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 3rem;
  color: var(--fg-strong);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.section h2::before {
  content: "";
  display: inline-block;
  width: 4px; height: 1.8rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-cyan));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(77,142,255,0.4);
}

.bg-dark {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  padding-left: calc((100vw - 1200px) / 2 + 2rem);
  padding-right: calc((100vw - 1200px) / 2 + 2rem);
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  color: var(--fg-strong);
}

.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan) 70%, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.tagline {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}
.tagline strong { color: var(--fg); font-weight: 600; }
.tagline a {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(77,142,255,0.4);
  padding-bottom: 1px;
  transition: all 0.2s;
}
.tagline a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Badge score géant — élément phare */
.score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 3.5rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  background:
    radial-gradient(ellipse at center, rgba(77,142,255,0.20), transparent 70%),
    linear-gradient(135deg, rgba(77,142,255,0.15), rgba(70,216,232,0.10));
  border: 1px solid rgba(77,142,255,0.25);
  box-shadow:
    0 0 60px rgba(77,142,255,0.15),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.score-badge::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, transparent, rgba(77,142,255,0.3), transparent 30%);
  border-radius: 20px;
  z-index: -1;
  animation: rotate 8s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.score-num {
  font-family: var(--mono);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.score-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* CTAs */
.cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: var(--fg-strong);
  box-shadow:
    0 4px 16px rgba(77,142,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(77,142,255,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--fg);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--bg-card-h);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Grille de cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(77,142,255,0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-h);
  background: var(--bg-card-h);
}
.card:hover::before { opacity: 1; }

.card-num {
  font-family: var(--mono);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--fg-strong), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.card-label {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
  position: relative;
}

/* Méthodologie */
.methodology {
  margin-top: 3rem;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.methodology::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-cyan));
}

.methodology h3 {
  margin-top: 0;
  color: var(--fg-strong);
  font-size: 1.25rem;
  font-weight: 700;
}

.methodology p { font-size: 0.95rem; }

.score-breakdown {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  background: var(--bg-elev-1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.score-breakdown th,
.score-breakdown td {
  padding: 0.85rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.score-breakdown tr:last-child td { border-bottom: 0; }

.score-breakdown th {
  background: var(--bg-elev-2);
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.score-breakdown code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.85em;
  color: var(--accent-cyan);
}

.score-breakdown tr.winner {
  background: linear-gradient(90deg, rgba(77,142,255,0.08), transparent);
}
.score-breakdown tr.winner td { color: var(--fg-strong); }
.score-breakdown tr.winner strong { color: var(--accent-bright); }

/* Comparaison */
.comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison th,
.comparison td {
  padding: 1.1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison tr:last-child td { border-bottom: 0; }

.comparison th {
  background: var(--bg-elev-2);
  font-weight: 600;
  color: var(--fg-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison tr.winner {
  background: linear-gradient(90deg, rgba(77,208,43,0.06), rgba(77,142,255,0.06));
  position: relative;
}
.comparison tr.winner td {
  color: var(--fg-strong);
  position: relative;
}
.comparison tr.winner td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-cyan));
}

.note {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 720px;
}

/* Stack */
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.stack-layer {
  background: var(--bg-card);
  padding: 1.1rem 1.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.stack-layer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.5;
}
.stack-layer:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
}
.stack-layer:hover::before { opacity: 1; }

.stack-layer.highlight {
  background: linear-gradient(90deg, rgba(255,208,43,0.08), rgba(77,142,255,0.04));
  border-color: rgba(255,208,43,0.20);
  font-weight: 600;
  color: var(--fg-strong);
}
.stack-layer.highlight::before { background: var(--yellow); opacity: 1; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-h);
  background: var(--bg-card-h);
}

.feature h3 {
  color: var(--fg-strong);
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Downloads + Docs */
.downloads,
.docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.download-card,
.doc-card {
  display: block;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.download-card::before,
.doc-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(135deg, transparent, rgba(77,142,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.download-card:hover,
.doc-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--bg-card-h);
  box-shadow: 0 12px 32px rgba(77,142,255,0.12);
}

.download-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  display: block;
  filter: saturate(1.4);
}
.download-title {
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--fg-strong);
}
.download-meta {
  color: var(--fg-muted);
  font-size: 0.82rem;
  font-family: var(--mono);
}

.doc-card h3 {
  margin: 0 0 0.5rem;
  color: var(--fg-strong);
  font-size: 1.1rem;
  font-weight: 700;
}
.doc-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* Targets */
.targets {
  list-style: none;
  padding: 0;
  max-width: 640px;
  font-size: 1.05rem;
}
.targets li {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
  transition: all 0.2s;
}
.targets li:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateX(4px);
}

/* Footer */
footer {
  background: var(--bg-elev-1);
  color: var(--fg-dim);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}
footer p { margin: 0; }
footer a { color: var(--fg-muted); }

/* Sélection */
::selection {
  background: rgba(77,142,255,0.35);
  color: var(--fg-strong);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--bg-elev-2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-h); }

/* Apparitions au scroll (Intersection Observer côté HTML) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  /* Liens d'ancrage masqués sur mobile (la page est un scroll unique) :
     on garde marque + sélecteur de langue, qui sont l'essentiel. */
  nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    gap: 0.5rem;
  }
  .nav-links { display: none; }
  .brand { padding-left: 1.1rem; font-size: 1rem; }
  .lang-select select { padding: 0.3rem 1.6rem 0.3rem 0.55rem; font-size: 0.82rem; }

  .hero { padding: 4rem 1.25rem 3rem; }
  .section { padding: 4rem 1.25rem; }
  .score-badge { padding: 1.75rem 2.5rem; border-radius: 16px; }
  .bg-dark {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ===== Sprint 3 — a11y + UX ===== */

/* Skip-link (visible uniquement au focus clavier) */
.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Footer enrichi */
.footer-version {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
}
.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.back-to-top:hover {
  color: var(--fg-strong);
  border-color: var(--accent);
}

/* Tableau de comparaison sur mobile : scroll horizontal fluide + hint */
@media (max-width: 768px) {
  .comparison,
  .score-breakdown {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .comparison th, .comparison td,
  .score-breakdown th, .score-breakdown td {
    white-space: normal;
    min-width: 130px;
  }
}

/* Respect des préférences utilisateur : pas d'animation si réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .brand::before { animation: none; }
  .score-badge::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
