/* LIMITLESS COACHING — thème sombre sportif, mobile-first.
   Visuels 100 % CSS + SVG (aucune photo) : dégradés riches, halos,
   motifs géométriques, icônes en ligne. Accent blanc / noir et blanc. */
:root {
  --bg: #0B0B0D;
  --surface: #17171A;
  --surface-2: #1F1F24;
  --border: #26262B;
  --text: #FFFFFF;
  --muted: #B8B8C0;
  --muted-2: #8E8E98;
  --accent: #FFFFFF;
  --accent-2: #E5E5E5;
  --lilac: #A3A3A3;
  --accent-dark: #525252;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 12px 36px rgba(255, 255, 255, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1000px 520px at 85% -5%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(760px 480px at 0% 32%, rgba(255, 255, 255, 0.10), transparent 62%),
    radial-gradient(900px 600px at 50% 115%, rgba(255, 255, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: var(--accent); }
img, svg { display: block; }
button { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--accent); color: #0B0B0D; }

/* --- Apparition en fondu au scroll (activée par JS : html.js) --- */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --- Écran de choix de langue --- */
.lang-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(640px 420px at 50% -8%, rgba(255, 255, 255, 0.28), transparent 62%),
    radial-gradient(520px 380px at 50% 112%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}
.lang-gate[hidden] { display: none; }
.lang-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='3' cy='3' r='1.4' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
}
.lang-gate-inner { position: relative; text-align: center; max-width: 460px; width: 100%; }
.gate-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #E5E5E5, var(--accent) 45%, var(--accent-dark));
  box-shadow: 0 16px 44px rgba(255, 255, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  transform: rotate(-4deg);
}
.gate-mark svg { width: 48px; height: 48px; color: #0B0B0D; }
.lang-gate .logo { font-size: clamp(32px, 8vw, 44px); letter-spacing: 3px; }
.lang-gate-sub { color: var(--muted); margin: 12px 0 32px; font-size: 17px; }
.lang-gate-buttons { display: flex; flex-direction: column; gap: 14px; }
.lang-choice {
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(180deg, #232329, var(--surface));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-choice:hover, .lang-choice:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  outline: none;
}
.lang-choice:active { transform: translateY(0); }
.lang-gate-note { margin-top: 26px; font-size: 13px; color: var(--muted-2); letter-spacing: 1px; text-transform: uppercase; }

/* --- En-tête --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.logo { font-weight: 700; letter-spacing: 2px; font-size: 18px; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  margin-right: 9px;
  vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5v11M3.5 9v6M17.5 6.5v11M20.5 9v6M6.5 12h11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lang-switch { display: flex; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.lang-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: #FFFFFF; color: #0B0B0D; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }

/* --- Structure --- */
main { max-width: 1080px; margin: 0 auto; padding: 0 18px 56px; position: relative; }
section { margin-top: 56px; scroll-margin-top: 84px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 0 0 20px; }
h3 { font-size: 20px; margin: 0 0 6px; }

/* --- Bannière annulation --- */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #1F1F1F, #17171A);
  border: 1px solid #525252;
  color: #D4D4D4;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 15px;
  box-shadow: var(--shadow-card);
}
.banner[hidden] { display: none; }
.banner-close { background: none; border: none; color: inherit; font-size: 22px; cursor: pointer; line-height: 1; }

/* --- Hero --- */
.hero {
  position: relative;
  text-align: center;
  padding: 56px 8px 8px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M-3.5 17.5 L17.5 -3.5' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.6'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-art {
  position: absolute;
  right: -30px;
  top: 6px;
  width: 300px;
  height: 180px;
  color: #fff;
  opacity: 0.07;
  transform: rotate(-14deg);
  pointer-events: none;
  display: none;
}
.hero h1 {
  font-size: clamp(38px, 9.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 0 0 14px;
  text-wrap: balance;
  color: #FFFFFF;
}
.hero h1::after {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  border-radius: 99px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--lilac));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 17px; }

.slider-box {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  margin-top: 32px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.slider-box label { display: block; font-weight: 700; margin-bottom: 18px; font-size: 16px; }
.slider-box input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), #2C2C33 var(--fill, 50%));
  cursor: pointer;
  margin: 8px 0 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.slider-box input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--accent);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.55);
  cursor: grab;
  transition: transform 0.15s ease;
}
.slider-box input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.14); }
.slider-box input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.slider-box input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--accent);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.55);
  cursor: grab;
}
.slider-box input[type="range"]::-moz-range-track { height: 12px; border-radius: 999px; background: #2C2C33; }
.slider-box input[type="range"]::-moz-range-progress { height: 12px; border-radius: 999px; background: linear-gradient(90deg, #E5E5E5, var(--accent)); }
.slider-box input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45); }
.slider-value { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 10px; }
#days-num {
  font-size: clamp(58px, 15vw, 80px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.4);
}
.slider-value span:last-child { font-size: 17px; color: var(--muted); font-weight: 600; }
.recommendation {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: left;
}
.recommendation strong { color: var(--accent); }
.recommendation .rec-note { display: block; font-size: 14px; color: var(--muted-2); margin-top: 4px; }

