/**
 * Page d'accueil (v2) : direction visuelle inspiree de kinsta.com/wordpress-hosting/agencies.
 * Tout est namespace sous .hv2 (porte par <main class="landing hv2">) pour ne rien casser
 * ailleurs sur le site : style.css / home.css restent partages avec nsi.html et programmation.html.
 */

.hv2 {
  --hv2-ink: #14141a;
  --hv2-ink-soft: #4a4a52;
  --hv2-ink-faint: #83838a;
  --hv2-cream: #f7f2ea;
  --hv2-cream-deep: #efe6d3;
  --hv2-card: #ffffff;
  --hv2-line: #e6ddc8;
  --hv2-line-strong: #d5c9a8;
  --hv2-accent: #ef4a34;
  --hv2-accent-deep: #c93620;
  --hv2-accent-soft: #fde4de;
  --hv2-radius-sm: 6px;
  --hv2-radius-md: 12px;
  --hv2-radius-lg: 20px;
  --hv2-shadow: 0 1px 2px rgba(20,20,26,0.04), 0 20px 45px -24px rgba(20,20,26,0.22);
  --hv2-font: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --hv2-mono: ui-monospace, "SF Mono", Consolas, monospace;

  font-family: var(--hv2-font);
  color: var(--hv2-ink);
  background: var(--hv2-cream);
  max-width: none;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hv2 h1, .hv2 h2, .hv2 h3, .hv2 h4 { font-family: var(--hv2-font); font-weight: 800; letter-spacing: -0.015em; }
.hv2 p { margin: 0; }
.hv2 ul { margin: 0; padding: 0; }
.hv2 a { color: inherit; }
.hv2 img { max-width: 100%; }

.hv2-grain { position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0.025; will-change: transform; transform: translateZ(0); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hv2 .wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

.hv2 .btn { font-family: var(--hv2-font); font-weight: 700; font-size: 0.9rem; padding: 0.75rem 1.3rem; border-radius: var(--hv2-radius-sm); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease; }
.hv2 .btn--lg { padding: 0.9rem 1.6rem; font-size: 0.96rem; }
.hv2 .btn--accent { background: var(--hv2-accent); color: #fff; }
.hv2 .btn--accent:hover { background: var(--hv2-accent-deep); transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 24px -10px rgba(239,74,52,0.55); }
.hv2 .btn--ghost-dark { color: #fff; border-color: rgba(255,255,255,0.28); }
.hv2 .btn--ghost-dark:hover { border-color: #fff; transform: translateY(-2px); }
.hv2 .btn--outline { border-color: var(--hv2-ink); color: var(--hv2-ink); }
.hv2 .btn--outline:hover { background: var(--hv2-ink); color: var(--hv2-cream); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .hv2 .btn:hover { transform: none !important; } }

/* ---------- Scroll reveal ---------- */
.hv2 .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1); }
.hv2 .reveal.is-visible { opacity: 1; transform: translateY(0); }
.hv2 .reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(.16,.84,.44,1), transform 0.6s cubic-bezier(.16,.84,.44,1); }
.hv2 .reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.hv2 .reveal-group.is-visible > *:nth-child(1) { transition-delay: 0.04s; }
.hv2 .reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.11s; }
.hv2 .reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.hv2 .reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.25s; }
.hv2 .reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.hv2 .reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.39s; }
@media (prefers-reduced-motion: reduce) {
  .hv2 .reveal, .hv2 .reveal-group > * { transition: none !important; opacity: 1 !important; transform: none !important; }
}
.hv2 .hero-in { opacity: 0; transform: translateY(16px); animation: hv2HeroIn 0.7s cubic-bezier(.16,.84,.44,1) forwards; }
@keyframes hv2HeroIn { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hv2 .hero-in { animation: none; opacity: 1; transform: none; } }

