:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0b214a;
  --muted: #50627e;
  --line: #d5dfeb;
  --brand: #1e7bef;
  --brand-dark: #145ec1;
  --accent: #e8f2ff;
  --ok: #3ac3a5;
  --site-header-height: 4.25rem;
  /* Hero accueil : aligné sur l’illustration (lavande) et le bleu marque */
  --hero-home-accent: #c8d4ff;
  --hero-home-accent-strong: #b4b6f8;
  /* Bandes alternées (ex. accueil) : clair type maquette, bande suivante plus soutenue */
  --section-strip-a: #f4f7fb;
  --section-strip-b: #d9e4f5;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Évite le décalage horizontal quand la scrollbar verticale apparaît ou disparaît (pages courtes). */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "PT Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1 1 auto;
  width: 100%;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

body.nav-drawer-open {
  overflow: hidden;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  src: url("https://fonts.gstatic.com/s/ptsans/v17/jizaRExUiTo99u79D0KExQ.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  src: url("https://fonts.gstatic.com/s/ptsans/v17/jizfRExUiTo99u79B_mh0O6tLQ.woff2") format("woff2");
  font-display: swap;
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

.section {
  padding: clamp(2.25rem, 6vw, 4rem) 0;
}

.section--strip-a {
  background-color: var(--section-strip-a);
}

.section--strip-b {
  background-color: var(--section-strip-b);
  border-top: 1px solid rgba(11, 33, 74, 0.06);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--site-header-height);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  touch-action: manipulation;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(30, 123, 239, 0.08);
  color: var(--brand);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bar {
    transition: none;
  }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 21;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(11, 33, 74, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

.nav-backdrop[hidden] {
  display: none !important;
}

@media (min-width: 901px) {
  .site-nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 2.1rem;
  width: auto;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand);
  background: rgba(30, 123, 239, 0.06);
}

.nav-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-link--current {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.nav-link--current:hover,
.nav-link--current:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--brand-dark);
  text-decoration-thickness: 2px;
}

.nav-link--current:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-link--cta {
  padding: 0.55rem 1rem;
  margin-left: 0.15rem;
  background: linear-gradient(165deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(30, 123, 239, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-link--cta:hover,
.nav-link--cta:focus-visible {
  background: linear-gradient(165deg, #2a87f5 0%, #164fab 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(30, 123, 239, 0.45);
}

.nav-link--cta:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.nav-item--cta {
  margin-left: 0.25rem;
}

.nav-item--dropdown {
  position: relative;
}

.nav-link--parent::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
}

.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 16rem;
}

.nav-link--sub {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 0.4rem;
}

.nav-link--sub:hover,
.nav-link--sub:focus-visible {
  background: var(--accent);
  color: var(--brand-dark);
}

@media (min-width: 901px) {
  .nav-sub {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    padding: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.55rem;
    box-shadow: 0 10px 30px rgba(11, 33, 74, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 20;
  }

  .nav-item--dropdown:hover .nav-sub,
  .nav-item--dropdown:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--site-header-height);
    right: 0;
    bottom: 0;
    width: min(22rem, 100%);
    padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 32px rgba(11, 33, 74, 0.14);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 22;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, visibility 0.22s;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-nav {
      transition: none;
    }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    gap: 0.2rem;
  }

  .nav-item--dropdown .nav-link--parent {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
  }

  .nav-sub {
    margin: 0.35rem 0 0.5rem 0.75rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--line);
  }

  .nav-link {
    min-height: 2.75rem;
  }

  .nav-link--sub {
    padding: 0.55rem 0.65rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .nav-item--cta {
    margin-left: 0;
    margin-top: 0.35rem;
  }

  .nav-link--cta {
    margin-left: 0;
    justify-content: center;
    text-align: center;
    min-height: 2.75rem;
    width: 100%;
  }

  .header-inner {
    flex-wrap: nowrap;
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 47.5rem;
}

.hero-figure {
  margin: 0;
  justify-self: center;
  line-height: 0;
}

.hero-illustration {
  display: block;
  width: min(220px, 85vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }

  .hero-figure {
    justify-self: end;
  }

  .hero-illustration {
    width: min(240px, 28vw);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-float {
    animation: none;
  }
}

/* ——— Hero page d’accueil : dégradé, badge, mots accentués, vague ——— */
.hero.hero--home {
  position: relative;
  isolation: isolate;
  margin-top: 0;
  padding-top: clamp(2.5rem, 6.5vw, 4.25rem);
  padding-bottom: clamp(5.25rem, 14vw, 8rem);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(118deg, #232972 0%, #593ea4 100%);
}

.hero--home__glow {
  pointer-events: none;
  position: absolute;
  inset: -25% -12% 32% -18%;
  background:
    radial-gradient(ellipse 58% 48% at 90% 12%, rgba(255, 255, 255, 0.08), transparent 52%),
    radial-gradient(ellipse 45% 42% at 8% 72%, rgba(180, 182, 248, 0.12), transparent 48%);
  z-index: 0;
}

.hero--home__grid {
  position: relative;
  z-index: 1;
}

.hero.hero--home h1 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-title__plain {
  font-weight: 700;
  color: #fff;
}

.hero-title__accent {
  font-weight: 700;
  color: var(--hero-home-accent);
  text-shadow: 0 0 42px rgba(180, 182, 248, 0.35);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  max-width: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(200, 212, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-badge::before {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hero-home-accent-strong);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.hero.hero--home .lead {
  color: rgba(232, 242, 255, 0.88);
  max-width: min(75ch, 100%);
}

.hero.hero--home .btn-primary {
  box-shadow: 0 4px 20px rgba(30, 123, 239, 0.35);
}

.hero.hero--home .btn-primary:hover,
.hero.hero--home .btn-primary:focus-visible {
  box-shadow: 0 6px 24px rgba(30, 123, 239, 0.42);
}

/* Secondaire sur hero : .btn-secondary:hover (plus bas) écrasait la couleur → texte bleu illisible sur fond translucide */
.hero.hero--home .btn-secondary.btn--on-dark:hover,
.hero.hero--home .btn-secondary.btn--on-dark:focus-visible {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

.btn--on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero-figure--home {
  position: relative;
}

.hero--home__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(3.25rem, 10vw, 5.5rem);
  line-height: 0;
  z-index: 2;
}

.hero--home__wave-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero--home__wave-fill {
  fill: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.ecosystem-hero__sub {
  margin-top: -0.35rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
}

.ecosystem-inline-cta {
  margin: 1.25rem 0 2rem;
}

.ecosystem-inline-cta .btn {
  display: inline-flex;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.ecosystem-page__inner {
  max-width: 52rem;
  margin: 0 auto;
}

.ecosystem-page__prose {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.ecosystem-page__prose > h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
}

.ecosystem-page__prose > h2:first-child {
  margin-top: 0;
}

.ecosystem-page__prose > h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.15rem;
}

.ecosystem-page__prose > h3:first-child {
  margin-top: 0;
}

.ecosystem-page__prose p {
  margin: 0 0 1rem;
  max-width: 72ch;
}

.ecosystem-page__prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.ecosystem-page__prose li {
  margin-bottom: 0.35rem;
}

.ecosystem-page__prose strong {
  color: var(--text);
}

.ecosystem-page__prose .ecosystem-callout {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  max-width: 72ch;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  border-left: 3px solid var(--brand);
}

.ecosystem-page__prose .ecosystem-callout p {
  margin: 0;
  max-width: none;
  color: var(--text);
  font-size: 1rem;
}

.legal-page {
  max-width: 52rem;
  margin-inline: auto;
}

.legal-page > h1 + p {
  margin-top: 0;
}

.sitemap-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.kicker {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.65rem, 5.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.3rem, 4vw, 2rem);
}

h3 {
  font-size: clamp(1.08rem, 3vw, 1.35rem);
}

.lead {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  padding: 0.72rem 1rem;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  text-align: center;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.cards-grid,
.pricing-grid,
.offres-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.card,
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.25rem;
}

.card--value .card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 0.75rem;
  line-height: 0;
  color: var(--brand-dark);
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.card__badge-icon {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}

.card--value h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Accueil — cartes « La plateforme qui classe… » */
#offre .cards-grid--quad .card.card--value {
  position: relative;
  transform-origin: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

#offre .cards-grid--quad .card.card--value:hover {
  transform: scale(1.025);
  box-shadow: 0 12px 32px rgba(11, 33, 74, 0.12);
  border-color: rgba(30, 123, 239, 0.28);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  #offre .cards-grid--quad .card.card--value {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  #offre .cards-grid--quad .card.card--value:hover {
    transform: none;
    box-shadow: 0 8px 22px rgba(11, 33, 74, 0.1);
  }
}

.price-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-position: 50% 62%;
  background-size: min(88%, 15rem) auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.price-card.featured::before {
  opacity: 0.092;
  background-size: min(92%, 16rem) auto;
}

.offres-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 1.35rem;
}

.offres-card--featured {
  position: relative;
}

.offres-card__badge {
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.6rem;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--brand);
  border-radius: 0.4rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.offres-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.offres-card__title {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  margin-bottom: 0.45rem;
}

.offres-card__pitch {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.offres-card__price-wrap {
  min-height: 4.25rem;
  margin-bottom: 0.85rem;
}

.offres-card__price {
  margin: 0;
}

.offres-card__price-note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.offres-card__price-note--solo {
  margin-top: 0;
  font-size: 0.95rem;
}

.offres-card__period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.15rem;
}

.offres-card__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.offres-card__list li {
  margin-bottom: 0.45rem;
}

.offres-card__footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.offres-card__btn {
  width: 100%;
  max-width: 16rem;
  box-sizing: border-box;
}

.offres-card__detail-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.offres-card__detail-link:hover,
.offres-card__detail-link:focus-visible {
  text-decoration: underline;
}

.offres-hero__lead {
  max-width: 52ch;
}

.section--offres-cards {
  padding-top: 0.5rem;
}

.price-card--wm-ancre::before {
  background-image: url("../images/illustrations/ancre.svg");
}

.price-card--wm-ile::before {
  background-image: url("../images/illustrations/ile.svg");
}

.price-card--wm-carte::before {
  background-image: url("../images/illustrations/carte.svg");
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.card ul,
.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.geo p,
.faq p,
.faq-page__list p {
  max-width: 75ch;
}

.geo abbr[title] {
  text-decoration: none;
  border-bottom: 0;
  cursor: help;
}

/* Accueil — vues logiciel sous « Qu’est-ce que CaptainLearning ? » */
#captainlearning-definition .geo-lede {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin: 0.35rem 0 1.75rem;
}

#captainlearning-definition .geo-shot-row--pour-qui {
  margin: 0.25rem 0 clamp(1.5rem, 4vw, 2.5rem);
}

#captainlearning-definition .geo-shot-row {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: stretch;
}

#captainlearning-definition .geo-shot-row__text {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#captainlearning-definition .geo-shot-row__text h3 {
  margin: 0;
}

#captainlearning-definition .geo-shot-row__text p {
  max-width: none;
  margin: 0;
}

