/* ==========================================================================
   FreeMoov — Legal Experience System 2026
   Systeme documentaire commun aux 4 pages legales.
   Portee stricte : body.fm-legal-page et composants .fm-legal-*.
   Aucune regle generique sur header, footer, .ast-container, .elementor-*.
   Aucune police ni bibliotheque d icones ajoutee.
   ========================================================================== */

body.fm-legal-page {
  --fm-navy: #14213D;
  --fm-deep: #08162D;
  --fm-cyan: #34B3F1;
  --fm-cyan-text: #0A6390;
  --fm-orange: #FCA311;
  --fm-paper: #F7FAFD;
  --fm-white: #FFFFFF;
  --fm-ink: #14213D;
  --fm-body: #4D5C74;
  --fm-line: #D5E0EB;
  --fm-soft: #EEF4F9;
  --fm-gut: clamp(18px, 3vw, 40px);
  --fm-shell: 1480px;
  --fm-ease: cubic-bezier(.22, .68, .28, 1);
  --fm-headbar: 86px;
  background: var(--fm-paper);
}

@media (max-width: 921px) {
  body.fm-legal-page { --fm-headbar: 74px; }
}

/* Le header global passe en mode compact des le premier defilement :
   la barre de progression suit sans aucun calcul JS. */
body.fm-legal-page:has(#masthead.is-compact) { --fm-headbar: 72px; }
@media (max-width: 921px) {
  body.fm-legal-page:has(#masthead.is-compact) { --fm-headbar: 64px; }
}

/* --------------------------------------------------------------------------
   1. Neutralisation du conteneur Astra — uniquement sur les pages legales
   -------------------------------------------------------------------------- */

body.fm-legal-page #content.site-content > .ast-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.fm-legal-page #content.site-content > .ast-container > #primary {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.fm-legal-page #content.site-content { overflow-x: clip; }

body.fm-legal-page .ast-article-single,
body.fm-legal-page .entry-content {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.fm-legal-page .entry-content > * { margin-top: 0; }

/* Le wrapper legal echappe a la contrainte content-size de WordPress,
   qui limiterait sinon le hero pleine largeur. */
body.fm-legal-page .entry-content > .fm-legal-page-root {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* --------------------------------------------------------------------------
   2. Hero legal
   -------------------------------------------------------------------------- */

.fm-legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, var(--fm-deep) 0%, #0B1B36 52%, var(--fm-navy) 100%);
  color: #E7EEF7;
  padding: clamp(46px, 6vw, 78px) 0 clamp(38px, 5vw, 62px);
  min-height: 300px;
  display: flex;
  align-items: center;
}

@media (min-width: 1180px) {
  .fm-legal-hero { min-height: 400px; }
}

.fm-legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(213, 224, 235, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(213, 224, 235, .055) 1px, transparent 1px);
  background-size: 92px 92px;
  pointer-events: none;
  z-index: 0;
}

.fm-legal-hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -80px;
  width: 680px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(52, 179, 241, .16), rgba(52, 179, 241, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

.fm-legal-hero__mark {
  position: absolute;
  right: clamp(-40px, -2vw, 0px);
  bottom: -30px;
  width: clamp(200px, 26vw, 360px);
  height: auto;
  opacity: .05;
  color: #FFFFFF;
  pointer-events: none;
  z-index: 0;
}

.fm-legal-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--fm-shell);
  margin-inline: auto;
  padding-inline: var(--fm-gut);
}

.fm-legal-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 18px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(213, 224, 235, .74);
}

.fm-legal-hero__num {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(52, 179, 241, .42);
  background: rgba(52, 179, 241, .10);
  color: #9BD8F7;
  letter-spacing: .10em;
}

.fm-legal-hero__rule {
  display: block;
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fm-cyan), var(--fm-orange));
}

.fm-legal-hero h1 {
  margin: 0;
  font-family: 'Exo', sans-serif;
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: #FFFFFF;
  max-width: 20ch;
}

