/* Règles — version éditoriale « sérieuse mais folle » : hero, parcours lumineux, courbe d'ascension. */

/* ---------- Hero ---------- */
.rules-hero { position: relative; overflow: hidden; margin-bottom: var(--sp-6); padding: var(--sp-7) var(--sp-7) var(--sp-6); border-radius: 22px; border: 1px solid var(--line-strong); background: var(--card); box-shadow: var(--highlight), var(--shadow-card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.rules-hero__aura { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 55%),
    radial-gradient(50% 120% at 100% 20%, color-mix(in srgb, #00b4ff 20%, transparent), transparent 55%);
  animation: aura-breathe 9s var(--ease) infinite alternate;
}
@keyframes aura-breathe { to { opacity: 0.7; transform: scale(1.05); } }
.rules-hero__eyebrow { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--t-xs); font-weight: 600; }
.rules-hero__eyebrow svg { width: 13px; height: 13px; }
.rules-hero h1 { position: relative; margin: var(--sp-4) 0 8px; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.rules-hero h1 span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rules-hero p { position: relative; margin: 0; max-width: 54ch; color: var(--ink-2); font-size: var(--t-lg); line-height: 1.5; }

/* ---------- Parcours vertical lumineux ---------- */
.journey { position: relative; margin-bottom: var(--sp-6); padding-left: 8px; }
.journey__spine { position: absolute; left: 35px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); border-radius: 2px; }
.jstep { position: relative; display: flex; align-items: stretch; gap: var(--sp-4); padding: 10px 0; animation: jstep-in 520ms var(--ease) both; animation-delay: calc(var(--i) * 100ms); }
@keyframes jstep-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.jstep__node { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; flex: none; }
.jstep__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: var(--t-lg); font-weight: 800; color: #fff; background: var(--grad-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent), 0 10px 26px -10px var(--accent); }
.jstep__card { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--highlight), var(--shadow-card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: transform var(--dur) var(--ease), border-color var(--dur-fast); }
.jstep__card:hover { transform: translateX(4px); border-color: var(--line-strong); }
.jstep__ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #3a5cff, #00b4ff); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 18px -10px var(--accent); }
.jstep__ic svg { width: 22px; height: 22px; }
.jstep__body { min-width: 0; }
.jstep__top { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.jstep__top h3 { margin: 0; font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.01em; }
.jstep__tag { padding: 2px 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--t-2xs); font-weight: 700; }
.jstep__body p { margin: 4px 0 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }

/* ---------- Panneau montée + courbe d'ascension ---------- */
.ramp-panel { position: relative; overflow: hidden; margin-bottom: var(--sp-6); padding: var(--sp-6) var(--sp-7) var(--sp-7); border-radius: 22px; border: 1px solid var(--line-strong); background: var(--card); box-shadow: var(--highlight), var(--shadow-card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.ramp-panel__head { margin-bottom: var(--sp-6); }
.ramp-panel__eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-ink); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ramp-panel__eyebrow svg { width: 14px; height: 14px; }
.ramp-panel h2 { margin: 10px 0 4px; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
@media (min-width: 761px) { .ramp-panel__head { padding-right: 232px; } }
.ramp-panel h2 span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ramp-panel__head p { margin: 0; color: var(--ink-2); font-size: var(--t-base); }

.asc { position: relative; height: 340px; margin: 0 0 var(--sp-5); }
.asc__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.asc__grid { stroke: var(--grid-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.asc__area { opacity: 0; animation: asc-fill 900ms var(--ease) 500ms forwards; }
@keyframes asc-fill { to { opacity: 1; } }
.asc__line { stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--accent) 60%, transparent)); stroke-dasharray: 100; stroke-dashoffset: 100; animation: asc-draw 1400ms var(--ease) forwards; }
@keyframes asc-draw { to { stroke-dashoffset: 0; } }
.asc__mark { position: absolute; translate: -50% -50%; opacity: 0; animation: asc-pop 500ms var(--ease) forwards; }
.asc__mark--0 { animation-delay: 700ms; } .asc__mark--1 { animation-delay: 1050ms; } .asc__mark--2 { animation-delay: 1400ms; }
@keyframes asc-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.asc__dot { position: absolute; left: 0; top: 0; translate: -50% -50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 16px var(--accent); }
.asc__flag { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; width: max-content; max-width: 210px; padding: 10px 13px; border-radius: 14px; background: var(--tip-bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.asc__mark--0 .asc__flag { left: 0; translate: 0 0; }
.asc__mark--2 .asc__flag { left: auto; right: 0; translate: 0 0; }
.asc__tag { display: block; color: var(--muted); font-size: var(--t-2xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.asc__value { display: block; margin: 3px 0 4px; font-size: var(--t-lg); font-weight: 800; letter-spacing: -0.02em; }
.asc__value small { margin-left: 5px; font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.asc__flag p { margin: 0; color: var(--ink-2); font-size: var(--t-xs); line-height: 1.4; }
.asc__cap { position: absolute; top: -6px; right: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--grad-brand); color: #fff; font-size: var(--t-xs); font-weight: 700; box-shadow: 0 10px 24px -10px var(--accent); }
.asc__cap svg { width: 13px; height: 13px; }

.ramp-panel__note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--ok-soft); }
.ramp-panel__note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ok); }
.ramp-panel__note p { margin: 0; max-width: 65ch; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }

/* ---------- Bonnes pratiques ---------- */
.good-panel__title { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-4); font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.02em; }
.good-panel__title svg { width: 20px; height: 20px; color: var(--ok); }
.good-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.gcard { position: relative; padding: var(--sp-5); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--highlight), var(--shadow-card); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); animation: jstep-in 500ms var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.gcard__tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); margin-bottom: var(--sp-3); }
.gcard__tick svg { width: 17px; height: 17px; }
.gcard strong { display: block; font-size: var(--t-base); font-weight: 700; }
.gcard p { margin: 4px 0 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.45; }

@media (max-width: 760px) {
  .rules-hero, .ramp-panel { padding: var(--sp-5); }
  .journey__spine { left: 27px; }
  .jstep__node { width: 44px; }
  .jstep__num { width: 36px; height: 36px; font-size: var(--t-base); }
  .jstep__card { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .asc { height: 300px; }
  .asc__flag { max-width: 150px; padding: 8px 10px; }
  .asc__flag p { display: none; }
  .asc__mark--1 .asc__flag { left: 0; translate: 0 0; }
  .good-grid { grid-template-columns: 1fr; }
  .asc__value small { display: block; margin-left: 0; }
  .asc__mark--2 .asc__flag { right: 20px; bottom: auto; top: 0; translate: 0 -50%; }
}
/* 861–960 px, barre latérale ouverte : les étiquettes « Jours 1-4 » et « Semaines 1-2 » se chevauchaient. */
@media (min-width: 861px) and (max-width: 960px) { .asc__flag { max-width: 160px; } }