#captainlearning-definition .geo-shot-row__figure {
  margin: 0;
  align-self: center;
  width: 100%;
  max-width: 36rem;
}

#captainlearning-definition .geo-shot__trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.65rem;
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(11, 33, 74, 0.12);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#captainlearning-definition .geo-shot__trigger:hover {
  box-shadow: 0 14px 36px rgba(11, 33, 74, 0.16);
}

#captainlearning-definition .geo-shot__trigger:focus {
  outline: none;
}

#captainlearning-definition .geo-shot__trigger:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

#captainlearning-definition .geo-shot__thumb {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 901px) {
  #captainlearning-definition .geo-shot-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
  }

  /* Texte + capture : alignement en haut pour coller les deux paragraphes à la colonne image */
  #captainlearning-definition .geo-shot-row--text-media {
    align-items: start;
  }

  #captainlearning-definition .geo-shot-row--text-media .geo-shot-row__figure {
    align-self: start;
  }

  #captainlearning-definition .geo-shot-row--media-text .geo-shot-row__text {
    order: 2;
  }

  #captainlearning-definition .geo-shot-row--media-text .geo-shot-row__figure {
    order: 1;
  }

  #captainlearning-definition .geo-shot-row__figure {
    max-width: none;
  }
}

.geo-shot-modal {
  padding: 0;
  border: none;
  max-width: none;
  width: 100%;
  max-height: 100%;
  background: transparent;
}