.fm-legal-hero__desc {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: clamp(15.5px, 1vw, 17.5px);
  line-height: 1.65;
  color: rgba(213, 224, 235, .88);
}

.fm-legal-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: rgba(213, 224, 235, .72);
}

.fm-legal-hero__facts li { display: flex; align-items: center; gap: 8px; margin: 0; }

.fm-legal-hero__facts svg { width: 15px; height: 15px; fill: none; stroke: var(--fm-cyan); stroke-width: 2; flex: 0 0 auto; }

.fm-legal-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid rgba(213, 224, 235, .30);
  background: transparent;
  color: #FFFFFF;
  font-family: 'Exo', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .24s var(--fm-ease), border-color .24s var(--fm-ease), color .24s var(--fm-ease);
}

.fm-legal-hero__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .24s var(--fm-ease); }
.fm-legal-hero__cta:hover svg, .fm-legal-hero__cta:focus-visible svg { transform: translateY(3px); }

.fm-legal-hero__cta:hover,
.fm-legal-hero__cta:focus-visible {
  background: var(--fm-cyan);
  border-color: var(--fm-cyan);
  color: var(--fm-deep);
}

.fm-legal-hero__cta:focus-visible { outline: 2px solid var(--fm-cyan); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   3. Selecteur des quatre documents
   -------------------------------------------------------------------------- */

.fm-legal-switcher {
  position: relative;
  z-index: 2;
  background: var(--fm-white);
  border-bottom: 1px solid var(--fm-line);
}

.fm-legal-switcher__list {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-legal-switcher__list > li { margin: 0; padding: 0; flex: 1 1 0; min-width: 0; }

.fm-legal-switcher a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 74px;
  justify-content: center;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--fm-body);
  background: transparent;
  transition: background-color .22s var(--fm-ease), color .22s var(--fm-ease);
}

.fm-legal-switcher a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--fm-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--fm-ease);
}

.fm-legal-switcher a:hover::after,
.fm-legal-switcher a:focus-visible::after { transform: scaleX(1); }

.fm-legal-switcher__n {
  font-family: 'Open Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--fm-cyan-text);
}

.fm-legal-switcher__t {
  font-family: 'Exo', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fm-ink);
}

.fm-legal-switcher a:hover,
.fm-legal-switcher a:focus-visible { background: var(--fm-soft); }

.fm-legal-switcher a:focus-visible { outline: 2px solid var(--fm-cyan-text); outline-offset: -3px; }

.fm-legal-switcher a[aria-current="page"] { background: var(--fm-soft); }
.fm-legal-switcher a[aria-current="page"]::after { transform: scaleX(1); }

.fm-legal-switcher a[aria-current="page"] .fm-legal-switcher__t { font-weight: 700; }

.fm-legal-switcher a[aria-current="page"] .fm-legal-switcher__n::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--fm-orange);
  vertical-align: middle;
}

@media (max-width: 1023px) {
  .fm-legal-switcher__list {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .fm-legal-switcher__list > li { flex: 0 0 auto; min-width: 190px; scroll-snap-align: start; }
}

@media (max-width: 719px) {
  .fm-legal-switcher__list > li { min-width: 168px; }
  .fm-legal-switcher a { min-height: 66px; padding: 12px 16px; }
  .fm-legal-switcher__t { font-size: 14.5px; }
}

/* --------------------------------------------------------------------------
   4. Barre de progression de lecture
   -------------------------------------------------------------------------- */

.fm-legal-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--fm-gh-top, 0px) + var(--fm-headbar));
  height: 3px;
  background: transparent;
  pointer-events: none;
  z-index: 899;
}

.fm-legal-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--fm-cyan) 0%, var(--fm-cyan) 62%, var(--fm-orange) 100%);
}

/* --------------------------------------------------------------------------
   5. Mise en page documentaire
   -------------------------------------------------------------------------- */

