/* Paroza — page d'accueil (index.html) : responsive mobile / tablette / desktop */

/* ——— Navigation mobile ——— */
.landing-nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.landing-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.landing-nav-burger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.landing-nav-toggle:checked + .landing-nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.landing-nav-toggle:checked + .landing-nav-burger span:nth-child(2) {
  opacity: 0;
}

.landing-nav-toggle:checked + .landing-nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.landing-nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(15, 23, 42, 0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.landing-nav-toggle:checked ~ .landing-nav-scrim {
  display: block;
}

@media (max-width: 900px) {
  .site-header--floating .site-header__pill {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    max-width: calc(100% - 1.25rem);
    padding: 0.55rem 0.75rem 0.55rem 0.9rem;
  }

  .landing-nav-burger {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header--floating .site-nav.landing-nav {
    display: none;
    position: fixed;
    top: calc(var(--header-slot-h) - 0.25rem);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 190;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
    max-height: calc(100dvh - var(--header-slot-h) - 1rem);
    overflow-y: auto;
  }

  .landing-nav-toggle:checked ~ .site-nav.landing-nav {
    display: flex;
  }

  .site-header--floating .landing-nav .site-nav__link {
    display: flex !important;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .site-header--floating .landing-nav .site-nav__actions {
    margin: 0.35rem 0 0;
    padding: 0.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
  }

  .site-header--floating .landing-nav .site-nav__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .site-nav__link--mobile {
    display: none !important;
  }
}

@media (min-width: 901px) {
  .landing-nav-scrim {
    display: none !important;
  }

  .site-nav__link--connexion-desk {
    display: inline-flex;
  }

  .landing-nav .site-nav__actions .btn--ghost {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-nav__link--connexion-desk {
    display: none !important;
  }
}

/* ——— Hero responsive ——— */
.landing-hero {
  padding: 0.5rem 1rem 2.5rem;
  overflow-x: clip;
}

@media (min-width: 640px) {
  .landing-hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.landing-hero__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

@media (min-height: 720px) {
  .landing-hero .landing-hero__grid {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .landing-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem 3rem;
    min-height: calc(100vh - var(--header-slot-h) - 2rem);
    min-height: calc(100dvh - var(--header-slot-h) - 2rem);
  }

  .landing-hero__copy {
    text-align: left;
    align-items: flex-start;
  }

  .landing-hero__copy .hero-bubbles {
    align-items: flex-start;
  }

  .landing-hero__copy .hero-opixo__lead,
  .landing-hero__copy .hero-opixo__secondary {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .landing-hero__actions {
    justify-content: flex-start;
  }
}

.landing-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin: 0 0 0.5rem;
  width: 100%;
}

.landing-hero__visual {
  min-width: 0;
}

.landing-hero__visual .mock-shell {
  margin-bottom: 0;
}

@media (max-width: 639px) {
  .hero-bubble--coral {
    transform: none;
    width: 100%;
    align-items: stretch;
  }

  .hero-bubble--coral .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-bubble {
    width: 100%;
    box-sizing: border-box;
  }

  .mock-dashboard--wide {
    grid-template-columns: 44px 1fr;
    min-height: 280px;
  }

  .mock-dashboard__search {
    display: none;
  }

  .mock-dashboard__stats {
    grid-template-columns: 1fr;
  }

  .landing-hero__actions .btn--lg {
    flex: 1 1 100%;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .landing-hero__grid {
    max-width: 640px;
  }

  .mock-shell {
    max-width: 100%;
  }
}

/* ——— Sections globales ——— */
.page--home main {
  overflow-x: clip;
}

.page--home .section {
  padding-left: clamp(1rem, 4vw, 1.5rem);
  padding-right: clamp(1rem, 4vw, 1.5rem);
}

.page--home .trust-block {
  padding-left: clamp(1rem, 4vw, 1.25rem);
  padding-right: clamp(1rem, 4vw, 1.25rem);
}

@media (min-width: 640px) and (max-width: 859px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid .trust-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }
}

/* Fonctionnalités : tablette */
@media (min-width: 601px) and (max-width: 900px) {
  #fonctionnalites .fonc-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #fonctionnalites .fonc-v-card--dash {
    grid-column: 1 / -1;
  }
}

/* CTA */
@media (max-width: 479px) {
  .cta-split__actions,
  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-split__actions .btn,
  .cta-band__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer */
@media (max-width: 599px) {
  .site-footer--mega .site-footer__form {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer--mega .site-footer__submit {
    width: 100%;
  }

  .site-footer__pills {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .site-footer__columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Réduction du header slot sur mobile */
@media (max-width: 900px) {
  .page--home {
    --header-slot-h: 80px;
  }
}

/* Animations légères (respect prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .landing-hero__copy,
  .landing-hero__visual {
    animation: landing-fade-up 0.65s ease both;
  }

  .landing-hero__visual {
    animation-delay: 0.12s;
  }
}

@keyframes landing-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