.geo-shot-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-shot-modal::backdrop {
  background: rgba(11, 33, 74, 0.55);
  cursor: pointer;
}

.geo-shot-modal__layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100vw, 100dvw);
  min-height: min(100vh, 100dvh);
  padding: clamp(1.5rem, 4vw, 2rem) clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 2vw, 1rem);
  box-sizing: border-box;
}

.geo-shot-modal__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
}

.geo-shot-modal__panel {
  position: relative;
  z-index: 1;
  max-width: min(1440px, 98vw);
  max-height: min(94vh, 94dvh);
  margin: 0;
  padding: 0.35rem;
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(11, 33, 74, 0.25);
}

.geo-shot-modal__img {
  display: block;
  max-width: 100%;
  max-height: min(90vh, 90dvh);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.geo-shot-modal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  box-shadow: 0 2px 8px rgba(11, 33, 74, 0.08);
}

.geo-shot-modal__close-icon {
  display: block;
  flex-shrink: 0;
}

.geo-shot-modal__close:hover {
  background: var(--accent);
}

.geo-shot-modal__close:focus {
  outline: none;
}

.geo-shot-modal__close:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #captainlearning-definition .geo-shot__trigger {
    transition: none;
  }
}

/* Accueil — liste « Ce que CaptainLearning apporte » : même largeur que .geo p */
#captainlearning-definition .container > ul:not(.geo-citable) {
  max-width: 75ch;
  margin: 0.35rem 0 1.25rem;
  padding-left: 1.35rem;
  box-sizing: content-box;
}