.hero-cta { margin-top: 30px; font-size: 18px; padding: 16px 36px; }

/* --- Cartes programmes --- */
.plans h2, .coaching h2 { text-align: center; }
.plans h2 { font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.5px; }
.plans h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 99px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--lilac));
}
.cards { display: grid; gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.25);
}
/* Visuel de carte : dégradé + motif SVG + grand chiffre + icône haltère */
.card-visual {
  position: relative;
  height: 148px;
  margin: -24px -20px 20px;
  overflow: hidden;
  flex: none;
}
.card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.28));
}
.card-visual::after { content: ""; position: absolute; inset: 0; }
.visual-ppl { background: linear-gradient(135deg, #E5E5E5 0%, #FFFFFF 42%, #525252 100%); }
.visual-ppl::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M-3 15 L15 -3' stroke='%23000000' stroke-opacity='0.10' stroke-width='2'/%3E%3C/svg%3E");
}
.visual-upper-lower { background: linear-gradient(135deg, #A3A3A3 0%, #E5E5E5 45%, #525252 100%); }
.visual-upper-lower::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='3' cy='3' r='1.7' fill='%23000000' fill-opacity='0.14'/%3E%3C/svg%3E");
}
.visual-hybrid { background: linear-gradient(135deg, #FFFFFF 0%, #E5E5E5 45%, #262626 115%); }
.visual-hybrid::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Ccircle cx='26' cy='26' r='19' fill='none' stroke='%23000000' stroke-opacity='0.10' stroke-width='1.6'/%3E%3C/svg%3E");
}
.card-visual-num {
  position: absolute;
  right: 10px;
  bottom: -30px;
  font-size: 128px;
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 0, 0, 0.20);
  z-index: 1;
}
.card-visual-icon {
  position: absolute;
  left: 20px;
  bottom: 16px;
  width: 66px;
  height: 66px;
  color: rgba(0, 0, 0, 0.85);
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.35));
}
.card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 22px 52px rgba(255, 255, 255, 0.32);
  transform: translateY(-4px);
}
.card.recommended:hover { transform: translateY(-8px); }
.card .tagline { color: var(--muted); margin: 0 0 4px; }
.days-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #0B0B0D;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 4px 13px;
  margin-left: 9px;
  vertical-align: middle;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
}
.level {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 13px;
  margin: 10px 0 16px;
}
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 16px; }
.day {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 9px;
  padding: 8px 2px 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.day .dow { display: block; color: var(--muted-2); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.day.rest {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.06);
  opacity: 0.55;
  font-weight: 500;
}
.includes { list-style: none; padding: 0; margin: 0 0 20px; }
.includes li { padding-left: 26px; position: relative; margin-bottom: 9px; font-size: 15px; }
.includes li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 18px; }
.price { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }

.btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 13px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #FFFFFF, #E5E5E5 55%, #D4D4D4);
  color: #0B0B0D;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  outline: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: 0 8px 22px rgba(255, 255, 255, 0.2); }

/* --- Coaching --- */
.coaching {
  position: relative;
  background:
    radial-gradient(620px 320px at 88% -10%, rgba(255, 255, 255, 0.30), transparent 62%),
    linear-gradient(160deg, #262626, var(--surface) 58%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.coaching::before {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 230px;
  height: 230px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5v11M3.5 9v6M17.5 6.5v11M20.5 9v6M6.5 12h11'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.07;
  transform: rotate(-14deg);
  pointer-events: none;
}
.coaching::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='3' cy='3' r='1.3' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.coaching > * { position: relative; z-index: 1; }
.coaching h2 { font-size: clamp(25px, 5vw, 34px); letter-spacing: -0.5px; }
.coaching p { color: var(--muted); }
.coaching .note { font-size: 14px; color: var(--muted-2); margin: 16px 0 0; }
.coaching .price {
  font-size: clamp(30px, 7vw, 38px);
  background: linear-gradient(90deg, #A3A3A3, var(--accent) 55%, var(--lilac));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.coaching .btn-primary { padding: 15px 28px; font-size: 17px; }

/* --- Pied de page --- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025));
  text-align: center;
  padding: 40px 18px 36px;
  color: var(--muted);
  font-size: 15px;
}
.site-footer .logo { font-size: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin: 20px 0 22px; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.copyright { color: var(--muted-2); font-size: 13px; }

/* --- Toast (erreurs) --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: linear-gradient(135deg, #262626, #1F1F1F);
  border: 1px solid #525252;
  color: #D4D4D4;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 15px;
  z-index: 200;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.toast[hidden] { display: none; }

/* --- Desktop --- */
@media (min-width: 720px) {
  h1 { font-size: 40px; }
  .cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .card.recommended { transform: translateY(-6px) scale(1.015); }
  .card.recommended:hover { transform: translateY(-10px) scale(1.015); }
  .lang-gate-buttons { flex-direction: row; justify-content: center; }
  .lang-choice { min-width: 180px; }
  .hero { padding-top: 72px; }
  .hero-art { display: block; }
  .slider-box { padding: 32px 34px 28px; }
  .coaching { padding: 46px 42px; }
  .coaching .price-row { flex-wrap: nowrap; }
}