/* ---------- Pay banner (injected by home-access.js) ---------- */
.hv2 .home-pay-banner { background: var(--hv2-ink); color: rgba(255,255,255,0.88); }
.hv2 .home-pay-banner[hidden] { display: none; }
.hv2 .home-pay-banner > p { max-width: 1220px; margin: 0 auto; padding: 0.9rem clamp(1.25rem, 4vw, 3rem) 0.5rem; font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.88); }
.hv2 .home-pay-banner > p strong { color: #fff; }
.hv2 .home-pay-banner .home-pay-banner__actions { max-width: 1220px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem) 1rem; }
.hv2 .home-pay-banner .btn-primary, .hv2 .home-pay-banner .btn-secondary { font-family: var(--hv2-font); font-weight: 700; font-size: 0.82rem; padding: 0.5rem 0.9rem; border-radius: var(--hv2-radius-sm); text-decoration: none; }
.hv2 .home-pay-banner .btn-primary { background: var(--hv2-accent); color: #fff; }
.hv2 .home-pay-banner .btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }

/* ---------- Avis d'accès (js/access-notice.js) : « accès administrateur retiré », « panel professeur non accessible » ----------
   Un bandeau calme dans le ton de la page (encre un peu relevée, pas d'alerte rouge) : ce qui s'est passé, ce qu'on peut faire,
   et un bouton pour le refermer. */