#captainlearning-definition .container > ul:not(.geo-citable) > li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

#captainlearning-definition .container > ul:not(.geo-citable) > li:last-child {
  margin-bottom: 0;
}

.geo-in-brief {
  margin-top: 1.75rem;
  padding: 1.2rem 1.25rem 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  border-left: 3px solid var(--brand);
  box-shadow: 0 4px 20px rgba(11, 33, 74, 0.06);
}

.geo-in-brief h3 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: 1.15rem;
}

.geo-in-brief .geo-citable {
  margin-bottom: 0;
  border-left: 0;
  padding-left: 0;
}

.geo-citable {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
}

.geo-citable li {
  margin-bottom: 0.65rem;
  line-height: 1.55;
  color: var(--muted);
}

.geo-citable li:last-child {
  margin-bottom: 0;
}

.faq-page__inner {
  max-width: 44rem;
}

.faq-page__header {
  margin-bottom: 2rem;
}

.faq-page__intro {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 50ch;
}

.faq-page__group {
  margin-top: 2.25rem;
}

.faq-page__group:first-of-type {
  margin-top: 0.5rem;
}

.faq-page__group-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.faq-page__list .faq-page__item {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0;
  margin-bottom: 0.75rem;
  background: var(--surface);
}

.faq-page__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  list-style-position: outside;
}

