/* Mise en page des sections, de haut en bas, puis responsive. */

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.site-header.is-elevated {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(4rem, 9vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  background: var(--paper);
  text-align: center;
}

.hero__inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.hero h1 {
  max-width: 17ch;
}

.hero__sub {
  max-width: 58ch;
  font-size: 1.13rem;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__trust li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.demo {
  width: min(880px, 100%);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Drives supportés ---------- */

.drives {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.drives__inner {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
}

.drives__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.drives__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Concept : deux dimensions ---------- */

.concept__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.concept__note {
  max-width: 640px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.concept__note strong {
  color: var(--ink);
}

/* ---------- En conditions réelles : carrousel de captures ----------
   Défilement natif (scroll-snap) : fonctionne sans JS au doigt et à la
   molette ; flèches et puces ne s'affichent que si main.js est chargé. */

.carousel {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* overflow-x force overflow-y:auto — ce padding évite de rogner
     l'ombre portée des cadres. */
  padding-block: 4px 18px;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  scroll-snap-align: start;
}

.carousel__slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel__slide figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms ease, opacity 140ms ease;
}

html.js .carousel__nav {
  display: grid;
}

.carousel__nav:hover:not(:disabled) {
  border-color: var(--ink-faint);
}

.carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel__nav--prev { left: -20px; }
.carousel__nav--next { right: -20px; }

.carousel__dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

html.js .carousel__dots {
  display: flex;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 140ms ease;
}

.carousel__dot[aria-current='true'] {
  background: var(--accent);
}

/* ---------- Étapes ---------- */

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

/* ---------- Confidentialité ---------- */

.privacy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.privacy__footnote {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ---------- FAQ ---------- */

.faq__list {
  border-top: 1px solid var(--line);
}

/* ---------- Bandeau final ---------- */

.cta-band {
  padding-block: var(--section-y);
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.cta-band__inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.cta-band .eyebrow {
  color: #9bbfe4;
}

.cta-band h2 {
  max-width: 20ch;
  color: #fff;
}

.cta-band p:not([class]) {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cta-band__trust {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Le focus bleu #0055a4 est illisible sur le fond sombre (2,4:1) :
   on reprend le bleu clair de l'eyebrow du bandeau (9,1:1). */
.cta-band :focus-visible {
  outline-color: #9bbfe4;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.5rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.site-footer__links a:hover {
  color: var(--ink);
}

.site-footer__legal {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .concept__grid,
  .privacy__grid,
  .steps__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  /* Les flèches déborderaient du viewport ; le swipe prend le relais. */
  html.js .carousel__nav {
    display: none;
  }

  .steps__grid {
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .site-header__inner .btn {
    margin-left: auto;
  }

  .demo__grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }

  .demo__skeleton {
    display: none;
  }

  /* Sur mobile, le panneau épinglé rentre dans le flux de la carte :
     plus lisible qu'un calque flottant sur petit écran. */
  .ab-tip--pinned {
    position: static;
    width: 100%;
    margin-top: 0.25rem;
  }

  .ab-tip--pinned::before {
    display: none;
  }
}