.fm-legal-layout {
  width: 100%;
  max-width: var(--fm-shell);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px) var(--fm-gut) clamp(46px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* Colonne de lecture bornee : le texte juridique n occupe jamais toute
   la largeur, l espace excedentaire respire a droite. */
@media (min-width: 1180px) {
  .fm-legal-layout {
    grid-template-columns: 288px minmax(0, 840px);
    gap: 48px;
  }
}

@media (min-width: 1600px) {
  .fm-legal-layout { grid-template-columns: 310px minmax(0, 860px); gap: 64px; }
}

/* --------------------------------------------------------------------------
   6. Table des matieres
   -------------------------------------------------------------------------- */

.fm-legal-sidebar { min-width: 0; }

@media (min-width: 1180px) {
  .fm-legal-sidebar {
    position: sticky;
    top: calc(var(--fm-gh-top, 0px) + var(--fm-headbar) + 24px);
    max-height: calc(100vh - var(--fm-gh-top, 0px) - var(--fm-headbar) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.fm-legal-toc-wrap {
  background: var(--fm-white);
  border: 1px solid var(--fm-line);
  border-radius: 16px;
  padding: 6px 18px;
}

.fm-legal-toc-wrap > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  font-family: 'Exo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fm-ink);
}

.fm-legal-toc-wrap > summary::-webkit-details-marker { display: none; }
.fm-legal-toc-wrap > summary::marker { content: ""; }
.fm-legal-toc-wrap > summary:focus-visible { outline: 2px solid var(--fm-cyan-text); outline-offset: 2px; border-radius: 8px; }

.fm-legal-toc-chevron { width: 18px; height: 18px; fill: none; stroke: var(--fm-cyan-text); stroke-width: 2.2; transition: transform .24s var(--fm-ease); flex: 0 0 auto; }
.fm-legal-toc-wrap[open] .fm-legal-toc-chevron { transform: rotate(180deg); }

@media (min-width: 1180px) {
  .fm-legal-toc-wrap { padding: 20px 20px 22px; }
  .fm-legal-toc-wrap > summary { display: none; }
  .fm-legal-toc-wrap::before {
    content: "Dans ce document";
    display: block;
    margin-bottom: 14px;
    font-family: 'Exo', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--fm-cyan-text);
  }
}

.fm-legal-toc { padding: 0 0 12px; }
@media (min-width: 1180px) { .fm-legal-toc { padding: 0; } }

.fm-legal-toc ol {
  margin: 0;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 1px solid var(--fm-line);
  counter-reset: fmtoc;
}

.fm-legal-toc li { margin: 0; padding: 0; }

.fm-legal-toc a {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 40px;
  padding: 7px 6px 7px 8px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--fm-body);
  text-decoration: none;
  transition: color .2s var(--fm-ease), background-color .2s var(--fm-ease);
}

.fm-legal-toc a::before {
  counter-increment: fmtoc;
  content: counter(fmtoc, decimal-leading-zero);
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(77, 92, 116, .55);
  flex: 0 0 auto;
}

.fm-legal-toc a::after {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--fm-cyan);
  transform: translateY(-50%);
  transition: height .26s var(--fm-ease);
}

.fm-legal-toc a:hover,
.fm-legal-toc a:focus-visible { color: var(--fm-ink); background: var(--fm-soft); }
.fm-legal-toc a:focus-visible { outline: 2px solid var(--fm-cyan-text); outline-offset: -2px; }

.fm-legal-toc li.is-active > a { color: var(--fm-ink); font-weight: 700; }
.fm-legal-toc li.is-active > a::after { height: calc(100% - 12px); }

.fm-legal-toc li.is-active > a::before { color: var(--fm-orange); }

.fm-legal-toc .fm-legal-toc--sub > a { padding-left: 26px; font-size: 13.8px; }
.fm-legal-toc .fm-legal-toc--sub > a::before { content: ""; counter-increment: none; }

/* --------------------------------------------------------------------------
   7. Contenu juridique
   -------------------------------------------------------------------------- */