.faq-page__item summary:hover,
.faq-page__item summary:focus-visible {
  color: var(--brand);
}

.faq-page__body {
  padding: 0 1rem 1.1rem 1.1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.faq-page__body p {
  margin: 0 0 0.75rem;
  max-width: 75ch;
}

.faq-page__body p:last-child {
  margin-bottom: 0;
}

.faq-page__body ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

.faq-page__body li {
  margin-bottom: 0.35rem;
}

.faq-page__list details a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.faq-page__list details a:hover,
.faq-page__list details a:focus-visible {
  text-decoration: underline;
}

.faq-teaser {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: linear-gradient(180deg, var(--accent) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
}

.faq-teaser.section--strip-a {
  background: var(--section-strip-a);
  border-top-color: var(--line);
}

.faq-teaser__inner {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.faq-teaser__inner h2 {
  margin-bottom: 0.65rem;
}

.faq-teaser__text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.offre-page__inner {
  display: grid;
  gap: 2rem;
  align-items: start;
  max-width: 52rem;
  margin: 0 auto;
}

.offre-page__figure {
  margin: 0;
  width: min(100%, 280px);
  margin-inline: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  min-height: 200px;
}

.offre-page__figure--ancre {
  aspect-ratio: 536 / 699;
}

.offre-page__figure--ile {
  aspect-ratio: 707 / 636;
}

.offre-page__figure--carte {
  aspect-ratio: 1;
}

/* Phare (page /succes/, fiches si besoin) : viewBox carré 950×950 */
.offre-page__figure--phare {
  aspect-ratio: 1;
}

.offre-page__content .kicker {
  margin-bottom: 0.5rem;
}

.offre-page__body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.offre-page__body p {
  margin: 0 0 1rem;
}

.offre-page__body p:last-child {
  margin-bottom: 0;
}

.offre-page__body strong {
  color: var(--text);
}

.offre-page__cta-wrap {
  margin: 1.5rem 0 0;
}

.offre-page__cta-wrap .offre-page__cta {
  display: inline-block;
  box-shadow: 0 2px 10px rgba(30, 123, 239, 0.25);
}

@media (min-width: 800px) {
  .offre-page__inner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 34%);
    gap: 2.5rem;
    align-items: center;
    max-width: 56rem;
  }

  .offre-page__figure {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    justify-self: end;
    order: 1;
  }

  .offre-page__content {
    order: 0;
  }
}

details:not(.faq-page__item) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
}

details:not(.faq-page__item) summary {
  font-weight: 600;
  cursor: pointer;
}

.pricing-hero {
  padding-bottom: 2rem;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
}

.price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.featured {
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(15, 91, 216, 0.16);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand-footer .brand-logo {
  height: 1.75rem;
}

.brand-footer {
  justify-self: start;
}

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav {
  justify-self: center;
  max-width: 100%;
  min-width: 0;
}

.footer-nav__ecoindex {
  display: flex;
  align-items: center;
}

.footer-nav__ecoindex a {
  display: flex;
  align-items: center;
  line-height: 0;
}

.footer-nav__ecoindex a:hover,
.footer-nav__ecoindex a:focus-visible {
  text-decoration: none;
}

.footer-nav__ecoindex img {
  display: block;
  max-height: 2em;
  width: auto;
}

.footer-nav a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
  color: var(--brand-dark);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
  justify-self: stretch;
  min-width: 0;
}

@media (min-width: 900px) {
  .footer-inner {
    display: grid;
    /* auto sur les côtés : le bloc mentions garde sa largeur naturelle (2 lignes sans coupure). */
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem 1.25rem;
  }

  .footer-nav__list {
    justify-content: center;
  }

  .footer-meta {
    text-align: right;
    justify-self: end;
    min-width: min-content;
  }

  /* Une phrase par ligne, comme sur la maquette */
  .footer-meta > p {
    white-space: nowrap;
  }
}

.footer-tagline {
  font-size: 0.88rem;
}

