/* Accueil : mise en page sobre */

.home-body {
  background: #f3f4f8;
}

html.theme-dark .home-body {
  background: #0f172a;
}

body.home-body > header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.landing--home {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.landing--hub {
  padding-bottom: 3rem;
}

/* Accueil v2 : hero */
.home-hero-v2 {
  padding: 1.5rem 0 1rem;
}

.home-hero-v2__layout {
  gap: 0.85rem;
  align-items: stretch;
}

.home-hero-v2__main.hub-hero--light {
  padding: 1.5rem 1.4rem 1.25rem;
}

.home-hero-v2 .home-hero__title {
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.home-hero-v2__main .home-hero__eyebrow {
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
}

.home-hero__intro {
  margin: 0 0 0.85rem;
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #475569;
}

.home-hero__intro strong {
  color: #8a4308;
  font-weight: 700;
}

.home-hero__points {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 44ch;
}

.home-hero__points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #64748b;
}

.home-hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4a34;
  transform: translateY(-50%);
}

html.theme-dark .home-hero__intro {
  color: #cbd5e1;
}

html.theme-dark .home-hero__intro strong {
  color: #e0e7ff;
}

html.theme-dark .home-hero__points li {
  color: #94a3b8;
}

html.theme-dark .home-hero__points li::before {
  background: #ff8a72;
}

html.theme-dark .home-hero-v2__main.hub-hero--light {
  box-shadow: none;
}

.home-hero-v2 .home-hero__cta {
  margin-top: 0;
  gap: 0.5rem;
}

.home-hero-v2__main .home-hero__points {
  margin-bottom: 0.85rem;
}

.home-resume-slot {
  margin: 0 0 0.75rem;
}

.home-resume-slot[hidden] {
  display: none;
}

.home-resume__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-resume__link[hidden] {
  display: none;
}

.home-resume__link:hover,
.home-resume__link:focus-visible {
  background: #f1f5f9;
  border-color: #ffb199;
}

.home-resume__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.home-resume__label {
  flex-shrink: 0;
  font-weight: 700;
  color: #ef4a34;
}

.home-resume__label::after {
  content: "·";
  margin-left: 0.35rem;
  font-weight: 500;
  color: #94a3b8;
}

.home-resume__page {
  min-width: 0;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-resume__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #64748b;
  background: rgba(15, 23, 42, 0.06);
}

.home-hero-langs {
  padding: 1.1rem 1.05rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border, #dde3ed);
  box-shadow: none;
}

.home-hero-langs__title {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}

.home-hero-langs__grid {
  gap: 0.4rem;
}