.hv2 .csp-notice {
  background: #1b1b23;
  border-bottom: 1px solid #2d2d37;
  color: var(--hv2-cream);
  animation: hv2NoticeIn 0.28s cubic-bezier(.16,.84,.44,1) both;
}
@keyframes hv2NoticeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hv2 .csp-notice.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease; }
.hv2 .csp-notice__in { display: flex; align-items: center; gap: 1rem; max-width: 1220px; margin: 0 auto; padding: 1.05rem clamp(1.25rem, 4vw, 3rem); }
.hv2 .csp-notice__icon { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; color: var(--hv2-accent); background: rgba(239,74,52,0.12); box-shadow: inset 0 0 0 1px rgba(239,74,52,0.4); }
.hv2 .csp-notice__text { flex: 1 1 auto; min-width: 0; }
.hv2 .csp-notice__title { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: #fff; }
.hv2 .csp-notice__body { max-width: 46rem; margin: 0.15rem 0 0; font-size: 0.92rem; font-weight: 500; line-height: 1.55; color: #d9d6cd; }
.hv2 .csp-notice__detail { margin: 0.45rem 0 0; font-family: var(--hv2-mono); font-size: 0.78rem; font-weight: 600; color: #a9a69d; overflow-wrap: anywhere; }
.hv2 .csp-notice__hint { margin: 0.2rem 0 0; font-size: 0.84rem; font-weight: 500; color: #a9a69d; }
.hv2 .csp-notice__close { flex: none; padding: 0.6rem 1.1rem; border: 1.5px solid rgba(247,242,234,0.34); border-radius: var(--hv2-radius-sm); background: transparent; color: var(--hv2-cream); font-family: var(--hv2-font); font-size: 0.85rem; font-weight: 800; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.hv2 .csp-notice__close:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.hv2 .csp-notice__close:focus-visible { outline: 2px solid var(--hv2-accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .hv2 .csp-notice__in { flex-wrap: wrap; align-items: flex-start; }
  .hv2 .csp-notice__text { flex-basis: calc(100% - 3.6rem); }
  .hv2 .csp-notice__close { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hv2 .csp-notice { animation: none; }
  .hv2 .csp-notice.is-leaving { transition: none; }
}
.hv2 #csp-admin-closed-banner, .hv2 #csp-prof-denied-banner { background: var(--hv2-accent-deep); color: #fff; padding: 0.75rem clamp(1.25rem, 4vw, 3rem); font-size: 0.88rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hv2 .hv2-hero { background: var(--hv2-ink); color: #fff; padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; max-width: none; margin: 0; display: block; }
.hv2 .hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hv2 .hero__inner { grid-template-columns: 1fr; } }

.hv2 .eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #ffb199; margin-bottom: 1.1rem; }
.hv2 .hv2-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; margin-bottom: 1.2rem; text-wrap: balance; color: #fff; background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.01em; font-weight: 800; }
.hv2 .hero__lede { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 46ch; margin-bottom: 1.9rem; font-weight: 500; }
.hv2 .cta-row { display: flex; gap: 0.85rem; margin-bottom: 1.4rem; flex-wrap: wrap; align-items: center; }
.hv2 .home-resume-slot { margin: 0 0 1.4rem; }
.hv2 .home-resume-slot[hidden] { display: none; }
html.theme-dark .hv2 .home-resume__link,
html .hv2 .home-resume__link { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.9rem; border-radius: 999px; text-decoration: none; font-size: 0.85rem; font-weight: 700; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); color: #fff; }
.hv2 .home-resume__link[hidden] { display: none; }
html.theme-dark .hv2 .home-resume__link:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }
html.theme-dark .hv2 .home-resume__label { color: #ffb199; margin-right: 0.3rem; }
.hv2 .hero__stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.1rem; }
.hv2 .hero__stats > div { padding-right: 1.75rem; margin-right: 1.75rem; border-right: 1px solid rgba(255,255,255,0.16); }
.hv2 .hero__stats > div:last-child { border: none; margin: 0; padding: 0; }
.hv2 .hero__stats b { display: block; font-size: 1.5rem; font-weight: 800; }
.hv2 .hero__stats span { font-size: 0.74rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.04em; }

.hv2 .hero__visual { position: relative; height: 380px; }
.hv2 .bars { position: absolute; top: -20px; right: -10px; display: flex; align-items: flex-end; gap: 6px; height: 160px; opacity: 0.9; z-index: 0; }
.hv2 .bars span { width: 14px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--hv2-accent), #7a1f12); animation: hv2BarPulse 3.2s ease-in-out infinite; transform-origin: bottom; }
.hv2 .bars span:nth-child(1){height:38%; animation-delay: 0s;} .hv2 .bars span:nth-child(2){height:62%; animation-delay: 0.2s;} .hv2 .bars span:nth-child(3){height:48%; animation-delay: 0.4s;}
.hv2 .bars span:nth-child(4){height:82%; animation-delay: 0.6s;} .hv2 .bars span:nth-child(5){height:70%; animation-delay: 0.8s;} .hv2 .bars span:nth-child(6){height:96%; animation-delay: 1s;}
.hv2 .bars span:nth-child(7){height:58%; animation-delay: 1.2s;} .hv2 .bars span:nth-child(8){height:40%; animation-delay: 1.4s;}
@keyframes hv2BarPulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.12); } }
@media (prefers-reduced-motion: reduce) { .hv2 .bars span { animation: none; } }

.hv2 .hero__shot { position: relative; z-index: 1; background: #1e1e26; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--hv2-radius-md); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55); margin-top: 30px; overflow: hidden; transform: perspective(900px) rotateX(0deg) rotateY(0deg); transition: transform 0.2s ease-out; will-change: transform; }
@media (prefers-reduced-motion: reduce), (pointer: coarse) { .hv2 .hero__shot { transform: none !important; transition: none; } }
.hv2 .hero__shot-head { display: flex; gap: 6px; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hv2 .hero__shot-head span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.hv2 .hero__shot-body { padding: 1.1rem 1.2rem 1.3rem; }
.hv2 .hero__shot-title { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.hv2 .progress-row { display: grid; grid-template-columns: 90px 1fr 34px; align-items: center; gap: 0.7rem; font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-bottom: 0.65rem; font-weight: 600; }
.hv2 .progress-row .bar { height: 6px; background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden; }
.hv2 .progress-row .bar i { display: block; height: 100%; width: 0; background: var(--hv2-accent); border-radius: 999px; transition: width 1.1s cubic-bezier(.16,.84,.44,1); }
@media (prefers-reduced-motion: reduce) { .hv2 .progress-row .bar i { transition: none; } }
.hv2 .progress-row b { text-align: right; font-weight: 700; }

.hv2 .toast { position: absolute; display: flex; align-items: center; gap: 0.6rem; background: #fff; color: var(--hv2-ink); border-radius: 999px; padding: 0.55rem 0.9rem 0.55rem 0.55rem; box-shadow: 0 14px 30px -14px rgba(0,0,0,0.4); font-size: 0.78rem; font-weight: 600; white-space: nowrap; z-index: 2; }
.hv2 .toast b { font-weight: 800; }
.hv2 .toast .avatar { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 0.78rem; flex-shrink: 0; }
.hv2 .toast--1 { top: -4px; left: -6px; }
.hv2 .toast--2 { top: 128px; right: -18px; }
.hv2 .toast--3 { bottom: -10px; left: 30px; }
@media (max-width: 900px) { .hv2 .toast { position: static; margin-top: 0.6rem; white-space: normal; max-width: 100%; } .hv2 .hero__visual { height: auto; } .hv2 .bars { display: none; } }

/* ---------- Section shell ---------- */
.hv2 section.block { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.hv2 section.block--deep { background: var(--hv2-cream-deep); }
.hv2 .block__head { max-width: 62ch; margin-bottom: 2.5rem; }
.hv2 .block__head--center { max-width: 56ch; margin-left: auto; margin-right: auto; text-align: center; }
.hv2 .block__kicker { font-size: 0.8rem; font-weight: 700; color: var(--hv2-accent-deep); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem; }
.hv2 .block__title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.hv2 .block__sub { color: var(--hv2-ink-soft); font-size: 1.02rem; margin-top: 0.8rem; font-weight: 500; }

/* ---------- Feature grid ---------- */
.hv2 .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 980px) { .hv2 .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hv2 .feature-grid { grid-template-columns: 1fr; } }
.hv2 .feature-card { background: var(--hv2-card); border-radius: var(--hv2-radius-lg); box-shadow: var(--hv2-shadow); padding: 1.7rem 1.5rem; transition: transform 0.3s cubic-bezier(.16,.84,.44,1), box-shadow 0.3s ease; }
.hv2 .feature-card:hover { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(20,20,26,0.05), 0 30px 55px -22px rgba(20,20,26,0.32); }
.hv2 .feature-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--hv2-accent-soft); color: var(--hv2-accent-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.hv2 .feature-card:hover .feature-icon { transform: scale(1.1) rotate(-6deg); }
.hv2 .feature-icon svg { width: 20px; height: 20px; }
.hv2 .feature-card h3 { font-size: 1.05rem; margin-bottom: 0.55rem; }
.hv2 .feature-card p { color: var(--hv2-ink-soft); font-size: 0.92rem; font-weight: 500; }

/* ---------- Language grid ---------- */
.hv2 .lang-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 980px) { .hv2 .lang-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .hv2 .lang-grid { grid-template-columns: repeat(2, 1fr); } }
/* display / border / animation / backdrop-filter : neutralisent l'ancien .lang-card de style.css (flex en ligne,
   ~200 px de large par carte) qui faisait déborder la grille de 6 colonnes hors de sa colonne. */
.hv2 .lang-card { display: block; min-width: 0; border: 0; gap: 0; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--hv2-card); border-radius: var(--hv2-radius-lg); box-shadow: var(--hv2-shadow); padding: 1.3rem 1rem; text-align: center; text-decoration: none; color: var(--hv2-ink); transition: transform 0.3s cubic-bezier(.16,.84,.44,1), box-shadow 0.3s ease; }
.hv2 .lang-card:hover { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(20,20,26,0.05), 0 30px 55px -22px rgba(20,20,26,0.32); }
.hv2 .lang-card__icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.85rem; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); }
.hv2 .lang-card:hover .lang-card__icon { transform: scale(1.12); }
.hv2 .lang-card__icon img { width: 24px; height: 24px; }
.hv2 .lang-card__name { font-weight: 800; font-size: 0.94rem; }
.hv2 .lang-card__count { font-size: 0.76rem; color: var(--hv2-ink-faint); font-weight: 600; margin-top: 0.2rem; display: block; }
.hv2 .lang-card--py .lang-card__icon { background: rgba(47,111,158,0.12); }
.hv2 .lang-card--js .lang-card__icon { background: rgba(169,120,10,0.12); }
.hv2 .lang-card--html .lang-card__icon { background: rgba(193,68,14,0.12); }
.hv2 .lang-card--css .lang-card__icon { background: rgba(28,111,174,0.12); }
.hv2 .lang-card--java .lang-card__icon { background: rgba(181,89,11,0.12); }
.hv2 .lang-card--c .lang-card__icon { background: rgba(82,97,138,0.12); }
.hv2 .lang-card.is-blocked { opacity: 0.5; filter: grayscale(0.7); pointer-events: none; position: relative; }
.hv2 .lang-card.is-blocked::after { content: "Indisponible"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.8); font-size: 0.72rem; font-weight: 800; color: var(--hv2-ink-faint); border-radius: var(--hv2-radius-lg); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Decorative background blobs ---------- */
.hv2 .block--decor { position: relative; overflow: hidden; }
.hv2 .blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.hv2 .blob--accent { background: var(--hv2-accent); opacity: 0.16; }
.hv2 .blob--1 { width: 420px; height: 420px; top: -180px; right: -140px; }
.hv2 .blob--2 { width: 360px; height: 360px; bottom: -180px; left: -120px; }
.hv2 .block--decor > .wrap { position: relative; z-index: 1; }

/* ---------- Split (feature + list) ---------- */
.hv2 .split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .hv2 .split { grid-template-columns: 1fr; } }
.hv2 .split__text .block__title { text-align: left; margin: 0; }
.hv2 .split__text .block__sub { text-align: left; }
.hv2 .split__list { display: flex; flex-direction: column; gap: 1.5rem; }
.hv2 .split__item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.hv2 .split__item b { font-size: 0.85rem; font-weight: 800; color: var(--hv2-accent-deep); padding-top: 0.15rem; }
.hv2 .split__item h4 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.hv2 .split__item p { color: var(--hv2-ink-soft); font-size: 0.9rem; font-weight: 500; }

/* ---------- Live preview bento ---------- */
.hv2 .bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .hv2 .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hv2 .bento { grid-template-columns: 1fr; } }
.hv2 .bento-item { background: var(--hv2-card); border-radius: var(--hv2-radius-lg); box-shadow: var(--hv2-shadow); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; transition: transform 0.3s cubic-bezier(.16,.84,.44,1), box-shadow 0.3s ease; }
.hv2 .bento-item:hover { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(20,20,26,0.05), 0 30px 55px -22px rgba(20,20,26,0.32); }
.hv2 .bento-item__label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--hv2-ink-faint); }
.hv2 .bento-item__title { display: block; font-weight: 800; font-size: 1.05rem; color: var(--hv2-ink); margin-top: 0.15rem; text-decoration: none; }
.hv2 .bento-item__title:hover { color: var(--hv2-accent-deep); }
.hv2 .mini-code { background: var(--hv2-ink); border-radius: var(--hv2-radius-sm); padding: 0.75rem 0.85rem; font-family: var(--hv2-mono); font-size: 0.8rem; line-height: 1.65; color: #e8e4da; overflow-x: auto; }
.hv2 .mini-code .tok-kw { color: #ff8a72; } .hv2 .mini-code .tok-str { color: #ffb199; } .hv2 .mini-code .tok-num { color: #7ec8e3; } .hv2 .mini-code .tok-com { color: #8a8a92; font-style: italic; }
.hv2 .bento-item__note { font-size: 0.8rem; color: var(--hv2-ink-faint); font-weight: 500; }

.hv2 .home-quiz-demo, .hv2 .home-flash-demo { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.hv2 .home-quiz-demo__lang, .hv2 .home-flash-demo__lang { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--hv2-accent-deep); }
.hv2 .home-quiz-demo__q { font-weight: 700; font-size: 0.94rem; color: var(--hv2-ink); }
.hv2 .home-quiz-demo__choices { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.hv2 .home-quiz-demo__choice { font-family: var(--hv2-font); font-weight: 600; font-size: 0.85rem; text-align: left; width: 100%; padding: 0.55rem 0.7rem; border-radius: var(--hv2-radius-sm); border: 1.5px solid var(--hv2-line-strong); background: var(--hv2-cream); color: var(--hv2-ink); cursor: pointer; }
.hv2 .home-quiz-demo__choice:hover:not(:disabled) { border-color: var(--hv2-ink); }
.hv2 .home-quiz-demo__choice:disabled { cursor: default; }
.hv2 .home-quiz-demo__choice.is-correct { border-color: #1f9d74; background: #e2f5ec; color: #146c4e; }
.hv2 .home-quiz-demo__choice.is-wrong { border-color: var(--hv2-accent); background: var(--hv2-accent-soft); color: var(--hv2-accent-deep); }
.hv2 .home-quiz-demo__feedback { font-size: 0.85rem; font-weight: 700; }
.hv2 .home-quiz-demo__feedback.is-ok { color: #146c4e; }
.hv2 .home-quiz-demo__feedback.is-ko { color: var(--hv2-accent-deep); }
.hv2 .home-quiz-demo__actions, .hv2 .home-flash-demo__actions { margin-top: auto; }
.hv2 .home-demo-btn { font-family: var(--hv2-font); font-weight: 700; font-size: 0.8rem; align-self: flex-start; padding: 0.5rem 0.85rem; border-radius: var(--hv2-radius-sm); border: 1.5px solid var(--hv2-line-strong); background: var(--hv2-cream); color: var(--hv2-ink); cursor: pointer; }
.hv2 .home-demo-btn:hover { border-color: var(--hv2-ink); }
.hv2 .home-flash-demo__card { position: relative; height: 100px; border-radius: var(--hv2-radius-sm); border: 1.5px solid var(--hv2-line-strong); background: var(--hv2-cream); cursor: pointer; perspective: 600px; padding: 0; }
.hv2 .home-flash-demo__side { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.6rem; backface-visibility: hidden; transition: transform 0.35s ease; font-weight: 700; font-size: 0.98rem; color: var(--hv2-ink); }
.hv2 .home-flash-demo__side--back { transform: rotateY(180deg); font-weight: 500; font-size: 0.82rem; color: var(--hv2-ink-soft); }
.hv2 .home-flash-demo__card.is-flipped .home-flash-demo__side--front { transform: rotateY(180deg); }
.hv2 .home-flash-demo__card.is-flipped .home-flash-demo__side--back { transform: rotateY(360deg); display: flex; /* home.css repasse le verso en display:block une fois la carte retournée : le texte montait en haut */ }
.hv2 .home-flash-demo__hint { font-size: 0.74rem; color: var(--hv2-ink-faint); }

/* ---------- Pricing ---------- */
.hv2 .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.hv2 .pricing-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin: 0 auto; }
@media (max-width: 860px) { .hv2 .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.hv2 .price-card { background: var(--hv2-card); border-radius: var(--hv2-radius-lg); box-shadow: var(--hv2-shadow); padding: 2rem 1.75rem; display: flex; flex-direction: column; position: relative; transition: transform 0.3s cubic-bezier(.16,.84,.44,1), box-shadow 0.3s ease; }
.hv2 .price-card:not(.price-card--featured):hover { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(20,20,26,0.05), 0 30px 55px -22px rgba(20,20,26,0.32); }
.hv2 .price-card--featured { background: var(--hv2-ink); color: #fff; transform: translateY(-10px); box-shadow: 0 30px 60px -24px rgba(20,20,26,0.5); }
.hv2 .price-card--featured:hover { transform: translateY(-14px); box-shadow: 0 34px 64px -22px rgba(20,20,26,0.55); }
.hv2 .price-card__badge { position: absolute; top: -13px; left: 1.75rem; background: var(--hv2-accent); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 0.3rem 0.75rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.hv2 .price-card__name { font-size: 0.95rem; font-weight: 700; color: var(--hv2-ink-faint); margin-bottom: 0.9rem; }
.hv2 .price-card--featured .price-card__name { color: rgba(255,255,255,0.6); }
.hv2 .price-card__price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.hv2 .price-card__unit { font-size: 0.85rem; color: var(--hv2-ink-faint); font-weight: 600; margin-bottom: 1.4rem; }
.hv2 .price-card--featured .price-card__unit { color: rgba(255,255,255,0.5); }
.hv2 .price-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.88rem; font-weight: 600; color: var(--hv2-ink-soft); margin-bottom: 1.6rem; flex: 1; }
.hv2 .price-card--featured ul { color: rgba(255,255,255,0.82); }
.hv2 .price-card li { display: flex; gap: 0.55rem; align-items: baseline; }
.hv2 .price-card li::before { content: "\2713"; color: var(--hv2-accent); font-weight: 800; }
.hv2 .price-card--featured li::before { color: #ff8a72; }
.hv2 .price-card .btn { justify-content: center; width: 100%; }

/* ---------- Perks ---------- */
.hv2 .perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 980px) { .hv2 .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hv2 .perks-grid { grid-template-columns: 1fr; } }
.hv2 .perk { border-top: 3px solid var(--hv2-accent); padding-top: 1rem; transition: transform 0.3s cubic-bezier(.16,.84,.44,1); }
.hv2 .perk:hover { transform: translateY(-3px); }
.hv2 .perk h4 { font-size: 0.98rem; margin-bottom: 0.5rem; }
.hv2 .perk p { font-size: 0.88rem; color: var(--hv2-ink-soft); font-weight: 500; }

/* ---------- FAQ ---------- */
.hv2 .faq { display: flex; flex-direction: column; gap: 0.75rem; max-width: 760px; margin: 0 auto; }
.hv2 .faq-item { background: var(--hv2-card); border-radius: var(--hv2-radius-md); box-shadow: var(--hv2-shadow); padding: 1.15rem 1.5rem; }
.hv2 .faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 700; font-size: 0.98rem; }
.hv2 .faq-item summary::-webkit-details-marker { display: none; }
.hv2 .faq-icon { font-size: 1.4rem; font-weight: 400; color: var(--hv2-accent); transition: transform 0.25s ease; flex-shrink: 0; line-height: 1; }
.hv2 .faq-item[open] .faq-icon { transform: rotate(45deg); }
.hv2 .faq-item p { margin-top: 0.85rem; color: var(--hv2-ink-soft); font-size: 0.92rem; font-weight: 500; line-height: 1.6; }

/* ---------- Compte connecté : « Ton accès » + vraies formules ---------- */
.hv2 .account-access { display: flex; flex-direction: column; gap: 1.5rem; }
.hv2 .access-banner { background: var(--hv2-card); border-radius: var(--hv2-radius-lg); box-shadow: var(--hv2-shadow); padding: 1.6rem 1.75rem; display: flex; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; max-width: 900px; margin: 0 auto; }
.hv2 .access-banner__main { flex: 1 1 320px; min-width: 0; }
.hv2 .access-banner__who { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--hv2-ink-faint); margin-bottom: 0.55rem; }
.hv2 .access-banner__who strong { color: var(--hv2-ink); font-weight: 800; }
.hv2 .access-banner__title { font-size: 1.4rem; margin-bottom: 0.35rem; }
.hv2 .access-banner__text { color: var(--hv2-ink-soft); font-size: 0.95rem; font-weight: 500; line-height: 1.55; max-width: 60ch; }
.hv2 .access-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hv2 .access-banner__loading { color: var(--hv2-ink-faint); font-weight: 600; }
.hv2 .user-access-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: #ece7dc; color: #4a4a52; }
.hv2 .user-access-badge--admin { background: var(--hv2-accent-soft); color: var(--hv2-accent-deep); }
.hv2 .user-access-badge--prof { background: #f6e3c8; color: #8a4a0a; }
.hv2 .user-access-badge--student { background: #dcefe6; color: #1b6b4d; }
.hv2 .user-access-badge--guest { background: #fdf0c7; color: #8a6410; }
.hv2 .user-access-badge--paid { background: #dce9f6; color: #1f4f86; }
.hv2 .access-plans__label { text-align: center; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hv2-ink-faint); margin-top: 0.5rem; }
.hv2 .access-plans__note { text-align: center; color: var(--hv2-ink-faint); font-size: 0.88rem; font-weight: 600; max-width: 60ch; margin: 0 auto; }
.hv2 .pricing-grid--plans { max-width: 980px; margin: 0 auto; }
.hv2 .price-card__per { font-size: 0.9rem; font-weight: 700; letter-spacing: 0; color: var(--hv2-ink-faint); }
.hv2 .price-card--featured .price-card__per { color: rgba(255,255,255,0.55); }
.hv2 .price-card--current { box-shadow: 0 0 0 2px var(--hv2-accent), var(--hv2-shadow); }
.hv2 .price-card .btn.is-static { cursor: default; pointer-events: none; opacity: 0.75; }
@media (max-width: 860px) { .hv2 .pricing-grid--plans { max-width: 420px; } }

/* ---------- Closing ---------- */
.hv2 .closing { background: var(--hv2-ink); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.hv2 .closing__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 0.9rem; text-wrap: balance; }
.hv2 .closing__sub { color: rgba(255,255,255,0.68); font-size: 1.05rem; font-weight: 500; margin-bottom: 2rem; }
.hv2 .closing__actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.hv2-footer { background: var(--hv2-cream-deep, #efe6d3); border-top: 1px solid var(--hv2-line, #e6ddc8); font-family: "Manrope", -apple-system, "Segoe UI", sans-serif; }
.hv2-footer .wrap { max-width: 1220px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.hv2-footer .footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3.25rem 0 2.25rem; }
@media (max-width: 760px) { .hv2-footer .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .hv2-footer .footer__inner { grid-template-columns: 1fr; } }
.hv2-footer .footer__brand { font-weight: 800; font-size: 1.05rem; color: #14141a; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.hv2-footer .footer__brand::before { content: ""; width: 9px; height: 9px; background: #ef4a34; border-radius: 50%; display: inline-block; }
.hv2-footer .footer__tag { font-size: 0.9rem; color: #4a4a52; margin-top: 0.7rem; max-width: 30ch; font-weight: 500; }
.hv2-footer .footer__heading { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #83838a; margin-bottom: 0.8rem; }
.hv2-footer .footer__col { display: flex; flex-direction: column; gap: 0.55rem; list-style: none; }
.hv2-footer .footer__col a { font-size: 0.88rem; color: #4a4a52; text-decoration: none; font-weight: 600; }
.hv2-footer .footer__col a:hover { color: #c93620; }
.hv2-footer .footer__fine { border-top: 1px solid #e6ddc8; padding: 1.1rem 0 2.25rem; font-size: 0.78rem; color: #83838a; }

/* Lien « Reprendre » sur le hero sombre : le titre de page (#475569) n'atteignait que 2:1 de contraste. */
.hv2 .home-resume__page { color: rgba(255,255,255,0.8); }
.hv2 .home-resume__label::after { color: rgba(255,255,255,0.45); }
.hv2 .home-resume__arrow { color: rgba(255,255,255,0.7); }

/* ---------- Ce qui vient de changer : les trois dernières nouveautés (bandeau généré par scripts/build-changelog.js) ---------- */
.hv2 .nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .hv2 .nw-grid { grid-template-columns: 1fr; max-width: 34rem; margin: 0 auto; } }
.hv2 .nw-card { display: flex; flex-direction: column; gap: 0.6rem; background: var(--hv2-card); border-radius: var(--hv2-radius-lg); box-shadow: var(--hv2-shadow); padding: 1.5rem 1.4rem 1.6rem; transition: transform 0.3s cubic-bezier(.16,.84,.44,1), box-shadow 0.3s ease; }
.hv2 .nw-card:hover { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(20,20,26,0.05), 0 30px 55px -22px rgba(20,20,26,0.32); }
.hv2 .nw-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem 0.7rem; font-size: 0.78rem; font-weight: 700; color: var(--hv2-ink-soft); }
.hv2 .nw-tag { display: inline-flex; align-items: center; padding: 0.1rem 0.55rem; border: 1px solid transparent; border-radius: 999px; font-size: 0.68rem; font-weight: 800; line-height: 1.3; }
.hv2 .nw-tag--nouveau { background: #fde4de; border-color: #edb3a8; color: #842516; }
.hv2 .nw-tag--ameliore { background: #fdf0c7; border-color: #d9c79d; color: #71420c; }
.hv2 .nw-tag--corrige { background: #e7f3e9; border-color: #bad7c2; color: #245a32; }
.hv2 .nw-title { font-size: 1.05rem; line-height: 1.3; }
.hv2 .nw-title a { color: var(--hv2-ink); text-decoration: none; }
.hv2 .nw-title a:hover, .hv2 .nw-title a:focus-visible { color: var(--hv2-accent-deep); text-decoration: underline; }
.hv2 .nw-text { color: var(--hv2-ink-soft); font-size: 0.92rem; font-weight: 500; }
.hv2 .nw-more { margin-top: 2rem; text-align: center; }

/* Invitation à donner son avis (avis.html), en bas de page. */
.hv2-footer .footer__fine { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; }
.hv2-footer .footer__feedback { font-weight: 700; color: #4a4a52; }
.hv2-footer .footer__feedback a { color: #b3321f; font-weight: 800; }
