/* Mont Ventoux Online — site vitrine (statique, sans traceur ni police externe) */
:root {
  --bg: #0d0d0f;
  --bg-2: #16171b;
  --bg-3: #1f2026;
  --text: #f2f2f0;
  --muted: #a9adb5;
  --red: #e3262b;
  --red-dark: #b81d22;
  --line: #2b2d34;
  --radius: 14px;
  --max: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: var(--red); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* En-tête */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 13, 15, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
header.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.02em; }
header.top .brand img { width: 36px; height: 36px; border-radius: 8px; }
header.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
header.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
header.top nav a:hover { color: var(--text); }
header.top .brand { white-space: nowrap; }
/* Menu du téléphone : bouton ☰ qui déplie la navigation sous l'en-tête. */
header.top .menu { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  width: 44px; height: 40px; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
header.top .right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) {
  header.top .menu { display: block; }
  header.top nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(13, 13, 15, 0.98); border-bottom: 1px solid var(--line); padding: 6px 0 10px; }
  header.top.open nav.main { display: flex; }
  header.top nav.main a { padding: 13px 20px; font-size: 17px; color: var(--text); }
  header.top .brand { font-size: 16px; }
}
@media (max-width: 720px) {
  .btn.ghost { margin: 12px 0 0; }
  .hero .wrap { padding-bottom: 40px; }
}

/* Bandeau d'accueil */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
/* Image élargie et calée à gauche : la cycliste (au centre de la photo) passe à droite du texte. */
.hero > img.bg { position: absolute; top: 0; left: 0; width: 125%; max-width: none; height: 100%; object-fit: cover; object-position: left center; filter: brightness(0.85) saturate(1.08); }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(13,13,15,0.78) 0%, rgba(13,13,15,0.45) 38%, rgba(13,13,15,0) 62%),
  linear-gradient(180deg, rgba(13,13,15,0) 55%, rgba(13,13,15,0.95) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; padding-top: 120px; }
