/* Shared blocks (group "Freedom: Shared") and the Freedom header/footer: additions not in the source CSS. */

/* ---------- Entrance motion (js/motion.js) ----------
   The page content waits, hidden, until motion.js has set the starting states (as the source's page is blank until its
   script runs). Without the script it shows after 2.5 s anyway. */
html.fp-motion-wait #contenu {
  opacity: 0;
  animation: fp-motion-failsafe 0s linear 2.5s forwards;
}

@keyframes fp-motion-failsafe {
  to {
    opacity: 1;
  }
}

/* ---------- Cookie banner (views/freedom/cookie-banner.php, js/cookie-banner.js) ----------
   The parts the script shows and hides. */
.fp-CookieBanner-banner[hidden],
.fp-CookieBanner-tab[hidden],
.fp-CookieBanner-close[hidden],
.fp-CookieBanner-categories[hidden],
.fp-CookieBanner-description[hidden],
.fp-CookieBanner-button[hidden] {
  display: none;
}

/* ---------- FAQ (fpFaqIndex) ----------
   Each question is a <details>: it opens without a script. The answer card on the right only exists on wide screens
   once faq.js has turned the list into tabs (.is-tabs); phones, and pages without the script, keep the accordion. */
.fp-FaqIndex-question {
  list-style: none;
}

.fp-FaqIndex-question::-webkit-details-marker {
  display: none;
}

.fp-FaqIndex-entry[open] .fp-FaqIndex-question {
  color: var(--fp-ink);
}

.fp-FaqIndex-entry[open] .fp-FaqIndex-question::before {
  transform: scaleY(1);
}

.fp-FaqIndex-entry[open] .fp-FaqIndex-questionText {
  transform: translateX(4px);
}

.fp-FaqIndex-entry[open] .fp-FaqIndex-arrow {
  opacity: 1;
  transform: none;
}

.fp-FaqIndex-stage {
  display: none;
}

.fp-faq-answer p {
  margin: 0;
}

.fp-faq-answer p + p {
  margin-top: 0.75em;
}

.fp-faq-answer a {
  color: var(--fp-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 106, 92, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.fp-faq-answer a:hover {
  color: var(--fp-coral-strong);
}

.fp-faq-answer strong {
  color: var(--fp-ink);
}

@media (min-width: 900px) {
  /* Without the script: one column of questions, answers under them. */
  .fp-FaqIndex-section:not(.is-tabs) .fp-FaqIndex-inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 860px;
  }

  .fp-FaqIndex-section.is-tabs .fp-FaqIndex-stage {
    display: block;
  }

  .fp-FaqIndex-section.is-tabs .fp-FaqIndex-inlineAnswer {
    display: none;
  }
}

.fp-FaqIndex-card [data-faq-card].is-swapping {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
}

.fp-FaqIndex-card [data-faq-card] {
  transition:
    opacity 0.4s var(--fp-ease-out),
    transform 0.4s var(--fp-ease-out),
    filter 0.4s var(--fp-ease-out);
}

/* ---------- Profiles (fpNwProfiles) ----------
   One profile in the panel, as the source. Without the script (and in the builder) it is the first; nw-profiles.js
   stacks every panel in the same grid cell and fades between them, so the panel keeps the height of the tallest. */
.fp-NwSections-panelInner[data-later] {
  display: none;
}

[data-profiles].is-live .fp-NwSections-panelInner[data-later] {
  display: block;
}

.fp-NwSections-rowFill {
  transform: scaleX(0);
}

[data-profiles].is-live .fp-NwSections-panelInner {
  grid-area: 1 / 1;
  transition:
    opacity 0.4s var(--fp-ease-out),
    transform 0.4s var(--fp-ease-out);
}

[data-profiles].is-live .fp-NwSections-panelInner:not(.is-active) {
  opacity: 0;
  transform: translateY(18px);
  visibility: hidden;
}

/* ---------- Reviews (fpReviewsMarquee): reduced motion = one static grid, as the source's data-static ---------- */
@media (prefers-reduced-motion: reduce) {
  .fp-ReviewsMarquee-rows {
    mask-image: none;
    -webkit-mask-image: none;
    max-width: var(--fp-container);
    margin-inline: auto;
    padding-inline: var(--fp-gutter);
  }

  .fp-ReviewsMarquee-track {
    flex-wrap: wrap;
    width: auto;
    animation: none;
  }

  .fp-ReviewsMarquee-card[aria-hidden] {
    display: none;
  }

  .fp-ReviewsMarquee-card {
    flex: 1 1 260px;
  }
}

/* ---------- Header ---------- */
/* Without header.js: hovering or focusing a menu title opens its drop-down. */
.fp-header-nojs .fp-Header-navItem:hover .fp-Header-dropdown,
.fp-header-nojs .fp-Header-navItem:focus-within .fp-Header-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  transition:
    opacity 0.25s ease,
    transform 0.35s var(--fp-ease-out),
    visibility 0s;
}

.fp-Header-mobilePanel[hidden],
.fp-Header-mobileSub[hidden],
.fp-Header-backdrop[hidden] {
  display: none;
}

.fp-Header-mobilePanel.is-opening {
  animation: fp-header-panel 0.45s var(--fp-ease-out);
}

@keyframes fp-header-panel {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-Header-mobilePanel.is-opening {
    animation: none;
  }
}

/* ---------- Newsletter (fpNwNewsletter) ---------- */
.fp-NwSections-submit [data-newsletter-label] {
  position: relative;
}

/* ---------- Footer ---------- */
.fp-footer-copyright {
  cursor: default;
}

.fp-NwSections-row[aria-pressed='true'] .fp-NwSections-rowFill {
  transform: scaleX(1);
}

/* The header's button is hidden on phones (it is in the phone menu). In freedom.css the Button rules come after the
   Header ones, so the source's ".cta { display: none }" loses; restated here with more weight. */
.fp-Header-actions .fp-Header-cta {
  display: none;
}

@media (min-width: 560px) {
  .fp-Header-actions .fp-Header-cta {
    display: inline-flex;
  }
}