.fm-legal-content { min-width: 0; }

.fm-legal-doc {
  background: var(--fm-white);
  border: 1px solid var(--fm-line);
  border-radius: 22px;
  padding: clamp(24px, 3.4vw, 52px) clamp(20px, 3vw, 56px);
  box-shadow: 0 12px 34px rgba(8, 22, 45, .045);
}

@media (max-width: 719px) {
  .fm-legal-doc { border-radius: 14px; padding: 22px 18px 28px; }
}

/* Largeur de lecture confortable, jamais pleine largeur. */
.fm-legal-doc > *,
.fm-legal-doc #cmplz-document > * { max-width: 76ch; }

.fm-legal-doc p,
.fm-legal-doc li,
.fm-legal-doc #cmplz-document p,
.fm-legal-doc #cmplz-document li {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(16.5px, 1vw, 18px);
  line-height: 1.8;
  font-weight: 400;
  color: var(--fm-body);
}

.fm-legal-doc p { margin: 0 0 1.15em; }

.fm-legal-doc h2,
.fm-legal-doc #cmplz-document h2 {
  position: relative;
  margin: 2.1em 0 .7em;
  padding-top: 1.1em;
  border-top: 1px solid var(--fm-line);
  font-family: 'Exo', sans-serif;
  font-size: clamp(27px, 2.2vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--fm-ink);
  scroll-margin-top: calc(var(--fm-gh-top, 0px) + var(--fm-headbar) + 28px);
}

.fm-legal-doc h2:first-child,
.fm-legal-doc #cmplz-document h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.fm-legal-doc h2::after,
.fm-legal-doc #cmplz-document h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.34em;
  width: 42px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fm-cyan) 0%, var(--fm-cyan) 62%, var(--fm-orange) 100%);
}

.fm-legal-doc h3,
.fm-legal-doc #cmplz-document h3 {
  margin: 1.7em 0 .55em;
  font-family: 'Exo', sans-serif;
  font-size: clamp(21px, 1.6vw, 27px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--fm-ink);
  scroll-margin-top: calc(var(--fm-gh-top, 0px) + var(--fm-headbar) + 28px);
}

.fm-legal-doc h4,
.fm-legal-doc #cmplz-document h4 {
  margin: 1.4em 0 .5em;
  font-family: 'Exo', sans-serif;
  font-size: 18.5px;
  font-weight: 700;
  color: var(--fm-ink);
}

.fm-legal-doc a,
.fm-legal-doc #cmplz-document a {
  color: var(--fm-cyan-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s var(--fm-ease);
}

.fm-legal-doc a:hover,
.fm-legal-doc a:focus-visible { color: var(--fm-navy); text-decoration-thickness: 2px; }
.fm-legal-doc a:focus-visible { outline: 2px solid var(--fm-cyan-text); outline-offset: 2px; border-radius: 3px; }

.fm-legal-doc strong { color: var(--fm-ink); font-weight: 700; }

/* Listes */
.fm-legal-doc ul,
.fm-legal-doc #cmplz-document ul { margin: 0 0 1.3em; padding-left: 0; list-style: none; }
.fm-legal-doc ol { margin: 0 0 1.3em; padding-left: 1.4em; }

.fm-legal-doc ul > li { position: relative; padding-left: 26px; margin-bottom: .55em; }

.fm-legal-doc ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--fm-cyan);
}

.fm-legal-doc ol > li { margin-bottom: .55em; }

/* Tableaux */
.fm-legal-tablewrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--fm-line);
  border-radius: 14px;
  margin: 0 0 1.4em;
}

.fm-legal-tablehint {
  display: none;
  margin: 0 0 .5em;
  font-size: 13px;
  color: var(--fm-cyan-text);
}

@media (max-width: 900px) { .fm-legal-tablehint { display: block; } }

.fm-legal-doc table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  font-size: 15.5px;
}