.hero .logo { width: min(300px, 70%); margin-bottom: 14px; border-radius: 10px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; margin: 0 0 14px; max-width: 18ch; }
.hero p { font-size: clamp(17px, 2vw, 21px); color: #e1e3e7; max-width: 46ch; margin: 0 0 28px; }

.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--red); color: #fff; border: 2px solid var(--red); transition: background 0.15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: #fff; margin-left: 10px; }
.btn.ghost:hover { background: #fff; color: #000; }

/* Sections */
section { padding: 84px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; line-height: 1.15; }
section .lead { color: var(--muted); max-width: 62ch; margin: 0 0 40px; font-size: 18px; }
.kicker { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; margin-bottom: 8px; }

/* Grilles */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .body { padding: 18px 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.feature:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.feature:nth-child(even) img { order: 2; }
.feature img { border-radius: var(--radius); border: 1px solid var(--line); }
.feature h3 { font-size: 26px; margin: 0 0 10px; }
.feature p { color: var(--muted); margin: 0 0 10px; }
@media (max-width: 860px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(even) img { order: 0; }
}

/* Fiches parcours */
.route .stats { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.route .stats span { background: var(--bg-3); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; }
.route .stats span.hard { background: rgba(227, 38, 43, 0.18); color: #ff8a8d; }

/* Liste à puces sobre */
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }

/* Offre */
.offer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }
.offer .card .body { padding: 28px; }
.offer .price { font-size: 34px; font-weight: 800; margin: 6px 0 14px; }
.offer .card.highlight { border-color: var(--red); }

/* FAQ */
details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Pages légales */
.legal { padding-top: 60px; padding-bottom: 80px; overflow-wrap: anywhere; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal p, .legal li { color: #d4d6db; }
.todo { background: rgba(227, 38, 43, 0.14); border-left: 4px solid var(--red); padding: 2px 8px; border-radius: 4px; }

/* Vidéos (WebP animés, chargés au défilement) */
.clip { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.clip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip span { position: absolute; left: 12px; bottom: 10px; background: rgba(0, 0, 0, 0.6); padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.clip.big { margin-bottom: 22px; }
.clips { margin-top: 0; }

/* Bandeau de chiffres */
.numbers { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 26px; padding-bottom: 26px; text-align: center; }
.numbers strong { display: block; font-size: clamp(26px, 3.4vw, 40px); color: var(--red); line-height: 1.1; }
.numbers span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .numbers .wrap { grid-template-columns: repeat(2, 1fr); } }

.note { color: var(--muted); margin-top: 22px; font-style: italic; }
.versant .stats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.versant .stats span, .detail .stats span { background: var(--bg-3); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; }
.versant .stats span.hard { background: rgba(227, 38, 43, 0.18); color: #ff8a8d; }

/* Carte des parcours */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filters button { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.filters button.on { background: var(--red); border-color: var(--red); color: #fff; }
.atlas { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .atlas { grid-template-columns: 1fr; } }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.map > img { width: 100%; display: block; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map path.halo { stroke: rgba(0, 0, 0, 0.45); stroke-width: 7; pointer-events: none; }
/* Zone de toucher élargie et invisible autour de chaque tracé (doigt sur téléphone). */
.map path.hit { stroke: transparent; stroke-width: 26; cursor: pointer; }
.map path.route { stroke-width: 4; cursor: pointer; transition: stroke-width 0.15s, opacity 0.15s; }
.map path.route.free { stroke: #5fe07a; }
.map path.route.paid { stroke: #ffd23f; }
.map path.route.portion { stroke-dasharray: 1 0; }
.map svg.focus path.route { opacity: 0.45; }
.map svg.focus path.route.on { opacity: 1; stroke: var(--red); stroke-width: 7; }
.detail { margin-top: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.detail .dh { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.detail strong { font-size: 18px; }
.detail p { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.detail .stats { display: flex; gap: 6px; flex-wrap: wrap; }
.detail .profile { width: 100%; height: 46px; margin-top: 8px; display: block; }
.detail .profile polygon { fill: rgba(227, 38, 43, 0.55); stroke: #ff6b6e; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.list { max-height: 720px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.list .item { text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text); font: inherit; cursor: pointer; }
.list .item.on, .list .item:hover { border-color: var(--red); }
.list .item .name { display: block; font-weight: 700; font-size: 15px; }
.list .item .meta { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 800; margin-right: 6px; }
.tag.free { background: rgba(95, 224, 122, 0.18); color: #7ef09a; }
.tag.paid { background: rgba(255, 210, 63, 0.16); color: #ffd23f; }
.d1 { color: #5fe07a; } .d2 { color: #f2c418; } .d3 { color: #f27a18; } .d4 { color: #ff5a4e; }

/* Progression, tarifs */
.prog { align-items: center; }
.prog .shot { border-radius: var(--radius); border: 1px solid var(--line); }
.offer .price small { font-size: 18px; color: var(--muted); font-weight: 600; }
.offer .sub { color: var(--muted); margin: -8px 0 12px; font-size: 15px; }
.offer .btn { margin: 18px 0 0; }

/* Choix de la langue (FR / EN), à droite de l'en-tête, aussi sur mobile. */
header.top .lang { margin-left: 18px; padding: 4px 10px; border: 1px solid var(--muted); border-radius: 6px;
  color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; }
header.top .lang:hover { border-color: var(--text); }

/* Téléphone : l'image en bandeau au-dessus du texte (le sommet et le cycliste restent visibles). */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero > img.bg { position: relative; width: 100%; height: 46vh; min-height: 280px; object-position: 62% center; }
  .hero::after { inset: 0 0 auto 0; height: max(46vh, 280px); background: linear-gradient(180deg, rgba(13,13,15,0) 55%, rgba(13,13,15,1) 100%); }
  .hero .wrap { padding-top: 0; margin-top: -48px; }
  .hero .logo { width: min(220px, 60%); }
}

/* Avant la sortie : badge « Bientôt disponible », boutons de téléchargement inactifs. */
.soon-badge { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.btn.disabled, .btn.disabled:hover { opacity: 0.55; cursor: default; pointer-events: none; }
.btn.ghost.disabled:hover { background: transparent; color: #fff; }
.soon-note { background: rgba(255, 255, 255, 0.06); border-left: 4px solid var(--red); padding: 12px 16px; border-radius: 6px; margin: 0 0 24px; }
.soon-note a, #faq details a { color: #fff; text-decoration: underline; }
@media (max-width: 480px) { .soon-badge { font-size: 11px; letter-spacing: 0.06em; padding: 5px 12px; } }