.home-hero-langs__card {
  padding: 0.5rem 0.55rem;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.home-hero-langs__card:hover,
.home-hero-langs__card:focus-visible {
  transform: none;
  box-shadow: none;
  background: #fff;
  border-color: #cbd5e1;
}

.home-hero-langs__card .nsi-quick-card__top {
  align-items: center;
}

.home-hero-langs__card .nsi-quick-card__logo {
  width: 22px;
  height: 22px;
}

.home-hero-langs__card .nsi-quick-card__name {
  font-size: 0.84rem;
  font-weight: 700;
}

.home-hero-langs__card .nsi-quick-card__count {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #64748b;
  background: rgba(15, 23, 42, 0.06);
}

html.theme-dark .home-hero-langs {
  background: #1e293b;
  border-color: #334155;
}

html.theme-dark .home-hero-langs__title {
  color: #94a3b8;
}

html.theme-dark .home-hero-langs__card {
  background: #0f172a;
  border-color: #334155;
}

html.theme-dark .home-hero-langs__card:hover,
html.theme-dark .home-hero-langs__card:focus-visible {
  background: #172033;
  border-color: #475569;
}

html.theme-dark .home-hero-langs__card .nsi-quick-card__name {
  color: #f1f5f9;
}

html.theme-dark .home-hero-langs__card .nsi-quick-card__count {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
}

html.theme-dark .home-resume__link {
  background: #0f172a;
  border-color: #334155;
}

html.theme-dark .home-resume__link:hover,
html.theme-dark .home-resume__link:focus-visible {
  background: #172033;
  border-color: #ef4a34;
}

html.theme-dark .home-resume__label {
  color: #ffb199;
}

html.theme-dark .home-resume__page {
  color: #cbd5e1;
}

html.theme-dark .home-resume__arrow {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 380px) {
  .home-resume__copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .home-resume__label::after {
    display: none;
  }

  .home-resume__page {
    white-space: normal;
  }
}

/* Hero sobre : voir .hub-hero--light dans nsi-hub.css */

.home-panel__group {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light, #64748b);
}

.home-panel__group + .nsi-pills {
  margin-bottom: 1rem;
}

.home-panel__group + .nsi-pills:last-child {
  margin-bottom: 0;
}

/* Accueil : tous les cours */
.home-courses-panel {
  padding: 1.25rem 1.35rem 1.35rem;
}

.home-courses-panel .home-panel__title {
  margin-bottom: 1.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #64748b;
}

.home-courses-block + .home-courses-block {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

.home-courses-block__label {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}

.home-course-grid--prog {
  gap: 0.4rem;
}

.home-course-grid__hub {
  grid-column: 1 / -1;
  list-style: none;
}

.home-course-hub {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0;
  border-radius: 11px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ffb199;
  background: #f5f3ff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-course-hub:hover,
.home-course-hub:focus-visible {
  border-color: #ff8a72;
  background: #eef2ff;
  transform: none;
  box-shadow: none;
}

.home-course-hub__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #ef4a34;
  color: #fff;
}

.home-course-hub__icon--img {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}

.home-course-hub__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-course-hub__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.home-course-hub__title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #8a4308;
}

.home-course-hub__meta {
  font-size: 0.75rem;
  color: #64748b;
}

.home-course-hub__arrow {
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ef4a34;
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.home-course-hub:hover .home-course-hub__arrow,
.home-course-hub:focus-visible .home-course-hub__arrow {
  opacity: 1;
  transform: translateX(3px);
}

.home-course-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.home-course-grid--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-course-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-course-item__lead {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.home-course-item:hover,
.home-course-item:focus-visible {
  border-color: color-mix(in srgb, var(--course-accent, #ef4a34) 35%, #e2e8f0);
  background: #fff;
  box-shadow: none;
}

.home-course-item--wide {
  padding: 0.65rem 0.7rem;
  gap: 0.55rem;
  justify-content: flex-start;
}

.home-course-item--wide .home-course-item__count {
  margin-left: auto;
}

.home-course-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 7px;
  background: color-mix(in srgb, var(--course-accent, #ef4a34) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--course-accent, #ef4a34) 18%, #e2e8f0);
}

.home-course-item__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.home-course-item__icon--glyph {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--course-accent, #ef4a34);
  background: color-mix(in srgb, var(--course-accent, #ef4a34) 12%, #f8fafc);
}

.home-course-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-course-item__name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-course-item__sub {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.25;
}

.home-course-item__count {
  flex-shrink: 0;
  min-width: 1.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  color: #64748b;
  background: rgba(15, 23, 42, 0.06);
}

.home-course-item--py { --course-accent: #2563eb; }
.home-course-item--js { --course-accent: #ca8a04; }
.home-course-item--html { --course-accent: #ea580c; }
.home-course-item--css { --course-accent: #0891b2; }
.home-course-item--java { --course-accent: #b45309; }
.home-course-item--c { --course-accent: #475569; }
.home-course-item--nsi { --course-accent: #ef4a34; }
.home-course-item--pieges { --course-accent: #d97706; }

html.theme-dark .home-courses-block + .home-courses-block {
  border-top-color: #334155;
}

html.theme-dark .home-course-hub {
  background: rgba(239, 74, 52, 0.12);
  border-color: #475569;
}

html.theme-dark .home-course-hub:hover,
html.theme-dark .home-course-hub:focus-visible {
  background: rgba(239, 74, 52, 0.18);
  border-color: #ef4a34;
}

html.theme-dark .home-course-hub__title {
  color: #e0e7ff;
}

html.theme-dark .home-course-hub__meta {
  color: #94a3b8;
}

html.theme-dark .home-course-item {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

html.theme-dark .home-course-item:hover,
html.theme-dark .home-course-item:focus-visible {
  background: #1e293b;
  border-color: color-mix(in srgb, var(--course-accent, #ff8a72) 45%, #475569);
}

html.theme-dark .home-course-item__sub {
  color: #94a3b8;
}

html.theme-dark .home-course-item__count {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

@media (max-width: 720px) {
  .home-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .home-course-grid,
  .home-course-grid--duo {
    grid-template-columns: 1fr;
  }
}

.home-hero {
  padding: 2.5rem 0 1.5rem;
}

.home-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: center;
}

.home-hero__copy {
  max-width: 34rem;
}

.lang-stack--home {
  max-width: 340px;
  margin-left: auto;
}

.lang-stack--home .lang-card {
  animation: none;
}

.lang-stack--home .lang-snippet {
  display: none;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.home-panel {
  background: #fff;
  border: 1px solid var(--border, #dde3ed);
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.5rem;
}

.home-panel__title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light, #64748b);
}

html.theme-dark .home-panel {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}

html.theme-dark .home-courses-panel .home-panel__title,
html.theme-dark .home-courses-block__label {
  color: #94a3b8;
}

.home-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark, #c93620);
}

.home-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark, #111827);
  line-height: 1.15;
}

html:not(.theme-dark) .home-hero__title {
  background: none;
  -webkit-text-fill-color: currentColor;
}

html.theme-dark .nsi-hero__main.hub-hero--light .home-hero__title,
html.theme-dark .landing--hub .home-hero__title {
  -webkit-text-fill-color: #f8fafc;
  color: #f8fafc;
}

.home-hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-light, #5b6577);
  max-width: 36ch;
}

.home-lang-pill--nsi {
  background: #fafbff;
  border-color: #ffb199;
  font-weight: 700;
}

.home-lang-pill--nsi:hover {
  border-color: var(--primary, #ef4a34);
  background: #eef2ff;
}

.home-about__list--simple li {
  grid-template-columns: 1fr;
  gap: 0.15rem;
}

.home-about__list--simple strong {
  min-width: 0;
}

html.theme-dark .home-hero__title {
  color: #f1f5f9;
}

html.theme-dark .home-hero__eyebrow {
  color: #ffb199;
}

html.theme-dark .home-lang-pill--nsi {
  background: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

.home-hero-auth {
  margin: 0 0 1.5rem;
  padding: 0;
}

.home-hero-auth__lead {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 38ch;
}

.home-hero-auth__lead strong {
  color: var(--text-dark);
  font-weight: 600;
}

.home-hero-auth__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-cta--solid {
  background: var(--primary);
  color: #fff !important;
  border: 1px solid var(--primary);
}

.home-cta--solid:hover {
  background: var(--primary-dark, #ef4a34);
  border-color: var(--primary-dark, #ef4a34);
}

.home-cta--outline {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-dark) !important;
  border: 1px solid var(--border, #cbd5e1);
}

.home-cta--outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-card.btn-help {
  cursor: pointer;
  border: 1px solid var(--border, #cbd5e1);
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  font-family: inherit;
}

.btn-card.btn-help .lang-img--help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

html.theme-dark .btn-card.btn-help {
  background: linear-gradient(135deg, #1e293b, #8a4308);
  border-color: #475569;
  color: #e2e8f0;
}

.nav-help-btn,
.nav-support-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}

.navbar--enhanced .nav-support-btn {
  padding: 0.42rem 0.85rem;
}

.nav-help-btn:hover,
.nav-support-btn:hover {
  color: var(--primary);
}

.home-hero-auth__more {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
}

.home-hero-auth__more:hover {
  color: var(--primary);
}

html.theme-dark .home-hero-auth__lead strong {
  color: #f1f5f9;
}

html.theme-dark .home-cta--outline {
  background: rgba(30, 41, 59, 0.6);
  color: #e2e8f0 !important;
  border-color: #475569;
}

html.theme-dark .home-cta--outline:hover {
  border-color: #ff8a72;
  color: #ffb199 !important;
}

html.theme-dark .home-hero-auth__more:hover {
  color: #ffb199;
}

.home-pay-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-links__divider {
  list-style: none;
  margin: 0.75rem 0 0.35rem;
  padding: 0.5rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.nav-links__divider span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 0 0.25rem;
}

.nav-auth-signup a {
  font-weight: 700;
}

@media (min-width: 769px) {
  .nav-links__divider {
    display: none;
  }
}

.home-about {
  max-width: 920px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
}

.home-about__inner {
  padding-left: 0;
}

.home-about h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.home-about__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-light);
  max-width: 52ch;
}

.home-about__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.home-about__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1rem;
  align-items: baseline;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-light);
}

.home-about__list strong {
  font-weight: 700;
  color: var(--text-dark);
  min-width: 5.5rem;
}

.home-langs {
  max-width: 920px;
  margin: 0 auto 4rem;
  padding: 0 2rem 3rem;
}

.home-langs h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin: 0 0 1rem;
}

.home-langs__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

.home-lang-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-lang-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-lang-pill:hover {
  border-color: var(--primary);
  background: rgba(239, 74, 52, 0.06);
}

.home-lang-pill--py:hover { border-color: #3b82f6; }
.home-lang-pill--js:hover { border-color: #ca8a04; }
.home-lang-pill--html:hover { border-color: #ea580c; }
.home-lang-pill--css:hover { border-color: #2563eb; }
.home-lang-pill--java:hover { border-color: #b45309; }
.home-lang-pill--c:hover { border-color: #64748b; }

html.theme-dark .home-about h2,
html.theme-dark .home-about__list strong {
  color: #f1f5f9;
}

html.theme-dark .home-about__lead,
html.theme-dark .home-about__list li {
  color: #94a3b8;
}

html.theme-dark .home-lang-pill {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html.theme-dark .home-lang-pill:hover {
  background: #0f172a;
}

@media (max-width: 900px) {
  .home-hero__layout {
    grid-template-columns: 1fr;
  }

  .lang-stack--home {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .home-about {
    padding: 2rem 1rem 1.25rem;
  }

  .home-about__inner {
    padding-left: 1rem;
  }

  .home-langs {
    padding: 0 1rem 2rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 600px) {
  .home-about__list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .home-about__list strong {
    min-width: 0;
  }
}

/* Rail langages : pas de scroll (grille dans nsi-hub.css) */

/* Bento accueil */
.home-bento {
  margin-bottom: 1.25rem;
}

.home-bento__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-bento-item {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

.home-bento-item__head {
  margin-bottom: 0.65rem;
}

.home-bento-item__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light, #64748b);
  margin-bottom: 0.2rem;
}

.home-bento-item__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark, #c93620);
  text-decoration: none;
}

.home-bento-item__title:hover {
  text-decoration: underline;
}

.home-bento-code {
  margin: 0;
}

.home-bento-item__note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--text-light, #64748b);
}

/* Flashcard demo */
.home-flash-demo__lang,
.home-quiz-demo__lang {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light, #64748b);
}

.home-flash-demo__card {
  display: block;
  width: 100%;
  min-height: 5.5rem;
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(160deg, #fafbff 0%, #f1f5f9 100%);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.home-flash-demo__card:hover {
  border-color: #ffb199;
  box-shadow: 0 4px 16px rgba(239, 74, 52, 0.12);
}

.home-flash-demo__side {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-dark, #0f172a);
  transition: opacity 0.2s ease;
}

.home-flash-demo__side--back {
  display: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light, #475569);
}

.home-flash-demo__card.is-flipped .home-flash-demo__side--front {
  display: none;
}

.home-flash-demo__card.is-flipped .home-flash-demo__side--back {
  display: block;
}

.home-flash-demo__hint {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--text-light, #94a3b8);
  text-align: center;
}

.home-flash-demo__actions,
.home-quiz-demo__actions {
  margin-top: 0.55rem;
  text-align: center;
}

.home-demo-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border, #cbd5e1);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: #334155;
  cursor: pointer;
}

.home-demo-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Quiz demo */
.home-quiz-demo__q {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark, #0f172a);
}

.home-quiz-demo__choices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-quiz-demo__choice {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text-dark, #334155);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.home-quiz-demo__choice:hover:not(:disabled) {
  border-color: #ffb199;
  background: #eef2ff;
}

.home-quiz-demo__choice:disabled {
  cursor: default;
  opacity: 0.85;
}

.home-quiz-demo__choice.is-correct {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
}

.home-quiz-demo__choice.is-wrong {
  border-color: #f87171;
  background: #fef2f2;
  color: #b91c1c;
}

.home-quiz-demo__feedback {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.home-quiz-demo__feedback.is-ok {
  color: #047857;
}

.home-quiz-demo__feedback.is-ko {
  color: #b45309;
}

/* Acces rapide elargi */
.home-quick-mega {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.home-quick-mega__heading {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
}

.home-quick-mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.home-quick-mega__list a {
  display: block;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark, #334155);
  text-decoration: none;
}

.home-quick-mega__list a:hover {
  background: rgba(239, 74, 52, 0.08);
  color: var(--primary, #ef4a34);
}

html.theme-dark .home-bento-item {
  background: #1e293b;
  border-color: #334155;
}

html.theme-dark .home-demo-btn {
  background: #334155;
  border-color: #64748b;
  color: #f1f5f9;
}

html.theme-dark .home-demo-btn:hover {
  border-color: #ff8a72;
  color: #e0e7ff;
}

html.theme-dark .home-flash-demo__hint {
  color: #94a3b8;
}

html.theme-dark .home-quiz-demo__q {
  color: #f1f5f9;
}

html.theme-dark .home-bento-item__title {
  color: #ffb199;
}

html.theme-dark .home-flash-demo__card {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border-color: #475569;
}

html.theme-dark .home-flash-demo__side {
  color: #f1f5f9;
}

html.theme-dark .home-quiz-demo__choice {
  background: #0f172a;
  border-color: #475569;
  color: #e2e8f0;
}

html.theme-dark .home-quiz-demo__choice:hover:not(:disabled) {
  border-color: #ff8a72;
  background: #334155;
  color: #f8fafc;
}

html.theme-dark .home-quiz-demo__choice.is-correct {
  border-color: #34d399;
  background: #064e3b;
  color: #a7f3d0;
}

html.theme-dark .home-quiz-demo__choice.is-wrong {
  border-color: #f87171;
  background: #450a0a;
  color: #fecaca;
}

html.theme-dark .home-flash-demo__card:hover {
  border-color: #ff8a72;
  box-shadow: 0 4px 16px rgba(255, 138, 114, 0.2);
}

html.theme-dark .home-quick-mega__heading {
  color: #f1f5f9;
}

html.theme-dark .home-quick-mega__list a {
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .home-quick-mega {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .home-bento__grid {
    grid-template-columns: 1fr;
  }

  .home-quick-mega {
    grid-template-columns: 1fr;
  }

}