.fm-legal-doc table th {
  background: var(--fm-navy);
  color: #FFFFFF;
  font-family: 'Exo', sans-serif;
  font-weight: 700;
  text-align: left;
  padding: 13px 16px;
  border: 0;
}

.fm-legal-doc table td {
  padding: 12px 16px;
  border-top: 1px solid var(--fm-line);
  color: var(--fm-body);
  vertical-align: top;
}

.fm-legal-doc table tbody tr:nth-child(even) { background: rgba(238, 244, 249, .55); }

/* Notes et encarts */
.fm-legal-doc blockquote {
  margin: 0 0 1.4em;
  padding: 16px 20px;
  border-left: 3px solid var(--fm-cyan);
  border-radius: 0 12px 12px 0;
  background: var(--fm-soft);
  color: var(--fm-body);
}

.fm-legal-doc blockquote p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. Composants Complianz — habillage sans reecriture du markup interne
   -------------------------------------------------------------------------- */

.fm-legal-doc #cmplz-document { max-width: none; overflow-wrap: break-word; }

/* Les en-tetes de service Complianz portent un libelle et une bascule :
   ils passent a la ligne plutot que de deborder sur tres petit ecran. */
.fm-legal-doc .cmplz-service-header,
.fm-legal-doc .cmplz-dropdown > summary { flex-wrap: wrap; }
.fm-legal-doc .cmplz-dropdown > summary > * { min-width: 0; max-width: 100%; }
.fm-legal-doc .cmplz_consent_per_service_label { flex-wrap: wrap; }

/* Tres petits ecrans : la grille interne de l en-tete de service Complianz
   est plus large que la colonne. On reduit le titre et, en dernier recours,
   on la rend defilable. Aucune donnee n est masquee. */
@media (max-width: 560px) {
  .fm-legal-doc .cmplz-service-header h3,
  .fm-legal-doc .cmplz-dropdown > summary h3 { font-size: 17px; line-height: 1.3; margin: 0; }
  .fm-legal-doc .cmplz-service-header > div,
  .fm-legal-doc .cmplz-dropdown > summary > div {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Aucun rognage : les grilles de cookies generees par Complianz peuvent
   depasser la colonne sur petits ecrans et doivent alors defiler,
   jamais etre coupees. */
.fm-legal-doc .cmplz-dropdown {
  margin: 0 0 12px;
  border: 1px solid var(--fm-line);
  border-radius: 12px;
  background: var(--fm-white);
  overflow: visible;
  max-width: 76ch;
}

.fm-legal-doc .cmplz-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--fm-soft);
  border-radius: 11px 11px 0 0;
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  color: var(--fm-ink);
}

.fm-legal-doc .cmplz-dropdown[open] > summary { border-radius: 11px 11px 0 0; }
.fm-legal-doc .cmplz-dropdown:not([open]) > summary { border-radius: 11px; }

.fm-legal-doc .cmplz-dropdown > summary:focus-visible { outline: 2px solid var(--fm-cyan-text); outline-offset: -3px; }

.fm-legal-doc .cmplz-service-description,
.fm-legal-doc .cmplz-sharing-data { padding: 4px 16px 14px; }

/* Zones defilables : toute donnee plus large que la colonne reste atteignable. */
.fm-legal-doc .cmplz-dropdown > *:not(summary),
.fm-legal-doc .cookies-per-purpose,
.fm-legal-doc .cmplz-service-description,
.fm-legal-doc .cmplz-sharing-data {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fm-legal-doc .cmplz-dropdown p,
.fm-legal-doc .cmplz-dropdown li { font-size: 15.5px; line-height: 1.7; }

/* Boutons et bascules Complianz : style FreeMoov, comportement inchange. */
.fm-legal-doc .cmplz-category-toggle,
.fm-legal-doc button.cmplz-category-toggle {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--fm-navy);
  background: var(--fm-white);
  color: var(--fm-navy);
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  padding: 0 16px;
  cursor: pointer;
}