.footer-meta a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  text-decoration: underline;
  color: var(--brand-dark);
}

@media (max-width: 899px) {
  .brand-footer {
    align-self: flex-start;
  }

  .footer-meta {
    align-self: flex-end;
    text-align: right;
  }
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.demo-hero {
  padding-top: 2.5rem;
}

.demo-page {
  max-width: 32rem;
}

@media (min-width: 640px) {
  .demo-page {
    max-width: 38rem;
  }
}

.demo-header h1 {
  margin-bottom: 1.25rem;
}

.demo-benefits {
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
  color: var(--text);
  line-height: 1.55;
}

.demo-benefits li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 1.65rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.demo-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--accent);
}

.demo-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(11, 33, 74, 0.04),
    0 12px 40px rgba(11, 33, 74, 0.06);
}

.demo-form-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, #3ac3a5 100%);
}

.demo-form-card__head {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe 0%, var(--surface) 100%);
}

.demo-form-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.demo-form-sub {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 42ch;
}

.demo-form-crm {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 48ch;
}

.demo-form-crm code {
  font-size: 0.78em;
  word-break: break-all;
}

.demo-form-thanks {
  margin: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(58, 195, 165, 0.12) 0%, var(--accent) 120%);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.demo-form-thanks p {
  margin: 0;
  max-width: 52ch;
}

.demo-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.demo-form__captcha {
  margin-top: 0.25rem;
}

.demo-form__captcha-error {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b42318;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  padding: 1.5rem 1.5rem 1.65rem;
}

.form-row {
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 520px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-label::after {
  content: " *";
  color: #c45c5c;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.demo-form input {
  font: inherit;
  font-size: 16px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fafbfd;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  width: 100%;
  min-height: 2.75rem;
}

.demo-form input::placeholder {
  color: #8a9ab5;
  opacity: 1;
}

.demo-form input:hover {
  border-color: #bcc8dc;
  background: var(--surface);
}

.demo-form input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent);
}

.demo-form__textarea {
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fafbfd;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  width: 100%;
  min-height: 7.5rem;
  resize: vertical;
  box-sizing: border-box;
}

.demo-form__textarea:hover {
  border-color: #bcc8dc;
  background: var(--surface);
}

.demo-form__textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent);
}

.btn-submit-demo {
  margin-top: 0.35rem;
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  border-radius: 0.55rem;
  box-shadow: 0 2px 10px rgba(30, 123, 239, 0.3);
}

.btn-submit-demo:hover,
.btn-submit-demo:focus-visible {
  box-shadow: 0 4px 16px rgba(30, 123, 239, 0.4);
}

@media (min-width: 520px) {
  .btn-submit-demo {
    width: auto;
    min-width: 14rem;
    align-self: flex-start;
  }
}

.error-page {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.error-page__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.error-page__figure {
  margin: 0;
  width: min(100%, 320px);
  background-image: url("../images/illustrations/erreur404.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  aspect-ratio: 502 / 711;
  min-height: 220px;
}

.error-page__content {
  max-width: 32ch;
}

.error-page__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.error-page__lead {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.error-page__hint {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.error-page__cta {
  display: inline-block;
}

@media (min-width: 700px) {
  .error-page__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 48rem;
    text-align: left;
    justify-items: start;
  }

  .error-page__figure {
    justify-self: end;
    order: 0;
    width: min(100%, 360px);
  }

  .error-page__content {
    order: -1;
    max-width: none;
  }
}

@media (min-width: 760px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-grid.cards-grid--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid,
  .offres-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .cards-grid.cards-grid--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .cards-grid,
  .pricing-grid,
  .offres-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }
}

@media (max-width: 639px) {
  .price-card .btn {
    width: 100%;
    min-height: 2.75rem;
    box-sizing: border-box;
  }

  .price {
    font-size: clamp(1.15rem, 4vw, 1.35rem);
  }
}