.fm-legal-doc .cmplz-category-toggle:hover,
.fm-legal-doc .cmplz-category-toggle:focus-visible { background: var(--fm-navy); color: #FFFFFF; }
.fm-legal-doc .cmplz-category-toggle:focus-visible { outline: 2px solid var(--fm-cyan-text); outline-offset: 2px; }

.fm-legal-doc a.cmplz-manage-consent,
.fm-legal-doc .cmplz-manage-consent-container a,
.fm-legal-doc #cmplz-manage-consent-container a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  background: var(--fm-navy);
  border: 1px solid var(--fm-navy);
  color: #FFFFFF;
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.fm-legal-doc a.cmplz-manage-consent:hover,
.fm-legal-doc a.cmplz-manage-consent:focus-visible { background: var(--fm-cyan-text); border-color: var(--fm-cyan-text); color: #FFFFFF; }

.fm-legal-doc .cmplz_consent_per_service_label { display: inline-flex; align-items: center; gap: 10px; }

/* --------------------------------------------------------------------------
   8b. Page 1304 — panneau dynamique de gestion du consentement Complianz
   Portee volontairement stricte : aucune incidence sur la banniere globale
   ni sur les trois autres documents juridiques.
   -------------------------------------------------------------------------- */

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-categories {
  color: #14213D;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-category {
  overflow: hidden;
  border: 1px solid #D5E0EB;
  border-radius: 11px;
  background: #F3F5F7;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-category .cmplz-category-header {
  min-height: 56px;
  padding: 6px 10px 6px 14px;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  gap: 10px;
  color: #14213D;
  background: #F3F5F7;
  transition: background-color .18s var(--fm-ease), border-color .18s var(--fm-ease);
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-category .cmplz-category-header:hover {
  background: #E9EEF3;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-category-title {
  color: #14213D !important;
  font-family: 'Exo', sans-serif;
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 700;
  line-height: 1.35;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-always-active {
  color: #1D6B45 !important;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-description {
  padding: 14px !important;
  border-top: 1px solid #D5E0EB;
  color: #4D5C74 !important;
  background: #FFFFFF;
  font-size: 15px;
  line-height: 1.65;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-description > span {
  color: inherit;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-banner-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-banner-checkbox input.cmplz-consent-checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0A6390;
  cursor: pointer;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-banner-checkbox input.cmplz-consent-checkbox:focus-visible {
  outline: 3px solid #0A6390;
  outline-offset: 3px;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
button.cmplz-category-toggle {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 9px;
  color: #14213D !important;
  background: transparent !important;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
button.cmplz-category-toggle:hover {
  border-color: #B8C6D4 !important;
  color: #14213D !important;
  background: #E1E8EF !important;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
button.cmplz-category-toggle:focus-visible {
  outline: 3px solid #0A6390;
  outline-offset: 2px;
  border-color: #0A6390 !important;
  color: #14213D !important;
  background: #FFFFFF !important;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-icon.cmplz-open,
body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-icon.cmplz-open svg {
  width: 20px;
  height: 20px;
  color: #14213D;
}

body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
#cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
.cmplz-icon.cmplz-open path {
  fill: currentColor;
}

@media (max-width: 420px) {
  body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
  #cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
  .cmplz-category .cmplz-category-header {
    padding-left: 11px;
    gap: 7px;
  }

  body.page-id-1304.fm-legal-page .fm-legal-page-root .fm-legal-doc
  #cmplz-document #cmplz-manage-consent-container.cmplz-manage-consent-container
  .cmplz-always-active {
    font-size: 11px;
  }
}

/* --------------------------------------------------------------------------
   9. Navigation document precedent / suivant
   -------------------------------------------------------------------------- */

.fm-legal-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 26px 0 0;
}

@media (min-width: 720px) { .fm-legal-next { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fm-legal-next a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 84px;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid var(--fm-line);
  border-radius: 14px;
  background: var(--fm-white);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .22s var(--fm-ease), background-color .22s var(--fm-ease);
}

.fm-legal-next a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--fm-cyan), var(--fm-orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--fm-ease);
}

.fm-legal-next a:hover::after,
.fm-legal-next a:focus-visible::after { transform: scaleX(1); }
.fm-legal-next a:hover, .fm-legal-next a:focus-visible { border-color: var(--fm-cyan); background: var(--fm-soft); }
.fm-legal-next a:focus-visible { outline: 2px solid var(--fm-cyan-text); outline-offset: 2px; }

.fm-legal-next__dir {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fm-cyan-text);
}

.fm-legal-next__dir svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }

.fm-legal-next__t {
  font-family: 'Exo', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--fm-ink);
  line-height: 1.35;
}

.fm-legal-next .fm-legal-next--prev { align-items: flex-start; }
.fm-legal-next .fm-legal-next--next { align-items: flex-end; text-align: right; }
@media (max-width: 719px) { .fm-legal-next .fm-legal-next--next { align-items: flex-start; text-align: left; } }

/* --------------------------------------------------------------------------
   10. Bloc d aide — hors du document juridique
   -------------------------------------------------------------------------- */

.fm-legal-help {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 20px 0 0;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 22px;
  background: linear-gradient(150deg, var(--fm-deep), var(--fm-navy));
  color: #E7EEF7;
  display: grid;
  gap: 20px;
  align-items: center;
}

@media (min-width: 860px) { .fm-legal-help { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 719px) { .fm-legal-help { border-radius: 14px; } }

.fm-legal-help::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(213, 224, 235, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(213, 224, 235, .05) 1px, transparent 1px);
  background-size: 74px 74px;
  pointer-events: none;
  z-index: 0;
}

.fm-legal-help > * { position: relative; z-index: 1; }

.fm-legal-help__t {
  margin: 0 0 8px;
  font-family: 'Exo', sans-serif;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  color: #FFFFFF;
}

.fm-legal-help__p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(213, 224, 235, .86); max-width: 52ch; }

.fm-legal-help__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--fm-orange);
  border: 1px solid var(--fm-orange);
  color: var(--fm-deep);
  font-family: 'Exo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .24s var(--fm-ease), border-color .24s var(--fm-ease);
}

.fm-legal-help__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .24s var(--fm-ease); }
.fm-legal-help__cta:hover svg, .fm-legal-help__cta:focus-visible svg { transform: translateX(4px); }
.fm-legal-help__cta:hover, .fm-legal-help__cta:focus-visible { background: #FFFFFF; border-color: #FFFFFF; }
.fm-legal-help__cta:focus-visible { outline: 2px solid var(--fm-cyan); outline-offset: 3px; }

.fm-legal-aside-note {
  display: block;
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(155, 216, 247, .9);
}

/* --------------------------------------------------------------------------
   11. Animations — le texte juridique est visible des la premiere frame
   -------------------------------------------------------------------------- */

.fm-legal-reveal {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--fm-ease), transform .5s var(--fm-ease);
}

.fm-legal-js .fm-legal-hero.fm-legal-reveal:not(.is-in),
.fm-legal-js .fm-legal-switcher.fm-legal-reveal:not(.is-in) { opacity: 0; transform: translateY(7px); }

@media (prefers-reduced-motion: reduce) {
  body.fm-legal-page *,
  body.fm-legal-page *::before,
  body.fm-legal-page *::after {
    transition: none !important;
    animation: none !important;
  }
  .fm-legal-js .fm-legal-hero.fm-legal-reveal,
  .fm-legal-js .fm-legal-switcher.fm-legal-reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   12. Responsive fin
   -------------------------------------------------------------------------- */

@media (max-width: 1179px) {
  .fm-legal-sidebar { position: static; max-height: none; }
}

@media (max-width: 400px) {
  .fm-legal-doc { padding: 20px 15px 24px; }
  .fm-legal-hero h1 { font-size: clamp(28px, 8vw, 34px); }
}
